@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.
Files changed (211) hide show
  1. package/LICENSE +191 -0
  2. package/NOTICE +4 -0
  3. package/README.md +23 -0
  4. package/fonts-empty.less +11 -0
  5. package/pacem/2d/index.less +14 -0
  6. package/pacem/2d/stage.less +31 -0
  7. package/pacem/2d/text.less +16 -0
  8. package/pacem/3d/index.less +24 -0
  9. package/pacem/3d/stage.less +30 -0
  10. package/pacem/attributes.less +8 -0
  11. package/pacem/basic/dock.less +19 -0
  12. package/pacem/basic/drag-drop.less +75 -0
  13. package/pacem/basic/index.less +42 -0
  14. package/pacem/basic/repeater.less +3 -0
  15. package/pacem/basic/rescale.less +157 -0
  16. package/pacem/basic/resize.less +3 -0
  17. package/pacem/basic/scroll-aware.less +4 -0
  18. package/pacem/basic/swipe.less +22 -0
  19. package/pacem/basic/viewport-aware.less +4 -0
  20. package/pacem/body.less +197 -0
  21. package/pacem/charts/dark/column-line.less +10 -0
  22. package/pacem/charts/dark/column.less +61 -0
  23. package/pacem/charts/dark/index.less +9 -0
  24. package/pacem/charts/dark/line.less +111 -0
  25. package/pacem/charts/dark/pie.less +210 -0
  26. package/pacem/charts/dark/shared.less +88 -0
  27. package/pacem/charts/index.less +1 -0
  28. package/pacem/charts/light/index.less +2 -0
  29. package/pacem/charts/phousys/index.less +2 -0
  30. package/pacem/cms/datagrid-columns.less +41 -0
  31. package/pacem/cms/grid.less +23 -0
  32. package/pacem/cms/index.less +3 -0
  33. package/pacem/cms/shared.less +3 -0
  34. package/pacem/cms/widget.less +81 -0
  35. package/pacem/fonts-dark.less +7 -0
  36. package/pacem/fonts-light.less +7 -0
  37. package/pacem/fonts-none.less +1 -0
  38. package/pacem/fonts-phousys.less +8 -0
  39. package/pacem/fx/fancy.less +138 -0
  40. package/pacem/fx/gradient.less +21 -0
  41. package/pacem/fx/hero.less +12 -0
  42. package/pacem/fx/index.less +6 -0
  43. package/pacem/fx/list.less +11 -0
  44. package/pacem/fx/pulse.less +105 -0
  45. package/pacem/fx/ripple.less +66 -0
  46. package/pacem/icons.less +76 -0
  47. package/pacem/layout/animations.less +37 -0
  48. package/pacem/layout/dark/address.less +37 -0
  49. package/pacem/layout/dark/borders.less +102 -0
  50. package/pacem/layout/dark/breadcrumbs.less +85 -0
  51. package/pacem/layout/dark/cards.less +555 -0
  52. package/pacem/layout/dark/coloring.less +184 -0
  53. package/pacem/layout/dark/container.less +50 -0
  54. package/pacem/layout/dark/datatable.less +454 -0
  55. package/pacem/layout/dark/elevation.less +74 -0
  56. package/pacem/layout/dark/fetch-feedback.less +124 -0
  57. package/pacem/layout/dark/grid-system.less +181 -0
  58. package/pacem/layout/dark/grids.less +268 -0
  59. package/pacem/layout/dark/index.less +27 -0
  60. package/pacem/layout/dark/interactive.less +10 -0
  61. package/pacem/layout/dark/layout.less +616 -0
  62. package/pacem/layout/dark/lists.less +112 -0
  63. package/pacem/layout/dark/other.less +29 -0
  64. package/pacem/layout/dark/panels.less +299 -0
  65. package/pacem/layout/dark/positioning.less +273 -0
  66. package/pacem/layout/dark/scroll.less +93 -0
  67. package/pacem/layout/dark/shapes.less +22 -0
  68. package/pacem/layout/dark/sizing.less +108 -0
  69. package/pacem/layout/dark/spacing.less +296 -0
  70. package/pacem/layout/dark/superposition-system.less +116 -0
  71. package/pacem/layout/dark/tiles.less +71 -0
  72. package/pacem/layout/dark/tokens-chips.less +16 -0
  73. package/pacem/layout/dark/toolbar.less +32 -0
  74. package/pacem/layout/dark/typography.less +110 -0
  75. package/pacem/layout/dark/visibility.less +406 -0
  76. package/pacem/layout/index.less +2 -0
  77. package/pacem/layout/light/index.less +2 -0
  78. package/pacem/layout/light/layout.less +2 -0
  79. package/pacem/layout/mixins.less +445 -0
  80. package/pacem/layout/phousys/index.less +2 -0
  81. package/pacem/layout/phousys/layout.less +2 -0
  82. package/pacem/layout/shared.less +18 -0
  83. package/pacem/logging/console.less +3 -0
  84. package/pacem/logging/fps.less +6 -0
  85. package/pacem/logging/index.less +2 -0
  86. package/pacem/maps/index.less +21 -0
  87. package/pacem/media/dark/index.less +6 -0
  88. package/pacem/media/index.less +1 -0
  89. package/pacem/media/light/index.less +2 -0
  90. package/pacem/media/phousys/index.less +2 -0
  91. package/pacem/pacem-animations.less +202 -0
  92. package/pacem/pacem.less +448 -0
  93. package/pacem/palette-dark.less +0 -0
  94. package/pacem/palette-light.less +0 -0
  95. package/pacem/plus/carousel.less +370 -0
  96. package/pacem/plus/context-menu.less +31 -0
  97. package/pacem/plus/datagrid/datacell.less +10 -0
  98. package/pacem/plus/datagrid/headcell.less +32 -0
  99. package/pacem/plus/datagrid/index.less +48 -0
  100. package/pacem/plus/edit.less +42 -0
  101. package/pacem/plus/gallery.less +239 -0
  102. package/pacem/plus/index.less +7 -0
  103. package/pacem/plus/modal-form.less +27 -0
  104. package/pacem/plus/router-hash-state.less +6 -0
  105. package/pacem/reset.less +51 -0
  106. package/pacem/scaffolding/dark/calendar-picker.less +415 -0
  107. package/pacem/scaffolding/dark/char-counter.less +68 -0
  108. package/pacem/scaffolding/dark/chars.less +29 -0
  109. package/pacem/scaffolding/dark/checkbox-radio-shared.less +150 -0
  110. package/pacem/scaffolding/dark/checkbox.less +232 -0
  111. package/pacem/scaffolding/dark/childform.less +191 -0
  112. package/pacem/scaffolding/dark/color.less +128 -0
  113. package/pacem/scaffolding/dark/contenteditable/alignment.less +6 -0
  114. package/pacem/scaffolding/dark/contenteditable/dashboard.less +253 -0
  115. package/pacem/scaffolding/dark/contenteditable/index.less +4 -0
  116. package/pacem/scaffolding/dark/contenteditable/picture.less +74 -0
  117. package/pacem/scaffolding/dark/contenteditable/placeholder.less +24 -0
  118. package/pacem/scaffolding/dark/contenteditable.less +157 -0
  119. package/pacem/scaffolding/dark/datepicker.less +129 -0
  120. package/pacem/scaffolding/dark/dialog-overrides.less +32 -0
  121. package/pacem/scaffolding/dark/element-picker.less +11 -0
  122. package/pacem/scaffolding/dark/expression.less +34 -0
  123. package/pacem/scaffolding/dark/form.less +16 -0
  124. package/pacem/scaffolding/dark/formfield.less +1149 -0
  125. package/pacem/scaffolding/dark/geolocate.less +12 -0
  126. package/pacem/scaffolding/dark/hierarchy.less +82 -0
  127. package/pacem/scaffolding/dark/image.less +195 -0
  128. package/pacem/scaffolding/dark/index.less +57 -0
  129. package/pacem/scaffolding/dark/input.less +134 -0
  130. package/pacem/scaffolding/dark/latlng.less +163 -0
  131. package/pacem/scaffolding/dark/markdown.less +20 -0
  132. package/pacem/scaffolding/dark/namevalue-list.less +13 -0
  133. package/pacem/scaffolding/dark/number.less +12 -0
  134. package/pacem/scaffolding/dark/password.less +12 -0
  135. package/pacem/scaffolding/dark/property-picker.less +11 -0
  136. package/pacem/scaffolding/dark/radio.less +78 -0
  137. package/pacem/scaffolding/dark/search.less +29 -0
  138. package/pacem/scaffolding/dark/select.less +55 -0
  139. package/pacem/scaffolding/dark/slider.less +176 -0
  140. package/pacem/scaffolding/dark/snapshot.less +183 -0
  141. package/pacem/scaffolding/dark/suggest.less +115 -0
  142. package/pacem/scaffolding/dark/tags.less +149 -0
  143. package/pacem/scaffolding/dark/tel.less +11 -0
  144. package/pacem/scaffolding/dark/textarea.less +29 -0
  145. package/pacem/scaffolding/dark/upload.less +252 -0
  146. package/pacem/scaffolding/dark/url.less +9 -0
  147. package/pacem/scaffolding/dark/validators.less +36 -0
  148. package/pacem/scaffolding/index.less +2 -0
  149. package/pacem/scaffolding/light/index.less +2 -0
  150. package/pacem/scaffolding/phousys/index.less +2 -0
  151. package/pacem/scaffolding/shared.less +249 -0
  152. package/pacem/text-overrides.less +219 -0
  153. package/pacem/theme-dark.less +676 -0
  154. package/pacem/theme-light.less +119 -0
  155. package/pacem/theme-phousys-old.less +130 -0
  156. package/pacem/theme-phousys.less +153 -0
  157. package/pacem/transforms/index.less +7 -0
  158. package/pacem/ui/dark/anchor.less +45 -0
  159. package/pacem/ui/dark/balloon.less +566 -0
  160. package/pacem/ui/dark/binder.less +50 -0
  161. package/pacem/ui/dark/blade.less +110 -0
  162. package/pacem/ui/dark/body.less +5 -0
  163. package/pacem/ui/dark/bottom-sheet.less +69 -0
  164. package/pacem/ui/dark/button.less +716 -0
  165. package/pacem/ui/dark/calendar.less +660 -0
  166. package/pacem/ui/dark/collapse.less +23 -0
  167. package/pacem/ui/dark/dialog.less +17 -0
  168. package/pacem/ui/dark/divider.less +49 -0
  169. package/pacem/ui/dark/header-footer.less +5 -0
  170. package/pacem/ui/dark/icon.less +141 -0
  171. package/pacem/ui/dark/image.less +90 -0
  172. package/pacem/ui/dark/index.less +82 -0
  173. package/pacem/ui/dark/infinite-scroller.less +5 -0
  174. package/pacem/ui/dark/led.less +142 -0
  175. package/pacem/ui/dark/lightbox.less +140 -0
  176. package/pacem/ui/dark/loader.less +219 -0
  177. package/pacem/ui/dark/markdown.less +292 -0
  178. package/pacem/ui/dark/marquee.less +49 -0
  179. package/pacem/ui/dark/menu.less +578 -0
  180. package/pacem/ui/dark/pager.less +166 -0
  181. package/pacem/ui/dark/picture.less +146 -0
  182. package/pacem/ui/dark/progressbar.less +167 -0
  183. package/pacem/ui/dark/sidebar.less +144 -0
  184. package/pacem/ui/dark/slideshow.less +1 -0
  185. package/pacem/ui/dark/social.less +5 -0
  186. package/pacem/ui/dark/sticky-header.less +41 -0
  187. package/pacem/ui/dark/tabs.less +423 -0
  188. package/pacem/ui/dark/ticker.less +173 -0
  189. package/pacem/ui/dark/timeline.less +159 -0
  190. package/pacem/ui/dark/toast.less +232 -0
  191. package/pacem/ui/dark/toc.less +47 -0
  192. package/pacem/ui/dark/tuner.less +155 -0
  193. package/pacem/ui/dark/view.less +17 -0
  194. package/pacem/ui/dark/window.less +313 -0
  195. package/pacem/ui/dialog-vars.less +159 -0
  196. package/pacem/ui/index.less +1 -0
  197. package/pacem/ui/light/button.less +8 -0
  198. package/pacem/ui/light/index.less +3 -0
  199. package/pacem/ui/light/loader.less +2 -0
  200. package/pacem/ui/light/menu.less +2 -0
  201. package/pacem/ui/light/sidebar.less +2 -0
  202. package/pacem/ui/phousys/button.less +8 -0
  203. package/pacem/ui/phousys/index.less +3 -0
  204. package/pacem/ui/phousys/loader.less +2 -0
  205. package/pacem/ui/phousys/menu.less +2 -0
  206. package/pacem/ui/phousys/sidebar.less +2 -0
  207. package/pacem/ui/shared.less +125 -0
  208. package/package.json +39 -0
  209. package/shared.less +161 -0
  210. package/theme-empty.less +116 -0
  211. package/themebuilder.js +290 -0
@@ -0,0 +1,166 @@
1
+ @import "../shared";
2
+
3
+ @{P}-pager {
4
+ display: block;
5
+
6
+ @{P}-repeater.@{PCSS}-pager {
7
+ display: block;
8
+
9
+ .@{PCSS}-buttonset {
10
+
11
+ @{P}-button.@{PCSS}-page {
12
+ min-width: @grid_spacing * 1.25;
13
+ height: @grid_spacing;
14
+ line-height: @grid_spacing;
15
+ .FontTech(.8);
16
+ transition: all @easing_in_out_sine .125s;
17
+ border-radius: 0;
18
+
19
+ &.currentpage:not(.@{PCSS}-disabled) {
20
+ @_clr: @color_primary;
21
+ @_clr_fore: @color_primary_inv;
22
+
23
+ background: @_clr;
24
+ color: @_clr_fore;
25
+
26
+ &:focus,
27
+ &:hover {
28
+ background: darken(@_clr, @button_hover_percentage);
29
+ }
30
+
31
+ &:focus when (@glows = true) {
32
+ text-shadow: 0 0 8px @_clr_fore;
33
+ }
34
+
35
+ &:hover when (@glows = true) {
36
+ text-shadow: 0 0 8px @_clr_fore;
37
+ }
38
+ }
39
+
40
+ &.firstpage::before {
41
+ .Icon('first_page');
42
+ }
43
+
44
+ &.previouspage::before {
45
+ .Icon('chevron_left');
46
+ }
47
+
48
+ &.nextpage::before {
49
+ .Icon('chevron_right');
50
+ }
51
+
52
+ &.lastpage::before {
53
+ .Icon('last_page');
54
+ }
55
+
56
+ &.firstpage, &.previouspage, &.nextpage, &.lastpage {
57
+ font-size: 0;
58
+
59
+ &::before {
60
+ left: 0;
61
+ top: 0;
62
+ width: 100%;
63
+ height: 100%;
64
+ .FontTechSize(1);
65
+ line-height: @grid_spacing;
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+
72
+ .@{PCSS}-buttonset {
73
+ padding: 0;
74
+
75
+ .pager-buttons {
76
+ display: flex;
77
+ flex-direction: row;
78
+ overflow: hidden;
79
+ border-radius: @border_radius;
80
+ }
81
+ }
82
+
83
+ .@{PCSS}-buttonset .pager-buttons when (@shadows = true) {
84
+ box-shadow: 0 2px @grid_spacing / 3 rgba(0,0,0,0.5);
85
+ }
86
+ // see button.less
87
+ &.pager-left .@{PCSS}-buttonset .pager-buttons {
88
+ grid-area: left;
89
+ }
90
+
91
+ &.pager-center .@{PCSS}-buttonset .pager-buttons {
92
+ grid-area: center;
93
+ }
94
+
95
+ &.pager-right .@{PCSS}-buttonset .pager-buttons {
96
+ grid-area: right;
97
+ }
98
+
99
+ &.pager-flat {
100
+
101
+ .@{PCSS}-buttonset .pager-buttons when (@shadows = true) {
102
+ box-shadow: none;
103
+ }
104
+
105
+ @{P}-repeater.@{PCSS}-pager {
106
+
107
+ .@{PCSS}-buttonset {
108
+
109
+ @{P}-button.@{PCSS}-page {
110
+ background-color: transparent;
111
+ border-width: 0;
112
+ aspect-ratio: 1;
113
+ display: flex;
114
+ justify-content: center;
115
+ align-items: center;
116
+ border-radius: @border_button_radius;
117
+ min-width: @grid_spacing;
118
+ margin: 0 @grid_spacing * 0.125;
119
+ padding: 0;
120
+ .ColorPagerButton(default);
121
+ }
122
+ }
123
+ }
124
+ }
125
+ }
126
+
127
+ .ColorPagerButton(@clr) {
128
+ .ColorPagerButton(@clr, @clr);
129
+ }
130
+
131
+ .ColorPagerButton(@clr, @clr_current) {
132
+ @__clr: @clr;
133
+ @_clr: @clr_current;
134
+
135
+ &:not(.@{PCSS}-disabled) {
136
+ //&:focus,
137
+ &:hover {
138
+ background: ~"var(--@{PCSS}-color-@{__clr}-container)";
139
+ color: ~"var(--@{PCSS}-color-@{__clr}-container-inverse)";
140
+ }
141
+
142
+ &:active {
143
+ background: ~"var(--@{PCSS}-color-@{__clr}-container-hover)";
144
+ color: ~"var(--@{PCSS}-color-@{__clr}-container-inverse-hover)";
145
+ }
146
+ }
147
+
148
+ &.currentpage:not(.@{PCSS}-disabled) {
149
+ background: ~"var(--@{PCSS}-color-@{_clr}-container)";
150
+ color: ~"var(--@{PCSS}-color-@{_clr}-container-inverse)";
151
+
152
+ &:focus,
153
+ &:hover {
154
+ background: ~"var(--@{PCSS}-color-@{_clr}-container)";
155
+ color: ~"var(--@{PCSS}-color-@{_clr}-container-inverse)";
156
+ }
157
+
158
+ &:focus when (@glows = true) {
159
+ text-shadow: 0 0 8px ~"var(--@{PCSS}-color-@{_clr}-container-inverse)";
160
+ }
161
+
162
+ &:hover when (@glows = true) {
163
+ text-shadow: 0 0 8px ~"var(--@{PCSS}-color-@{_clr}-container-inverse)";
164
+ }
165
+ }
166
+ }
@@ -0,0 +1,146 @@
1
+ @import "../shared";
2
+
3
+ @{P}-picture-source,
4
+ @{P}-picture::part(source),
5
+ @{P}-picture > picture > source {
6
+ .Inert();
7
+ }
8
+
9
+ @{P}-picture {
10
+ display: inline-block;
11
+
12
+ &::part(picture) {
13
+ display: flex;
14
+ flex-flow: row wrap;
15
+ align-content: stretch;
16
+ align-items: flex-start;
17
+ align-items: stretch;
18
+ }
19
+
20
+ &::part(img) {
21
+ flex: 1 1 100%;
22
+ }
23
+
24
+ > picture,
25
+ &::part(picture),
26
+ &::part(img),
27
+ > picture > img {
28
+ /*width: inherit;
29
+ height: inherit;*/
30
+ width: 100%;
31
+ height: 100%;
32
+ max-width: inherit;
33
+ min-width: inherit;
34
+ max-height: inherit;
35
+ min-height: inherit;
36
+ }
37
+
38
+ &::part(img),
39
+ > picture > img {
40
+ width: 100%;
41
+ }
42
+ // fitting
43
+ &.picture-auto {
44
+ &::part(img),
45
+ > picture > img {
46
+ object-fit: none;
47
+ }
48
+ }
49
+
50
+ &.picture-fill {
51
+ &::part(img),
52
+ > picture > img {
53
+ object-fit: fill;
54
+ }
55
+ }
56
+
57
+ &.picture-contain {
58
+ &::part(img),
59
+ > picture > img {
60
+ object-fit: contain;
61
+ }
62
+ }
63
+
64
+ &.picture-cover {
65
+ &::part(img),
66
+ > picture > img {
67
+ object-fit: cover;
68
+ }
69
+ }
70
+ // positioning
71
+ &.picture-right {
72
+ &.picture-top {
73
+ &::part(img),
74
+ > picture > img {
75
+ object-position: right top;
76
+ }
77
+ }
78
+
79
+ &.picture-middle {
80
+ &::part(img),
81
+ > picture > img {
82
+ object-position: right center;
83
+ }
84
+ }
85
+
86
+ &.picture-bottom {
87
+ &::part(img),
88
+ > picture > img {
89
+ object-position: right bottom;
90
+ }
91
+ }
92
+ }
93
+
94
+ &.picture-left {
95
+ &.picture-top {
96
+ &::part(img),
97
+ > picture > img {
98
+ object-position: left top;
99
+ }
100
+ }
101
+
102
+ &.picture-middle {
103
+ &::part(img),
104
+ > picture > img {
105
+ object-position: left center;
106
+ }
107
+ }
108
+
109
+ &.picture-bottom {
110
+ &::part(img),
111
+ > picture > img {
112
+ object-position: left bottom;
113
+ }
114
+ }
115
+ }
116
+
117
+ &.picture-center {
118
+ &.picture-top {
119
+ &::part(img),
120
+ > picture > img {
121
+ object-position: center top;
122
+ }
123
+ }
124
+
125
+ &.picture-middle {
126
+ &::part(img),
127
+ > picture > img {
128
+ object-position: center center;
129
+ }
130
+ }
131
+
132
+ &.picture-bottom {
133
+ &::part(img),
134
+ > picture > img {
135
+ object-position: center bottom;
136
+ }
137
+ }
138
+ }
139
+
140
+ &.picture-grayscale {
141
+ &::part(img),
142
+ > picture > img {
143
+ .Grayscale();
144
+ }
145
+ }
146
+ }
@@ -0,0 +1,167 @@
1
+ @import "../shared";
2
+
3
+ @{P}-progressbar {
4
+ display: grid;
5
+ grid-template-areas: 'caption' 'bar';
6
+ align-items: center;
7
+ justify-content: stretch;
8
+
9
+ .progressbar-glow {
10
+ grid-area: bar;
11
+ display: none;
12
+ transform-origin: left center;
13
+ }
14
+
15
+ @_glow_sz: @grid_spacing / 4;
16
+
17
+ & when (@glows = true) {
18
+
19
+ .progressbar-glow {
20
+ display: block;
21
+ }
22
+ }
23
+
24
+ .ProgressBar(@_thickness) {
25
+
26
+ .progressbar-glow,
27
+ .progressbar-track {
28
+
29
+ & when (@border_radius > 0) {
30
+ @_radius: min(@_thickness / 2, @border_radius );
31
+
32
+ border-radius: @_radius;
33
+ }
34
+
35
+ height: @_thickness;
36
+ }
37
+ }
38
+
39
+ .ProgressBarColoring(@clr) {
40
+
41
+ @_clr: @clr;
42
+ @_light: color-mix(in oklab, white 10%, @_clr 90%);
43
+ @_dark: color-mix(in oklab, black 10%, @_clr 90%);
44
+
45
+ .progressbar-bar when (@gradients = false) {
46
+ background-color: @_clr;
47
+ }
48
+
49
+ .progressbar-bar when (@gradients = true) {
50
+ .GradientVertical(0%, 33%, 67%, 100%, @_light, @_clr, @_clr, @_dark);
51
+ }
52
+
53
+ .progressbar-glow when (@glows = true) {
54
+ box-shadow: 0 0 @_glow_sz @_clr;
55
+ }
56
+ }
57
+
58
+ .progressbar-track {
59
+ overflow: hidden;
60
+ grid-area: bar;
61
+ position: relative;
62
+
63
+ & when (@dark_theme = true) {
64
+ background-color: fade(@color_light, 10);
65
+ }
66
+
67
+ & when (@dark_theme = false) {
68
+ background-color: fade(@color_dark, 5);
69
+ }
70
+
71
+ & when (@shadows = true) {
72
+ .GradientVertical(0%, 100%, rgba(0,0,0,0.25), rgba(255,255,255,0.05));
73
+ }
74
+
75
+ .progressbar-bar {
76
+ transform-origin: left center;
77
+ position: absolute;
78
+ top: 0;
79
+ left: 0;
80
+ width: 100%;
81
+ height: 100%;
82
+ }
83
+ }
84
+
85
+ .progressbar-caption {
86
+ grid-area: caption;
87
+ display: block;
88
+ text-align: center;
89
+ .FontTech(1rem);
90
+ }
91
+
92
+ .ProgressBar(@grid_spacing/2);
93
+
94
+ &.progressbar-large {
95
+ .ProgressBar(@grid_spacing);
96
+ }
97
+
98
+ &.progressbar-small {
99
+ .ProgressBar(@grid_spacing/4);
100
+ }
101
+
102
+ &.progressbar-smaller {
103
+ .ProgressBar(@grid_spacing/6);
104
+ }
105
+
106
+ &.progressbar-tiny {
107
+ .ProgressBar(2px);
108
+ }
109
+
110
+ &.progressbar-thin {
111
+ .ProgressBar(1px);
112
+ }
113
+ // coloring
114
+ .ProgressBarColoring(@color_default);
115
+
116
+
117
+ each(@all_colors, {
118
+ &.progressbar-@{value}{
119
+ .ProgressBarColoring(~"var(--@{PCSS}-color-@{value})");
120
+ }
121
+ });
122
+ // caption positioning
123
+ &.caption-left {
124
+ grid-template-columns: auto 1fr;
125
+ grid-template-areas: 'caption bar';
126
+
127
+ .progressbar-caption {
128
+ padding-right: @grid_spacing/3;
129
+ }
130
+ }
131
+
132
+ &.caption-right {
133
+ grid-template-columns: 1fr auto;
134
+ grid-template-areas: 'bar caption';
135
+
136
+ .progressbar-caption {
137
+ padding-left: @grid_spacing/3;
138
+ }
139
+ }
140
+
141
+ &.caption-bottom {
142
+ grid-template-areas: 'bar' 'caption';
143
+ }
144
+
145
+ &.progressbar-nocaption {
146
+
147
+ .progressbar-caption {
148
+ display: none !important;
149
+ }
150
+ }
151
+
152
+ &.progressbar-notrack {
153
+
154
+ .progressbar-track {
155
+ background: transparent;
156
+ }
157
+ }
158
+ }
159
+
160
+ .@{PCSS}-animations {
161
+ @{P}-progressbar {
162
+ .progressbar-bar,
163
+ .progressbar-glow {
164
+ transition: transform ease-out .3s;
165
+ }
166
+ }
167
+ }
@@ -0,0 +1,144 @@
1
+ @import "../shared";
2
+
3
+ @_lvl1_width: 2 * @grid_spacing;
4
+
5
+ @{P}-sidebar {
6
+ @_zindex: @hamburger_z_index + 1;
7
+ @_lvl1_zindex: @_zindex + 1;
8
+ z-index: @_zindex;
9
+ display: block;
10
+ position: fixed;
11
+ top: 0;
12
+ bottom: 0;
13
+ left: 0;
14
+ width: 0;
15
+
16
+ &::part(drawer),
17
+ .sidebar-drawer {
18
+ position: absolute;
19
+ top: 0;
20
+ bottom: 0;
21
+ left: 0;
22
+ width: @_lvl1_width;
23
+ color: @sidebar_foreground;
24
+ background: @sidebar_background;
25
+ border-right: 1px solid @color_border;
26
+ box-sizing: border-box;
27
+ // initial state
28
+ transform: translateX(-$width);
29
+ opacity: 0;
30
+ }
31
+
32
+ &::part(open),
33
+ .sidebar-drawer.drawer-open {
34
+ // open state
35
+ opacity: 1;
36
+ transform: translateX(0);
37
+ }
38
+
39
+ // no-border
40
+ &.sidebar-noborder::part(drawer) {
41
+ border: 0;
42
+ }
43
+ // coloring
44
+
45
+ .Sidebar(@bg, @fore) {
46
+
47
+ &::part(drawer),
48
+ .sidebar-drawer {
49
+ .GradientVertical(0, 100%, @bg, darken(@bg, 20));
50
+ border-color: transparent;
51
+ color: @fore;
52
+ }
53
+ }
54
+
55
+ &.sidebar-primary {
56
+ .Sidebar(@color_primary, @color_primary_inv);
57
+ }
58
+
59
+ &.sidebar-secondary {
60
+ .Sidebar(@color_secondary, @color_secondary_inv);
61
+ }
62
+
63
+ &.sidebar-accent {
64
+ .Sidebar(@color_accent, @color_accent_inv);
65
+ }
66
+
67
+ &.sidebar-warning {
68
+ .Sidebar(@color_warning, @color_warning_inv);
69
+ }
70
+
71
+ &.sidebar-success {
72
+ .Sidebar(@color_success, @color_success_inv);
73
+ }
74
+
75
+ &.sidebar-danger {
76
+ .Sidebar(@color_danger, @color_danger_inv);
77
+ }
78
+
79
+ &.sidebar-error {
80
+ .Sidebar(@color_error, @color_error_inv);
81
+ }
82
+
83
+ &.sidebar-invert {
84
+ .Sidebar(@color_default, @color_default_inv);
85
+ }
86
+
87
+ &.sidebar-disabled {
88
+ .Sidebar(@color_disabled, @color_disabled_inv);
89
+ }
90
+ }
91
+
92
+ .@{PCSS}-body {
93
+
94
+ @_spacing: @layout_aside_padding;
95
+
96
+ &.@{PCSS}-sidebar-open {
97
+ padding-left: @_lvl1_width + @_spacing;
98
+
99
+ @media screen and (min-width: @threshold_lg) {
100
+
101
+ &.@{PCSS}-menu-open {
102
+ padding-left: @_lvl1_width + @menu_width + @_spacing;
103
+ }
104
+ }
105
+
106
+ @{P}-menu.menu-sync {
107
+ transform: translateX(@_lvl1_width);
108
+ }
109
+ }
110
+ }
111
+
112
+ @{P}-sidebar nav.@{PCSS}-sidebar {
113
+ display: grid;
114
+ grid-template-rows: auto 1fr auto;
115
+ height: 100%;
116
+ padding: @sidebar_nav_spacing 0;
117
+ box-sizing: border-box;
118
+
119
+ > .sidebar-start,
120
+ > .sidebar-end {
121
+ display: flex;
122
+ flex-direction: column;
123
+ align-items: center;
124
+ }
125
+
126
+ > .sidebar-start {
127
+ grid-row: 1;
128
+ }
129
+
130
+ > .sidebar-end {
131
+ grid-row: 3;
132
+ }
133
+
134
+ .sidebar-button {
135
+ margin: 0;
136
+ }
137
+ }
138
+
139
+ .@{PCSS}-body.@{PCSS}-animations {
140
+ @{P}-sidebar::part(drawer),
141
+ @{P}-sidebar .sidebar-drawer {
142
+ transition: transform .3s @easing_in_out_sine, opacity .2s linear;
143
+ }
144
+ }
@@ -0,0 +1 @@
1
+ @import "../shared";
2
  display: block;
1
3
  pointer-events: none;
2
4
  pointer-events: auto;
@@ -0,0 +1,5 @@
1
+ @import "../shared";
2
+
3
+ @{P}-tweet{
4
+ display: inline-block;
5
+ }
@@ -0,0 +1,41 @@
1
+ @import "../shared";
2
+
3
+ @{P}-sticky-header {
4
+ .Inert();
5
+
6
+ &when(@shadows = true) {
7
+ box-shadow: 0 1px @grid_spacing rgba(0,0,0,0.5);
8
+ }
9
+ }
10
+
11
+ .@{PCSS}-body {
12
+
13
+ &.sticky-header-top {
14
+ // when at top (<= threshold)
15
+ header[pacem], .@{PCSS}-header {
16
+ }
17
+ }
18
+
19
+ &.sticky-header-scroll {
20
+ // while scrolling (> threshold)
21
+ header[pacem], .@{PCSS}-header {
22
+ }
23
+ }
24
+ /*#region layout overrides*/
25
+ &.sticky-header-fade[header],
26
+ &.sticky-header-fade[header][headbar],
27
+ &.sticky-header-fade[header][headbar-prepend] {
28
+ // while scrolling (> threshold)
29
+ header[pacem], .@{PCSS}-header {
30
+ transform: translateY(-100%);
31
+ }
32
+ }
33
+
34
+ &[headbar][header].sticky-header-fade {
35
+ .@{PCSS}-toolbar.toolbar-header {
36
+ transform: translateX(0) translateY(0);
37
+ }
38
+ }
39
+ /*#endregion*/
40
+ }
41
+