pacem-less 0.20.0 → 0.20.1-atlantis
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/fx/fancy.less +2 -2
- package/pacem/fx/index.less +1 -0
- package/pacem/fx/pulse.less +105 -0
- package/pacem/layout/dark/datatable.less +6 -0
- package/pacem/layout/dark/layout.less +10 -5
- package/pacem/layout/dark/positioning.less +4 -2
- package/pacem/layout/mixins.less +25 -20
- package/pacem/theme-dark.less +4 -0
- package/pacem/ui/dark/icon.less +5 -3
- package/pacem/ui/dark/menu.less +36 -13
- package/package.json +1 -1
package/pacem/fx/fancy.less
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
@_easing: @easing_out_sine;
|
|
7
7
|
|
|
8
|
-
@keyframes fancy-anim {
|
|
8
|
+
@keyframes fx-fancy-anim {
|
|
9
9
|
0% {
|
|
10
10
|
opacity: 0;
|
|
11
11
|
//color: fade(@color_light, 0);
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
.@{PCSS}-fancify {
|
|
31
31
|
display: inline-block;
|
|
32
|
-
animation: fancy-anim .5s @_easing both;
|
|
32
|
+
animation: fx-fancy-anim .5s @_easing both;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
package/pacem/fx/index.less
CHANGED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
@import "../theme-dark";
|
|
2
|
+
@import "../../shared";
|
|
3
|
+
@import "../ui/shared";
|
|
4
|
+
|
|
5
|
+
@keyframes fx-pulse-anim {
|
|
6
|
+
0% {
|
|
7
|
+
opacity: .8;
|
|
8
|
+
//color: fade(@color_light, 0);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
50% {
|
|
12
|
+
border-width: 10px;
|
|
13
|
+
transform: scale(1);
|
|
14
|
+
// border-radius: unset;
|
|
15
|
+
height: inherit;
|
|
16
|
+
width: inherit;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
100% {
|
|
20
|
+
opacity: 0;
|
|
21
|
+
//color: inherit;
|
|
22
|
+
transform: scale(1.25);
|
|
23
|
+
border-radius: 50%;
|
|
24
|
+
height: 100%;
|
|
25
|
+
width: 100%;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@{P}-fx-pulse {
|
|
30
|
+
position: absolute;
|
|
31
|
+
z-index: @hamburger_z_index - 1; // below the menu (mobile/default site)
|
|
32
|
+
pointer-events: none;
|
|
33
|
+
display: block;
|
|
34
|
+
|
|
35
|
+
svg.pulse {
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: 100%;
|
|
38
|
+
overflow: visible;
|
|
39
|
+
|
|
40
|
+
rect {
|
|
41
|
+
fill: none;
|
|
42
|
+
stroke: @color_default;
|
|
43
|
+
transform-origin: 50% 50%;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.pulse-accent {
|
|
48
|
+
svg.pulse rect {
|
|
49
|
+
stroke: @color_accent;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.pulse-primary {
|
|
54
|
+
svg.pulse rect {
|
|
55
|
+
stroke: @color_primary;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.pulse-success {
|
|
60
|
+
svg.pulse rect {
|
|
61
|
+
stroke: @color_success;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&.pulse-warning {
|
|
66
|
+
svg.pulse rect {
|
|
67
|
+
stroke: @color_warning;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.pulse-error {
|
|
72
|
+
svg.pulse rect {
|
|
73
|
+
stroke: @color_error;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&.pulse-danger {
|
|
78
|
+
svg.pulse rect {
|
|
79
|
+
stroke: @color_danger;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&.pulse-disabled {
|
|
84
|
+
svg.pulse rect {
|
|
85
|
+
stroke: @color_disabled;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&.@{PCSS}-disabled,
|
|
90
|
+
&.pulse-off {
|
|
91
|
+
svg {
|
|
92
|
+
display: none;
|
|
93
|
+
|
|
94
|
+
rect {
|
|
95
|
+
animation: none;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@media screen and (min-width: @threshold_lg) {
|
|
102
|
+
@{P}-fx-pulse {
|
|
103
|
+
z-index: @header_z_index - 11; // below the menu (desktop site)
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -397,25 +397,30 @@ aside[pacem], .@{PCSS}-aside {
|
|
|
397
397
|
// footer starts at @grid_spacing left for small screens,
|
|
398
398
|
// while header always at @grid_cell.
|
|
399
399
|
// re-align when screen is large.
|
|
400
|
+
header[pacem],
|
|
401
|
+
.@{PCSS}-header,
|
|
400
402
|
footer[pacem],
|
|
401
403
|
.@{PCSS}-footer {
|
|
402
|
-
padding-left: @
|
|
404
|
+
padding-left: @layout_aside_padding;
|
|
403
405
|
}
|
|
404
406
|
|
|
405
407
|
// large screen @grid_cell padding set.
|
|
406
408
|
.@{PCSS}-body {
|
|
407
|
-
padding-left: @
|
|
408
|
-
padding-right: @
|
|
409
|
+
padding-left: @layout_aside_padding;
|
|
410
|
+
padding-right: @layout_aside_padding;
|
|
409
411
|
// when menu is open it enters like an aside drawer,
|
|
410
412
|
// so make room for it...
|
|
413
|
+
|
|
414
|
+
@_menu_open_left_pad: max(@layout_aside_padding, @_aside_margin + @_aside_width);
|
|
415
|
+
|
|
411
416
|
&.@{PCSS}-menu-open {
|
|
412
|
-
padding-left: @
|
|
417
|
+
padding-left: @_menu_open_left_pad;
|
|
413
418
|
// ...and keep header and footer aligned.
|
|
414
419
|
header[pacem],
|
|
415
420
|
.@{PCSS}-header,
|
|
416
421
|
footer[pacem],
|
|
417
422
|
.@{PCSS}-footer {
|
|
418
|
-
padding-left: @
|
|
423
|
+
padding-left: @_menu_open_left_pad;
|
|
419
424
|
}
|
|
420
425
|
|
|
421
426
|
.@{PCSS}-toolbar.toolbar-header,
|
|
@@ -95,7 +95,6 @@
|
|
|
95
95
|
bottom: @base + @grid_spacing * 2;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
|
|
99
98
|
// bottom
|
|
100
99
|
|
|
101
100
|
&[footbar] {
|
|
@@ -160,7 +159,6 @@
|
|
|
160
159
|
top: @base + @grid_spacing * 2;
|
|
161
160
|
}
|
|
162
161
|
}
|
|
163
|
-
|
|
164
162
|
// top
|
|
165
163
|
|
|
166
164
|
&[headbar] {
|
|
@@ -200,3 +198,7 @@
|
|
|
200
198
|
.clearfix {
|
|
201
199
|
clear: both;
|
|
202
200
|
}
|
|
201
|
+
|
|
202
|
+
.z-index.z-top {
|
|
203
|
+
z-index: @lightbox_z_index + 1;
|
|
204
|
+
}
|
package/pacem/layout/mixins.less
CHANGED
|
@@ -127,6 +127,30 @@
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
+
.ToolButtons(@minheight) {
|
|
131
|
+
|
|
132
|
+
.@{PCSS}-button,
|
|
133
|
+
@{P}-button {
|
|
134
|
+
width: @minheight * 1.3333;
|
|
135
|
+
height: @minheight;
|
|
136
|
+
margin: 0;
|
|
137
|
+
|
|
138
|
+
&.button-square,
|
|
139
|
+
&.circular,
|
|
140
|
+
&.button-circle,
|
|
141
|
+
&.button-circular {
|
|
142
|
+
width: @minheight;
|
|
143
|
+
margin: 0 @minheight / 6;
|
|
144
|
+
|
|
145
|
+
&::before {
|
|
146
|
+
font-size: @minheight * 2 / 3;
|
|
147
|
+
line-height: @minheight;
|
|
148
|
+
width: $line-height;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
130
154
|
.Panel(@prefix) {
|
|
131
155
|
padding: 0 /*0 @grid_spacing/4 0*/;
|
|
132
156
|
text-rendering: optimizeSpeed;
|
|
@@ -222,26 +246,7 @@
|
|
|
222
246
|
right: @grid_spacing/1.5;
|
|
223
247
|
z-index: 1;
|
|
224
248
|
|
|
225
|
-
|
|
226
|
-
@{P}-button {
|
|
227
|
-
width: @_min_height * 1.3333;
|
|
228
|
-
height: @_min_height;
|
|
229
|
-
margin: 0;
|
|
230
|
-
|
|
231
|
-
&.button-square,
|
|
232
|
-
&.circular,
|
|
233
|
-
&.button-circle,
|
|
234
|
-
&.button-circular {
|
|
235
|
-
width: @_min_height;
|
|
236
|
-
margin: 0 @_min_height / 6;
|
|
237
|
-
|
|
238
|
-
&::before {
|
|
239
|
-
font-size: @_min_height * 2 / 3;
|
|
240
|
-
line-height: @_min_height;
|
|
241
|
-
width: $line-height;
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
249
|
+
.ToolButtons(@_min_height);
|
|
245
250
|
}
|
|
246
251
|
|
|
247
252
|
&.@{prefix}-rise {
|
package/pacem/theme-dark.less
CHANGED
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
|
|
71
71
|
// layout
|
|
72
72
|
@layout_aside_width: 10 * @grid_spacing;
|
|
73
|
+
@layout_aside_padding: /*@layout_aside_width + @grid_cell; */ @grid_cell; // <- desktop site only
|
|
73
74
|
@layout_header_height: @grid_cell;
|
|
74
75
|
@layout_toolbar_height: @grid_spacing;
|
|
75
76
|
@layout_footer_height: @layout_header_height - @layout_toolbar_height;
|
|
@@ -211,6 +212,8 @@
|
|
|
211
212
|
@datarow_alt_color: fade(darken(@color_background, 5), 20);
|
|
212
213
|
|
|
213
214
|
// menu
|
|
215
|
+
@menu_hamburger_button_size: @layout_header_height;
|
|
216
|
+
@menu_hamburger_button_desktop_size: @grid_cell;
|
|
214
217
|
@menu_link_color: fade(@color_default, 60);
|
|
215
218
|
@menu_link_hover_color: @color_default;
|
|
216
219
|
@menu_link_active_color: @color_primary;
|
|
@@ -605,6 +608,7 @@
|
|
|
605
608
|
width: 1em;
|
|
606
609
|
position: relative;
|
|
607
610
|
vertical-align: middle;
|
|
611
|
+
border-radius: 50%;
|
|
608
612
|
}
|
|
609
613
|
|
|
610
614
|
/*#endregion*/
|
package/pacem/ui/dark/icon.less
CHANGED
package/pacem/ui/dark/menu.less
CHANGED
|
@@ -213,10 +213,10 @@
|
|
|
213
213
|
border: none;
|
|
214
214
|
top: 0;
|
|
215
215
|
cursor: pointer;
|
|
216
|
-
height: @
|
|
216
|
+
height: @menu_hamburger_button_size;
|
|
217
217
|
width: $height;
|
|
218
218
|
background: center center no-repeat;
|
|
219
|
-
background-size: .8 * @
|
|
219
|
+
background-size: .8 * @menu_hamburger_button_size;
|
|
220
220
|
margin: 0;
|
|
221
221
|
|
|
222
222
|
button.@{PCSS}-button {
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
@{P}-button.@{PCSS}-menu {
|
|
228
|
-
@_avail: @
|
|
228
|
+
@_avail: @menu_hamburger_button_size;
|
|
229
229
|
@_sz: round(.5 * @_avail);
|
|
230
230
|
@_pad: round(.5 * (@_avail - @_sz));
|
|
231
231
|
|
|
@@ -299,13 +299,13 @@
|
|
|
299
299
|
|
|
300
300
|
@{P}-menu {
|
|
301
301
|
font-size: .8em;
|
|
302
|
-
z-index: @header_z_index - 10;
|
|
303
302
|
|
|
304
303
|
.@{PCSS}-hamburger-menu {
|
|
305
304
|
width: @_w;
|
|
306
305
|
|
|
307
306
|
nav {
|
|
308
307
|
transition-delay: 0.2s;
|
|
308
|
+
width: @_w;
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
&.menu-open,
|
|
@@ -313,22 +313,45 @@
|
|
|
313
313
|
transform: translateX(-100%) translateY(0) translateZ(0);
|
|
314
314
|
|
|
315
315
|
nav {
|
|
316
|
-
transition-delay:
|
|
316
|
+
transition-delay: 0s;
|
|
317
317
|
transform: translateX(100%) translateY(0) translateZ(0);
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
+
}
|
|
320
321
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
322
|
+
|
|
323
|
+
&.menu-sync {
|
|
324
|
+
// font-size: .8em;
|
|
325
|
+
z-index: @header_z_index - 10;
|
|
326
|
+
|
|
327
|
+
.@{PCSS}-hamburger-menu {
|
|
328
|
+
// width: @_w;
|
|
329
|
+
nav {
|
|
330
|
+
transition-delay: 0.2s;
|
|
331
|
+
}
|
|
332
|
+
&.menu-open,
|
|
333
|
+
&.@{PCSS}-shown {
|
|
334
|
+
// transform: translateX(-100%) translateY(0) translateZ(0);
|
|
335
|
+
|
|
336
|
+
nav {
|
|
337
|
+
transition-delay: .4s;
|
|
338
|
+
// transform: translateX(100%) translateY(0) translateZ(0);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
nav {
|
|
343
|
+
background: none;
|
|
344
|
+
backdrop-filter: none;
|
|
345
|
+
grid-row: ~"1/9";
|
|
346
|
+
// width: @_w;
|
|
347
|
+
padding-top: @grid_spacing + @layout_header_height;
|
|
348
|
+
}
|
|
327
349
|
}
|
|
328
350
|
}
|
|
329
351
|
}
|
|
330
352
|
|
|
331
|
-
.@{PCSS}-body
|
|
353
|
+
.@{PCSS}-body.@{PCSS}-menu-open,
|
|
354
|
+
.@{PCSS}-body.@{PCSS}-menu-close {
|
|
332
355
|
/* #region all grid row template configurations*/
|
|
333
356
|
.@{PCSS}-hamburger-menu {
|
|
334
357
|
grid-template-rows: @_toolbar_height // 1 header 1/2
|
|
@@ -438,7 +461,7 @@
|
|
|
438
461
|
}
|
|
439
462
|
|
|
440
463
|
@{P}-button.@{PCSS}-menu.@{PCSS}-hamburger {
|
|
441
|
-
@_avail: @
|
|
464
|
+
@_avail: @menu_hamburger_button_desktop_size;
|
|
442
465
|
@_sz: round(.5 * @_header_height);
|
|
443
466
|
@_pad: round(.5 * (@_avail - @_sz));
|
|
444
467
|
|
package/package.json
CHANGED