@jsb188/css 1.1.10 → 1.1.12
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/css/_colors.generated.css +210 -0
- package/css/_global.css +2606 -957
- package/css/_responsive.css +8068 -1934
- package/css/_responsive.generated.css +7220 -1520
- package/css/_sizing.css +1657 -459
- package/css/alert.css +84 -17
- package/css/animate.css +598 -194
- package/css/form.css +438 -235
- package/css/layout.css +303 -149
- package/css/loading.css +117 -105
- package/css/misc.css +3 -75
- package/css/modal.css +38 -73
- package/css/popover.css +51 -53
- package/package.json +23 -22
- package/scripts/generateResponsiveCss.js +202 -116
package/css/form.css
CHANGED
|
@@ -1,525 +1,728 @@
|
|
|
1
|
-
|
|
2
1
|
/* Form elements */
|
|
3
2
|
|
|
4
3
|
.form_el {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
7
6
|
}
|
|
8
7
|
|
|
9
8
|
.no_resize {
|
|
10
|
-
|
|
9
|
+
resize: none;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
/* Form containers - same padding for all form elements */
|
|
14
13
|
|
|
15
14
|
.form_cnt,
|
|
16
|
-
.form_el input,
|
|
17
|
-
|
|
15
|
+
.form_el input,
|
|
16
|
+
.form_el .form_select,
|
|
17
|
+
.form_el textarea,
|
|
18
|
+
.form_el .tx_virtualizer {
|
|
19
|
+
padding: 0.58rem;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
fieldset.form_cnt {
|
|
21
|
-
|
|
23
|
+
padding-bottom: 1rem;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
.form_cnt.smaller,
|
|
25
|
-
.form_el.smaller input,
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
.form_el.smaller input,
|
|
28
|
+
.form_el.smaller .form_select,
|
|
29
|
+
.form_el.smaller textarea,
|
|
30
|
+
.form_el.smaller .tx_virtualizer {
|
|
31
|
+
/* If less is needed, use .lh_1 .lh_2 to further flatten the height */
|
|
32
|
+
padding: 0.32rem 6px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.form_cnt.tiny,
|
|
36
|
+
.form_el.tiny input,
|
|
37
|
+
.form_el.tiny .form_select,
|
|
38
|
+
.form_el.tiny textarea,
|
|
39
|
+
.form_el.tiny .tx_virtualizer {
|
|
40
|
+
padding: var(--form-tiny-padding-top, var(--form-tiny-padding-y, 2px)) var(--form-tiny-padding-x, 5px)
|
|
41
|
+
var(--form-tiny-padding-y, 2px);
|
|
28
42
|
}
|
|
29
43
|
|
|
30
44
|
/* Input */
|
|
31
45
|
|
|
32
46
|
.form_cnt.outline,
|
|
33
|
-
.form_el input,
|
|
34
|
-
|
|
35
|
-
|
|
47
|
+
.form_el input,
|
|
48
|
+
.form_el .form_select,
|
|
49
|
+
.form_el textarea,
|
|
50
|
+
.form_el .tx_virtualizer {
|
|
51
|
+
border: solid 1px var(--color-darker-light);
|
|
52
|
+
background-color: transparent;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.form_el .form_select {
|
|
56
|
+
outline: 2px solid transparent;
|
|
36
57
|
}
|
|
37
58
|
|
|
38
59
|
/* Invisible input (use this to make inputs clickable with separate render component) */
|
|
39
60
|
|
|
40
61
|
.invis_input {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
62
|
+
border: none;
|
|
63
|
+
padding: 0;
|
|
64
|
+
margin: 0;
|
|
65
|
+
color: rgba(0, 0, 0, 0);
|
|
66
|
+
background-color: rgba(0, 0, 0, 0);
|
|
45
67
|
}
|
|
46
68
|
|
|
47
|
-
.invis_input:focus,
|
|
48
|
-
|
|
69
|
+
.invis_input:focus,
|
|
70
|
+
.stock:focus {
|
|
71
|
+
outline: none;
|
|
49
72
|
}
|
|
50
73
|
|
|
51
74
|
.invis_input::selection {
|
|
52
|
-
|
|
53
|
-
|
|
75
|
+
background: rgba(0, 0, 0, 0);
|
|
76
|
+
color: rgba(0, 0, 0, 0);
|
|
54
77
|
}
|
|
55
78
|
|
|
56
79
|
input.invis_input[type="number"] {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
80
|
+
appearance: none;
|
|
81
|
+
-webkit-appearance: none;
|
|
82
|
+
-moz-appearance: textfield;
|
|
60
83
|
}
|
|
61
84
|
|
|
62
85
|
input.invis_input::-webkit-outer-spin-button,
|
|
63
86
|
input.invis_input::-webkit-inner-spin-button {
|
|
64
|
-
|
|
65
|
-
|
|
87
|
+
-webkit-appearance: none;
|
|
88
|
+
margin: 0;
|
|
66
89
|
}
|
|
67
90
|
|
|
68
|
-
/*
|
|
91
|
+
/* Number input with native increment and decrement controls hidden */
|
|
69
92
|
|
|
70
|
-
input.
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
background-color: rgba(var(--color-error-faded), .1) !important;
|
|
93
|
+
input.no_number_spinner[type="number"] {
|
|
94
|
+
appearance: textfield;
|
|
95
|
+
-moz-appearance: textfield;
|
|
74
96
|
}
|
|
75
|
-
|
|
76
|
-
.
|
|
77
|
-
|
|
97
|
+
|
|
98
|
+
input.no_number_spinner::-webkit-outer-spin-button,
|
|
99
|
+
input.no_number_spinner::-webkit-inner-spin-button {
|
|
100
|
+
-webkit-appearance: none;
|
|
101
|
+
margin: 0;
|
|
78
102
|
}
|
|
79
103
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
box-shadow: 0 0 40px rgba(var(--color-main),.1);
|
|
104
|
+
/* Input width follows its current value within the available container width */
|
|
105
|
+
|
|
106
|
+
.input_field_sizing {
|
|
107
|
+
field-sizing: content;
|
|
108
|
+
min-width: 1ch;
|
|
109
|
+
max-width: 100%;
|
|
87
110
|
}
|
|
88
111
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
.
|
|
92
|
-
|
|
112
|
+
/* Outlined input container shrink-wraps its field and trailing content */
|
|
113
|
+
|
|
114
|
+
.input_with_postfix {
|
|
115
|
+
display: inline-flex;
|
|
116
|
+
width: fit-content;
|
|
117
|
+
max-width: 100%;
|
|
93
118
|
}
|
|
94
119
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
.
|
|
98
|
-
|
|
99
|
-
|
|
120
|
+
/* Native checkbox rendered as a toggle switch */
|
|
121
|
+
|
|
122
|
+
input.toggle_switch {
|
|
123
|
+
appearance: none;
|
|
124
|
+
-webkit-appearance: none;
|
|
125
|
+
box-sizing: border-box;
|
|
126
|
+
border: 0;
|
|
127
|
+
padding: 0;
|
|
128
|
+
width: calc(var(--toggle-switch-height) * 1.75);
|
|
129
|
+
height: var(--toggle-switch-height);
|
|
130
|
+
cursor: pointer;
|
|
131
|
+
transition:
|
|
132
|
+
background-color 0.15s ease-in-out,
|
|
133
|
+
outline-color 0.125s ease-in-out;
|
|
100
134
|
}
|
|
101
135
|
|
|
102
|
-
input.
|
|
103
|
-
|
|
136
|
+
input.toggle_switch.av_xxxs {
|
|
137
|
+
--toggle-switch-height: calc(1.5rem * 0.7142857);
|
|
138
|
+
}
|
|
139
|
+
input.toggle_switch.av_xs {
|
|
140
|
+
--toggle-switch-height: calc(var(--av-xsmall) * 0.7142857);
|
|
141
|
+
}
|
|
142
|
+
input.toggle_switch.av_sm {
|
|
143
|
+
--toggle-switch-height: calc(var(--av-small) * 0.7142857);
|
|
144
|
+
}
|
|
145
|
+
input.toggle_switch.av_df {
|
|
146
|
+
--toggle-switch-height: calc(var(--av-default) * 0.7142857);
|
|
147
|
+
}
|
|
148
|
+
input.toggle_switch.av_md {
|
|
149
|
+
--toggle-switch-height: calc(var(--av-medium) * 0.7142857);
|
|
150
|
+
}
|
|
151
|
+
input.toggle_switch.av_lg {
|
|
152
|
+
--toggle-switch-height: calc(var(--av-large) * 0.7142857);
|
|
153
|
+
}
|
|
154
|
+
input.toggle_switch.av_xl {
|
|
155
|
+
--toggle-switch-height: calc(var(--av-xlarge) * 0.7142857);
|
|
104
156
|
}
|
|
105
157
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
} */
|
|
158
|
+
input.toggle_switch:not(:checked) {
|
|
159
|
+
background-color: rgba(var(--color-darker-rgb), 0.1);
|
|
160
|
+
}
|
|
110
161
|
|
|
111
|
-
|
|
162
|
+
input.toggle_switch:not(:checked):hover {
|
|
163
|
+
background-color: rgba(var(--color-darker-rgb), 0.15);
|
|
164
|
+
}
|
|
112
165
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
166
|
+
input.toggle_switch::after {
|
|
167
|
+
content: "";
|
|
168
|
+
position: absolute;
|
|
169
|
+
top: 10%;
|
|
170
|
+
left: 0;
|
|
171
|
+
height: 80%;
|
|
172
|
+
aspect-ratio: 1;
|
|
173
|
+
border-radius: 50%;
|
|
174
|
+
background-color: rgb(var(--color-bg));
|
|
175
|
+
box-shadow: 0 1px 3px rgba(var(--color-darker-rgb), 0.3);
|
|
176
|
+
transform: translateX(12.5%);
|
|
177
|
+
transition: transform 0.15s ease-in-out;
|
|
178
|
+
}
|
|
116
179
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}
|
|
180
|
+
input.toggle_switch:checked::after {
|
|
181
|
+
transform: translateX(106.25%);
|
|
182
|
+
}
|
|
120
183
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
184
|
+
input.toggle_switch:disabled {
|
|
185
|
+
cursor: not-allowed;
|
|
186
|
+
opacity: 0.5;
|
|
187
|
+
}
|
|
124
188
|
|
|
125
|
-
/* Input;
|
|
189
|
+
/* Input; focus, placeholder */
|
|
126
190
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
191
|
+
input.error,
|
|
192
|
+
textarea.error,
|
|
193
|
+
[contenteditable="true"].error,
|
|
194
|
+
.form_el.error .form_input,
|
|
195
|
+
.form_el .form_input.error {
|
|
196
|
+
border-color: rgb(var(--color-error)) !important;
|
|
197
|
+
background-color: rgba(var(--color-error-faded), 0.1) !important;
|
|
198
|
+
}
|
|
199
|
+
input.error:focus,
|
|
200
|
+
textarea.error:focus,
|
|
201
|
+
[contenteditable="true"].error:focus,
|
|
202
|
+
.form_el.error .form_input:focus,
|
|
203
|
+
.form_el .form_input.error:focus {
|
|
204
|
+
outline: 2px solid rgb(var(--color-error)) !important;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
input:not(.stock):not(.toggle_switch):focus,
|
|
208
|
+
.form_select:focus,
|
|
209
|
+
.form_select.active,
|
|
210
|
+
textarea:not(.stock):focus,
|
|
211
|
+
[contenteditable="true"]:not(.stock):focus,
|
|
212
|
+
.form_el input.focus:not(.toggle_switch),
|
|
213
|
+
.form_el.focused textarea.form_el,
|
|
214
|
+
.form_el.focused input:not(.toggle_switch),
|
|
215
|
+
.form_el.focused .form_select,
|
|
216
|
+
.form_el.focused textarea,
|
|
217
|
+
.form_el.error.focused .form_input,
|
|
218
|
+
.form_el.focused .form_input.error {
|
|
219
|
+
outline: 2px solid rgb(var(--color-main));
|
|
220
|
+
border-color: rgb(var(--color-main)) !important;
|
|
221
|
+
/* box-shadow: 0 0 20px rgba(0,0,0,.05); */
|
|
222
|
+
box-shadow: 0 0 40px rgba(var(--color-main), 0.1);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
input:is([type="checkbox"], [type="radio"]):focus:not(:focus-visible) {
|
|
226
|
+
outline: none;
|
|
227
|
+
box-shadow: none;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.form_input:not(.disabled):not(.error):hover,
|
|
231
|
+
.form_el:hover .form_input:not(.disabled):not(.error),
|
|
232
|
+
.form_el_hv:hover {
|
|
233
|
+
background-color: rgba(var(--color-main), 0.04);
|
|
234
|
+
}
|
|
130
235
|
|
|
131
|
-
|
|
236
|
+
input:not(.error):not(.disabled):not(.stock):not(.toggle_switch):focus,
|
|
237
|
+
.form_select:not(.error):not(.disabled):focus,
|
|
238
|
+
.form_select.active:not(.error):not(.disabled),
|
|
239
|
+
textarea:not(.error):not(.disabled):not(.stock):focus,
|
|
240
|
+
[contenteditable="true"]:not(.error):not(.disabled):not(.stock):focus,
|
|
241
|
+
.form_input:not(.disabled):not(.error):focus:hover,
|
|
242
|
+
.form_el.focused .form_input:not(.error):not(.disabled) {
|
|
243
|
+
/* background-color: rgba(var(--color-main), .075) !important; */
|
|
244
|
+
background-color: rgba(var(--color-main), 0.075);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
input.focus_bg:focus,
|
|
248
|
+
textarea.focus_bg:focus,
|
|
249
|
+
[contenteditable="true"].focus_bg:focus {
|
|
250
|
+
background-color: rgb(var(--color-bg)) !important;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.form_not_allowed input,
|
|
254
|
+
.form_not_allowed textarea,
|
|
255
|
+
.form_not_allowed [role="button"] {
|
|
132
256
|
cursor: not-allowed !important;
|
|
133
257
|
}
|
|
134
258
|
|
|
135
259
|
.form_el:not(.disabled):hover .form_el_r,
|
|
136
260
|
.form_el:not(.disabled).focused .form_el_r {
|
|
137
|
-
|
|
261
|
+
background: linear-gradient(to left, var(--color-main-bg) 50%, rgba(var(--color-main), 0)) !important;
|
|
138
262
|
}
|
|
139
263
|
|
|
140
|
-
[contenteditable=
|
|
141
|
-
|
|
142
|
-
|
|
264
|
+
[contenteditable="true"]:empty:before {
|
|
265
|
+
content: attr(data-placeholder);
|
|
266
|
+
color: var(--color-text-light);
|
|
143
267
|
}
|
|
144
268
|
|
|
145
|
-
.form_el.c input
|
|
146
|
-
|
|
269
|
+
.form_el.c input,
|
|
270
|
+
.form_el.c .form_select {
|
|
271
|
+
text-align: center;
|
|
147
272
|
}
|
|
148
273
|
|
|
149
274
|
/* Input preset: lighter */
|
|
150
275
|
|
|
151
|
-
.form_el.lighter .form_input,
|
|
152
|
-
|
|
276
|
+
.form_el.lighter .form_input,
|
|
277
|
+
.form_el.lighter .tx_virtualizer {
|
|
278
|
+
border: solid 1px var(--color-darker-light);
|
|
153
279
|
}
|
|
154
280
|
|
|
155
281
|
/* Input preset: subtle */
|
|
156
282
|
|
|
157
|
-
.form_el.subtle input
|
|
158
|
-
|
|
159
|
-
|
|
283
|
+
.form_el.subtle input,
|
|
284
|
+
.form_el.subtle .form_select {
|
|
285
|
+
width: 120px;
|
|
286
|
+
padding: 0.35rem;
|
|
160
287
|
}
|
|
161
288
|
|
|
162
289
|
/* Input preset; condensed */
|
|
163
290
|
|
|
164
291
|
.form_el.condensed {
|
|
165
|
-
|
|
292
|
+
margin-top: 0.9rem;
|
|
166
293
|
}
|
|
167
294
|
|
|
168
295
|
.form_el.condensed label {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
296
|
+
position: absolute;
|
|
297
|
+
z-index: 5;
|
|
298
|
+
top: -9px;
|
|
299
|
+
left: 9px;
|
|
300
|
+
padding: 0 1px !important;
|
|
301
|
+
font-size: var(--text-xxsmall);
|
|
302
|
+
background-color: rgb(var(--color-bg));
|
|
174
303
|
}
|
|
175
304
|
|
|
176
305
|
/* Textarea */
|
|
177
306
|
|
|
178
307
|
.form_el.fs textarea {
|
|
179
|
-
|
|
308
|
+
width: 100% !important;
|
|
180
309
|
}
|
|
181
310
|
|
|
182
311
|
.form_el .tx_virtualizer {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
312
|
+
position: absolute;
|
|
313
|
+
z-index: -1;
|
|
314
|
+
top: 0;
|
|
315
|
+
left: 0;
|
|
316
|
+
right: 0;
|
|
317
|
+
visibility: hidden;
|
|
318
|
+
/* Match native textarea wrapping, including indentation and unbroken URLs. */
|
|
319
|
+
white-space: pre-wrap;
|
|
320
|
+
overflow-wrap: break-word;
|
|
186
321
|
}
|
|
187
322
|
|
|
188
323
|
.form_el .tx_virtualizer:after {
|
|
189
|
-
|
|
190
|
-
|
|
324
|
+
/* This allows trailing empty line breaks to be calculated */
|
|
325
|
+
content: " ";
|
|
191
326
|
}
|
|
192
327
|
|
|
193
328
|
/* Label */
|
|
194
329
|
|
|
195
|
-
.form_el label,
|
|
196
|
-
|
|
330
|
+
.form_el label,
|
|
331
|
+
label.form_el {
|
|
332
|
+
color: var(--color-text-medium);
|
|
197
333
|
}
|
|
198
334
|
|
|
199
|
-
.form_el
|
|
200
|
-
|
|
335
|
+
.form_el.focused label,
|
|
336
|
+
.form_el:has(input:focus) label,
|
|
337
|
+
.form_el:has(.form_select:focus) label,
|
|
338
|
+
.form_el:has(.form_select.active) label {
|
|
339
|
+
color: var(--color-text-bold);
|
|
201
340
|
}
|
|
202
341
|
|
|
203
342
|
.form_el label .label_r .icon {
|
|
204
|
-
|
|
343
|
+
transform: translateY(1px);
|
|
205
344
|
}
|
|
206
345
|
|
|
207
346
|
/* Fieldset, radio group */
|
|
208
347
|
|
|
209
348
|
fieldset {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
349
|
+
padding: 0;
|
|
350
|
+
margin: 0;
|
|
351
|
+
border: none;
|
|
213
352
|
}
|
|
214
353
|
|
|
215
354
|
fieldset legend {
|
|
216
|
-
|
|
217
|
-
|
|
355
|
+
padding: 0 2px;
|
|
356
|
+
margin-left: -2px;
|
|
218
357
|
}
|
|
219
358
|
|
|
220
359
|
fieldset input[type="radio"] {
|
|
221
|
-
|
|
360
|
+
display: none;
|
|
222
361
|
}
|
|
223
362
|
|
|
224
363
|
/* Clickable button at right; use this for inputs */
|
|
225
364
|
|
|
226
365
|
.form_el.has_r .form_el_r {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
366
|
+
position: absolute;
|
|
367
|
+
top: 1px;
|
|
368
|
+
right: 1px;
|
|
369
|
+
bottom: 1px;
|
|
370
|
+
width: 3.5rem;
|
|
371
|
+
padding-left: 1.5rem;
|
|
372
|
+
background: linear-gradient(to left, rgba(var(--color-bg), 1) 50%, rgba(var(--color-bg), 0));
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.form_el.tiny.has_r .form_el_r {
|
|
376
|
+
width: 2.25rem;
|
|
377
|
+
padding-left: 0.15rem;
|
|
232
378
|
}
|
|
233
379
|
|
|
234
380
|
/* .active is for <PopOverButton /> active state, not ::active */
|
|
235
381
|
.active .form_el_r,
|
|
236
|
-
.focused .form_el_r,
|
|
237
|
-
|
|
382
|
+
.focused .form_el_r,
|
|
383
|
+
.form_el_r.btn:hover {
|
|
384
|
+
color: var(--color-text);
|
|
238
385
|
}
|
|
239
386
|
|
|
240
387
|
/* Preset; none */
|
|
241
388
|
|
|
242
|
-
.form_el.none input,
|
|
243
|
-
|
|
244
|
-
|
|
389
|
+
.form_el.none input,
|
|
390
|
+
.form_el.none .form_select,
|
|
391
|
+
.form_el.none textarea {
|
|
392
|
+
border: none;
|
|
393
|
+
background-color: transparent;
|
|
245
394
|
}
|
|
246
395
|
|
|
247
|
-
.form_el.none input:focus,
|
|
248
|
-
|
|
396
|
+
.form_el.none input:focus,
|
|
397
|
+
.form_el.none .form_select:focus,
|
|
398
|
+
.form_el.none .form_select.active,
|
|
399
|
+
.form_el.none textarea:focus {
|
|
400
|
+
box-shadow: none;
|
|
249
401
|
}
|
|
250
402
|
|
|
251
403
|
/* Preset: fill */
|
|
252
404
|
|
|
253
|
-
.form_el.fill input,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
405
|
+
.form_el.fill input,
|
|
406
|
+
.form_el.fill .form_select,
|
|
407
|
+
.form_el.fill textarea {
|
|
408
|
+
border: none;
|
|
409
|
+
background-color: rgb(var(--color-bg-alt));
|
|
410
|
+
/* border-radius: var(--radius-default); */
|
|
257
411
|
}
|
|
258
412
|
|
|
259
413
|
/* Preset: inside outline container */
|
|
260
414
|
|
|
261
415
|
.form_el.inside_outline {
|
|
262
|
-
|
|
263
|
-
|
|
416
|
+
/* This is the difference between common padding minus container padding: 1rem - .58 */
|
|
417
|
+
padding: 0 0.42rem;
|
|
264
418
|
}
|
|
265
419
|
|
|
266
|
-
.
|
|
267
|
-
|
|
268
|
-
|
|
420
|
+
.form_el.inside_outline input,
|
|
421
|
+
.form_el.inside_outline .form_select {
|
|
422
|
+
border: none;
|
|
423
|
+
border-radius: 0;
|
|
424
|
+
border-bottom: solid 1px var(--color-darker-light);
|
|
425
|
+
/* background-color: rgb(var(--color-bg-alt)); */
|
|
426
|
+
padding-top: 0;
|
|
427
|
+
padding-left: 0;
|
|
428
|
+
padding-right: 0;
|
|
429
|
+
margin-bottom: 0.05rem;
|
|
430
|
+
transform: translateY(-0.1rem);
|
|
269
431
|
}
|
|
270
432
|
|
|
271
|
-
.form_el.inside_outline input
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
padding-top: 0; padding-left: 0; padding-right: 0;
|
|
277
|
-
margin-bottom: .05rem;
|
|
278
|
-
transform: translateY(-.1rem);
|
|
433
|
+
.form_el.inside_outline input:focus,
|
|
434
|
+
.form_el.inside_outline .form_select:focus,
|
|
435
|
+
.form_el.inside_outline .form_select.active {
|
|
436
|
+
box-shadow: none;
|
|
437
|
+
border-bottom-color: var(--color-text-bold);
|
|
279
438
|
}
|
|
280
439
|
|
|
281
|
-
.form_el.inside_outline input
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.form_el.inside_outline.error input {
|
|
287
|
-
border-bottom-color: rgb(var(--color-error-active));
|
|
440
|
+
.form_el.inside_outline.error input,
|
|
441
|
+
.form_el.inside_outline.error .form_select {
|
|
442
|
+
border-bottom-color: rgb(var(--color-error-active));
|
|
288
443
|
}
|
|
289
444
|
|
|
290
445
|
.form_cnt.outline .form_el.inside_outline:last-child {
|
|
291
|
-
|
|
446
|
+
margin-bottom: 0.25rem;
|
|
292
447
|
}
|
|
293
448
|
|
|
294
449
|
/* Inline button at right of search input (for enter key prompt) */
|
|
295
450
|
|
|
296
451
|
.form_el_inline_btn {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
452
|
+
position: absolute;
|
|
453
|
+
top: 50%;
|
|
454
|
+
right: 0.55rem;
|
|
455
|
+
/* Can't use 1px transform depressed effect becuase of the absolute positioning */
|
|
456
|
+
transform: translateY(-50%) !important;
|
|
302
457
|
}
|
|
303
458
|
|
|
304
459
|
/* Full width button */
|
|
305
460
|
|
|
306
461
|
.btn.fw {
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
462
|
+
min-width: 70px;
|
|
463
|
+
height: 2.64em;
|
|
464
|
+
padding: 0 var(--rem-small);
|
|
465
|
+
/* border-bottom-width: 4px; */
|
|
466
|
+
/* background-color: rgb(var(--color-bg)); */
|
|
312
467
|
}
|
|
313
468
|
|
|
314
469
|
.btn.full {
|
|
315
|
-
|
|
470
|
+
width: 100%;
|
|
316
471
|
}
|
|
317
472
|
|
|
318
473
|
.btn.fw .bl {
|
|
319
|
-
|
|
474
|
+
width: 24px;
|
|
320
475
|
}
|
|
321
476
|
|
|
322
|
-
.btn.fw:hover:not(:disabled),
|
|
323
|
-
|
|
477
|
+
.btn.fw:hover:not(:disabled),
|
|
478
|
+
.btn.fw:active:not(:disabled) {
|
|
479
|
+
background-color: rgb(var(--color-bg-alt));
|
|
324
480
|
}
|
|
325
481
|
|
|
326
482
|
.btn.fw:active:not(:disabled) {
|
|
327
|
-
|
|
483
|
+
transform: translateY(1px);
|
|
328
484
|
}
|
|
329
485
|
|
|
330
486
|
/* Emphasize preset */
|
|
331
487
|
|
|
332
488
|
.btn.em {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
489
|
+
background-color: var(--color-solid);
|
|
490
|
+
border: solid 2px var(--color-text-bold);
|
|
491
|
+
box-shadow: 0 2px var(--color-text-bold);
|
|
492
|
+
/* box-shadow: 0 2px var(--color-text), 0 2px 4px rgba(0,0,0,.1); */
|
|
337
493
|
}
|
|
338
494
|
|
|
339
495
|
.btn.em:hover {
|
|
340
|
-
|
|
496
|
+
background-color: var(--color-solid-hover) !important;
|
|
341
497
|
}
|
|
342
498
|
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
499
|
+
/*.btn.em:active, .btn.em:disabled, .btn.em.disabled {*/
|
|
500
|
+
.btn.em:active:not(:disabled):not(.disabled),
|
|
501
|
+
.btn.em.loading:disabled,
|
|
502
|
+
.btn.em.loading.disabled {
|
|
503
|
+
transform: translateY(2px);
|
|
504
|
+
box-shadow: none;
|
|
346
505
|
}
|
|
347
506
|
|
|
348
507
|
.btn.em:active {
|
|
349
|
-
|
|
508
|
+
background-color: var(--color-solid-active) !important;
|
|
350
509
|
}
|
|
351
510
|
|
|
352
|
-
.btn.em:disabled,
|
|
353
|
-
|
|
511
|
+
.btn.em:disabled,
|
|
512
|
+
.btn.em.disabled {
|
|
513
|
+
color: var(--color-text-bold) !important;
|
|
514
|
+
background-color: var(--color-solid-hover) !important;
|
|
354
515
|
}
|
|
355
516
|
|
|
356
517
|
/* Opaque preset */
|
|
357
518
|
|
|
358
|
-
.btn.subtle
|
|
359
|
-
|
|
519
|
+
.btn.subtle {
|
|
520
|
+
background-color: rgba(0, 0, 0, 0.1);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.btn.bg {
|
|
524
|
+
background-color: rgb(var(--color-bg));
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
a.btn.subtle,
|
|
528
|
+
a.btn.bg,
|
|
529
|
+
a.btn.outline {
|
|
530
|
+
color: inherit;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.btn.subtle:disabled,
|
|
534
|
+
.btn.subtle.disabled {
|
|
535
|
+
background-color: rgba(0, 0, 0, 0.064);
|
|
536
|
+
/* color: var(--color-text-medium); */
|
|
537
|
+
color: rgba(0, 0, 0, 0.275);
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
.btn.bg:disabled,
|
|
541
|
+
.btn.bg.disabled {
|
|
542
|
+
background-color: rgb(var(--color-bg-fade));
|
|
543
|
+
/* color: var(--color-text-medium); */
|
|
544
|
+
color: rgba(0, 0, 0, 0.275);
|
|
360
545
|
}
|
|
361
546
|
|
|
362
|
-
|
|
363
|
-
|
|
547
|
+
.btn.subtle:not(:disabled):not(.disabled):hover {
|
|
548
|
+
background-color: rgba(0, 0, 0, 0.2);
|
|
364
549
|
}
|
|
365
550
|
|
|
366
|
-
.btn.
|
|
367
|
-
|
|
551
|
+
.btn.bg:not(:disabled):not(.disabled):hover {
|
|
552
|
+
background-color: rgb(var(--color-bg-alt)) !important;
|
|
368
553
|
}
|
|
369
554
|
|
|
370
|
-
.btn.subtle:not(:disabled):not(.disabled):
|
|
371
|
-
|
|
555
|
+
.btn.subtle:not(:disabled):not(.disabled):active {
|
|
556
|
+
background-color: rgba(0, 0, 0, 0.25);
|
|
372
557
|
}
|
|
373
558
|
|
|
374
|
-
.btn.
|
|
375
|
-
|
|
559
|
+
.btn.bg:not(:disabled):not(.disabled):active {
|
|
560
|
+
background-color: rgb(var(--color-bg-active)) !important;
|
|
376
561
|
}
|
|
377
562
|
|
|
378
563
|
/* Outline */
|
|
379
564
|
|
|
380
565
|
.btn.outline {
|
|
381
|
-
|
|
382
|
-
|
|
566
|
+
border: solid 2px var(--color-darker-light);
|
|
567
|
+
background-color: rgb(var(--color-bg-alt));
|
|
383
568
|
}
|
|
384
569
|
|
|
385
570
|
.btn.outline.bg {
|
|
386
|
-
|
|
571
|
+
background-color: rgb(var(--color-bg));
|
|
387
572
|
}
|
|
388
573
|
|
|
389
574
|
.btn.outline:not(:disabled):not(.disabled):hover {
|
|
390
|
-
|
|
575
|
+
background-color: rgb(var(--color-bg-active));
|
|
391
576
|
}
|
|
392
577
|
|
|
393
578
|
.btn.outline:not(:disabled):not(.disabled):active {
|
|
394
|
-
|
|
579
|
+
background-color: rgb(var(--color-bg-medium));
|
|
395
580
|
}
|
|
396
581
|
|
|
397
582
|
/* Subtle outline */
|
|
398
583
|
|
|
399
584
|
.btn.outline_subtle {
|
|
400
|
-
|
|
585
|
+
box-shadow: inset 0 0 0 2px var(--color-darker-light);
|
|
401
586
|
}
|
|
402
587
|
|
|
403
588
|
.btn.outline_subtle:not(:disabled):not(.disabled):hover {
|
|
404
|
-
|
|
589
|
+
background-color: var(--color-darker-soft);
|
|
405
590
|
}
|
|
406
591
|
|
|
407
592
|
/* Inline button */
|
|
408
593
|
|
|
409
594
|
.btn.il {
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
595
|
+
position: relative;
|
|
596
|
+
padding: 0.35rem 0.5rem;
|
|
597
|
+
border-radius: 4px;
|
|
413
598
|
}
|
|
414
599
|
|
|
415
600
|
/* Button sizes */
|
|
416
601
|
|
|
602
|
+
.btn.xs {
|
|
603
|
+
min-width: 48px;
|
|
604
|
+
padding: 0.3rem 0.4rem;
|
|
605
|
+
border-radius: var(--radius-small);
|
|
606
|
+
}
|
|
607
|
+
|
|
417
608
|
.btn.sm {
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
609
|
+
min-width: 52px;
|
|
610
|
+
padding: 0.35rem 0.45rem;
|
|
611
|
+
border-radius: var(--radius-small);
|
|
421
612
|
}
|
|
422
613
|
|
|
423
614
|
.btn.df {
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
615
|
+
min-width: 58px;
|
|
616
|
+
padding: 0.5rem 0.64rem;
|
|
617
|
+
border-radius: var(--radius-small);
|
|
427
618
|
}
|
|
428
619
|
|
|
429
620
|
.btn.md {
|
|
430
|
-
|
|
431
|
-
|
|
621
|
+
padding: 0.7rem 1.05rem 0.7rem;
|
|
622
|
+
border-radius: var(--radius-small-wrap);
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
.btn.md.ft_md,
|
|
626
|
+
.btn.md.ft_lg {
|
|
627
|
+
padding-bottom: 0.8rem;
|
|
432
628
|
}
|
|
433
629
|
|
|
434
630
|
.btn.lg {
|
|
435
|
-
|
|
436
|
-
|
|
631
|
+
padding: 0.9rem 1.2rem 0.9rem;
|
|
632
|
+
border-radius: var(--radius-small-wrap);
|
|
437
633
|
}
|
|
438
634
|
|
|
439
635
|
/* Side input button */
|
|
440
636
|
|
|
441
637
|
.form_input_btn {
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
638
|
+
align-self: stretch;
|
|
639
|
+
padding: 0 0.25rem;
|
|
640
|
+
margin-left: 0.25rem;
|
|
641
|
+
margin-right: 0.25rem;
|
|
446
642
|
}
|
|
447
643
|
|
|
448
644
|
.form_input_btn.r {
|
|
449
|
-
|
|
645
|
+
margin-right: -0.5rem;
|
|
450
646
|
}
|
|
451
647
|
|
|
452
648
|
/* Alert count */
|
|
453
649
|
|
|
454
650
|
.alert_ct {
|
|
455
|
-
|
|
456
|
-
|
|
651
|
+
min-width: 18px;
|
|
652
|
+
height: 18px;
|
|
653
|
+
padding: 0 4px;
|
|
457
654
|
}
|
|
458
655
|
|
|
459
656
|
.form_input_btn .alert_ct {
|
|
460
|
-
|
|
461
|
-
|
|
657
|
+
position: absolute;
|
|
658
|
+
top: -2px;
|
|
659
|
+
right: -4px;
|
|
462
660
|
}
|
|
463
661
|
|
|
464
662
|
.form_el .alert_ct {
|
|
465
|
-
|
|
466
|
-
|
|
663
|
+
position: absolute;
|
|
664
|
+
top: -4px;
|
|
665
|
+
right: -4px;
|
|
467
666
|
}
|
|
468
667
|
|
|
469
668
|
/* Inline-block label (NOTE: must _not_ use vertical padding because this will affect line height) */
|
|
470
669
|
|
|
471
670
|
.ib_label {
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
671
|
+
position: relative;
|
|
672
|
+
padding: 0 5px;
|
|
673
|
+
margin: 0 2px 0 3px;
|
|
674
|
+
line-height: 1;
|
|
675
|
+
white-space: nowrap;
|
|
477
676
|
}
|
|
478
677
|
|
|
479
678
|
.ib_label .icon {
|
|
480
|
-
|
|
481
|
-
|
|
679
|
+
font-size: 1rem;
|
|
680
|
+
margin: -4px -2px;
|
|
482
681
|
}
|
|
483
682
|
|
|
484
683
|
.ib_label .indicator {
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
684
|
+
display: block;
|
|
685
|
+
margin-left: 2px;
|
|
686
|
+
margin-right: 5px;
|
|
488
687
|
}
|
|
489
688
|
|
|
490
689
|
.ib_label:first-child {
|
|
491
|
-
|
|
690
|
+
margin-left: 0;
|
|
492
691
|
}
|
|
493
692
|
|
|
494
693
|
.ib_label:last-child {
|
|
495
|
-
|
|
694
|
+
margin-right: 0;
|
|
496
695
|
}
|
|
497
696
|
|
|
498
|
-
.ib_label:before,
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
697
|
+
.ib_label:before,
|
|
698
|
+
.btn.il:before {
|
|
699
|
+
content: " ";
|
|
700
|
+
position: absolute;
|
|
701
|
+
top: 50%;
|
|
702
|
+
left: 0;
|
|
703
|
+
right: 0;
|
|
704
|
+
height: 1.6rem;
|
|
705
|
+
transform: translateY(-0.85rem);
|
|
706
|
+
border-radius: 5px;
|
|
505
707
|
}
|
|
506
708
|
|
|
507
709
|
.ib_label.outline:before {
|
|
508
|
-
|
|
710
|
+
border: solid 1px var(--color-darker-light);
|
|
509
711
|
}
|
|
510
712
|
|
|
511
713
|
.ib_label.outline.bg_bf:before {
|
|
512
|
-
|
|
714
|
+
border-color: var(--color-darker-medium);
|
|
513
715
|
}
|
|
514
716
|
|
|
515
717
|
/* Color indicators */
|
|
516
718
|
|
|
517
|
-
.ib_label .indicator,
|
|
518
|
-
|
|
519
|
-
|
|
719
|
+
.ib_label .indicator,
|
|
720
|
+
.color_indicator {
|
|
721
|
+
width: 10px;
|
|
722
|
+
/*
|
|
520
723
|
height: 1em;
|
|
521
724
|
14px is 1em of .ft_xs. I wanted it to be pixels so .ft_sm and .ft_xs has the same indicator height.
|
|
522
725
|
*/
|
|
523
|
-
|
|
524
|
-
|
|
726
|
+
height: 14px;
|
|
727
|
+
border-radius: 3px;
|
|
525
728
|
}
|