@dialpad/dialtone 6.20.2 → 6.22.0
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/CHANGELOG.md +28 -0
- package/lib/build/less/components/badge.less +3 -1
- package/lib/build/less/components/button.less +55 -20
- package/lib/build/less/components/input.less +31 -33
- package/lib/build/less/components/popover.less +0 -5
- package/lib/dist/css/dialtone.css +84 -46
- package/lib/dist/css/dialtone.min.css +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
# [6.22.0](https://github.com/dialpad/dialtone/compare/v6.21.0...v6.22.0) (2022-04-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* badge alignment (min-width and vertical alignment) ([#566](https://github.com/dialpad/dialtone/issues/566)) ([946186c](https://github.com/dialpad/dialtone/commit/946186cc7e6a38c5d5e8986acd284cffe9b100ce))
|
|
7
|
+
* typo in spacing ([#565](https://github.com/dialpad/dialtone/issues/565)) ([729be23](https://github.com/dialpad/dialtone/commit/729be23e5d5c197e3c868b2ae5e65aecb25442b6))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **button:** add active styles ([#564](https://github.com/dialpad/dialtone/issues/564)) ([1d4a962](https://github.com/dialpad/dialtone/commit/1d4a962833e2031daf9f9fa1a23092b244fbc34e))
|
|
13
|
+
* **button:** add d-btn--active class ([#567](https://github.com/dialpad/dialtone/issues/567)) ([2a89e25](https://github.com/dialpad/dialtone/commit/2a89e253ddd7f7c15d6de7af0ef13c293dba0a86))
|
|
14
|
+
|
|
15
|
+
# [6.21.0](https://github.com/dialpad/dialtone/compare/v6.20.3...v6.21.0) (2022-04-04)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **input:** support different icon sizes ([#563](https://github.com/dialpad/dialtone/issues/563)) ([0ad3c02](https://github.com/dialpad/dialtone/commit/0ad3c02db72d586bc39883aa6476bd8676e5c893))
|
|
21
|
+
|
|
22
|
+
## [6.20.3](https://github.com/dialpad/dialtone/compare/v6.20.2...v6.20.3) (2022-03-31)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* **popover:** remove d-popover__anchor--modal-opened class ([d62cde0](https://github.com/dialpad/dialtone/commit/d62cde09cb2827f8ccbde0f20c19edcdf6c1397f))
|
|
28
|
+
|
|
1
29
|
## [6.20.2](https://github.com/dialpad/dialtone/compare/v6.20.1...v6.20.2) (2022-03-29)
|
|
2
30
|
|
|
3
31
|
|
|
@@ -19,11 +19,13 @@
|
|
|
19
19
|
--badge--bgc: var(--black-050);
|
|
20
20
|
|
|
21
21
|
display: inline-block;
|
|
22
|
-
|
|
22
|
+
min-width: calc(var(--su6) + var(--su1));
|
|
23
|
+
padding: calc(var(--su6) / 4) var(--su6);
|
|
23
24
|
color: var(--badge--fc);
|
|
24
25
|
font-weight: bold;
|
|
25
26
|
font-size: var(--fs10);
|
|
26
27
|
line-height: var(--lh6);
|
|
28
|
+
text-align: center;
|
|
27
29
|
text-transform: uppercase;
|
|
28
30
|
background-color: var(--badge--bgc);
|
|
29
31
|
border-radius: var(--su4);
|
|
@@ -51,13 +51,19 @@
|
|
|
51
51
|
|
|
52
52
|
// -- STATES
|
|
53
53
|
// ------------------------------------------------------------------------
|
|
54
|
+
&:hover {
|
|
55
|
+
--button--fc: var(--primary-color-hover);
|
|
56
|
+
--button--bgc: hsla(var(--primary-color-hsl) ~' / ' 3%);
|
|
57
|
+
}
|
|
54
58
|
|
|
55
59
|
&:active,
|
|
56
|
-
|
|
60
|
+
&.d-btn--active,
|
|
61
|
+
&.d-btn--active:active {
|
|
57
62
|
--button--fc: var(--primary-color-hover);
|
|
58
|
-
--button--bgc: hsla(var(--primary-color-hsl) ~' / '
|
|
63
|
+
--button--bgc: hsla(var(--primary-color-hsl) ~' / ' 9%);
|
|
59
64
|
}
|
|
60
65
|
|
|
66
|
+
|
|
61
67
|
&:focus-visible {
|
|
62
68
|
outline: none;
|
|
63
69
|
box-shadow: var(--bs-focus-ring);
|
|
@@ -213,11 +219,6 @@
|
|
|
213
219
|
padding: calc(var(--su8) + var(--su1));
|
|
214
220
|
transition-duration: 150ms;
|
|
215
221
|
|
|
216
|
-
&:hover {
|
|
217
|
-
--button--fc: var(--black-800);
|
|
218
|
-
--button--bgc: var(--black-100);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
222
|
&:focus-visible {
|
|
222
223
|
box-shadow: var(--bs-focus-ring-circle);
|
|
223
224
|
}
|
|
@@ -234,11 +235,6 @@
|
|
|
234
235
|
--button--bc: var(--black-700);
|
|
235
236
|
}
|
|
236
237
|
|
|
237
|
-
// &:active {
|
|
238
|
-
// border-color: hsla(var(--black-700-h) var(--black-700-s) var(--black-700-l) ~" / " 50%);
|
|
239
|
-
// background-color: hsla(var(--black-700-h) var(--black-700-s) var(--black-700-l) ~" / " 10%);
|
|
240
|
-
// }
|
|
241
|
-
|
|
242
238
|
// Adjust padding based on sizes
|
|
243
239
|
&.d-btn--xs {
|
|
244
240
|
padding: calc(var(--su8) - var(--su1));
|
|
@@ -278,8 +274,15 @@
|
|
|
278
274
|
--button--bgc: var(--primary-color);
|
|
279
275
|
|
|
280
276
|
&:hover {
|
|
281
|
-
|
|
282
|
-
|
|
277
|
+
--button--fc: var(--white);
|
|
278
|
+
--button--bgc: hsl(var(--primary-color-h), var(--primary-color-s), 65%);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
&:active,
|
|
282
|
+
&.d-btn--active,
|
|
283
|
+
&.d-btn--active:active {
|
|
284
|
+
--button--fc: var(--white);
|
|
285
|
+
--button--bgc: hsl(var(--primary-color-h), var(--primary-color-s), 42%);
|
|
283
286
|
}
|
|
284
287
|
}
|
|
285
288
|
|
|
@@ -288,9 +291,14 @@
|
|
|
288
291
|
.d-btn--muted {
|
|
289
292
|
--button--fc: var(--muted-color);
|
|
290
293
|
|
|
291
|
-
&:hover
|
|
294
|
+
&:hover,
|
|
295
|
+
&:active {
|
|
292
296
|
--button--fc: var(--muted-color-hover);
|
|
293
|
-
--button--bgc: hsla(var(--
|
|
297
|
+
--button--bgc: hsla(var(--black-800-hsl) ~' / ' 3%);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
&:active {
|
|
301
|
+
--button--bgc: hsla(var(--black-800-hsl) ~' / ' 9%);
|
|
294
302
|
}
|
|
295
303
|
|
|
296
304
|
&:focus-visible {
|
|
@@ -308,8 +316,15 @@
|
|
|
308
316
|
--button--fc: var(--error-color);
|
|
309
317
|
|
|
310
318
|
&:hover {
|
|
311
|
-
--button--bgc: hsla(var(--error-color-hsl) ~' / ' 10%);
|
|
312
319
|
--button--fc: var(--error-color-hover);
|
|
320
|
+
--button--bgc: hsla(var(--error-color-hsl) ~' / ' 6%);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
&:active,
|
|
324
|
+
&.d-btn--active,
|
|
325
|
+
&.d-btn--active:active {
|
|
326
|
+
--button--fc: var(--error-color-hover);
|
|
327
|
+
--button--bgc: hsla(var(--error-color-hsl) ~' / ' 20%);
|
|
313
328
|
}
|
|
314
329
|
|
|
315
330
|
&:focus-visible {
|
|
@@ -325,8 +340,14 @@
|
|
|
325
340
|
--button--bgc: var(--error-color);
|
|
326
341
|
|
|
327
342
|
&:hover {
|
|
343
|
+
--button--bgc: hsl(var(--red-500-h), var(--red-500-s), 40%);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
&:active,
|
|
347
|
+
&.d-btn--active,
|
|
348
|
+
&.d-btn--active:active {
|
|
328
349
|
--button--fc: var(--white);
|
|
329
|
-
--button--bgc: var(--
|
|
350
|
+
--button--bgc: hsl(var(--red-500-h), var(--red-500-s), 27%);
|
|
330
351
|
}
|
|
331
352
|
}
|
|
332
353
|
}
|
|
@@ -343,6 +364,13 @@
|
|
|
343
364
|
--button--bgc: hsla(var(--white-hsl) ~' / ' 15%);
|
|
344
365
|
}
|
|
345
366
|
|
|
367
|
+
&:active,
|
|
368
|
+
&.d-btn--active,
|
|
369
|
+
&.d-btn--active:active {
|
|
370
|
+
--button--fc: var(--white);
|
|
371
|
+
--button--bgc: hsla(var(--white-hsl) ~' / ' 30%);
|
|
372
|
+
}
|
|
373
|
+
|
|
346
374
|
&:focus-visible {
|
|
347
375
|
box-shadow: var(--bs-focus-ring-inverted);
|
|
348
376
|
}
|
|
@@ -355,11 +383,18 @@
|
|
|
355
383
|
// -- PRIMARY
|
|
356
384
|
&.d-btn--primary {
|
|
357
385
|
--button--fc: var(--primary-color);
|
|
358
|
-
--button--bgc: var(--
|
|
386
|
+
--button--bgc: hsl(var(--purple-100-h), var(--purple-100-s), 100%);
|
|
359
387
|
|
|
360
388
|
&:hover {
|
|
361
389
|
--button--fc: var(--primary-color-hover);
|
|
362
|
-
--button--bgc:
|
|
390
|
+
--button--bgc: hsl(var(--purple-100-h), var(--purple-100-s), 94%);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
&:active,
|
|
394
|
+
&.d-btn--active,
|
|
395
|
+
&.d-btn--active:active {
|
|
396
|
+
--button--fc: var(--primary-color-hover);
|
|
397
|
+
--button--bgc: hsl(var(--purple-100-h), var(--purple-100-s), 91%);
|
|
363
398
|
}
|
|
364
399
|
}
|
|
365
400
|
}
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
|
|
113
113
|
// $$ SIZES
|
|
114
114
|
// ----------------------------------------------------------------------------
|
|
115
|
-
.d-input--xs {
|
|
115
|
+
.d-input.d-input--xs {
|
|
116
116
|
.input-button-xs();
|
|
117
117
|
|
|
118
118
|
&.d-input-icon--right {
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
.d-input--sm {
|
|
127
|
+
.d-input.d-input--sm {
|
|
128
128
|
.input-button-sm();
|
|
129
129
|
|
|
130
130
|
&.d-input-icon--right {
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
.d-input--lg {
|
|
139
|
+
.d-input.d-input--lg {
|
|
140
140
|
.input-button-lg();
|
|
141
141
|
|
|
142
142
|
&.d-input-icon--right {
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
.d-input--xl {
|
|
151
|
+
.d-input.d-input--xl {
|
|
152
152
|
.input-button-xl();
|
|
153
153
|
|
|
154
154
|
&.d-input-icon--right {
|
|
@@ -268,14 +268,11 @@
|
|
|
268
268
|
--input-icon-size: @icon16;
|
|
269
269
|
|
|
270
270
|
position: absolute;
|
|
271
|
-
top: 0;
|
|
272
271
|
z-index: var(--zi-base1);
|
|
273
272
|
display: inline-flex;
|
|
274
273
|
align-items: center;
|
|
275
|
-
|
|
276
|
-
height: var(--input-icon-size);
|
|
274
|
+
height: 3.6rem;
|
|
277
275
|
margin: 0;
|
|
278
|
-
margin-top: 1rem;
|
|
279
276
|
line-height: 0;
|
|
280
277
|
|
|
281
278
|
svg {
|
|
@@ -285,39 +282,34 @@
|
|
|
285
282
|
|
|
286
283
|
&.d-input-icon--left {
|
|
287
284
|
left: var(--su8);
|
|
285
|
+
// Update padding for d-input if d-input-icon--left is present
|
|
286
|
+
& ~ .d-input,
|
|
287
|
+
& ~ .d-textarea {
|
|
288
|
+
padding-left: @inputs-icon-spacing;
|
|
289
|
+
}
|
|
288
290
|
}
|
|
289
291
|
|
|
290
292
|
&.d-input-icon--right {
|
|
291
293
|
right: var(--su8);
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
294
|
|
|
295
|
-
//
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
& ~ .d-input,
|
|
300
|
-
& ~ .d-textarea {
|
|
301
|
-
padding-left: @inputs-icon-spacing;
|
|
295
|
+
// Update padding for d-input if d-input-icon--right is present
|
|
296
|
+
& ~ .d-input {
|
|
297
|
+
padding-right: @inputs-icon-spacing;
|
|
298
|
+
}
|
|
302
299
|
}
|
|
303
300
|
}
|
|
304
301
|
|
|
305
|
-
|
|
306
|
-
// be used instead of this.
|
|
307
|
-
.d-input-icon--right {
|
|
308
|
-
// Update padding for d-input if d-input-icon--right is present
|
|
309
|
-
& ~ .d-input {
|
|
310
|
-
padding-right: @inputs-icon-spacing;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
302
|
+
|
|
313
303
|
|
|
314
304
|
// $$ SIZES
|
|
315
305
|
// ----------------------------------------------------------------------------
|
|
306
|
+
.d-input-icon.d-input--xs {
|
|
307
|
+
height: 2.8rem;
|
|
308
|
+
}
|
|
309
|
+
|
|
316
310
|
.d-input-icon--xs {
|
|
317
311
|
--input-icon-size: @icon12;
|
|
318
312
|
|
|
319
|
-
margin-top: 0.8rem;
|
|
320
|
-
|
|
321
313
|
// For backwards compatibility purposes only.
|
|
322
314
|
// Update padding for d-input, d-textarea if d-input-icon--left is present
|
|
323
315
|
&.d-input-icon--left ~ .d-input,
|
|
@@ -332,11 +324,13 @@
|
|
|
332
324
|
}
|
|
333
325
|
}
|
|
334
326
|
|
|
327
|
+
.d-input-icon.d-input--sm {
|
|
328
|
+
height: 3.2rem;
|
|
329
|
+
}
|
|
330
|
+
|
|
335
331
|
.d-input-icon--sm {
|
|
336
332
|
--input-icon-size: @icon14;
|
|
337
333
|
|
|
338
|
-
margin-top: 0.9rem;
|
|
339
|
-
|
|
340
334
|
// For backwards compatibility purposes only.
|
|
341
335
|
// Update padding for d-input, d-textarea if d-input-icon--left is present
|
|
342
336
|
&.d-input-icon--left ~ .d-input,
|
|
@@ -351,11 +345,13 @@
|
|
|
351
345
|
}
|
|
352
346
|
}
|
|
353
347
|
|
|
348
|
+
.d-input-icon.d-input--lg {
|
|
349
|
+
height: 4.8rem;
|
|
350
|
+
}
|
|
351
|
+
|
|
354
352
|
.d-input-icon--lg {
|
|
355
353
|
--input-icon-size: @icon20;
|
|
356
354
|
|
|
357
|
-
margin-top: 1.4rem;
|
|
358
|
-
|
|
359
355
|
// For backwards compatibility purposes only.
|
|
360
356
|
// Update padding for d-input, d-textarea if d-input-icon--left is present
|
|
361
357
|
&.d-input-icon--left ~ .d-input,
|
|
@@ -370,11 +366,13 @@
|
|
|
370
366
|
}
|
|
371
367
|
}
|
|
372
368
|
|
|
369
|
+
.d-input-icon.d-input--xl {
|
|
370
|
+
height: 5.6rem;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
373
|
.d-input-icon--xl {
|
|
374
374
|
--input-icon-size: @icon24;
|
|
375
375
|
|
|
376
|
-
margin-top: 1.6rem;
|
|
377
|
-
|
|
378
376
|
// For backwards compatibility purposes only.
|
|
379
377
|
// Update padding for d-input, d-textarea if d-input-icon--left is present
|
|
380
378
|
&.d-input-icon--left ~ .d-input,
|
|
@@ -41,11 +41,6 @@
|
|
|
41
41
|
z-index: var(--zi-modal-element);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
// to be set on the anchor container whenever the modal dialog is opened.
|
|
45
|
-
.d-popover__anchor--modal-opened * {
|
|
46
|
-
z-index: 650;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
44
|
// $$ DIALOG CONTENT
|
|
50
45
|
// ----------------------------------------------------------------------------
|
|
51
46
|
.d-popover__content {
|
|
@@ -480,11 +480,13 @@ body {
|
|
|
480
480
|
--badge--fc: var(--fc-dark);
|
|
481
481
|
--badge--bgc: var(--black-050);
|
|
482
482
|
display: inline-block;
|
|
483
|
-
|
|
483
|
+
min-width: calc(var(--su6) + var(--su1));
|
|
484
|
+
padding: calc(var(--su6) / 4) var(--su6);
|
|
484
485
|
color: var(--badge--fc);
|
|
485
486
|
font-weight: bold;
|
|
486
487
|
font-size: var(--fs10);
|
|
487
488
|
line-height: var(--lh6);
|
|
489
|
+
text-align: center;
|
|
488
490
|
text-transform: uppercase;
|
|
489
491
|
background-color: var(--badge--bgc);
|
|
490
492
|
border-radius: var(--su4);
|
|
@@ -690,10 +692,15 @@ body {
|
|
|
690
692
|
user-select: none;
|
|
691
693
|
fill: currentColor;
|
|
692
694
|
}
|
|
693
|
-
.d-btn:active,
|
|
694
695
|
.d-btn:hover {
|
|
695
696
|
--button--fc: var(--primary-color-hover);
|
|
696
|
-
--button--bgc: hsla(var(--primary-color-hsl) /
|
|
697
|
+
--button--bgc: hsla(var(--primary-color-hsl) / 3%);
|
|
698
|
+
}
|
|
699
|
+
.d-btn:active,
|
|
700
|
+
.d-btn.d-btn--active,
|
|
701
|
+
.d-btn.d-btn--active:active {
|
|
702
|
+
--button--fc: var(--primary-color-hover);
|
|
703
|
+
--button--bgc: hsla(var(--primary-color-hsl) / 9%);
|
|
697
704
|
}
|
|
698
705
|
.d-btn.focus-visible {
|
|
699
706
|
outline: none;
|
|
@@ -806,10 +813,6 @@ body {
|
|
|
806
813
|
padding: calc(var(--su8) + var(--su1));
|
|
807
814
|
transition-duration: 150ms;
|
|
808
815
|
}
|
|
809
|
-
.d-btn--circle:hover {
|
|
810
|
-
--button--fc: var(--black-800);
|
|
811
|
-
--button--bgc: var(--black-100);
|
|
812
|
-
}
|
|
813
816
|
.d-btn--circle.focus-visible {
|
|
814
817
|
box-shadow: var(--bs-focus-ring-circle);
|
|
815
818
|
}
|
|
@@ -850,14 +853,24 @@ body {
|
|
|
850
853
|
}
|
|
851
854
|
.d-btn--primary:hover {
|
|
852
855
|
--button--fc: var(--white);
|
|
853
|
-
--button--bgc: var(--primary-color-
|
|
856
|
+
--button--bgc: hsl(var(--primary-color-h), var(--primary-color-s), 65%);
|
|
857
|
+
}
|
|
858
|
+
.d-btn--primary:active,
|
|
859
|
+
.d-btn--primary.d-btn--active,
|
|
860
|
+
.d-btn--primary.d-btn--active:active {
|
|
861
|
+
--button--fc: var(--white);
|
|
862
|
+
--button--bgc: hsl(var(--primary-color-h), var(--primary-color-s), 42%);
|
|
854
863
|
}
|
|
855
864
|
.d-btn--muted {
|
|
856
865
|
--button--fc: var(--muted-color);
|
|
857
866
|
}
|
|
858
|
-
.d-btn--muted:hover
|
|
867
|
+
.d-btn--muted:hover,
|
|
868
|
+
.d-btn--muted:active {
|
|
859
869
|
--button--fc: var(--muted-color-hover);
|
|
860
|
-
--button--bgc: hsla(var(--
|
|
870
|
+
--button--bgc: hsla(var(--black-800-hsl) / 3%);
|
|
871
|
+
}
|
|
872
|
+
.d-btn--muted:active {
|
|
873
|
+
--button--bgc: hsla(var(--black-800-hsl) / 9%);
|
|
861
874
|
}
|
|
862
875
|
.d-btn--muted.focus-visible {
|
|
863
876
|
box-shadow: var(--bs-focus-ring-muted);
|
|
@@ -872,8 +885,14 @@ body {
|
|
|
872
885
|
--button--fc: var(--error-color);
|
|
873
886
|
}
|
|
874
887
|
.d-btn--danger:hover {
|
|
875
|
-
--button--bgc: hsla(var(--error-color-hsl) / 10%);
|
|
876
888
|
--button--fc: var(--error-color-hover);
|
|
889
|
+
--button--bgc: hsla(var(--error-color-hsl) / 6%);
|
|
890
|
+
}
|
|
891
|
+
.d-btn--danger:active,
|
|
892
|
+
.d-btn--danger.d-btn--active,
|
|
893
|
+
.d-btn--danger.d-btn--active:active {
|
|
894
|
+
--button--fc: var(--error-color-hover);
|
|
895
|
+
--button--bgc: hsla(var(--error-color-hsl) / 20%);
|
|
877
896
|
}
|
|
878
897
|
.d-btn--danger.focus-visible {
|
|
879
898
|
box-shadow: var(--bs-focus-ring-error);
|
|
@@ -889,8 +908,13 @@ body {
|
|
|
889
908
|
--button--bgc: var(--error-color);
|
|
890
909
|
}
|
|
891
910
|
.d-btn--danger.d-btn--primary:hover {
|
|
911
|
+
--button--bgc: hsl(var(--red-500-h), var(--red-500-s), 40%);
|
|
912
|
+
}
|
|
913
|
+
.d-btn--danger.d-btn--primary:active,
|
|
914
|
+
.d-btn--danger.d-btn--primary.d-btn--active,
|
|
915
|
+
.d-btn--danger.d-btn--primary.d-btn--active:active {
|
|
892
916
|
--button--fc: var(--white);
|
|
893
|
-
--button--bgc: var(--
|
|
917
|
+
--button--bgc: hsl(var(--red-500-h), var(--red-500-s), 27%);
|
|
894
918
|
}
|
|
895
919
|
.d-btn--inverted {
|
|
896
920
|
--button--fc: var(--white);
|
|
@@ -900,6 +924,12 @@ body {
|
|
|
900
924
|
--button--fc: var(--white);
|
|
901
925
|
--button--bgc: hsla(var(--white-hsl) / 15%);
|
|
902
926
|
}
|
|
927
|
+
.d-btn--inverted:active,
|
|
928
|
+
.d-btn--inverted.d-btn--active,
|
|
929
|
+
.d-btn--inverted.d-btn--active:active {
|
|
930
|
+
--button--fc: var(--white);
|
|
931
|
+
--button--bgc: hsla(var(--white-hsl) / 30%);
|
|
932
|
+
}
|
|
903
933
|
.d-btn--inverted.focus-visible {
|
|
904
934
|
box-shadow: var(--bs-focus-ring-inverted);
|
|
905
935
|
}
|
|
@@ -911,11 +941,17 @@ body {
|
|
|
911
941
|
}
|
|
912
942
|
.d-btn--inverted.d-btn--primary {
|
|
913
943
|
--button--fc: var(--primary-color);
|
|
914
|
-
--button--bgc: var(--
|
|
944
|
+
--button--bgc: hsl(var(--purple-100-h), var(--purple-100-s), 100%);
|
|
915
945
|
}
|
|
916
946
|
.d-btn--inverted.d-btn--primary:hover {
|
|
917
947
|
--button--fc: var(--primary-color-hover);
|
|
918
|
-
--button--bgc:
|
|
948
|
+
--button--bgc: hsl(var(--purple-100-h), var(--purple-100-s), 94%);
|
|
949
|
+
}
|
|
950
|
+
.d-btn--inverted.d-btn--primary:active,
|
|
951
|
+
.d-btn--inverted.d-btn--primary.d-btn--active,
|
|
952
|
+
.d-btn--inverted.d-btn--primary.d-btn--active:active {
|
|
953
|
+
--button--fc: var(--primary-color-hover);
|
|
954
|
+
--button--bgc: hsl(var(--purple-100-h), var(--purple-100-s), 91%);
|
|
919
955
|
}
|
|
920
956
|
.d-btn--icon-only {
|
|
921
957
|
padding: calc(var(--su8) + var(--su1));
|
|
@@ -1184,64 +1220,64 @@ legend .d-label {
|
|
|
1184
1220
|
.d-input__wrapper {
|
|
1185
1221
|
position: relative;
|
|
1186
1222
|
}
|
|
1187
|
-
.d-input--xs {
|
|
1223
|
+
.d-input.d-input--xs {
|
|
1188
1224
|
padding-top: 0.5rem;
|
|
1189
1225
|
padding-bottom: 0.5rem;
|
|
1190
1226
|
font-size: var(--fs12);
|
|
1191
1227
|
}
|
|
1192
|
-
.d-input--xs .d-btn__icon {
|
|
1228
|
+
.d-input.d-input--xs .d-btn__icon {
|
|
1193
1229
|
width: 1.4rem;
|
|
1194
1230
|
height: 1.4rem;
|
|
1195
1231
|
}
|
|
1196
|
-
.d-input--xs.d-input-icon--right {
|
|
1232
|
+
.d-input.d-input--xs.d-input-icon--right {
|
|
1197
1233
|
padding-right: calc(var(--su4) + 1.2rem + var(--su8));
|
|
1198
1234
|
}
|
|
1199
|
-
.d-input--xs.d-input-icon--left {
|
|
1235
|
+
.d-input.d-input--xs.d-input-icon--left {
|
|
1200
1236
|
padding-left: calc(var(--su4) + 1.2rem + var(--su8));
|
|
1201
1237
|
}
|
|
1202
|
-
.d-input--sm {
|
|
1238
|
+
.d-input.d-input--sm {
|
|
1203
1239
|
padding-top: var(--su6);
|
|
1204
1240
|
padding-bottom: var(--su6);
|
|
1205
1241
|
font-size: var(--fs14);
|
|
1206
1242
|
}
|
|
1207
|
-
.d-input--sm .d-btn__icon {
|
|
1243
|
+
.d-input.d-input--sm .d-btn__icon {
|
|
1208
1244
|
width: 1.6rem;
|
|
1209
1245
|
height: 1.6rem;
|
|
1210
1246
|
}
|
|
1211
|
-
.d-input--sm.d-input-icon--right {
|
|
1247
|
+
.d-input.d-input--sm.d-input-icon--right {
|
|
1212
1248
|
padding-right: calc(var(--su4) + 1.4rem + var(--su8));
|
|
1213
1249
|
}
|
|
1214
|
-
.d-input--sm.d-input-icon--left {
|
|
1250
|
+
.d-input.d-input--sm.d-input-icon--left {
|
|
1215
1251
|
padding-left: calc(var(--su4) + 1.4rem + var(--su8));
|
|
1216
1252
|
}
|
|
1217
|
-
.d-input--lg {
|
|
1253
|
+
.d-input.d-input--lg {
|
|
1218
1254
|
padding-top: 1.1rem;
|
|
1219
1255
|
padding-bottom: 1.1rem;
|
|
1220
1256
|
font-size: var(--fs20);
|
|
1221
1257
|
}
|
|
1222
|
-
.d-input--lg .d-btn__icon {
|
|
1258
|
+
.d-input.d-input--lg .d-btn__icon {
|
|
1223
1259
|
width: 2rem;
|
|
1224
1260
|
height: 2rem;
|
|
1225
1261
|
}
|
|
1226
|
-
.d-input--lg.d-input-icon--right {
|
|
1262
|
+
.d-input.d-input--lg.d-input-icon--right {
|
|
1227
1263
|
padding-right: calc(var(--su4) + 2rem + var(--su8));
|
|
1228
1264
|
}
|
|
1229
|
-
.d-input--lg.d-input-icon--left {
|
|
1265
|
+
.d-input.d-input--lg.d-input-icon--left {
|
|
1230
1266
|
padding-left: calc(var(--su4) + 2rem + var(--su8));
|
|
1231
1267
|
}
|
|
1232
|
-
.d-input--xl {
|
|
1268
|
+
.d-input.d-input--xl {
|
|
1233
1269
|
padding-top: 1.3rem;
|
|
1234
1270
|
padding-bottom: 1.3rem;
|
|
1235
1271
|
font-size: var(--fs24);
|
|
1236
1272
|
}
|
|
1237
|
-
.d-input--xl .d-btn__icon {
|
|
1273
|
+
.d-input.d-input--xl .d-btn__icon {
|
|
1238
1274
|
width: 2.4rem;
|
|
1239
1275
|
height: 2.4rem;
|
|
1240
1276
|
}
|
|
1241
|
-
.d-input--xl.d-input-icon--right {
|
|
1277
|
+
.d-input.d-input--xl.d-input-icon--right {
|
|
1242
1278
|
padding-right: calc(var(--su4) + 2.4rem + var(--su8));
|
|
1243
1279
|
}
|
|
1244
|
-
.d-input--xl.d-input-icon--left {
|
|
1280
|
+
.d-input.d-input--xl.d-input-icon--left {
|
|
1245
1281
|
padding-left: calc(var(--su4) + 2.4rem + var(--su8));
|
|
1246
1282
|
}
|
|
1247
1283
|
.d-textarea {
|
|
@@ -1342,14 +1378,11 @@ legend .d-label {
|
|
|
1342
1378
|
.d-input-icon {
|
|
1343
1379
|
--input-icon-size: 1.6rem;
|
|
1344
1380
|
position: absolute;
|
|
1345
|
-
top: 0;
|
|
1346
1381
|
z-index: var(--zi-base1);
|
|
1347
1382
|
display: inline-flex;
|
|
1348
1383
|
align-items: center;
|
|
1349
|
-
|
|
1350
|
-
height: var(--input-icon-size);
|
|
1384
|
+
height: 3.6rem;
|
|
1351
1385
|
margin: 0;
|
|
1352
|
-
margin-top: 1rem;
|
|
1353
1386
|
line-height: 0;
|
|
1354
1387
|
}
|
|
1355
1388
|
.d-input-icon svg {
|
|
@@ -1359,19 +1392,21 @@ legend .d-label {
|
|
|
1359
1392
|
.d-input-icon.d-input-icon--left {
|
|
1360
1393
|
left: var(--su8);
|
|
1361
1394
|
}
|
|
1395
|
+
.d-input-icon.d-input-icon--left ~ .d-input,
|
|
1396
|
+
.d-input-icon.d-input-icon--left ~ .d-textarea {
|
|
1397
|
+
padding-left: calc(var(--su4) + 1.6rem + var(--su8));
|
|
1398
|
+
}
|
|
1362
1399
|
.d-input-icon.d-input-icon--right {
|
|
1363
1400
|
right: var(--su8);
|
|
1364
1401
|
}
|
|
1365
|
-
.d-input-icon--
|
|
1366
|
-
.d-input-icon--left ~ .d-textarea {
|
|
1367
|
-
padding-left: calc(var(--su4) + 1.6rem + var(--su8));
|
|
1368
|
-
}
|
|
1369
|
-
.d-input-icon--right ~ .d-input {
|
|
1402
|
+
.d-input-icon.d-input-icon--right ~ .d-input {
|
|
1370
1403
|
padding-right: calc(var(--su4) + 1.6rem + var(--su8));
|
|
1371
1404
|
}
|
|
1405
|
+
.d-input-icon.d-input--xs {
|
|
1406
|
+
height: 2.8rem;
|
|
1407
|
+
}
|
|
1372
1408
|
.d-input-icon--xs {
|
|
1373
1409
|
--input-icon-size: 1.2rem;
|
|
1374
|
-
margin-top: 0.8rem;
|
|
1375
1410
|
}
|
|
1376
1411
|
.d-input-icon--xs.d-input-icon--left ~ .d-input,
|
|
1377
1412
|
.d-input-icon--xs.d-input-icon--left ~ .d-textarea {
|
|
@@ -1380,9 +1415,11 @@ legend .d-label {
|
|
|
1380
1415
|
.d-input-icon--xs.d-input-icon--right ~ .d-input {
|
|
1381
1416
|
padding-right: calc(var(--su4) + 1.2rem + var(--su8));
|
|
1382
1417
|
}
|
|
1418
|
+
.d-input-icon.d-input--sm {
|
|
1419
|
+
height: 3.2rem;
|
|
1420
|
+
}
|
|
1383
1421
|
.d-input-icon--sm {
|
|
1384
1422
|
--input-icon-size: 1.4rem;
|
|
1385
|
-
margin-top: 0.9rem;
|
|
1386
1423
|
}
|
|
1387
1424
|
.d-input-icon--sm.d-input-icon--left ~ .d-input,
|
|
1388
1425
|
.d-input-icon--sm.d-input-icon--left ~ .d-textarea {
|
|
@@ -1391,9 +1428,11 @@ legend .d-label {
|
|
|
1391
1428
|
.d-input-icon--sm.d-input-icon--right ~ .d-input {
|
|
1392
1429
|
padding-right: calc(var(--su4) + 1.4rem + var(--su8));
|
|
1393
1430
|
}
|
|
1431
|
+
.d-input-icon.d-input--lg {
|
|
1432
|
+
height: 4.8rem;
|
|
1433
|
+
}
|
|
1394
1434
|
.d-input-icon--lg {
|
|
1395
1435
|
--input-icon-size: 2rem;
|
|
1396
|
-
margin-top: 1.4rem;
|
|
1397
1436
|
}
|
|
1398
1437
|
.d-input-icon--lg.d-input-icon--left ~ .d-input,
|
|
1399
1438
|
.d-input-icon--lg.d-input-icon--left ~ .d-textarea {
|
|
@@ -1402,9 +1441,11 @@ legend .d-label {
|
|
|
1402
1441
|
.d-input-icon--lg.d-input-icon--right ~ .d-input {
|
|
1403
1442
|
padding-right: calc(var(--su4) + 2rem + var(--su8));
|
|
1404
1443
|
}
|
|
1444
|
+
.d-input-icon.d-input--xl {
|
|
1445
|
+
height: 5.6rem;
|
|
1446
|
+
}
|
|
1405
1447
|
.d-input-icon--xl {
|
|
1406
1448
|
--input-icon-size: 2.4rem;
|
|
1407
|
-
margin-top: 1.6rem;
|
|
1408
1449
|
}
|
|
1409
1450
|
.d-input-icon--xl.d-input-icon--left ~ .d-input,
|
|
1410
1451
|
.d-input-icon--xl.d-input-icon--left ~ .d-textarea {
|
|
@@ -2007,9 +2048,6 @@ legend .d-label {
|
|
|
2007
2048
|
.d-popover__dialog--modal {
|
|
2008
2049
|
z-index: var(--zi-modal-element);
|
|
2009
2050
|
}
|
|
2010
|
-
.d-popover__anchor--modal-opened * {
|
|
2011
|
-
z-index: 650;
|
|
2012
|
-
}
|
|
2013
2051
|
.d-popover__content {
|
|
2014
2052
|
overflow: auto;
|
|
2015
2053
|
}
|