@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,232 @@
|
|
|
1
|
+
@import "../../../shared";
|
|
2
|
+
@import "../../theme-dark";
|
|
3
|
+
@import "../shared";
|
|
4
|
+
|
|
5
|
+
//.@{PCSS}-field {
|
|
6
|
+
//.@{PCSS}-input-container {
|
|
7
|
+
@{P}-checkbox {
|
|
8
|
+
|
|
9
|
+
@_checkbox_size: 1.1rem * @font_rem_factor;
|
|
10
|
+
|
|
11
|
+
.@{PCSS}-readonly.@{PCSS}-checkbox,
|
|
12
|
+
label.@{PCSS}-label.@{PCSS}-checkbox {
|
|
13
|
+
&::before {
|
|
14
|
+
.Icon('check_box_outline_blank', @_checkbox_size);
|
|
15
|
+
.IconVariation(0);
|
|
16
|
+
left: @input_padding_horiz;
|
|
17
|
+
line-height: @field_height;
|
|
18
|
+
color: @color_input_toggle;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&::before {
|
|
22
|
+
color: @color_input_toggle;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.@{PCSS}-selected label.@{PCSS}-label.@{PCSS}-checkbox:before {
|
|
27
|
+
content: 'check_box';
|
|
28
|
+
.IconVariation(1);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.@{PCSS}-readonly.@{PCSS}-checkbox {
|
|
32
|
+
.FormFieldLabelIcon('check_box_outline_blank');
|
|
33
|
+
.IconVariation(0);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.@{PCSS}-selected .@{PCSS}-readonly.@{PCSS}-checkbox::before {
|
|
37
|
+
content: 'check_box';
|
|
38
|
+
.IconVariation(1);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// just the checkbox
|
|
43
|
+
.form-minimal > @{P}-form-field:not(.field-full):not(.@{PCSS}-switcher) @{P}-checkbox,
|
|
44
|
+
@{P}-form-field.field-minimal @{P}-checkbox,
|
|
45
|
+
@{P}-checkbox.checkbox-naked {
|
|
46
|
+
// avoid conflict with switchers
|
|
47
|
+
&:not(.checkbox-toggle):not(.checkbox-switch) {
|
|
48
|
+
min-width: 0;
|
|
49
|
+
// height: @field_height;
|
|
50
|
+
label.@{PCSS}-checkbox {
|
|
51
|
+
border: 0;
|
|
52
|
+
padding-left: @grid_spacing/3;
|
|
53
|
+
background: none;
|
|
54
|
+
position: static;
|
|
55
|
+
line-height: 1.5;
|
|
56
|
+
min-width: 0;
|
|
57
|
+
min-height: 0;
|
|
58
|
+
vertical-align: middle;
|
|
59
|
+
.FontStdSize(@field_minimal_fontsize);
|
|
60
|
+
|
|
61
|
+
&::before {
|
|
62
|
+
position: static;
|
|
63
|
+
vertical-align: middle;
|
|
64
|
+
margin-right: @grid_spacing/4;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// overrides the padding of the first checkbox in a list
|
|
71
|
+
/*.form-minimal > @{P}-form-field:not(.field-full):not(.@{PCSS}-switcher) @{P}-checkbox-list,
|
|
72
|
+
@{P}-form-field.field-minimal @{P}-checkbox-list {
|
|
73
|
+
ol > li:first-child when(@border_field_underline = false) {
|
|
74
|
+
@{P}-checkbox:not(.checkbox-toggle):not(.checkbox-switch) label.@{PCSS}-checkbox {
|
|
75
|
+
padding-left: @grid_spacing/4;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}*/
|
|
79
|
+
|
|
80
|
+
// switcher
|
|
81
|
+
.SwitcherColoring(@back, @fore) {
|
|
82
|
+
label.@{PCSS}-label.@{PCSS}-checkbox::before {
|
|
83
|
+
color: @fore;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&.@{PCSS}-selected {
|
|
87
|
+
label.@{PCSS}-label.@{PCSS}-checkbox {
|
|
88
|
+
background: @back;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&.@{PCSS}-selected when (@glows = true) {
|
|
93
|
+
label.@{PCSS}-label.@{PCSS}-checkbox {
|
|
94
|
+
box-shadow: 0 0 8px @back;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@{P}-form-field.@{PCSS}-switcher @{P}-checkbox,
|
|
100
|
+
@{P}-checkbox.checkbox-toggle,
|
|
101
|
+
@{P}-checkbox.checkbox-switch {
|
|
102
|
+
// switcher
|
|
103
|
+
|
|
104
|
+
@_pad: @grid_spacing / 6;
|
|
105
|
+
@_h: @field_height - @_pad;
|
|
106
|
+
|
|
107
|
+
label.@{PCSS}-label.@{PCSS}-checkbox {
|
|
108
|
+
min-width: 0;
|
|
109
|
+
min-height: 0;
|
|
110
|
+
font-size: 0;
|
|
111
|
+
height: @_h;
|
|
112
|
+
// box-sizing: padding-box;
|
|
113
|
+
border-radius: @_h/2;
|
|
114
|
+
width: @_h * 2;
|
|
115
|
+
margin-bottom: @_pad;
|
|
116
|
+
// remove viewpathfinder border
|
|
117
|
+
border-color: transparent !important;
|
|
118
|
+
background: @color_disabled;
|
|
119
|
+
padding: 0;
|
|
120
|
+
transition: background linear .25s;
|
|
121
|
+
border: 0;
|
|
122
|
+
|
|
123
|
+
&::before {
|
|
124
|
+
.Icon('check', @_h);
|
|
125
|
+
width: @_h;
|
|
126
|
+
height: @_h;
|
|
127
|
+
position: absolute;
|
|
128
|
+
left: @_h;
|
|
129
|
+
top: 0;
|
|
130
|
+
opacity: 0;
|
|
131
|
+
transition: transform @easing_in_out_sine .2s, opacity linear .1s;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@_brd: @border_field_size;
|
|
135
|
+
@_switch_margin: 2px;
|
|
136
|
+
|
|
137
|
+
&::after {
|
|
138
|
+
/*@_c: @_h / 2;
|
|
139
|
+
@_r: @_c - @_brd;*/
|
|
140
|
+
content: '';
|
|
141
|
+
position: absolute;
|
|
142
|
+
left: @_switch_margin;
|
|
143
|
+
top: $left;
|
|
144
|
+
height: @_h - 2* @_switch_margin;
|
|
145
|
+
width: $height;
|
|
146
|
+
transition: transform @easing_in_out_sine .2s;
|
|
147
|
+
background-color: #fff;
|
|
148
|
+
border-radius: 50%;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&::after when (@shadows = true) {
|
|
152
|
+
box-shadow: 1px 1px @_brd rgba(0,0,0,1);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
label.@{PCSS}-label.@{PCSS}-checkbox when (@shadows = true) {
|
|
157
|
+
box-shadow: inset 0 2px 2px rgba(0,0,0,0.3333);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&.@{PCSS}-selected {
|
|
161
|
+
label.@{PCSS}-label.@{PCSS}-checkbox {
|
|
162
|
+
|
|
163
|
+
&::before {
|
|
164
|
+
opacity: 1;
|
|
165
|
+
transform: translateX(-@_h) translateZ(0);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&::after {
|
|
169
|
+
transform: translateX(@_h) translateZ(0);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.SwitcherColoring(@color_primary, @color_primary_inv);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
each(@all_colors, {
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
@{P}-form-field.@{PCSS}-switcher.switcher-@{value} @{P}-checkbox,
|
|
181
|
+
@{P}-checkbox.checkbox-toggle.checkbox-@{value},
|
|
182
|
+
@{P}-checkbox.checkbox-switch.checkbox-@{value} {
|
|
183
|
+
.SwitcherColoring(~"var(--@{PCSS}-color-@{value})", ~"var(--@{PCSS}-color-@{value}-inverse)");
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
@{P}-checkbox {
|
|
189
|
+
// coloring
|
|
190
|
+
.CheckboxColoring(@clr) {
|
|
191
|
+
.CheckboxColoring(@clr, #fff);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.CheckboxColoring(@clr, @clr_inv) {
|
|
195
|
+
.@{PCSS}-readonly.@{PCSS}-checkbox,
|
|
196
|
+
label.@{PCSS}-label.@{PCSS}-checkbox {
|
|
197
|
+
|
|
198
|
+
&::before {
|
|
199
|
+
color: @clr;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
each(@all_colors, {
|
|
206
|
+
|
|
207
|
+
&.checkbox-@{value} {
|
|
208
|
+
.CheckboxColoring(~"var(--@{PCSS}-color-@{value})");
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
&.@{PCSS}-disabled {
|
|
214
|
+
.CheckboxColoring(@color_disabled);
|
|
215
|
+
|
|
216
|
+
.@{PCSS}-readonly.@{PCSS}-checkbox,
|
|
217
|
+
label.@{PCSS}-label.@{PCSS}-checkbox {
|
|
218
|
+
color: @color_disabled;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
//}
|
|
223
|
+
//}
|
|
224
|
+
@media (min-width: @threshold_lg) {
|
|
225
|
+
|
|
226
|
+
@{P}-form-field.field-minimal @{P}-checkbox,
|
|
227
|
+
@{P}-checkbox.checkbox-naked,
|
|
228
|
+
@{P}-checkbox.checkbox-toggle,
|
|
229
|
+
@{P}-checkbox.checkbox-switch {
|
|
230
|
+
min-width: 0;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
@import "../shared";
|
|
2
|
+
|
|
3
|
+
@{P}-childform-propagator {
|
|
4
|
+
.Inert();
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@{P}-childform {
|
|
8
|
+
display: block;
|
|
9
|
+
// remove animations
|
|
10
|
+
@{P}-repeater.@{PCSS}-animatable-list,
|
|
11
|
+
@{P}-repeater.@{PCSS}-anim-list {
|
|
12
|
+
&.@{PCSS}-list-bottom > * {
|
|
13
|
+
animation: none !important;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
/*.@{PCSS}-childform-item {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: row;
|
|
19
|
+
align-items: flex-start;
|
|
20
|
+
|
|
21
|
+
> * {
|
|
22
|
+
flex: 0 0 auto;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
> @{P}-form {
|
|
26
|
+
flex: 1 0 auto;
|
|
27
|
+
}
|
|
28
|
+
}*/
|
|
29
|
+
.@{PCSS}-childform-item {
|
|
30
|
+
display: grid;
|
|
31
|
+
grid-template-columns: auto 1fr auto;
|
|
32
|
+
align-items: start;
|
|
33
|
+
|
|
34
|
+
> .childform-item-index,
|
|
35
|
+
> .childform-item-handle {
|
|
36
|
+
grid-column: 1;
|
|
37
|
+
grid-row: 1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
> .childform-item-index {
|
|
41
|
+
display: none; // hidden by default, shown when .childform-ordered
|
|
42
|
+
margin-top: @field_padding_top;
|
|
43
|
+
|
|
44
|
+
> * /* {P}-span */ {
|
|
45
|
+
display: block;
|
|
46
|
+
.LabelTopMargin();
|
|
47
|
+
background-color: transparent;
|
|
48
|
+
padding: 0 .5em;
|
|
49
|
+
|
|
50
|
+
&::after {
|
|
51
|
+
content: '.';
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
& when (@border_radius > 0) {
|
|
55
|
+
border-radius: .3333em;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
> @{P}-button {
|
|
61
|
+
grid-row: 1;
|
|
62
|
+
grid-column: 3;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
> @{P}-form {
|
|
66
|
+
grid-row: 1;
|
|
67
|
+
grid-column: 2;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@{P}-button.circular:hover {
|
|
72
|
+
background-color: fade(@color_default, 10);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.@{PCSS}-childform-item-floater {
|
|
77
|
+
pointer-events: none;
|
|
78
|
+
opacity: 0;
|
|
79
|
+
background-color: @color_field_back;
|
|
80
|
+
|
|
81
|
+
&.@{PCSS}-drag-floater {
|
|
82
|
+
opacity: 1;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// form-field & co.
|
|
87
|
+
|
|
88
|
+
@{P}-form-field.childform-ordered @{P}-childform,
|
|
89
|
+
@{P}-childform.childform-ordered {
|
|
90
|
+
|
|
91
|
+
*:not(@{P}-childform) .@{PCSS}-childform-item > .childform-item-index {
|
|
92
|
+
display: block;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.ChildFormColored(@suffix, @bgclr, @fgclr) {
|
|
97
|
+
|
|
98
|
+
@{P}-form-field.childform-@{suffix} @{P}-childform,
|
|
99
|
+
@{P}-childform.childform-@{suffix} {
|
|
100
|
+
|
|
101
|
+
*:not(@{P}-childform) .@{PCSS}-childform-item > .childform-item-index > * {
|
|
102
|
+
background-color: @bgclr;
|
|
103
|
+
color: @fgclr;
|
|
104
|
+
|
|
105
|
+
&::after {
|
|
106
|
+
content: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
& when (@shadows = true) {
|
|
110
|
+
box-shadow: 0 @grid_spacing/6 @grid_spacing/2 rgba(0,0,0,0.25);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.ChildFormColored(accent, @color_accent, @color_accent_inv);
|
|
117
|
+
.ChildFormColored(primary, @color_primary, @color_primary_inv);
|
|
118
|
+
.ChildFormColored(success, @color_success, @color_success_inv);
|
|
119
|
+
.ChildFormColored(danger, @color_danger, @color_danger_inv);
|
|
120
|
+
.ChildFormColored(error, @color_error, @color_error_inv);
|
|
121
|
+
.ChildFormColored(warning, @color_warning, @color_warning_inv);
|
|
122
|
+
.ChildFormColored(disabled, @color_disabled, @color_default);
|
|
123
|
+
|
|
124
|
+
@{P}-form-field.childform-ordered @{P}-childform,
|
|
125
|
+
@{P}-childform.childform-ordered {
|
|
126
|
+
|
|
127
|
+
*:not(@{P}-childform) .@{PCSS}-childform-item > .childform-item-index {
|
|
128
|
+
display: block;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@{P}-form-field.childform-minimal @{P}-childform,
|
|
133
|
+
@{P}-childform.childform-minimal {
|
|
134
|
+
|
|
135
|
+
*:not(@{P}-childform) .@{PCSS}-childform-item > .childform-item-index {
|
|
136
|
+
margin-top: 0;
|
|
137
|
+
|
|
138
|
+
> * {
|
|
139
|
+
margin-top: 0;
|
|
140
|
+
line-height: @field_minimal_label_height;
|
|
141
|
+
font-size: @field_minimal_fontsize !important;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// childform "full"
|
|
147
|
+
// this copies the .pacem-field style in formfield.less (amend this! DRY!)
|
|
148
|
+
|
|
149
|
+
@{P}-childform .@{PCSS}-childform > .@{PCSS}-childform-item > @{P}-form > form.@{PCSS}-form .childform-full {
|
|
150
|
+
@_left: @grid_spacing * 5 / 6;
|
|
151
|
+
@_h: @_left;
|
|
152
|
+
|
|
153
|
+
padding: @grid_spacing/3 @_h;
|
|
154
|
+
margin-bottom: @grid_spacing / 3;
|
|
155
|
+
border-radius: @border_field_radius;
|
|
156
|
+
transition: background linear .3s, border linear .3s;
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
& when (@border_field_underline = false) {
|
|
160
|
+
border: @border_field_size solid transparent;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
& when (@border_field_underline = true) {
|
|
164
|
+
border-bottom: @border_field_size solid transparent;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.@{PCSS}-field.@{PCSS}-editable > .@{PCSS}-input-container {
|
|
169
|
+
|
|
170
|
+
> @{P}-childform .@{PCSS}-childform > .@{PCSS}-childform-item > @{P}-form > form.@{PCSS}-form .childform-full {
|
|
171
|
+
background-color: @color_field_back;
|
|
172
|
+
border-color: transparent;
|
|
173
|
+
|
|
174
|
+
& when (@shadows = true) {
|
|
175
|
+
box-shadow: 0 2px @grid_spacing / 3 rgba(0,0,0,0.25);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
& when (@shadows = false) {
|
|
179
|
+
box-shadow: 0 2px @grid_spacing / 8 rgba(0,0,0,0.05);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.@{PCSS}-field.@{PCSS}-readonly > .@{PCSS}-input-container {
|
|
185
|
+
|
|
186
|
+
> @{P}-childform .@{PCSS}-childform > .@{PCSS}-childform-item > @{P}-form > form.@{PCSS}-form .childform-full {
|
|
187
|
+
background-color: transparent;
|
|
188
|
+
box-shadow: none;
|
|
189
|
+
border-color: fade(@color_default, 5);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
@import "../shared";
|
|
2
|
+
@import "../../../shared";
|
|
3
|
+
|
|
4
|
+
@{P}-input-color {
|
|
5
|
+
.FormFieldItemWrapper();
|
|
6
|
+
display: block;
|
|
7
|
+
|
|
8
|
+
@_gap: @grid_spacing/6;
|
|
9
|
+
@_top: @input_padding_horiz / 2;
|
|
10
|
+
@_size: @field_height - @_gap - @_top;
|
|
11
|
+
|
|
12
|
+
@_rght: @grid_spacing * 2 - @input_padding_horiz;
|
|
13
|
+
|
|
14
|
+
.@{PCSS}-viewfinder {
|
|
15
|
+
max-width: @field_min_width;
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: flex-start;
|
|
18
|
+
flex-direction: row;
|
|
19
|
+
flex-wrap: nowrap;
|
|
20
|
+
position: relative;
|
|
21
|
+
|
|
22
|
+
&:before {
|
|
23
|
+
@_sz: @grid_spacing - @_top;
|
|
24
|
+
.Icon('opacity', @_sz);
|
|
25
|
+
left: @_rght + @_sz;
|
|
26
|
+
top: @_top;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
input[type=number].@{PCSS}-input {
|
|
31
|
+
.FormFieldItem();
|
|
32
|
+
min-height: auto;
|
|
33
|
+
text-align: right;
|
|
34
|
+
width: 42px + 2 * @input_padding_horiz; // check all browsers
|
|
35
|
+
&:after {
|
|
36
|
+
content: ' ';
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.@{PCSS}-input-color {
|
|
41
|
+
width: @_size;
|
|
42
|
+
height: @_size;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
border-radius: 50%;
|
|
45
|
+
margin-bottom: @_gap;
|
|
46
|
+
// space for opacity icon
|
|
47
|
+
margin-right: @_rght;
|
|
48
|
+
margin-left: @input_padding_horiz;
|
|
49
|
+
margin-top: @_top;
|
|
50
|
+
|
|
51
|
+
input.@{PCSS}-input[type=color] {
|
|
52
|
+
.FormFieldItemInline();
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
padding: 0;
|
|
55
|
+
//.GradientVertical( rgba(0,0,0,0.25), rgba(0,0,0,0) );
|
|
56
|
+
height: @_size;
|
|
57
|
+
opacity: 0;
|
|
58
|
+
display: block;
|
|
59
|
+
width: @_size;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.@{PCSS}-input-color when (@shadows = true) {
|
|
64
|
+
box-shadow: inset 0 @_size/12 @_size/4 rgba(0,0,0,0.25);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.@{PCSS}-input-color when (@shadows = false) {
|
|
68
|
+
// also here, temporarily
|
|
69
|
+
box-shadow: inset 0 @_size/12 @_size/4 rgba(0,0,0,0.25);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.@{PCSS}-readonly {
|
|
73
|
+
height: @field_height;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@media (min-width: @threshold_lg) {
|
|
78
|
+
|
|
79
|
+
@{P}-input-color {
|
|
80
|
+
|
|
81
|
+
.@{PCSS}-readonly {
|
|
82
|
+
width: @field_min_width;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.field-stretch @{P}-input-color,
|
|
88
|
+
/* obsolete */
|
|
89
|
+
// @{P}-input-color.input-stretch,
|
|
90
|
+
@{P}-input-color.field-stretch {
|
|
91
|
+
.FormFieldStretch();
|
|
92
|
+
|
|
93
|
+
.@{PCSS}-viewfinder {
|
|
94
|
+
max-width: none;
|
|
95
|
+
flex: 1 0 100%;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.field-minimal @{P}-input-color,
|
|
100
|
+
@{P}-input-color.color-naked {
|
|
101
|
+
|
|
102
|
+
.@{PCSS}-viewfinder {
|
|
103
|
+
display: block;
|
|
104
|
+
|
|
105
|
+
&:before {
|
|
106
|
+
display: none;
|
|
107
|
+
content: '';
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
input[type=number].@{PCSS}-input {
|
|
112
|
+
.Inert();
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.@{PCSS}-input-color {
|
|
116
|
+
width: auto;
|
|
117
|
+
height: @field_height;
|
|
118
|
+
border-radius: @border_field_radius;
|
|
119
|
+
margin: 0;
|
|
120
|
+
|
|
121
|
+
input.@{PCSS}-input[type=color] {
|
|
122
|
+
height: 100%;
|
|
123
|
+
opacity: 0;
|
|
124
|
+
display: block;
|
|
125
|
+
width: 100%;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|