|
3 | 3 | * See LICENSE bundled with this library for license details.
|
4 | 4 | */
|
5 | 5 |
|
6 |
| -@color-red: #ff0101; |
7 |
| -@color-red2: #b30000; |
8 |
| -@color-gray-light01: #f4f4f4; |
9 |
| -@screen__m: 768px; |
10 | 6 |
|
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 | +// _____________________________________________ |
19 | 10 |
|
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 | + } |
23 | 23 | }
|
24 | 24 | }
|
25 |
| -} |
26 | 25 |
|
27 | 26 | /**
|
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 | +*/ |
50 | 40 |
|
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 | + } |
56 | 54 | }
|
| 55 | + } |
| 56 | +} |
57 | 57 |
|
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{ |
60 | 66 | margin: 0;
|
61 | 67 | padding: 10px;
|
62 | 68 | width: auto;
|
63 | 69 | }
|
64 | 70 | }
|
65 | 71 | }
|
66 | 72 | }
|
| 73 | + |
| 74 | + |
0 commit comments