@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,159 @@
1
+ @import "../shared";
2
+
3
+ .@{PCSS}-timeline {
4
+ display: block;
5
+
6
+ @_step_icon_core_size: @grid_spacing;
7
+ @_step_icon_brd: @grid_spacing/6;
8
+ @_step_icon_size: @_step_icon_core_size + @_step_icon_brd * 2;
9
+
10
+ > .timeline-step {
11
+ display: grid;
12
+ grid-template-columns: auto 1fr;
13
+ grid-template-rows: auto 1fr;
14
+ grid-template-areas: 'icon content' 'pad content';
15
+ align-content: start;
16
+
17
+ > *,
18
+ > .step-content {
19
+ grid-area: content;
20
+ }
21
+
22
+ > .step-icon,
23
+ > .step-pad {
24
+ margin-right: @grid_spacing;
25
+ }
26
+
27
+ > .step-icon {
28
+ grid-area: icon;
29
+ box-sizing: border-box;
30
+ width: @_step_icon_size;
31
+ height: $width;
32
+ border-radius: 50%;
33
+ display: flex;
34
+ justify-content: center;
35
+ align-items: center;
36
+ font-size: @_step_icon_core_size / 1.5;
37
+ position: relative;
38
+
39
+ .TimelineSvg(@w, @h, @clr) {
40
+ @_w: unit(@w);
41
+ @_h: unit(@w);
42
+ @_w2: @_w * .5;
43
+ @_h2: @_h * .5;
44
+ // <svg viewBox="0 0 24 24" width="24" height="24" xmlns="http://www.w3.org/2000/svg"><path d="M0,12 H12" stroke-width="1" stroke="#fff"></path><circle fill="#fff" cx="12" cy="12" r="2"/></svg>
45
+ // content: data-uri("data:image/svg+xml","img.svg");
46
+ content: url("data:image/svg+xml,%3Csvg viewBox='0 0 @{_w} @{_h}' width='@{_w}' height='@{_h}' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath d='M0,@{_h2} H@{_w2}' stroke='@{clr}' stroke-width='1'/%3E %3Ccircle fill='@{clr}' cx='@{_w2}' cy='@{_h2}' r='2'/%3E %3C/svg%3E");
47
+ }
48
+
49
+ &::after {
50
+ position: absolute;
51
+ top: 0;
52
+ left: @_step_icon_size - @_step_icon_brd;
53
+ }
54
+
55
+ & when(@glows = false) {
56
+ border: @grid_spacing/6 solid;
57
+
58
+ &::after {
59
+ .TimelineSvg(@grid_spacing, @_step_icon_size, /* don't know how else to escape '#' char in svg */ fade(@color_timeline_frame, 99));
60
+ }
61
+ }
62
+
63
+ & when(@shadows = true) {
64
+ box-shadow: 0 @grid_spacing/3 @grid_spacing rgba(0,0,0,0.5);
65
+ }
66
+
67
+ & when (@glows = true) {
68
+ border: @grid_spacing/6 solid;
69
+ background-origin: content-box;
70
+
71
+ & when(@shadows = true) {
72
+ box-shadow: inset 0 0 @grid_spacing/2 rgba(0,0,0,0.5), 0 @grid_spacing/6 @grid_spacing/3 rgba(0,0,0,0.5), 0 0 @grid_spacing fade(@color_timeline_frame, 50);
73
+ }
74
+
75
+ & when(@shadows = false) {
76
+ box-shadow: inset 0 0 @grid_spacing/6 #000, 0 0 @grid_spacing fade(@color_timeline_frame, 50);
77
+ }
78
+
79
+ &::after {
80
+ .TimelineSvg(@grid_spacing, @_step_icon_size, fade(@color_timeline_frame, 50));
81
+ }
82
+ }
83
+ }
84
+
85
+ > .step-pad {
86
+ grid-area: pad;
87
+ width: @_step_icon_size * .5;
88
+ }
89
+
90
+ &:not(:last-child):not(.last-step) {
91
+
92
+ > .step-pad {
93
+
94
+ &when(@glows = true) {
95
+ border-right: 1px dashed fade(@color_timeline_frame, 50);
96
+ }
97
+
98
+ &when(@glows = false) {
99
+ border-right: 1px solid @color_timeline_frame;
100
+ }
101
+ }
102
+ }
103
+
104
+ > .@{PCSS}-panel {
105
+ > .panel-heading {
106
+ padding-top: 0;
107
+ padding-bottom: 0;
108
+ line-height: @_step_icon_size;
109
+ .Ellipsed();
110
+ }
111
+ }
112
+
113
+ .Coloring(@clr, @clr_fore) {
114
+ > .step-icon {
115
+ color: @clr_fore;
116
+
117
+ & when(@glows = false) {
118
+ border-color: @clr;
119
+ background-color: @clr;
120
+ }
121
+
122
+ & when(@glows = true) {
123
+ border-color: fade(@clr, 50);
124
+ .GradientRadial(50%, 100%, fade(@clr, 25), fade(@clr, 50));
125
+ }
126
+ }
127
+ }
128
+
129
+ .Coloring(@color_default, @color_default_inv);
130
+ // coloring
131
+ &.step-disabled {
132
+ .Coloring(@color_disabled, @color_disabled_inv);
133
+ }
134
+
135
+ &.step-success {
136
+ .Coloring(@color_success, @color_success_inv);
137
+ }
138
+
139
+ &.step-danger {
140
+ .Coloring(@color_danger, @color_danger_inv);
141
+ }
142
+
143
+ &.step-error {
144
+ .Coloring(@color_error, @color_danger_inv);
145
+ }
146
+
147
+ &.step-accent {
148
+ .Coloring(@color_accent, @color_accent_inv);
149
+ }
150
+
151
+ &.step-warning {
152
+ .Coloring(@color_warning, @color_warning_inv);
153
+ }
154
+
155
+ &.step-primary {
156
+ .Coloring(@color_primary, @color_primary_inv);
157
+ }
158
+ }
159
+ }
@@ -0,0 +1,232 @@
1
+ @import "../shared";
2
+
3
+ .ToastColor(@clr, @clr_inv) {
4
+ background: fade( @clr, 75);
5
+ border-color: @clr;
6
+ color: @clr_inv;
7
+
8
+ & when (@glows = true) {
9
+ box-shadow: 0 0 8px fade(@clr, 100);
10
+ }
11
+ }
12
+
13
+
14
+ /*#region TOAST*/
15
+ @{P}-toast {
16
+
17
+ @_brdt: 1px;
18
+ @_ht: @grid_cell - @_brdt;
19
+
20
+ z-index: @toast-z-index;
21
+ position: fixed;
22
+ top: 0;
23
+ left: 0;
24
+ right: 0;
25
+ height: @_ht;
26
+ overflow: visible;
27
+ cursor: pointer;
28
+ background-color: @color_toast_back;
29
+ border: @_brdt solid;
30
+ border-color: @color_border;
31
+ border-top-width: 0;
32
+ border-right-width: 0;
33
+ border-left-width: 0;
34
+ color: @color_default;
35
+ width: 100vw;
36
+ box-sizing: border-box;
37
+ padding: 0;
38
+ margin: 0;
39
+ display: flex;
40
+ justify-content: space-around;
41
+ align-items: center;
42
+ align-content: flex-start;
43
+ .FontMainSize(1.25);
44
+ height: @_ht;
45
+ transform: translateY(-@_ht);
46
+ opacity: 0;
47
+
48
+ &.toast-vertical {
49
+ flex-direction: column;
50
+ }
51
+
52
+ &.toast-show {
53
+ transform: translateY(0);
54
+ opacity: 1;
55
+ }
56
+
57
+ &.toast-danger {
58
+ .ToastColor( @color_danger, @color_danger_inv);
59
+ }
60
+
61
+ &.toast-error,
62
+ &.fail {
63
+ .ToastColor( @color_error, @color_error_inv);
64
+ }
65
+
66
+ &.toast-success,
67
+ &.success {
68
+ .ToastColor( @color_success, @color_success_inv);
69
+ }
70
+
71
+ &.toast-primary {
72
+ .ToastColor( @color_primary, @color_primary_inv);
73
+ }
74
+
75
+ &.toast-accent {
76
+ .ToastColor( @color_accent, @color_accent_inv);
77
+ }
78
+
79
+ &.toast-warning {
80
+ .ToastColor( @color_warning, @color_warning_inv);
81
+ }
82
+
83
+ &.toast-info {
84
+ .ToastColor( @color_info, @color_info_inv);
85
+ }
86
+ }
87
+
88
+ @{P}-toast when (@shadows = true) {
89
+ box-shadow: 0 2px 4px rgba(0,0,0,0.5);
90
+ }
91
+ /*#endregion*/
92
+
93
+ .@{PCSS}-toaster {
94
+ // container for toasts
95
+ pointer-events: none;
96
+ position: fixed;
97
+ z-index: @toast-z-index;
98
+ display: flex;
99
+ flex-direction: column;
100
+ overflow: visible;
101
+ box-sizing: border-box;
102
+ padding: @grid_spacing;
103
+ z-index: @toast-z-index;
104
+ overflow: visible;
105
+ // top-right: default
106
+ top: 0;
107
+ right: 0;
108
+ bottom: auto;
109
+ left: auto;
110
+ align-content: flex-end;
111
+
112
+ @_w: @grid_spacing * 10;
113
+ @_m: @grid_cell;
114
+
115
+ @{P}-toast {
116
+ position: static;
117
+ z-index: 0;
118
+ //flex: 0 1 auto;
119
+ width: @_w;
120
+ overflow: hidden;
121
+ opacity: 0;
122
+ transform-origin: right center;
123
+ border-top-width: 1px;
124
+ border-right-width: 1px;
125
+ border-left-width: 1px;
126
+ padding: @grid_spacing @grid_spacing * 1.5;
127
+ box-sizing: border-box;
128
+ margin: 0 0 @grid_spacing 0;
129
+ pointer-events: none;
130
+ border-radius: @border_radius;
131
+ // tweak flexbox
132
+ justify-content: flex-start;
133
+ padding: @grid_spacing * 2 / 3;
134
+ // top-right default
135
+ transform: translateX(@_w - @_m) translateY(0) translateZ(0) scale(0.25);
136
+ transform-origin: right center;
137
+
138
+ &.toast-show {
139
+ pointer-events: auto;
140
+ //min-height: @_h;
141
+ order: -1;
142
+ opacity: 1;
143
+ transform: translateX(0);
144
+ }
145
+ }
146
+
147
+ &.toaster-left {
148
+ align-content: flex-start;
149
+ right: auto;
150
+ left: 0;
151
+
152
+ @{P}-toast {
153
+ transform: translateX(-@_w + @_m) translateY(0) translateZ(0) scale(0.25);
154
+ transform-origin: left center;
155
+
156
+ &.toast-show {
157
+ transform: translateX(0);
158
+ }
159
+ }
160
+ }
161
+
162
+ &.toaster-right {
163
+ }
164
+
165
+ &.toaster-bottom {
166
+ top: auto;
167
+ bottom: 0;
168
+ flex-direction: column-reverse;
169
+
170
+ @{P}-toast {
171
+ margin: @grid_spacing 0 0 0;
172
+ }
173
+ }
174
+
175
+ &.toaster-top {
176
+ }
177
+
178
+ &.toaster-center {
179
+ align-content: center;
180
+ right: 0;
181
+ left: 0;
182
+
183
+ @{P}-toast {
184
+ align-self: center;
185
+ transform-origin: 50% 0;
186
+ transform: translateY(-100%) translateX(0) translateZ(0) scale(0.25);
187
+
188
+ &.toast-hide {
189
+ transform: translateY(100%) translateX(0) translateZ(0);
190
+ opacity: 0;
191
+ }
192
+ }
193
+
194
+ &.toaster-bottom @{P}-toast {
195
+ transform: translateY(100%) translateX(0) translateZ(0) scale(0.25);
196
+
197
+ &.toast-hide {
198
+ transform: translateY(-100%) translateX(0) translateZ(0);
199
+ opacity: 0;
200
+ }
201
+ }
202
+
203
+ @{P}-toast.toast-show {
204
+ transform: translateY(0) translateX(0) translateZ(0);
205
+ }
206
+ }
207
+
208
+ &.toaster-autosize @{P}-toast {
209
+ width: auto;
210
+ }
211
+ }
212
+
213
+ // animations
214
+ .@{PCSS}-animations {
215
+
216
+ @{P}-toast {
217
+ transition: transform .3s @easing_out_sine, opacity .25s linear;
218
+
219
+ &.toast-hide {
220
+ transition-duration: .125s;
221
+ transition-timing-function: @easing_in_sine;
222
+ }
223
+ }
224
+
225
+ .@{PCSS}-toaster.toaster-anim {
226
+ &.anim-bounce {
227
+ @{P}-toast.toast-show {
228
+ transition: transform .3s @easing_out_back, opacity .25s linear;
229
+ }
230
+ }
231
+ }
232
+ }
@@ -0,0 +1,47 @@
1
+ @import "../shared";
2
+
3
+ @{P}-toc {
4
+ display: block;
5
+ }
6
+
7
+ .@{PCSS}-toc {
8
+
9
+ >@{P}-a {
10
+ display: block;
11
+ border-left: 2px solid transparent;
12
+ padding: 0 @grid_spacing / 2;
13
+ line-height: 1.5;// 1.5rem * @font_rem_factor;
14
+
15
+ &.toc-focus {
16
+ border-color: @color_primary;
17
+ font-weight: 700;
18
+ }
19
+ }
20
+ }
21
+
22
+ .toc-item,
23
+ .@{PCSS}-toc-item {
24
+ transition: padding @easing_out_sine .15s;
25
+ cursor: pointer;
26
+
27
+ &::before {
28
+ pointer-events: none;
29
+ .Icon('link', 1em);
30
+ line-height: 1em;
31
+ top: 0;
32
+ left: 0;
33
+ transition: transform @easing_out_sine .15s, opacity .1s;
34
+ opacity: 0;
35
+ transform-origin: left 50%;
36
+ transform: scale(0.5);
37
+ }
38
+
39
+ &:hover {
40
+ padding-left: @grid_spacing * 1.5;
41
+
42
+ &::before {
43
+ transform: scale(1);
44
+ opacity: 1;
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,155 @@
1
+ @import "../shared";
2
+
3
+ @{P}-tuner {
4
+ .Tuner(ceil(@grid_cell * 1.414));
5
+ //@_padding: @grid_spacing / 6;
6
+ display: block;
7
+ position: relative;
8
+
9
+ &::part(tuner) {
10
+ /*width: 100%;
11
+ height: 100%;*/
12
+ position: absolute;
13
+ display: block;
14
+ fill: none;
15
+ stroke-width: 10px;
16
+ overflow: visible;
17
+ }
18
+
19
+ &.tuner-interactive::part(tuner) {
20
+ cursor: pointer;
21
+ }
22
+
23
+ &::part(rail) {
24
+ stroke: ~"var(--@{PCSS}-color-default)";
25
+ }
26
+
27
+ &::part(complementary-rail) {
28
+ display: none;
29
+ }
30
+
31
+ &::part(track) {
32
+ stroke: @color_border;
33
+ }
34
+
35
+ &.tuner-notrack::part(track) {
36
+ stroke: transparent;
37
+ }
38
+
39
+ &::part(content) {
40
+ position: absolute;
41
+ display: flex;
42
+ align-items: center;
43
+ justify-content: center;
44
+ pointer-events: none;
45
+ color: @color_default;
46
+ //font-size: 2rem;
47
+ }
48
+
49
+ &.tuner-large {
50
+ .Tuner(2 * @grid_cell, 12px);
51
+ }
52
+
53
+ &.tuner-small {
54
+ .Tuner(@grid_cell, 6px);
55
+ }
56
+
57
+ &.tuner-smaller {
58
+ .Tuner(2 * @grid_spacing, 4px);
59
+ }
60
+
61
+ &.tuner-thin {
62
+ &::part(rail),
63
+ &::part(track) {
64
+ stroke-width: 3px;
65
+ }
66
+ }
67
+
68
+ &.tuner-tiny {
69
+ .Tuner(@grid_spacing, 1px);
70
+ }
71
+ // coloring
72
+
73
+
74
+ @colors: @all_colors;
75
+
76
+ // rail
77
+ each(@colors, {
78
+ &.tuner-@{value}::part(rail){
79
+
80
+ stroke: ~"var(--@{PCSS}-color-@{value})";
81
+ }
82
+ });
83
+ // complementary-rail
84
+ each(@colors, {
85
+ &.tuner-complementary-@{value}::part(complementary-rail){
86
+ display: inherit;
87
+ stroke: ~"var(--@{PCSS}-color-@{value})";
88
+ }
89
+ });
90
+ }
91
+
92
+ .TunerWrapper(@clr) {
93
+ .GradientTuner(@clr);
94
+
95
+ @{P}-tuner {
96
+
97
+ &::part(track) {
98
+ stroke: rgba(@clr, 1);
99
+ }
100
+ }
101
+ }
102
+
103
+ .@{PCSS}-tuner-wrapper {
104
+ background-position: center center;
105
+ background-repeat: no-repeat;
106
+ background-size: 100%;
107
+ transition: @easing_out_sine .25s;
108
+ padding: @grid_spacing/3;
109
+ display: flex;
110
+ align-items: center;
111
+ justify-content: center;
112
+ .TunerWrapper(~"var(--@{PCSS}-color-default-rgb)");
113
+
114
+ @{P}-tuner {
115
+
116
+ &::part(tuner),
117
+ &::part(content) {
118
+ top: 1.5px;
119
+ left: $top;
120
+ width: ~"calc(100% - 3px)";
121
+ height: $width;
122
+ }
123
+
124
+ &::part(rail),
125
+ &::part(complementary-rail),
126
+ &::part(track) {
127
+ stroke-width: 3px;
128
+ }
129
+
130
+ &::part(track) {
131
+ stroke-opacity: 0.1;
132
+ }
133
+ }
134
+
135
+ @colors: @all_colors;
136
+
137
+ // tuner
138
+ each(@colors, {
139
+ &.tuner-@{value}{
140
+ .TunerWrapper(~"var(--@{PCSS}-color-@{value}-rgb)");
141
+ }
142
+ });
143
+
144
+ &.tuner-disabled {
145
+ background-size: 0%;
146
+ }
147
+ }
148
+
149
+ .@{PCSS}-animations {
150
+
151
+ .@{PCSS}-tuner-wrapper,
152
+ @{P}-tuner {
153
+ .Animatable(pop-anim, .4s, @easing_out_back);
154
+ }
155
+ }
@@ -0,0 +1,17 @@
1
+ @import "../shared";
2
+
3
+ @{P}-view {
4
+ display: block;
5
+ }
6
+
7
+ .@{PCSS}-animations @{P}-view.@{PCSS}-animatable,
8
+ .@{PCSS}-animations @{P}-view.@{PCSS}-anim {
9
+ animation: none !important;
10
+ transition: transform @easing_in_out_sine .175s, opacity .2s;
11
+ //transform-origin: left top;
12
+
13
+ &.view-fetching {
14
+ transform: translateY(-@grid_spacing) translateZ(0);
15
+ opacity: 0;
16
+ }
17
+ }