pacem-less 0.40.3 → 0.40.4-alexandria
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/pacem/layout/dark/cards.less +12 -11
- package/pacem/layout/dark/datatable.less +5 -5
- package/pacem/layout/dark/panels.less +1 -1
- package/pacem/layout/mixins.less +98 -34
- package/pacem/pacem.less +6 -1
- package/pacem/theme-dark.less +7 -1
- package/pacem/ui/dark/button.less +3 -2
- package/pacem/ui/dark/lightbox.less +1 -1
- package/pacem/ui/dark/sidebar.less +4 -0
- package/pacem/ui/dark/window.less +1 -1
- package/pacem/ui/dialog-vars.less +1 -1
- package/pacem/ui/shared.less +17 -12
- package/package.json +1 -1
- package/shared.less +23 -7
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@import "../mixins";
|
|
2
2
|
|
|
3
3
|
@_card_ribbon_padding: 2 * @grid_spacing / 3;
|
|
4
|
+
@_radius: @border_card_radius;
|
|
4
5
|
|
|
5
6
|
.@{PCSS}-card {
|
|
6
7
|
.Panel(card);
|
|
@@ -28,8 +29,8 @@
|
|
|
28
29
|
height: @_h_height;
|
|
29
30
|
top: 0;
|
|
30
31
|
left: 0;
|
|
31
|
-
border-top-left-radius: @
|
|
32
|
-
border-top-right-radius: @
|
|
32
|
+
border-top-left-radius: @_radius;
|
|
33
|
+
border-top-right-radius: @_radius;
|
|
33
34
|
overflow: hidden;
|
|
34
35
|
}
|
|
35
36
|
|
|
@@ -63,8 +64,8 @@
|
|
|
63
64
|
.card-img {
|
|
64
65
|
height: 100%;
|
|
65
66
|
box-shadow: none;
|
|
66
|
-
border-bottom-left-radius: @
|
|
67
|
-
border-bottom-right-radius: @
|
|
67
|
+
border-bottom-left-radius: @_radius;
|
|
68
|
+
border-bottom-right-radius: @_radius;
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
.card-body, .card-footer {
|
|
@@ -96,9 +97,9 @@
|
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
.card-img {
|
|
99
|
-
border-top-left-radius: @
|
|
100
|
+
border-top-left-radius: @_radius;
|
|
100
101
|
border-top-right-radius: 0;
|
|
101
|
-
border-bottom-left-radius: @
|
|
102
|
+
border-bottom-left-radius: @_radius;
|
|
102
103
|
border-bottom-right-radius: 0;
|
|
103
104
|
}
|
|
104
105
|
|
|
@@ -142,9 +143,9 @@
|
|
|
142
143
|
grid-template-areas: 'img heading tools' 'img body body' 'img footer footer';
|
|
143
144
|
|
|
144
145
|
.card-img {
|
|
145
|
-
border-top-left-radius: @
|
|
146
|
+
border-top-left-radius: @_radius;
|
|
146
147
|
border-top-right-radius: 0;
|
|
147
|
-
border-bottom-left-radius: @
|
|
148
|
+
border-bottom-left-radius: @_radius;
|
|
148
149
|
border-bottom-right-radius: 0;
|
|
149
150
|
}
|
|
150
151
|
}
|
|
@@ -156,9 +157,9 @@
|
|
|
156
157
|
|
|
157
158
|
.card-img {
|
|
158
159
|
border-top-left-radius: 0;
|
|
159
|
-
border-top-right-radius: @
|
|
160
|
+
border-top-right-radius: @_radius;
|
|
160
161
|
border-bottom-left-radius: 0;
|
|
161
|
-
border-bottom-right-radius: @
|
|
162
|
+
border-bottom-right-radius: @_radius;
|
|
162
163
|
}
|
|
163
164
|
|
|
164
165
|
.card-ribbon {
|
|
@@ -211,7 +212,7 @@
|
|
|
211
212
|
position: absolute;
|
|
212
213
|
z-index: 2;
|
|
213
214
|
.CardRibbon();
|
|
214
|
-
border-radius: @
|
|
215
|
+
border-radius: @_radius;
|
|
215
216
|
|
|
216
217
|
&:not(.bg-default):not(.bg-error):not(.bg-accent):not(.bg-primary):not(.bg-success):not(.bg-warning):not(.bg-danger):not(.bg-invert):not(.bg-disabled) {
|
|
217
218
|
background-color: @color_lightblue;
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
@_cell_crnr_unit: unit(
|
|
12
|
+
@_cell_crnr_unit: unit(@corner_datacell_size);
|
|
13
13
|
|
|
14
14
|
.DataCellColorize(@_clr) {
|
|
15
15
|
border-color: fade(@_clr, 20);
|
|
16
16
|
|
|
17
17
|
&.datacell-corners {
|
|
18
|
-
.Corners(fade(@_clr, 25), @_cell_crnr_unit);
|
|
18
|
+
.Corners(fade(@_clr, 25), 0, @_cell_crnr_unit);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
&.datacell-filled {
|
|
@@ -42,7 +42,7 @@ table.@{PCSS}-datatable {
|
|
|
42
42
|
th, td {
|
|
43
43
|
|
|
44
44
|
&.datacell-corners {
|
|
45
|
-
.Corners(fade(@color_border, 100), @_cell_crnr_unit);
|
|
45
|
+
.Corners(fade(@color_border, 100), 0, @_cell_crnr_unit);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
border-left: none;
|
|
@@ -152,7 +152,7 @@ table.@{PCSS}-datatable {
|
|
|
152
152
|
.DataCellColorize2(@prefix, @_clr) {
|
|
153
153
|
|
|
154
154
|
&.@{prefix}-corners {
|
|
155
|
-
.Corners(fade(@_clr, 12.5), @_cell_crnr_unit);
|
|
155
|
+
.Corners(fade(@_clr, 12.5), 0, @_cell_crnr_unit);
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
&.@{prefix}-filled {
|
|
@@ -165,7 +165,7 @@ table.@{PCSS}-datatable {
|
|
|
165
165
|
.DataCell(@prefix) {
|
|
166
166
|
|
|
167
167
|
&.@{prefix}-corners {
|
|
168
|
-
.Corners(@color_border, @_cell_crnr_unit);
|
|
168
|
+
.Corners(@color_border, 0, @_cell_crnr_unit);
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
display: flex;
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
border: @grid_spacing/3 solid #868584;
|
|
192
192
|
box-shadow: inset @_brd_in_w 0 0 @_brd_in_clr, inset 0 @_brd_in_w 0 @_brd_in_clr, inset 0 -@_brd_in_w 0 @_brd_in_clr, inset -@_brd_in_w 0 0 @_brd_in_clr;
|
|
193
193
|
padding: @_brd_in_w;
|
|
194
|
-
border-radius: @
|
|
194
|
+
border-radius: @border_panel_radius;
|
|
195
195
|
|
|
196
196
|
.@{PCSS}-row,
|
|
197
197
|
.@{PCSS}-flex {
|
package/pacem/layout/mixins.less
CHANGED
|
@@ -44,8 +44,11 @@
|
|
|
44
44
|
background-color: fade(@_clr, 10);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
@_r0: if((@prefix = card), @border_card_radius, @border_radius);
|
|
48
|
+
@_r1: if((@prefix = panel), @border_panel_radius, @_r0);
|
|
49
|
+
|
|
50
|
+
&.@{prefix}-corners{ // when (@_r1 = 0) {
|
|
51
|
+
.Corners(@_clr, @_r1, @corner_size);
|
|
49
52
|
}
|
|
50
53
|
}
|
|
51
54
|
|
|
@@ -55,73 +58,111 @@
|
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
.BoxLayout(@prefix, @_clr);
|
|
58
|
-
|
|
61
|
+
@_r0: if((@prefix = card), @border_card_radius, @border_radius);
|
|
62
|
+
@_r1: if((@prefix = panel), @border_panel_radius, @_r0);
|
|
63
|
+
.CornersColorize(@_clr, @_r1);
|
|
59
64
|
}
|
|
60
65
|
|
|
61
|
-
|
|
66
|
+
/*.CornersSize() {
|
|
62
67
|
.CornersSize(@grid_spacing/4;);
|
|
63
|
-
}
|
|
68
|
+
}*/
|
|
64
69
|
|
|
65
|
-
.CornersSize(@_sz) when (@border_radius = 0) {
|
|
70
|
+
.CornersSize(@_sz) /*when (@border_radius = 0)*/ {
|
|
66
71
|
|
|
67
72
|
.corner {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
|
|
74
|
+
&when (@_sz > 0) {
|
|
75
|
+
width: @_sz * 2;
|
|
76
|
+
height: $width;
|
|
77
|
+
border-radius: 50%;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&when (@_sz <= 0) {
|
|
81
|
+
width: ~"var(--@{PCSS}-corner-size)";
|
|
82
|
+
height: $width;
|
|
83
|
+
}
|
|
84
|
+
|
|
71
85
|
border: 1px solid transparent;
|
|
72
86
|
position: absolute;
|
|
73
87
|
pointer-events: none;
|
|
88
|
+
box-sizing: border-box;
|
|
74
89
|
|
|
75
90
|
&.top-left {
|
|
76
91
|
top: -1px;
|
|
77
92
|
left: -1px;
|
|
93
|
+
|
|
94
|
+
&when (@_sz > 0) {
|
|
95
|
+
transform: rotate(-45deg);
|
|
96
|
+
}
|
|
78
97
|
}
|
|
79
98
|
|
|
80
99
|
&.top-right {
|
|
81
100
|
top: -1px;
|
|
82
101
|
right: -1px;
|
|
102
|
+
|
|
103
|
+
&when (@_sz > 0) {
|
|
104
|
+
transform: rotate(45deg);
|
|
105
|
+
}
|
|
83
106
|
}
|
|
84
107
|
|
|
85
108
|
&.bottom-right {
|
|
86
109
|
bottom: -1px;
|
|
87
110
|
right: -1px;
|
|
111
|
+
|
|
112
|
+
&when (@_sz > 0) {
|
|
113
|
+
transform: rotate(135deg);
|
|
114
|
+
}
|
|
88
115
|
}
|
|
89
116
|
|
|
90
117
|
&.bottom-left {
|
|
91
118
|
bottom: -1px;
|
|
92
119
|
left: -1px;
|
|
120
|
+
|
|
121
|
+
&when (@_sz > 0) {
|
|
122
|
+
transform: rotate(-135deg);
|
|
123
|
+
}
|
|
93
124
|
}
|
|
94
125
|
}
|
|
95
126
|
|
|
96
|
-
.corner when (@border_radius > @_sz/2) {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
height: @_sz;
|
|
100
|
-
border-radius: 50%;*/
|
|
101
|
-
visibility: hidden;
|
|
127
|
+
.corner /*when (@border_radius > @_sz/2)*/ {
|
|
128
|
+
/* deprecated */
|
|
129
|
+
//visibility: hidden;
|
|
102
130
|
}
|
|
103
131
|
}
|
|
104
132
|
|
|
105
|
-
.CornersColorize(@_clr) when (@border_radius = 0) {
|
|
133
|
+
.CornersColorize(@_clr, @_radius) /*when (@border_radius = 0)*/ {
|
|
106
134
|
.corner {
|
|
107
|
-
&.top-left {
|
|
108
|
-
border-top-color: @_clr;
|
|
109
|
-
border-left-color: @_clr;
|
|
110
|
-
}
|
|
111
135
|
|
|
112
|
-
|
|
136
|
+
&when (@_radius > 0) {
|
|
113
137
|
border-top-color: @_clr;
|
|
114
|
-
border-right-color: @_clr;
|
|
115
138
|
}
|
|
116
139
|
|
|
117
|
-
|
|
118
|
-
border-bottom-color: @_clr;
|
|
119
|
-
border-right-color: @_clr;
|
|
120
|
-
}
|
|
140
|
+
&when (@_radius <= 0) {
|
|
121
141
|
|
|
122
|
-
|
|
123
|
-
border-
|
|
124
|
-
border-
|
|
142
|
+
// reset
|
|
143
|
+
border-top-color: transparent;
|
|
144
|
+
border-radius: 0;
|
|
145
|
+
transform: none;
|
|
146
|
+
|
|
147
|
+
&.top-left {
|
|
148
|
+
border-top-color: @_clr;
|
|
149
|
+
border-left-color: @_clr;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&.top-right {
|
|
153
|
+
border-top-color: @_clr;
|
|
154
|
+
border-right-color: @_clr;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&.bottom-right {
|
|
158
|
+
border-bottom-color: @_clr;
|
|
159
|
+
border-right-color: @_clr;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&.bottom-left {
|
|
163
|
+
border-bottom-color: @_clr;
|
|
164
|
+
border-left-color: @_clr;
|
|
165
|
+
}
|
|
125
166
|
}
|
|
126
167
|
}
|
|
127
168
|
}
|
|
@@ -153,12 +194,35 @@
|
|
|
153
194
|
.Panel(@prefix) {
|
|
154
195
|
padding: 0 /*0 @grid_spacing/4 0*/;
|
|
155
196
|
text-rendering: optimizeSpeed;
|
|
156
|
-
border-radius: @border_radius;
|
|
157
197
|
border: 1px solid transparent;
|
|
158
198
|
box-sizing: border-box;
|
|
159
199
|
position: relative;
|
|
160
|
-
|
|
161
|
-
|
|
200
|
+
|
|
201
|
+
@_r0: if((@prefix = card), @border_card_radius, @border_radius);
|
|
202
|
+
@_r1: if((@prefix = panel), @border_panel_radius, @_r0);
|
|
203
|
+
|
|
204
|
+
@_rvar0: if((@prefix = card), ~"var(--@{PCSS}-border-card-radius)", ~"var(--@{PCSS}-border-radius)");
|
|
205
|
+
@_rvar: if((@prefix = panel), ~"var(--@{PCSS}-border-panel-radius)", @_r0);
|
|
206
|
+
|
|
207
|
+
border-radius: @_rvar;
|
|
208
|
+
.CornersSize(@_r1);
|
|
209
|
+
.CornersColorize(@color_default, @_r1);
|
|
210
|
+
/*border-radius: @border_radius;
|
|
211
|
+
.CornersSize(@border_radius);
|
|
212
|
+
.CornersColorize(@color_default, @border_radius);
|
|
213
|
+
|
|
214
|
+
&when (@prefix = panel) {
|
|
215
|
+
border-radius: @border_panel_radius;
|
|
216
|
+
.CornersSize(@border_panel_radius);
|
|
217
|
+
.CornersColorize(@color_default,@border_panel_radius);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
&when (@prefix = card) {
|
|
221
|
+
border-radius: @border_card_radius;
|
|
222
|
+
.CornersSize(@border_card_radius);
|
|
223
|
+
.CornersColorize(@color_default,@border_card_radius);
|
|
224
|
+
}*/
|
|
225
|
+
|
|
162
226
|
|
|
163
227
|
@_min_height: @grid_spacing;
|
|
164
228
|
|
|
@@ -249,7 +313,7 @@
|
|
|
249
313
|
&.fill-@{value}{
|
|
250
314
|
color: ~"var(--@{PCSS}-color-@{value}-inverse)";
|
|
251
315
|
// border-color: ~"var(--@{PCSS}-color-@{value}-inverse)";
|
|
252
|
-
.CornersColorize(~"var(--@{PCSS}-color-@{value}-inverse)");
|
|
316
|
+
.CornersColorize(~"var(--@{PCSS}-color-@{value}-inverse)", @_r1);
|
|
253
317
|
|
|
254
318
|
.@{prefix}-body,
|
|
255
319
|
.@{prefix}-footer,
|
|
@@ -264,7 +328,7 @@
|
|
|
264
328
|
&.fill-@{value}-container{
|
|
265
329
|
color: ~"var(--@{PCSS}-color-@{value}-container-inverse)";
|
|
266
330
|
// border-color: ~"var(--@{PCSS}-color-@{value}-container-inverse)";
|
|
267
|
-
.CornersColorize(~"var(--@{PCSS}-color-@{value}-container-inverse)");
|
|
331
|
+
.CornersColorize(~"var(--@{PCSS}-color-@{value}-container-inverse)", @_r1);
|
|
268
332
|
|
|
269
333
|
.@{prefix}-heading,
|
|
270
334
|
.@{prefix}-body,
|
package/pacem/pacem.less
CHANGED
|
@@ -288,7 +288,6 @@ each(@_colors, {
|
|
|
288
288
|
});
|
|
289
289
|
|
|
290
290
|
--@{PCSS}-color-border: @color_border;
|
|
291
|
-
|
|
292
291
|
// spacing + sizing
|
|
293
292
|
--@{PCSS}-grid-cell: @grid_cell;
|
|
294
293
|
--@{PCSS}-grid-spacing: @grid_spacing;
|
|
@@ -312,6 +311,12 @@ each(range(12), {
|
|
|
312
311
|
--@{PCSS}-zindex-menu: @hamburger_z_index;
|
|
313
312
|
--@{PCSS}-zindex-lightbox: @lightbox_z_index;
|
|
314
313
|
--@{PCSS}-zindex-header: @header_z_index;
|
|
314
|
+
// ui
|
|
315
|
+
--@{PCSS}-border-radius: @border_radius;
|
|
316
|
+
--@{PCSS}-border-button-radius: @border_button_radius;
|
|
317
|
+
--@{PCSS}-border-panel-radius: @border_panel_radius;
|
|
318
|
+
--@{PCSS}-border-card-radius: @border_card_radius;
|
|
319
|
+
--@{PCSS}-corner-size: @corner_size;
|
|
315
320
|
/* #region deprecated */
|
|
316
321
|
--color-background: @color_background;
|
|
317
322
|
--color-root: @color_root_background;
|
package/pacem/theme-dark.less
CHANGED
|
@@ -213,13 +213,19 @@
|
|
|
213
213
|
@button_hover_percentage: 5;
|
|
214
214
|
@button_fontfamily: @font_std;
|
|
215
215
|
@button_fontsize: 1.1rem * @font_rem_factor;
|
|
216
|
-
|
|
216
|
+
@border_button_radius: @border_radius;
|
|
217
217
|
/*#endregion*/
|
|
218
218
|
|
|
219
219
|
/*#region UI VARIABLES*/
|
|
220
220
|
|
|
221
221
|
@color_link: @color_primary;
|
|
222
222
|
|
|
223
|
+
// panels, cards, tables, ...
|
|
224
|
+
@border_panel_radius: @border_radius;
|
|
225
|
+
@border_card_radius: @border_panel_radius;
|
|
226
|
+
@corner_size: 8px;
|
|
227
|
+
@corner_datacell_size: 3px;
|
|
228
|
+
|
|
223
229
|
// datatables
|
|
224
230
|
@datarow_color: transparent;
|
|
225
231
|
@datarow_hover_color: fade(@color_border, 5);
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
@_width_half: @grid_cell + 2 * @_side_padding;
|
|
7
7
|
@_height: @grid_spacing * 1.5;
|
|
8
8
|
@_border: 1px;
|
|
9
|
+
@_radius: ~"var(--@{PCSS}-border-button-radius)";
|
|
9
10
|
|
|
10
11
|
.@{PCSS}-button.button,
|
|
11
12
|
@{P}-button.button {
|
|
@@ -22,7 +23,7 @@
|
|
|
22
23
|
//margin: 0 @_margin @_margin 0;
|
|
23
24
|
transition: all .1s linear;
|
|
24
25
|
//color: @color_light;
|
|
25
|
-
border-radius: @
|
|
26
|
+
border-radius: @_radius;
|
|
26
27
|
|
|
27
28
|
&.button-size {
|
|
28
29
|
padding: 0 @grid_spacing/2;
|
|
@@ -338,7 +339,7 @@ a.@{PCSS}-button,
|
|
|
338
339
|
}
|
|
339
340
|
|
|
340
341
|
&.button-square {
|
|
341
|
-
border-radius: @
|
|
342
|
+
border-radius: @_radius;
|
|
342
343
|
|
|
343
344
|
&.square-sharp {
|
|
344
345
|
border-radius: 0;
|
package/pacem/ui/shared.less
CHANGED
|
@@ -56,24 +56,29 @@
|
|
|
56
56
|
border-radius: 0;
|
|
57
57
|
display: block;
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
@_r0: ~"var(--@{PCSS}-border-button-radius)";
|
|
60
|
+
@_r1: ~"var(--@{PCSS}-border-radius)";
|
|
61
|
+
@_r: if((@type = button), @_r0, @_r1);
|
|
62
|
+
@_radius: if((@type = button), @border_button_radius, @border_radius);
|
|
63
|
+
|
|
64
|
+
&.@{type}set-first when (@_radius > 0) {
|
|
65
|
+
border-top-left-radius: @_r;
|
|
66
|
+
border-bottom-left-radius: @_r;
|
|
62
67
|
}
|
|
63
68
|
|
|
64
|
-
&:first-child when (@
|
|
65
|
-
border-top-left-radius: @
|
|
66
|
-
border-bottom-left-radius: @
|
|
69
|
+
&:first-child when (@_radius > 0) {
|
|
70
|
+
border-top-left-radius: @_r;
|
|
71
|
+
border-bottom-left-radius: @_r;
|
|
67
72
|
}
|
|
68
73
|
|
|
69
|
-
&.@{type}set-last when (@
|
|
70
|
-
border-top-right-radius: @
|
|
71
|
-
border-bottom-right-radius: @
|
|
74
|
+
&.@{type}set-last when (@_radius > 0) {
|
|
75
|
+
border-top-right-radius: @_r;
|
|
76
|
+
border-bottom-right-radius: @_r;
|
|
72
77
|
}
|
|
73
78
|
|
|
74
|
-
&:last-child when (@
|
|
75
|
-
border-top-right-radius: @
|
|
76
|
-
border-bottom-right-radius: @
|
|
79
|
+
&:last-child when (@_radius > 0) {
|
|
80
|
+
border-top-right-radius: @_r;
|
|
81
|
+
border-bottom-right-radius: @_r;
|
|
77
82
|
}
|
|
78
83
|
|
|
79
84
|
&:not(:last-child):not(.@{type}set-last) {
|
package/package.json
CHANGED
package/shared.less
CHANGED
|
@@ -23,23 +23,39 @@
|
|
|
23
23
|
.Blur(@radius);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.Grayscale(){
|
|
26
|
+
.Grayscale() {
|
|
27
27
|
filter: grayscale(100%);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
.Corners(@clr,
|
|
30
|
+
/*.Corners(@clr) {
|
|
31
|
+
.Corners(@clr, 0);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.Corners(@clr, @sz) {
|
|
35
|
-
@
|
|
35
|
+
.Corners(@clr, @sz, 6px);
|
|
36
|
+
}*/
|
|
37
|
+
|
|
38
|
+
.Corners(@clr, @roundsz, @defaultsz) {
|
|
36
39
|
@brd2: rgba(red(@clr), green(@clr), blue(@clr), min(.99, alpha(@clr)));
|
|
37
|
-
@
|
|
40
|
+
@strk: 2;
|
|
41
|
+
@render: 'geometricPrecision'; /*'crispEdges';*/
|
|
42
|
+
|
|
43
|
+
&when(@roundsz = 0) {
|
|
44
|
+
// straight corner
|
|
45
|
+
@sz2: unit(@defaultsz);
|
|
46
|
+
background-size: unit(@sz2, px);
|
|
47
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='@{sz2}' height='@{sz2}' viewBox='0 0 @{sz2} @{sz2}'%3E%3Cpath shape-rendering='@{render}' stroke='@{brd2}' fill='transparent' stroke-width='@{strk}' d='M0,@{sz2} V0 H@{sz2}'%3E%3C/path%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='@{sz2}' height='@{sz2}' viewBox='0 0 @{sz2} @{sz2}'%3E%3Cpath shape-rendering='@{render}' stroke='@{brd2}' fill='transparent' stroke-width='@{strk}' d='M0,0 H@{sz2} V@{sz2}'%3E%3C/path%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='@{sz2}' height='@{sz2}' viewBox='0 0 @{sz2} @{sz2}'%3E%3Cpath shape-rendering='@{render}' stroke='@{brd2}' fill='transparent' stroke-width='@{strk}' d='M@{sz2},0 V@{sz2} H0'%3E%3C/path%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='@{sz2}' height='@{sz2}' viewBox='0 0 @{sz2} @{sz2}'%3E%3Cpath shape-rendering='@{render}' stroke='@{brd2}' fill='transparent' stroke-width='@{strk}' d='M@{sz2},@{sz2} H0 V0'%3E%3C/path%3E%3C/svg%3E");
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&when(@roundsz > 0) {
|
|
51
|
+
// arc
|
|
52
|
+
@sz2: unit(@roundsz);
|
|
53
|
+
background-size: unit(@sz2, px);
|
|
54
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='@{sz2}' height='@{sz2}' viewBox='0 0 @{sz2} @{sz2}'%3E%3Cpath shape-rendering='@{render}' stroke='@{brd2}' fill='transparent' stroke-width='@{strk}' d='M0,@{sz2} a@{sz2},@{sz2} 0 0,1 @{sz2},-@{sz2}'%3E%3C/path%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='@{sz2}' height='@{sz2}' viewBox='0 0 @{sz2} @{sz2}'%3E%3Cpath shape-rendering='@{render}' stroke='@{brd2}' fill='transparent' stroke-width='@{strk}' d='M0,0 a@{sz2},@{sz2} 0 0,1 @{sz2},@{sz2}'%3E%3C/path%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='@{sz2}' height='@{sz2}' viewBox='0 0 @{sz2} @{sz2}'%3E%3Cpath shape-rendering='@{render}' stroke='@{brd2}' fill='transparent' stroke-width='@{strk}' d='M@{sz2},0 a@{sz2},@{sz2} 0 0,1 -@{sz2},@{sz2}'%3E%3C/path%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='@{sz2}' height='@{sz2}' viewBox='0 0 @{sz2} @{sz2}'%3E%3Cpath shape-rendering='@{render}' stroke='@{brd2}' fill='transparent' stroke-width='@{strk}' d='M@{sz2},@{sz2} a@{sz2},@{sz2} 0 0,1 -@{sz2},-@{sz2}'%3E%3C/path%3E%3C/svg%3E");
|
|
55
|
+
}
|
|
38
56
|
|
|
39
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 @{sz2} @{sz2}'%3E%3Cpath shape-rendering='@{render}' stroke='@{brd2}' fill='transparent' stroke-width='1' d='M0,@{sz2} V0 H@{sz2}'%3E%3C/path%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 @{sz2} @{sz2}'%3E%3Cpath shape-rendering='@{render}' stroke='@{brd2}' fill='transparent' stroke-width='1' d='M0,0 H@{sz2} V@{sz2}'%3E%3C/path%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 @{sz2} @{sz2}'%3E%3Cpath shape-rendering='@{render}' stroke='@{brd2}' fill='transparent' stroke-width='1' d='M@{sz2},0 V@{sz2} H0'%3E%3C/path%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 @{sz2} @{sz2}'%3E%3Cpath shape-rendering='@{render}' stroke='@{brd2}' fill='transparent' stroke-width='1' d='M@{sz2},@{sz2} H0 V0'%3E%3C/path%3E%3C/svg%3E");
|
|
40
57
|
background-position: top left, top right, bottom right, bottom left;
|
|
41
58
|
background-repeat: no-repeat;
|
|
42
|
-
background-size: unit(@sz, px);
|
|
43
59
|
background-origin: border-box;
|
|
44
60
|
|
|
45
61
|
&.corners-safe {
|