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