Skip to content

Commit e85f715

Browse files
Fix less bug (#54)
fix wrong less structure
1 parent 69f4a9b commit e85f715

File tree

1 file changed

+53
-45
lines changed

1 file changed

+53
-45
lines changed

view/frontend/web/css/source/_module.less

Lines changed: 53 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -3,64 +3,72 @@
33
* See LICENSE bundled with this library for license details.
44
*/
55

6-
@color-red: #ff0101;
7-
@color-red2: #b30000;
8-
@color-gray-light01: #f4f4f4;
9-
@screen__m: 768px;
106

11-
&.action {
12-
&.action-danger {
13-
color: @color-red9;
14-
}
15-
16-
&.primary.primary-danger {
17-
background: @color-red9;
18-
border: 1px solid @color-red9;
7+
//
8+
// Common
9+
// _____________________________________________
1910

20-
&:hover {
21-
background: @color-red11;
22-
border: 1px solid @color-red11;
11+
& when (@media-common = true) {
12+
&.action {
13+
&.action-danger {
14+
color: @color-red9;
15+
}
16+
&.primary.primary-danger {
17+
background: @color-red9;
18+
border: 1px solid @color-red9;
19+
&:hover {
20+
background: @color-red11;
21+
border: 1px solid @color-red11;
22+
}
2323
}
2424
}
25-
}
2625

2726
/**
28-
* This file is part of the Flurrybox EnhancedPrivacy package.
29-
*
30-
* DISCLAIMER
31-
*
32-
* Do not edit or add to this file if you wish to upgrade Flurrybox EnhancedPrivacy
33-
* to newer versions in the future.
34-
*
35-
* @copyright Copyright (c) 2018 Flurrybox, Ltd. (https://flurrybox.com/)
36-
* @license GNU General Public License ("GPL") v3.0
37-
*
38-
* For the full copyright and license information, please view the LICENSE
39-
* file that was distributed with this source code.
40-
*/
41-
42-
.enhanced-privacy-popup {
43-
position: absolute;
44-
right: 0;
45-
bottom: 0;
46-
left: 0;
47-
background: @color-gray-light01;
48-
overflow: hidden;
49-
border-top: 1px solid #6e716e;
27+
* This file is part of the Flurrybox EnhancedPrivacy package.
28+
*
29+
* DISCLAIMER
30+
*
31+
* Do not edit or add to this file if you wish to upgrade Flurrybox EnhancedPrivacy
32+
* to newer versions in the future.
33+
*
34+
* @copyright Copyright (c) 2018 Flurrybox, Ltd. (https://flurrybox.com/)
35+
* @license GNU General Public License ("GPL") v3.0
36+
*
37+
* For the full copyright and license information, please view the LICENSE
38+
* file that was distributed with this source code.
39+
*/
5040

51-
.popup {
52-
&.content {
53-
margin: auto;
54-
padding: 10px 0;
55-
width: @screen__m;
41+
.enhanced-privacy-popup {
42+
position: absolute;
43+
right: 0;
44+
bottom: 0;
45+
left: 0;
46+
background: @color-gray-light01;
47+
overflow: hidden;
48+
.popup {
49+
&.content{
50+
margin: auto;
51+
padding: 10px 0;
52+
width: @screen__m;
53+
}
5654
}
55+
}
56+
}
5757

58-
@media (max-width: @screen__m) {
59-
&.content {
58+
//
59+
// Mobile
60+
// _____________________________________________
61+
62+
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
63+
.enhanced-privacy-popup {
64+
.popup {
65+
&.content{
6066
margin: 0;
6167
padding: 10px;
6268
width: auto;
6369
}
6470
}
6571
}
6672
}
73+
74+

0 commit comments

Comments
 (0)