@pacem/pacem-theme-less 1.0.0-amaldi
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/LICENSE +191 -0
- package/NOTICE +4 -0
- package/README.md +23 -0
- package/fonts-empty.less +11 -0
- package/pacem/2d/index.less +14 -0
- package/pacem/2d/stage.less +31 -0
- package/pacem/2d/text.less +16 -0
- package/pacem/3d/index.less +24 -0
- package/pacem/3d/stage.less +30 -0
- package/pacem/attributes.less +8 -0
- package/pacem/basic/dock.less +19 -0
- package/pacem/basic/drag-drop.less +75 -0
- package/pacem/basic/index.less +42 -0
- package/pacem/basic/repeater.less +3 -0
- package/pacem/basic/rescale.less +157 -0
- package/pacem/basic/resize.less +3 -0
- package/pacem/basic/scroll-aware.less +4 -0
- package/pacem/basic/swipe.less +22 -0
- package/pacem/basic/viewport-aware.less +4 -0
- package/pacem/body.less +197 -0
- package/pacem/charts/dark/column-line.less +10 -0
- package/pacem/charts/dark/column.less +61 -0
- package/pacem/charts/dark/index.less +9 -0
- package/pacem/charts/dark/line.less +111 -0
- package/pacem/charts/dark/pie.less +210 -0
- package/pacem/charts/dark/shared.less +88 -0
- package/pacem/charts/index.less +1 -0
- package/pacem/charts/light/index.less +2 -0
- package/pacem/charts/phousys/index.less +2 -0
- package/pacem/cms/datagrid-columns.less +41 -0
- package/pacem/cms/grid.less +23 -0
- package/pacem/cms/index.less +3 -0
- package/pacem/cms/shared.less +3 -0
- package/pacem/cms/widget.less +81 -0
- package/pacem/fonts-dark.less +7 -0
- package/pacem/fonts-light.less +7 -0
- package/pacem/fonts-none.less +1 -0
- package/pacem/fonts-phousys.less +8 -0
- package/pacem/fx/fancy.less +138 -0
- package/pacem/fx/gradient.less +21 -0
- package/pacem/fx/hero.less +12 -0
- package/pacem/fx/index.less +6 -0
- package/pacem/fx/list.less +11 -0
- package/pacem/fx/pulse.less +105 -0
- package/pacem/fx/ripple.less +66 -0
- package/pacem/icons.less +76 -0
- package/pacem/layout/animations.less +37 -0
- package/pacem/layout/dark/address.less +37 -0
- package/pacem/layout/dark/borders.less +102 -0
- package/pacem/layout/dark/breadcrumbs.less +85 -0
- package/pacem/layout/dark/cards.less +555 -0
- package/pacem/layout/dark/coloring.less +184 -0
- package/pacem/layout/dark/container.less +50 -0
- package/pacem/layout/dark/datatable.less +454 -0
- package/pacem/layout/dark/elevation.less +74 -0
- package/pacem/layout/dark/fetch-feedback.less +124 -0
- package/pacem/layout/dark/grid-system.less +181 -0
- package/pacem/layout/dark/grids.less +268 -0
- package/pacem/layout/dark/index.less +27 -0
- package/pacem/layout/dark/interactive.less +10 -0
- package/pacem/layout/dark/layout.less +616 -0
- package/pacem/layout/dark/lists.less +112 -0
- package/pacem/layout/dark/other.less +29 -0
- package/pacem/layout/dark/panels.less +299 -0
- package/pacem/layout/dark/positioning.less +273 -0
- package/pacem/layout/dark/scroll.less +93 -0
- package/pacem/layout/dark/shapes.less +22 -0
- package/pacem/layout/dark/sizing.less +108 -0
- package/pacem/layout/dark/spacing.less +296 -0
- package/pacem/layout/dark/superposition-system.less +116 -0
- package/pacem/layout/dark/tiles.less +71 -0
- package/pacem/layout/dark/tokens-chips.less +16 -0
- package/pacem/layout/dark/toolbar.less +32 -0
- package/pacem/layout/dark/typography.less +110 -0
- package/pacem/layout/dark/visibility.less +406 -0
- package/pacem/layout/index.less +2 -0
- package/pacem/layout/light/index.less +2 -0
- package/pacem/layout/light/layout.less +2 -0
- package/pacem/layout/mixins.less +445 -0
- package/pacem/layout/phousys/index.less +2 -0
- package/pacem/layout/phousys/layout.less +2 -0
- package/pacem/layout/shared.less +18 -0
- package/pacem/logging/console.less +3 -0
- package/pacem/logging/fps.less +6 -0
- package/pacem/logging/index.less +2 -0
- package/pacem/maps/index.less +21 -0
- package/pacem/media/dark/index.less +6 -0
- package/pacem/media/index.less +1 -0
- package/pacem/media/light/index.less +2 -0
- package/pacem/media/phousys/index.less +2 -0
- package/pacem/pacem-animations.less +202 -0
- package/pacem/pacem.less +448 -0
- package/pacem/palette-dark.less +0 -0
- package/pacem/palette-light.less +0 -0
- package/pacem/plus/carousel.less +370 -0
- package/pacem/plus/context-menu.less +31 -0
- package/pacem/plus/datagrid/datacell.less +10 -0
- package/pacem/plus/datagrid/headcell.less +32 -0
- package/pacem/plus/datagrid/index.less +48 -0
- package/pacem/plus/edit.less +42 -0
- package/pacem/plus/gallery.less +239 -0
- package/pacem/plus/index.less +7 -0
- package/pacem/plus/modal-form.less +27 -0
- package/pacem/plus/router-hash-state.less +6 -0
- package/pacem/reset.less +51 -0
- package/pacem/scaffolding/dark/calendar-picker.less +415 -0
- package/pacem/scaffolding/dark/char-counter.less +68 -0
- package/pacem/scaffolding/dark/chars.less +29 -0
- package/pacem/scaffolding/dark/checkbox-radio-shared.less +150 -0
- package/pacem/scaffolding/dark/checkbox.less +232 -0
- package/pacem/scaffolding/dark/childform.less +191 -0
- package/pacem/scaffolding/dark/color.less +128 -0
- package/pacem/scaffolding/dark/contenteditable/alignment.less +6 -0
- package/pacem/scaffolding/dark/contenteditable/dashboard.less +253 -0
- package/pacem/scaffolding/dark/contenteditable/index.less +4 -0
- package/pacem/scaffolding/dark/contenteditable/picture.less +74 -0
- package/pacem/scaffolding/dark/contenteditable/placeholder.less +24 -0
- package/pacem/scaffolding/dark/contenteditable.less +157 -0
- package/pacem/scaffolding/dark/datepicker.less +129 -0
- package/pacem/scaffolding/dark/dialog-overrides.less +32 -0
- package/pacem/scaffolding/dark/element-picker.less +11 -0
- package/pacem/scaffolding/dark/expression.less +34 -0
- package/pacem/scaffolding/dark/form.less +16 -0
- package/pacem/scaffolding/dark/formfield.less +1149 -0
- package/pacem/scaffolding/dark/geolocate.less +12 -0
- package/pacem/scaffolding/dark/hierarchy.less +82 -0
- package/pacem/scaffolding/dark/image.less +195 -0
- package/pacem/scaffolding/dark/index.less +57 -0
- package/pacem/scaffolding/dark/input.less +134 -0
- package/pacem/scaffolding/dark/latlng.less +163 -0
- package/pacem/scaffolding/dark/markdown.less +20 -0
- package/pacem/scaffolding/dark/namevalue-list.less +13 -0
- package/pacem/scaffolding/dark/number.less +12 -0
- package/pacem/scaffolding/dark/password.less +12 -0
- package/pacem/scaffolding/dark/property-picker.less +11 -0
- package/pacem/scaffolding/dark/radio.less +78 -0
- package/pacem/scaffolding/dark/search.less +29 -0
- package/pacem/scaffolding/dark/select.less +55 -0
- package/pacem/scaffolding/dark/slider.less +176 -0
- package/pacem/scaffolding/dark/snapshot.less +183 -0
- package/pacem/scaffolding/dark/suggest.less +115 -0
- package/pacem/scaffolding/dark/tags.less +149 -0
- package/pacem/scaffolding/dark/tel.less +11 -0
- package/pacem/scaffolding/dark/textarea.less +29 -0
- package/pacem/scaffolding/dark/upload.less +252 -0
- package/pacem/scaffolding/dark/url.less +9 -0
- package/pacem/scaffolding/dark/validators.less +36 -0
- package/pacem/scaffolding/index.less +2 -0
- package/pacem/scaffolding/light/index.less +2 -0
- package/pacem/scaffolding/phousys/index.less +2 -0
- package/pacem/scaffolding/shared.less +249 -0
- package/pacem/text-overrides.less +219 -0
- package/pacem/theme-dark.less +676 -0
- package/pacem/theme-light.less +119 -0
- package/pacem/theme-phousys-old.less +130 -0
- package/pacem/theme-phousys.less +153 -0
- package/pacem/transforms/index.less +7 -0
- package/pacem/ui/dark/anchor.less +45 -0
- package/pacem/ui/dark/balloon.less +566 -0
- package/pacem/ui/dark/binder.less +50 -0
- package/pacem/ui/dark/blade.less +110 -0
- package/pacem/ui/dark/body.less +5 -0
- package/pacem/ui/dark/bottom-sheet.less +69 -0
- package/pacem/ui/dark/button.less +716 -0
- package/pacem/ui/dark/calendar.less +660 -0
- package/pacem/ui/dark/collapse.less +23 -0
- package/pacem/ui/dark/dialog.less +17 -0
- package/pacem/ui/dark/divider.less +49 -0
- package/pacem/ui/dark/header-footer.less +5 -0
- package/pacem/ui/dark/icon.less +141 -0
- package/pacem/ui/dark/image.less +90 -0
- package/pacem/ui/dark/index.less +82 -0
- package/pacem/ui/dark/infinite-scroller.less +5 -0
- package/pacem/ui/dark/led.less +142 -0
- package/pacem/ui/dark/lightbox.less +140 -0
- package/pacem/ui/dark/loader.less +219 -0
- package/pacem/ui/dark/markdown.less +292 -0
- package/pacem/ui/dark/marquee.less +49 -0
- package/pacem/ui/dark/menu.less +578 -0
- package/pacem/ui/dark/pager.less +166 -0
- package/pacem/ui/dark/picture.less +146 -0
- package/pacem/ui/dark/progressbar.less +167 -0
- package/pacem/ui/dark/sidebar.less +144 -0
- package/pacem/ui/dark/slideshow.less +1 -0
- package/pacem/ui/dark/social.less +5 -0
- package/pacem/ui/dark/sticky-header.less +41 -0
- package/pacem/ui/dark/tabs.less +423 -0
- package/pacem/ui/dark/ticker.less +173 -0
- package/pacem/ui/dark/timeline.less +159 -0
- package/pacem/ui/dark/toast.less +232 -0
- package/pacem/ui/dark/toc.less +47 -0
- package/pacem/ui/dark/tuner.less +155 -0
- package/pacem/ui/dark/view.less +17 -0
- package/pacem/ui/dark/window.less +313 -0
- package/pacem/ui/dialog-vars.less +159 -0
- package/pacem/ui/index.less +1 -0
- package/pacem/ui/light/button.less +8 -0
- package/pacem/ui/light/index.less +3 -0
- package/pacem/ui/light/loader.less +2 -0
- package/pacem/ui/light/menu.less +2 -0
- package/pacem/ui/light/sidebar.less +2 -0
- package/pacem/ui/phousys/button.less +8 -0
- package/pacem/ui/phousys/index.less +3 -0
- package/pacem/ui/phousys/loader.less +2 -0
- package/pacem/ui/phousys/menu.less +2 -0
- package/pacem/ui/phousys/sidebar.less +2 -0
- package/pacem/ui/shared.less +125 -0
- package/package.json +39 -0
- package/shared.less +161 -0
- package/theme-empty.less +116 -0
- package/themebuilder.js +290 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
@import "../shared";
|
|
2
|
+
|
|
3
|
+
.@{PCSS}-rise {
|
|
4
|
+
|
|
5
|
+
.BorderRise() {
|
|
6
|
+
border: 1px solid;
|
|
7
|
+
border-top-color: @color_border_light;
|
|
8
|
+
border-bottom-color: @color_border_dark;
|
|
9
|
+
border-left-color: @color_border_dawn;
|
|
10
|
+
border-right-color: @color_border_dusk;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// border
|
|
14
|
+
&:not(.rise-noborder) {
|
|
15
|
+
.BorderRise();
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
box-shadow: 0 @grid_spacing/6 @grid_spacing @color_shadow;
|
|
19
|
+
|
|
20
|
+
&.rise-none {
|
|
21
|
+
box-shadow: none;
|
|
22
|
+
border-color: fade(@color_shadow, 0);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
each(range(5), {
|
|
26
|
+
|
|
27
|
+
@_spread: unit(pow(@value, 2), px);
|
|
28
|
+
@_offset: unit(@value, px);
|
|
29
|
+
|
|
30
|
+
&.rise--@{value}{
|
|
31
|
+
box-shadow: 0 @_offset @_spread @color_shadow;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&.rise-hover--@{value}:hover,
|
|
35
|
+
&.rise-hover--@{value}:focus{
|
|
36
|
+
box-shadow: 0 @_offset @_spread @color_shadow;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
&.rise--1,
|
|
41
|
+
&.rise--2,
|
|
42
|
+
&.rise--3,
|
|
43
|
+
&.rise--4,
|
|
44
|
+
&.rise--5,
|
|
45
|
+
&.rise-hover--1:hover,
|
|
46
|
+
&.rise-hover--2:hover,
|
|
47
|
+
&.rise-hover--3:hover,
|
|
48
|
+
&.rise-hover--4:hover,
|
|
49
|
+
&.rise-hover--5:hover,
|
|
50
|
+
&.rise-hover--1:focus,
|
|
51
|
+
&.rise-hover--2:focus,
|
|
52
|
+
&.rise-hover--3:focus,
|
|
53
|
+
&.rise-hover--4:focus,
|
|
54
|
+
&.rise-hover--5:focus {
|
|
55
|
+
&:not(.rise-noborder) {
|
|
56
|
+
.BorderRise();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&.rise-hover-none:hover,
|
|
61
|
+
&.rise-hover-none:focus {
|
|
62
|
+
box-shadow: none;
|
|
63
|
+
border-color: fade(@color_shadow, 0);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
// animations
|
|
69
|
+
.@{PCSS}-animations {
|
|
70
|
+
|
|
71
|
+
.@{PCSS}-rise {
|
|
72
|
+
transition: box-shadow @easing_in_out_sine .2s, border-color @easing_in_out_sine .2s .05s;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
@import "../shared";
|
|
2
|
+
|
|
3
|
+
@fetch_feedback_size: 100px;
|
|
4
|
+
|
|
5
|
+
@keyframes -fetching-anim {
|
|
6
|
+
0% {
|
|
7
|
+
background-position-x: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
100% {
|
|
11
|
+
background-position-x: @fetch_feedback_size;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.fetch-feedback {
|
|
16
|
+
|
|
17
|
+
.FetchFeedback(@clr) {
|
|
18
|
+
|
|
19
|
+
@_rgb: rgba(@clr, 1);
|
|
20
|
+
@_trans: rgba(@clr, 0);
|
|
21
|
+
|
|
22
|
+
& when (@gradients = true) {
|
|
23
|
+
.GradientHorizontal(0%, 50%, 50%, 100%, @_rgb, @_trans, @_trans, @_rgb);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
& when (@gradients = false) {
|
|
27
|
+
.GradientHorizontal(0%, 50%, 50%, 100%, @_rgb, @_rgb, @_trans, @_trans);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
background-repeat: repeat-x;
|
|
31
|
+
background-size: @fetch_feedback_size;
|
|
32
|
+
|
|
33
|
+
&.feedback-gradient {
|
|
34
|
+
.GradientHorizontal(0%, 50%, 50%, 100%, @_rgb, @_trans, @_trans, @_rgb);
|
|
35
|
+
background-repeat: repeat-x;
|
|
36
|
+
background-size: @fetch_feedback_size;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
display: block;
|
|
41
|
+
transform: translateX(-100%);
|
|
42
|
+
transition: transform @easing_in_sine .2s .2s;
|
|
43
|
+
height: 1px;
|
|
44
|
+
|
|
45
|
+
&.feedback-thick {
|
|
46
|
+
height: 2px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.feedback-thicker {
|
|
50
|
+
height: 4px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.feedback-auto {
|
|
54
|
+
height: auto;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.FetchFeedback(~"var(--@{PCSS}-color-default-rgb)");
|
|
58
|
+
|
|
59
|
+
each(@all_colors, {
|
|
60
|
+
&.feedback-@{value}{
|
|
61
|
+
.FetchFeedback(~"var(--@{PCSS}-color-@{value}-rgb)");
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
&.feedback-small {
|
|
67
|
+
background-size: @fetch_feedback_size * .5;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&.fetching {
|
|
71
|
+
transform: translateX(0);
|
|
72
|
+
animation: -fetching-anim linear .0725s both infinite;
|
|
73
|
+
|
|
74
|
+
&.feedback-small {
|
|
75
|
+
animation-duration: .145s;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&.anim-slow {
|
|
79
|
+
animation-duration: .125s;
|
|
80
|
+
|
|
81
|
+
&.feedback-small {
|
|
82
|
+
// double the duration since half is the size (and the offset of the background-position-x in the animation remains the same)
|
|
83
|
+
animation-duration: .25s;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// default positioning inside known elements
|
|
90
|
+
.@{PCSS}-header,
|
|
91
|
+
header[pacem] {
|
|
92
|
+
|
|
93
|
+
.fetch-feedback {
|
|
94
|
+
position: absolute;
|
|
95
|
+
left: 0;
|
|
96
|
+
right: 0;
|
|
97
|
+
|
|
98
|
+
&.feedback-top{
|
|
99
|
+
top: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&:not(.feedback-top){
|
|
103
|
+
bottom:0;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.@{PCSS}-footer,
|
|
109
|
+
footer[pacem] {
|
|
110
|
+
|
|
111
|
+
.fetch-feedback {
|
|
112
|
+
position: absolute;
|
|
113
|
+
left: 0;
|
|
114
|
+
right: 0;
|
|
115
|
+
|
|
116
|
+
&.feedback-bottom {
|
|
117
|
+
bottom: 0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&:not(.feedback-bottom) {
|
|
121
|
+
top: 0;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
@import "../shared";
|
|
2
|
+
|
|
3
|
+
/* #region FLEXBOX */
|
|
4
|
+
|
|
5
|
+
.Cells (@prefix, @count, @index) when (@index > 0 ) {
|
|
6
|
+
|
|
7
|
+
&.@{prefix}-@{index} {
|
|
8
|
+
flex-grow: 0;
|
|
9
|
+
flex-basis: 100% * @index / @count;
|
|
10
|
+
}
|
|
11
|
+
// next iteration
|
|
12
|
+
.Cells(@prefix, @count, @index - 1);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.CellsMid (@prefix, @mid, @count, @index) when (@index > 0 ) {
|
|
16
|
+
|
|
17
|
+
&.@{prefix}-@{mid}-@{index} {
|
|
18
|
+
flex-grow: 0;
|
|
19
|
+
flex-basis: 100% * @index / @count;
|
|
20
|
+
}
|
|
21
|
+
// next iteration
|
|
22
|
+
.CellsMid(@prefix, @mid, @count, @index - 1);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.Cells (@prefix, @count) {
|
|
26
|
+
.Cells(@prefix, @count, @count);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.CellsMid (@prefix, @mid, @count) {
|
|
30
|
+
.CellsMid(@prefix, @mid, @count, @count);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* #endregion */
|
|
34
|
+
|
|
35
|
+
.@{PCSS}-flex,
|
|
36
|
+
.@{PCSS}-row {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: row;
|
|
39
|
+
justify-content: flex-start;
|
|
40
|
+
margin-left: -@panel_spacing;
|
|
41
|
+
margin-right: $margin-left;
|
|
42
|
+
align-items: stretch;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.@{PCSS}-flex.flex-vertical {
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.@{PCSS}-row .@{PCSS}-column,
|
|
50
|
+
.@{PCSS}-flex .@{PCSS}-box {
|
|
51
|
+
margin: 0;
|
|
52
|
+
padding: 0 @panel_spacing @panel_spacing * 2 @panel_spacing;
|
|
53
|
+
box-sizing: border-box;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.@{PCSS}-row .@{PCSS}-column,
|
|
57
|
+
.@{PCSS}-flex .@{PCSS}-box {
|
|
58
|
+
flex-basis: auto;
|
|
59
|
+
flex-shrink: 1;
|
|
60
|
+
flex-grow: 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.@{PCSS}-row .@{PCSS}-column {
|
|
64
|
+
.Cells(col, 12);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.@{PCSS}-flex .@{PCSS}-box {
|
|
68
|
+
.Cells(box, 12);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@media (max-width: @threshold_sm - 1) {
|
|
72
|
+
|
|
73
|
+
.@{PCSS}-row .@{PCSS}-column {
|
|
74
|
+
.CellsMid(col, xs, 12);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.@{PCSS}-flex .@{PCSS}-box {
|
|
78
|
+
.CellsMid(box, xs, 12);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@media (min-width: @threshold_sm) {
|
|
83
|
+
|
|
84
|
+
.@{PCSS}-row .@{PCSS}-column {
|
|
85
|
+
.CellsMid(col, sm, 12);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.@{PCSS}-flex .@{PCSS}-box {
|
|
89
|
+
.CellsMid(box, sm, 12);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@media (min-width: @threshold_md) {
|
|
94
|
+
|
|
95
|
+
.@{PCSS}-row .@{PCSS}-column {
|
|
96
|
+
.CellsMid(col, md, 12);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.@{PCSS}-flex .@{PCSS}-box {
|
|
100
|
+
.CellsMid(box, md, 12);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@media (min-width: @threshold_lg) {
|
|
105
|
+
|
|
106
|
+
.@{PCSS}-row .@{PCSS}-column {
|
|
107
|
+
.CellsMid(col, lg, 12);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.@{PCSS}-flex .@{PCSS}-box {
|
|
111
|
+
.CellsMid(box, lg, 12);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@media (min-width: @threshold_xl) {
|
|
116
|
+
|
|
117
|
+
.@{PCSS}-row .@{PCSS}-column {
|
|
118
|
+
.CellsMid(col, xl, 12);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.@{PCSS}-flex .@{PCSS}-box {
|
|
122
|
+
.CellsMid(box, xl, 12);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@media (min-width: @threshold_hd) {
|
|
127
|
+
|
|
128
|
+
.@{PCSS}-row .@{PCSS}-column {
|
|
129
|
+
.CellsMid(col, hd, 12);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.@{PCSS}-flex .@{PCSS}-box {
|
|
133
|
+
.CellsMid(box, hd, 12);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@media (min-width: @threshold_2k) {
|
|
138
|
+
|
|
139
|
+
.@{PCSS}-row .@{PCSS}-column {
|
|
140
|
+
.CellsMid(col, 2k, 12);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.@{PCSS}-flex .@{PCSS}-box {
|
|
144
|
+
.CellsMid(box, 2k, 12);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
@media (min-width: @threshold_4k) {
|
|
149
|
+
|
|
150
|
+
.@{PCSS}-row .@{PCSS}-column {
|
|
151
|
+
.CellsMid(col, 4k, 12);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.@{PCSS}-flex .@{PCSS}-box {
|
|
155
|
+
.CellsMid(box, 4k, 12);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@media (orientation: portrait) {
|
|
160
|
+
|
|
161
|
+
.@{PCSS}-row .@{PCSS}-column {
|
|
162
|
+
.CellsMid(col, v, 12); // v := vertical
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.@{PCSS}-flex .@{PCSS}-box {
|
|
166
|
+
.CellsMid(box, v, 12); // v := vertical
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.@{PCSS}-flex {
|
|
171
|
+
flex-wrap: wrap;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.@{PCSS}-body.@{PCSS}-animations {
|
|
175
|
+
.@{PCSS}-column.@{PCSS}-animatable,
|
|
176
|
+
.@{PCSS}-column.@{PCSS}-anim,
|
|
177
|
+
.@{PCSS}-box.@{PCSS}-animatable,
|
|
178
|
+
.@{PCSS}-box.@{PCSS}-anim {
|
|
179
|
+
transition: flex-basis .333s @easing_in_out_sine;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
@import "../shared";
|
|
2
|
+
|
|
3
|
+
/*#region COLUMNS*/
|
|
4
|
+
|
|
5
|
+
.ColsStart(@prefix, @start, @span) when (@span > 0) {
|
|
6
|
+
|
|
7
|
+
&.@{prefix}-@{span} {
|
|
8
|
+
grid-column: @start / span @span;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.ColsStart(@prefix, @start, @span - 1);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.Cols (@prefix, @count, @index) when (@index > 0 ) {
|
|
15
|
+
|
|
16
|
+
&.@{prefix}-@{index} {
|
|
17
|
+
grid-column: span @index;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.@{prefix}-start-@{index} {
|
|
21
|
+
grid-column-start: @index;
|
|
22
|
+
.ColsStart(@prefix, @index, @count - @index + 1);
|
|
23
|
+
}
|
|
24
|
+
// next iteration
|
|
25
|
+
.Cols(@prefix, @count, @index - 1);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ColsStartMid(@prefix, @mid, @start, @span) when (@span > 0) {
|
|
29
|
+
|
|
30
|
+
&.@{prefix}-@{mid}-@{span} {
|
|
31
|
+
grid-column: @start / span @span;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.ColsStartMid(@prefix, @mid, @start, @span - 1);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.ColsMid (@prefix, @mid, @count, @index) when (@index > 0 ) {
|
|
38
|
+
|
|
39
|
+
&.@{prefix}-@{mid}-@{index} {
|
|
40
|
+
grid-column: span @index;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.@{prefix}-@{mid}-start-@{index} {
|
|
44
|
+
grid-column-start: @index;
|
|
45
|
+
.ColsStartMid(@prefix, @mid, @index, @count - @index + 1);
|
|
46
|
+
}
|
|
47
|
+
// next iteration
|
|
48
|
+
.ColsMid(@prefix, @mid, @count, @index - 1);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.Cols (@prefix, @count) {
|
|
52
|
+
.Cols(@prefix, @count, @count);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.ColsMid (@prefix, @mid, @count) {
|
|
56
|
+
.ColsMid(@prefix, @mid, @count, @count);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/*#endregion*/
|
|
60
|
+
|
|
61
|
+
/*#region ROWS*/
|
|
62
|
+
|
|
63
|
+
.RowsStart(@prefix, @start, @span) when (@span > 0) {
|
|
64
|
+
|
|
65
|
+
&.@{prefix}-@{span} {
|
|
66
|
+
grid-row: @start / span @span;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.RowsStart(@prefix, @start, @span - 1);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
.Rows (@prefix, @count, @index) when (@index > 0 ) {
|
|
74
|
+
|
|
75
|
+
&.@{prefix}-@{index} {
|
|
76
|
+
grid-row: span @index;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&.@{prefix}-start-@{index} {
|
|
80
|
+
grid-row-start: @index;
|
|
81
|
+
.RowsStart(@prefix, @index, @count - @index + 1);
|
|
82
|
+
}
|
|
83
|
+
// next iteration
|
|
84
|
+
.Rows(@prefix, @count, @index - 1);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.RowsStartMid(@prefix, @mid, @start, @span) when (@span > 0) {
|
|
88
|
+
|
|
89
|
+
&.@{prefix}-@{mid}-@{span} {
|
|
90
|
+
grid-row: @start / span @span;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.RowsStartMid(@prefix, @mid, @start, @span - 1);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.RowsMid (@prefix, @mid, @count, @index) when (@index > 0 ) {
|
|
97
|
+
|
|
98
|
+
&.@{prefix}-@{mid}-@{index} {
|
|
99
|
+
grid-row: span @index;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&.@{prefix}-@{mid}-start-@{index} {
|
|
103
|
+
grid-row-start: @index;
|
|
104
|
+
.RowsStartMid(@prefix, @mid, @index, @count - @index + 1);
|
|
105
|
+
}
|
|
106
|
+
// next iteration
|
|
107
|
+
.RowsMid(@prefix, @mid, @count, @index - 1);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.Rows (@prefix, @count) {
|
|
111
|
+
.Rows(@prefix, @count, @count);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.RowsMid (@prefix, @mid, @count) {
|
|
115
|
+
.RowsMid(@prefix, @mid, @count, @count);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/*#endregion*/
|
|
119
|
+
|
|
120
|
+
.@{PCSS}-grid {
|
|
121
|
+
display: grid;
|
|
122
|
+
grid-gap: @grid_spacing;
|
|
123
|
+
margin-bottom: @grid_spacing;
|
|
124
|
+
|
|
125
|
+
&.grid-nospace {
|
|
126
|
+
margin-bottom: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&.grid-no-rowgap,
|
|
130
|
+
&.grid-novgap {
|
|
131
|
+
grid-row-gap: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&.grid-no-colgap,
|
|
135
|
+
&.grid-nohgap {
|
|
136
|
+
grid-column-gap: 0;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&.grid-nogap {
|
|
140
|
+
grid-gap: 0;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&.grid-center {
|
|
144
|
+
justify-items: center;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&.grid-middle {
|
|
148
|
+
align-items: center;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&.grid-tiny-colgap {
|
|
152
|
+
grid-column-gap: @grid_spacing / 3;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&.grid-tiny-rowgap {
|
|
156
|
+
grid-row-gap: @grid_spacing / 3;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&.grid-small-colgap {
|
|
160
|
+
grid-column-gap: 2 * @grid_spacing / 3;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&.grid-small-rowgap {
|
|
164
|
+
grid-row-gap: 2 * @grid_spacing / 3;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&.grid-big-colgap {
|
|
168
|
+
grid-column-gap: 4 * @grid_spacing / 3;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&.grid-big-rowgap {
|
|
172
|
+
grid-row-gap: 4 * @grid_spacing / 3;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&.grid-bigger-colgap {
|
|
176
|
+
grid-column-gap: 5 * @grid_spacing / 3;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&.grid-bigger-rowgap {
|
|
180
|
+
grid-row-gap: 5 * @grid_spacing / 3;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&.grid-huge-colgap {
|
|
184
|
+
grid-column-gap: 2 * @grid_spacing;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&.grid-huge-rowgap {
|
|
188
|
+
grid-row-gap: 2 * @grid_spacing;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
//margin: -@grid_spacing -@grid_spacing 0 -@grid_spacing;
|
|
192
|
+
//background-color: @color_primary;
|
|
193
|
+
//grid-auto-flow: row;
|
|
194
|
+
box-sizing: border-box;
|
|
195
|
+
grid-template-columns: repeat(12, 1fr);
|
|
196
|
+
//grid-template-rows: auto 150px;
|
|
197
|
+
> .@{PCSS}-cell {
|
|
198
|
+
grid-column: span 12;
|
|
199
|
+
|
|
200
|
+
&.cell-center {
|
|
201
|
+
align-self: center;
|
|
202
|
+
justify-self: center;
|
|
203
|
+
}
|
|
204
|
+
//background-color: @color_background;
|
|
205
|
+
transition: all .5s;
|
|
206
|
+
box-sizing: border-box;
|
|
207
|
+
.Cols(cols, 12);
|
|
208
|
+
.Rows(rows, 12);
|
|
209
|
+
|
|
210
|
+
&.@{PCSS}-wrapper {
|
|
211
|
+
margin: 0;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// TODO: exploit container queries
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
@sizes: sm, md, lg, xl, hd, 2k, 4k;
|
|
220
|
+
|
|
221
|
+
@media (max-width: @threshold_sm - 1) {
|
|
222
|
+
|
|
223
|
+
.@{PCSS}-grid:not(.grid-contained) > .@{PCSS}-cell {
|
|
224
|
+
.ColsMid(cols, xs, 12);
|
|
225
|
+
.RowsMid(rows, xs, 12);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
each(@sizes, {
|
|
230
|
+
@_threshold: ~"threshold_@{value}";
|
|
231
|
+
@media (min-width: @@_threshold){
|
|
232
|
+
|
|
233
|
+
.@{PCSS}-grid:not(.grid-contained) > .@{PCSS}-cell {
|
|
234
|
+
.ColsMid(cols, @value, 12);
|
|
235
|
+
.RowsMid(rows, @value, 12);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
})
|
|
239
|
+
|
|
240
|
+
@media (orientation: portrait) {
|
|
241
|
+
|
|
242
|
+
.@{PCSS}-grid > .@{PCSS}-cell {
|
|
243
|
+
.ColsMid(cols, v, 12);
|
|
244
|
+
.RowsMid(rows, v, 12);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
// container queries
|
|
249
|
+
@PCSSs: ~"@{PCSS} ";
|
|
250
|
+
@_threshold_xs: @threshold_sm - 1;
|
|
251
|
+
@container @PCSSs (max-width: @_threshold_xs) {
|
|
252
|
+
|
|
253
|
+
.@{PCSS}-grid.grid-contained > .@{PCSS}-cell {
|
|
254
|
+
.ColsMid(cols, xs, 12);
|
|
255
|
+
.RowsMid(rows, xs, 12);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
each(@sizes, {
|
|
260
|
+
@_threshold: ~"threshold_@{value}";
|
|
261
|
+
@container @PCSSs (min-width: @@_threshold) {
|
|
262
|
+
|
|
263
|
+
.@{PCSS}-grid.grid-contained > .@{PCSS}-cell {
|
|
264
|
+
.ColsMid(cols, @value, 12);
|
|
265
|
+
.RowsMid(rows, @value, 12);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
})
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@import "visibility";
|
|
2
|
+
@import "elevation";
|
|
3
|
+
@import "grid-system";
|
|
4
|
+
@import "typography";
|
|
5
|
+
@import "other";
|
|
6
|
+
@import "tokens-chips";
|
|
7
|
+
@import "panels";
|
|
8
|
+
@import "cards";
|
|
9
|
+
@import "interactive";
|
|
10
|
+
@import "positioning";
|
|
11
|
+
@import "sizing";
|
|
12
|
+
@import "spacing";
|
|
13
|
+
@import "superposition-system";
|
|
14
|
+
@import "lists";
|
|
15
|
+
@import "address";
|
|
16
|
+
@import "grids";
|
|
17
|
+
@import "datatable";
|
|
18
|
+
// to be imported separately by the shell css
|
|
19
|
+
//@import "layout";
|
|
20
|
+
@import "toolbar";
|
|
21
|
+
@import "breadcrumbs";
|
|
22
|
+
@import "fetch-feedback";
|
|
23
|
+
@import "container";
|
|
24
|
+
@import "scroll";
|
|
25
|
+
@import "coloring";
|
|
26
|
+
@import "borders";
|
|
27
|
+
@import "shapes";
|