@dialpad/dialtone 6.8.1 → 6.12.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/lib/build/less/components/banner.less +1 -1
  3. package/lib/build/less/components/button.less +31 -13
  4. package/lib/build/less/components/forms.less +1 -1
  5. package/lib/build/less/components/input.less +2 -2
  6. package/lib/build/less/components/link.less +6 -6
  7. package/lib/build/less/components/modal.less +1 -1
  8. package/lib/build/less/components/notice.less +1 -1
  9. package/lib/build/less/components/radio-checkbox.less +25 -25
  10. package/lib/build/less/components/selects.less +9 -9
  11. package/lib/build/less/components/skeleton.less +43 -0
  12. package/lib/build/less/components/table.less +1 -1
  13. package/lib/build/less/components/tabs.less +1 -1
  14. package/lib/build/less/components/toast.less +2 -2
  15. package/lib/build/less/components/tooltip.less +2 -2
  16. package/lib/build/less/dialtone-globals.less +10 -0
  17. package/lib/build/less/dialtone.less +4 -21
  18. package/lib/build/less/themes/default.less +9 -9
  19. package/lib/build/less/utilities/backgrounds.less +4 -54
  20. package/lib/build/less/utilities/borders.less +3 -4
  21. package/lib/build/less/utilities/colors.less +33 -209
  22. package/lib/build/less/utilities/effects.less +8 -2
  23. package/lib/build/less/utilities/flex.less +3 -32
  24. package/lib/build/less/utilities/grid.less +2 -19
  25. package/lib/build/less/utilities/internals.less +316 -180
  26. package/lib/build/less/utilities/layout.less +18 -19
  27. package/lib/build/less/utilities/responsive.less +0 -143
  28. package/lib/build/less/utilities/sizing.less +2 -2
  29. package/lib/build/less/utilities/spacing.less +2 -2
  30. package/lib/build/less/utilities/svg.less +1 -1
  31. package/lib/build/less/utilities/typography.less +4 -4
  32. package/lib/build/less/variables/colors.less +3 -3
  33. package/lib/build/less/variables/layout.less +21 -0
  34. package/lib/build/svg/spot/file-upload.svg +56 -0
  35. package/lib/build/svg/system/windows.svg +6 -0
  36. package/lib/dist/css/dialtone.css +12603 -25650
  37. package/lib/dist/css/dialtone.min.css +1 -1
  38. package/lib/dist/svg/spot/file-upload.svg +1 -0
  39. package/lib/dist/svg/system/windows.svg +1 -0
  40. package/lib/dist/vue/icons/IconWindows.vue +3 -0
  41. package/lib/dist/vue/spot/SpotFileUpload.vue +3 -0
  42. package/package.json +11 -8
package/CHANGELOG.md CHANGED
@@ -1,3 +1,48 @@
1
+ # [6.12.0](https://github.com/dialpad/dialtone/compare/v6.11.0...v6.12.0) (2022-01-13)
2
+
3
+
4
+ ### Features
5
+
6
+ * add documentation for new skeleton component ([#521](https://github.com/dialpad/dialtone/issues/521)) ([574f976](https://github.com/dialpad/dialtone/commit/574f97679619e730050d5a75cadb4fbb020e5af8))
7
+ * implement focus visible ([#524](https://github.com/dialpad/dialtone/issues/524)) ([20938ee](https://github.com/dialpad/dialtone/commit/20938ee94efed2a8ea8c7632a631e2f41ff9a1da))
8
+ * implement focus visible polyfill ([#528](https://github.com/dialpad/dialtone/issues/528)) ([0c3a661](https://github.com/dialpad/dialtone/commit/0c3a661eb2748e03a2a2bfcf75642e7b241bd8bf))
9
+
10
+ # [6.11.0](https://github.com/dialpad/dialtone/compare/v6.10.0...v6.11.0) (2022-01-04)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * generate missing hover/focus classes ([#522](https://github.com/dialpad/dialtone/issues/522)) ([0cc761b](https://github.com/dialpad/dialtone/commit/0cc761b5b6ee86746dfbd54e48400652b819348c))
16
+ * responsive variations not working ([#526](https://github.com/dialpad/dialtone/issues/526)) ([c29d53d](https://github.com/dialpad/dialtone/commit/c29d53dc1c3c89a839d3c9724380f5b2e27e0cc2))
17
+ * svg sizes showing up as NaN in svg utility class page ([#525](https://github.com/dialpad/dialtone/issues/525)) ([67c2b26](https://github.com/dialpad/dialtone/commit/67c2b26704e0bfe1209f578cfcec222645cfc549))
18
+
19
+
20
+ ### Features
21
+
22
+ * add file upload spot illustration ([#527](https://github.com/dialpad/dialtone/issues/527)) ([e1533e8](https://github.com/dialpad/dialtone/commit/e1533e856f570688aa5ffc3dd37ae05c3a842987))
23
+
24
+ # [6.10.0](https://github.com/dialpad/dialtone/compare/v6.9.0...v6.10.0) (2021-12-15)
25
+
26
+
27
+ ### Bug Fixes
28
+
29
+ * add important to padding ([#518](https://github.com/dialpad/dialtone/issues/518)) ([2a7b0a5](https://github.com/dialpad/dialtone/commit/2a7b0a5d0ff700f9bf24369701f0dd4c93988ec3))
30
+
31
+
32
+ ### Features
33
+
34
+ * **button:** add muted styles ([#516](https://github.com/dialpad/dialtone/issues/516)) ([5bea155](https://github.com/dialpad/dialtone/commit/5bea155057620865174e596c539660185029f499))
35
+
36
+ # [6.9.0](https://github.com/dialpad/dialtone/compare/v6.8.1...v6.9.0) (2021-12-07)
37
+
38
+
39
+ ### Features
40
+
41
+ * add foundational a11y documentation ([#512](https://github.com/dialpad/dialtone/issues/512)) ([fd7d771](https://github.com/dialpad/dialtone/commit/fd7d77197576ad1506bd1dda71051aa841bcb412))
42
+ * add responsive variations ([#474](https://github.com/dialpad/dialtone/issues/474)) ([7d7aaa4](https://github.com/dialpad/dialtone/commit/7d7aaa4b9f47bfdf48162cfa0013cb8be33ded67)), closes [#478](https://github.com/dialpad/dialtone/issues/478) [#479](https://github.com/dialpad/dialtone/issues/479) [#480](https://github.com/dialpad/dialtone/issues/480) [#486](https://github.com/dialpad/dialtone/issues/486) [#489](https://github.com/dialpad/dialtone/issues/489)
43
+ * add windows logo as system icon ([#517](https://github.com/dialpad/dialtone/issues/517)) ([3ee2445](https://github.com/dialpad/dialtone/commit/3ee24455842b379328409a1ca30399174be46402))
44
+ * button group css classes ([#514](https://github.com/dialpad/dialtone/issues/514)) ([edb75d7](https://github.com/dialpad/dialtone/commit/edb75d7bb672223d4faaeae5e59b1e77d7644191))
45
+
1
46
  ## [6.8.1](https://github.com/dialpad/dialtone/compare/v6.8.0...v6.8.1) (2021-11-23)
2
47
 
3
48
 
@@ -1,4 +1,4 @@
1
- @import (reference) '../utilities/spacing.less';
1
+ //@import (reference) '../utilities/spacing.less';
2
2
 
3
3
  //
4
4
  // DIALTONE
@@ -1,4 +1,4 @@
1
- @import (reference) '../variables/icons.less';
1
+ //@import (reference) '../variables/icons.less';
2
2
 
3
3
  //
4
4
  // DIALTONE
@@ -58,9 +58,9 @@
58
58
  --button--bgc: hsla(var(--primary-color-hsl) ~' / ' 10%);
59
59
  }
60
60
 
61
- &:focus {
62
- outline: none;
63
- box-shadow: var(--bs-focus-ring);
61
+ &:focus-visible {
62
+ outline: none;
63
+ box-shadow: var(--bs-focus-ring);
64
64
  }
65
65
 
66
66
  &[disabled] {
@@ -192,7 +192,7 @@
192
192
  --button--bgc: var(--black-100);
193
193
  }
194
194
 
195
- &:focus {
195
+ &:focus-visible {
196
196
  box-shadow: var(--bs-focus-ring-circle);
197
197
  }
198
198
 
@@ -260,14 +260,14 @@
260
260
  // $$ MUTED BUTTON
261
261
  // ----------------------------------------------------------------------------
262
262
  .d-btn--muted {
263
- --button--fc: var(--black-700);
263
+ --button--fc: var(--muted-color);
264
264
 
265
265
  &:hover {
266
- --button--fc: var(--black-800);
267
- --button--bgc: hsla(var(--muted-color-hsl) ~' / ' 10%);
266
+ --button--fc: var(--muted-color-hover);
267
+ --button--bgc: hsla(var(--muted-color-hsl) ~' / ' 7.5%);
268
268
  }
269
269
 
270
- &:focus {
270
+ &:focus-visible {
271
271
  box-shadow: var(--bs-focus-ring-muted);
272
272
  }
273
273
 
@@ -286,7 +286,7 @@
286
286
  --button--fc: var(--error-color-hover);
287
287
  }
288
288
 
289
- &:focus {
289
+ &:focus-visible {
290
290
  box-shadow: var(--bs-focus-ring-error);
291
291
  }
292
292
 
@@ -317,7 +317,7 @@
317
317
  --button--bgc: hsla(var(--white-hsl) ~' / ' 15%);
318
318
  }
319
319
 
320
- &:focus {
320
+ &:focus-visible {
321
321
  box-shadow: var(--bs-focus-ring-inverted);
322
322
  }
323
323
 
@@ -363,13 +363,12 @@
363
363
  background-color: hsl(var(--brand-color-h) var(--brand-color-s) var(--brand-color-l));
364
364
 
365
365
  &:hover,
366
- &:focus,
367
366
  &:active {
368
367
  color: hsla(var(--white-hsl) ~' / ' 90%);
369
368
  background-color: hsl(var(--brand-color-h) calc(var(--brand-color-s) + 2.5%) calc(var(--brand-color-l) - 5%));
370
369
  }
371
370
 
372
- &:focus {
371
+ &:focus-visible {
373
372
  box-shadow: 0 0 0 var(--su1) var(--white), 0 0 0 0.25em hsla(var(--brand-color-h) var(--brand-color-s) var(--brand-color-l) ~' / ' 90%);
374
373
  }
375
374
 
@@ -443,3 +442,22 @@
443
442
  content: '';
444
443
  }
445
444
  }
445
+
446
+ // ============================================================================
447
+ // $ BUTTON GROUP
448
+ // ----------------------------------------------------------------------------
449
+ .d-btn-group {
450
+ display: flex;
451
+
452
+ &.d-btn-group--start {
453
+ justify-content: start;
454
+ }
455
+
456
+ &.d-btn-group--end {
457
+ justify-content: end;
458
+ }
459
+
460
+ &.d-btn-group--space-between {
461
+ justify-content: space-between;
462
+ }
463
+ }
@@ -1,4 +1,4 @@
1
- @import (reference) '../variables/typography.less';
1
+ //@import (reference) '../variables/typography.less';
2
2
 
3
3
  //
4
4
  // DIALTONE
@@ -1,5 +1,5 @@
1
- @import (reference) '../variables/icons.less';
2
- @import (reference) '../variables/sizes.less';
1
+ //@import (reference) '../variables/icons.less';
2
+ //@import (reference) '../variables/sizes.less';
3
3
 
4
4
  //
5
5
  // DIALTONE
@@ -40,7 +40,7 @@
40
40
  cursor: pointer;
41
41
  }
42
42
 
43
- &:focus {
43
+ &:focus-visible {
44
44
  border-radius: 4px;
45
45
  outline: none;
46
46
  box-shadow: 0 0 0 var(--su2) var(--focus-ring);
@@ -60,7 +60,7 @@
60
60
  color: var(--fc-warning-hover);
61
61
  }
62
62
 
63
- &:focus {
63
+ &:focus-visible {
64
64
  box-shadow: 0 0 0 var(--su2) var(--focus-ring-warning);
65
65
  }
66
66
  }
@@ -74,7 +74,7 @@
74
74
  color: var(--error-color-hover);
75
75
  }
76
76
 
77
- &:focus {
77
+ &:focus-visible {
78
78
  box-shadow: 0 0 0 var(--su2) var(--focus-ring-error);
79
79
  }
80
80
  }
@@ -88,7 +88,7 @@
88
88
  color: var(--success-color-hover);
89
89
  }
90
90
 
91
- &:focus {
91
+ &:focus-visible {
92
92
  box-shadow: 0 0 0 var(--su2) var(--focus-ring-success);
93
93
  }
94
94
  }
@@ -102,7 +102,7 @@
102
102
  color: var(--muted-color-hover);
103
103
  }
104
104
 
105
- &:focus {
105
+ &:focus-visible {
106
106
  box-shadow: 0 0 0 var(--su2) var(--focus-ring-muted);
107
107
  }
108
108
  }
@@ -135,7 +135,7 @@
135
135
  color: var(--inverted-color-hover);
136
136
  }
137
137
 
138
- &:focus {
138
+ &:focus-visible {
139
139
  box-shadow: 0 0 0 var(--su2) var(--focus-ring-inverted);
140
140
  }
141
141
  }
@@ -1,4 +1,4 @@
1
- @import (reference) '../utilities/spacing.less';
1
+ //@import (reference) '../utilities/spacing.less';
2
2
 
3
3
  //
4
4
  // DIALTONE
@@ -1,4 +1,4 @@
1
- @import (reference) '../utilities/spacing.less';
1
+ //@import (reference) '../utilities/spacing.less';
2
2
 
3
3
  //
4
4
  // DIALTONE
@@ -52,12 +52,12 @@
52
52
  display: none;
53
53
  }
54
54
 
55
- &:focus,
56
- &:checked:focus {
57
- --check-radio--bc: var(--check-radio--color);
55
+ &:focus-visible,
56
+ &:checked:focus-visible {
57
+ --check-radio--bc: var(--check-radio--color);
58
58
 
59
- outline: 0;
60
- box-shadow: var(--bs-focus-ring);
59
+ outline: 0;
60
+ box-shadow: var(--bs-focus-ring);
61
61
  }
62
62
 
63
63
  &:checked {
@@ -149,8 +149,8 @@
149
149
  background-size: contain;
150
150
  border-radius: var(--br2);
151
151
 
152
- &:focus,
153
- &:checked:focus {
152
+ &:focus-visible,
153
+ &:checked:focus-visible {
154
154
  border-radius: var(--br2);
155
155
  }
156
156
 
@@ -209,8 +209,8 @@
209
209
  --check-radio--color: var(--warning-color);
210
210
  --check-radio--bc: var(--check-radio--color);
211
211
 
212
- &:focus,
213
- &:checked:focus {
212
+ &:focus-visible,
213
+ &:checked:focus-visible {
214
214
  box-shadow: var(--bs-focus-ring-warning);
215
215
  }
216
216
  }
@@ -219,8 +219,8 @@
219
219
  --check-radio--color: var(--error-color);
220
220
  --check-radio--bc: var(--check-radio--color);
221
221
 
222
- &:focus,
223
- &:checked:focus {
222
+ &:focus-visible,
223
+ &:checked:focus-visible {
224
224
  box-shadow: var(--bs-focus-ring-error);
225
225
  }
226
226
  }
@@ -229,8 +229,8 @@
229
229
  --check-radio--color: var(--success-color);
230
230
  --check-radio--bc: var(--check-radio--color);
231
231
 
232
- &:focus,
233
- &:checked:focus {
232
+ &:focus-visible,
233
+ &:checked:focus-visible {
234
234
  box-shadow: var(--bs-focus-ring-success);
235
235
  }
236
236
  }
@@ -251,9 +251,9 @@
251
251
  --check-radio--bgc: var(--black-075);
252
252
  }
253
253
 
254
- &:focus,
255
- &:checked:focus {
256
- box-shadow: var(--bs-focus-ring), inset 0 0 0 var(--su2) var(--white);
254
+ &:focus-visible,
255
+ &:checked:focus-visible {
256
+ box-shadow: var(--bs-focus-ring), inset 0 0 0 var(--su2) var(--white);
257
257
  }
258
258
 
259
259
  &:checked {
@@ -279,9 +279,9 @@
279
279
  --check-radio--color: var(--warning-color);
280
280
  --check-radio--bc: var(--check-radio--color);
281
281
 
282
- &:focus,
283
- &:checked:focus {
284
- box-shadow: var(--bs-focus-ring-warning), inset 0 0 0 var(--su2) var(--white);
282
+ &:focus-visible,
283
+ &:checked:focus-visible {
284
+ box-shadow: var(--bs-focus-ring-warning), inset 0 0 0 var(--su2) var(--white);
285
285
  }
286
286
  }
287
287
 
@@ -289,9 +289,9 @@
289
289
  --check-radio--color: var(--error-color);
290
290
  --check-radio--bc: var(--check-radio--color);
291
291
 
292
- &:focus,
293
- &:checked:focus {
294
- box-shadow: var(--bs-focus-ring-error), inset 0 0 0 var(--su2) var(--white);
292
+ &:focus-visible,
293
+ &:checked:focus-visible {
294
+ box-shadow: var(--bs-focus-ring-error), inset 0 0 0 var(--su2) var(--white);
295
295
  }
296
296
  }
297
297
 
@@ -299,8 +299,8 @@
299
299
  --check-radio--color: var(--success-color);
300
300
  --check-radio--bc: var(--check-radio--color);
301
301
 
302
- &:focus,
303
- &:checked:focus {
304
- box-shadow: var(--bs-focus-ring-success), inset 0 0 0 var(--su2) var(--white);
302
+ &:focus-visible,
303
+ &:checked:focus-visible {
304
+ box-shadow: var(--bs-focus-ring-success), inset 0 0 0 var(--su2) var(--white);
305
305
  }
306
306
  }
@@ -1,6 +1,6 @@
1
- @import (reference) '../variables/sizes.less';
2
- @import (reference) '../variables/icons.less';
3
- @import (reference) 'input.less';
1
+ //@import (reference) '../variables/sizes.less';
2
+ //@import (reference) '../variables/icons.less';
3
+ //@import (reference) 'input.less';
4
4
 
5
5
  //
6
6
  // DIALTONE
@@ -100,14 +100,14 @@
100
100
  // ----------------------------------------------------------------------------
101
101
  .d-select__input {
102
102
  height: 100%; // Fill the height of its parent
103
- padding: 0.7rem 2em 0.7rem 0.8rem;
103
+ padding: 0.7rem 2em 0.7rem 0.8rem !important;
104
104
  color: var(--select--fc);
105
105
  background-color: var(--select--bgc);
106
106
  border-color: var(--select--bc);
107
107
  // [1] Reset the appearance
108
108
  -webkit-appearance: none;
109
- -moz-appearance: none;
110
- appearance: none;
109
+ -moz-appearance: none;
110
+ appearance: none;
111
111
 
112
112
  // [2] Update the styles
113
113
  .d-input();
@@ -148,7 +148,7 @@
148
148
  &:focus {
149
149
  --select--bc: var(--success-color);
150
150
 
151
- box-shadow: var(--bs-focus-ring-success);
151
+ box-shadow: var(--bs-focus-ring-success) !important;
152
152
  }
153
153
  }
154
154
 
@@ -158,7 +158,7 @@
158
158
  &:focus {
159
159
  --select--bc: var(--error-color);
160
160
 
161
- box-shadow: var(--bs-focus-ring-error);
161
+ box-shadow: var(--bs-focus-ring-error) !important;
162
162
  }
163
163
  }
164
164
 
@@ -168,7 +168,7 @@
168
168
  &:focus {
169
169
  --select--bc: var(--warning-color);
170
170
 
171
- box-shadow: var(--bs-focus-ring-warning);
171
+ box-shadow: var(--bs-focus-ring-warning) !important;
172
172
  }
173
173
  }
174
174
 
@@ -0,0 +1,43 @@
1
+ //
2
+ // DIALTONE
3
+ // COMPONENTS: SKELETON
4
+ //
5
+ // These are the styles for skeleton component.
6
+ // The --placeholder-from-color and --placeholder-to-color custom properties can be set on the parent class of the
7
+ // placeholder to control the animation colors.
8
+ // For further documentation of these styles, please visit https://dialpad.design/components/skeleton
9
+
10
+ // ============================================================================
11
+ // @ SKELETON CONTAINER
12
+ // ----------------------------------------------------------------------------
13
+ .skeleton-placeholder {
14
+ display: flex;
15
+ width: 100%;
16
+ background: var(--placeholder-from-color, @black-075);
17
+ animation-duration: 1000ms;
18
+ fill: var(--placeholder-from-color, @black-075);
19
+ stroke: none;
20
+
21
+ &--animate {
22
+ animation-name: placeholder-throb;
23
+ animation-iteration-count: infinite;
24
+ }
25
+ }
26
+
27
+ // the animation is used by the skeleton component
28
+ @keyframes placeholder-throb {
29
+ 10% {
30
+ background: var(--placeholder-from-color, @black-075);
31
+ fill: var(--placeholder-from-color, @black-075);
32
+ }
33
+
34
+ 50% {
35
+ background: var(--placeholder-to-color, @black-050);
36
+ fill: var(--placeholder-to-color, @black-050);
37
+ }
38
+
39
+ 90% {
40
+ background: var(--placeholder-from-color, @black-075);
41
+ fill: var(--placeholder-from-color, @black-075);
42
+ }
43
+ }
@@ -1,4 +1,4 @@
1
- @import (reference) '../utilities/typography.less';
1
+ //@import (reference) '../utilities/typography.less';
2
2
 
3
3
  //
4
4
  // DIALTONE
@@ -82,7 +82,7 @@
82
82
  content: '';
83
83
  }
84
84
 
85
- &:focus {
85
+ &:focus-visible {
86
86
  outline: none;
87
87
  box-shadow: 0 0 0 var(--su2) var(--tab--oc);
88
88
  }
@@ -1,5 +1,5 @@
1
- @import (reference) '../utilities/spacing.less';
2
- @import (reference) '../utilities/effects.less';
1
+ //@import (reference) '../utilities/spacing.less';
2
+ //@import (reference) '../utilities/effects.less';
3
3
 
4
4
  //
5
5
  // DIALTONE
@@ -100,8 +100,8 @@
100
100
  &:extend(.d-tooltip--hide);
101
101
  }
102
102
 
103
- &:focus-visible,
104
- &:hover {
103
+ &:hover,
104
+ &:focus-visible {
105
105
  .d-tooltip {
106
106
  &:extend(.d-tooltip--show);
107
107
  }
@@ -56,3 +56,13 @@ body {
56
56
  .d-svg-primary--fill {
57
57
  fill: var(--primary-color);
58
58
  }
59
+
60
+ // ============================================================================
61
+ // @ FOCUS VISIBLE
62
+ // ----------------------------------------------------------------------------
63
+ // This will hide the focus indicator if the element receives focus via the mouse,
64
+ // but it will still show up on keyboard focus.
65
+ //
66
+ .js-focus-visible :focus:not(.focus-visible) {
67
+ outline: none;
68
+ }
@@ -25,10 +25,14 @@
25
25
  @import 'components/notice';
26
26
  @import 'components/radio-checkbox';
27
27
  @import 'components/selects';
28
+ @import 'components/skeleton';
28
29
  @import 'components/table';
29
30
  @import 'components/tabs';
30
31
  @import 'components/tooltip';
31
32
 
33
+ // -- CONFIG
34
+ @import 'utilities/internals';
35
+
32
36
  // -- UTILITIES
33
37
  @import 'utilities/backgrounds';
34
38
  @import 'utilities/borders';
@@ -38,32 +42,11 @@
38
42
  @import 'utilities/grid';
39
43
  @import 'utilities/interactivity';
40
44
  @import 'utilities/layout';
41
- @import 'utilities/responsive';
42
45
  @import 'utilities/sizing';
43
46
  @import 'utilities/spacing';
44
47
  @import 'utilities/svg';
45
48
  @import 'utilities/typography';
46
49
 
47
-
48
50
  // -- THEMES & GLOBAL SETTINGS
49
51
  @import 'dialtone-globals';
50
52
  @import 'themes/default';
51
-
52
- //stylelint-disable
53
- // -- RESPONSIVE CLASSES
54
- #d-internals #screen-xl({
55
- #d-internals-collect-xl();
56
- });
57
- #d-internals #screen-lg({
58
- #d-internals-collect-lg();
59
- });
60
- #d-internals #screen-md({
61
- #d-internals-collect-md();
62
- });
63
- #d-internals #screen-sm({
64
- #d-internals-collect-sm();
65
- });
66
- //stylelint-enable
67
-
68
- // -- CONFIG
69
- @import 'utilities/internals';
@@ -1,12 +1,12 @@
1
- @import (reference) '../variables/colors.less';
2
- @import (reference) '../variables/layout.less';
3
- @import (reference) '../variables/borders.less';
4
- @import (reference) '../variables/visual-styles.less';
5
- @import (reference) '../variables/icons.less';
6
- @import (reference) '../variables/sizes.less';
7
- @import (reference) '../variables/typography.less';
8
- @import (reference) '../utilities/internals.less';
9
- @import (reference) '../utilities/grid.less';
1
+ //@import (reference) '../variables/colors.less';
2
+ //@import (reference) '../variables/layout.less';
3
+ //@import (reference) '../variables/borders.less';
4
+ //@import (reference) '../variables/visual-styles.less';
5
+ //@import (reference) '../variables/icons.less';
6
+ //@import (reference) '../variables/sizes.less';
7
+ //@import (reference) '../variables/typography.less';
8
+ //@import (reference) '../utilities/internals.less';
9
+ //@import (reference) '../utilities/grid.less';
10
10
 
11
11
  //
12
12
  // DIALTONE
@@ -1,5 +1,5 @@
1
- @import (reference) '../variables/colors.less';
2
- @import (reference) '../utilities/internals.less';
1
+ //@import (reference) '../variables/colors.less';
2
+ //@import (reference) '../utilities/internals.less';
3
3
 
4
4
  //
5
5
  // DIALTONE
@@ -10,7 +10,6 @@
10
10
  // visit https://dialpad.design/utilities/borders
11
11
  //
12
12
  // TABLE OF CONTENTS
13
- // • INTERNALS/MIXINS
14
13
  // • BACKGROUND ATTACHMENT
15
14
  // • BACKGROUND CLIP
16
15
  // • BACKGROUND POSITION
@@ -19,57 +18,6 @@
19
18
  // • GRADIENTS
20
19
  // • PATTERNS
21
20
  //
22
- // ============================================================================
23
- // $ MIXINS
24
- // ----------------------------------------------------------------------------
25
- #d-internals() {
26
- #gradient-classes(@color) {
27
- // COLOR STOP 1, STARTING STOP
28
- .d-bgg-from-@{color},
29
- .h\:d-bgg-from-@{color}:hover,
30
- .f\:d-bgg-from-@{color}:focus {
31
- --bgg-from-opacity: 100%;
32
- --bgg-from: hsla(var(~'--@{color}-h') var(~'--@{color}-s') var(~'--@{color}-l') ~' / ' var(--bgg-from-opacity));
33
- --bgg-to: hsla(var(~'--@{color}-h') var(~'--@{color}-s') var(~'--@{color}-l') ~' / ' 0%);
34
- }
35
- .f\:d-bgg-from-@{color}:focus-within {
36
- --bgg-from-opacity: 100%;
37
- --bgg-from: hsla(var(~'--@{color}-h') var(~'--@{color}-s') var(~'--@{color}-l') ~' / ' var(--bgg-from-opacity));
38
- --bgg-to: hsla(var(~'--@{color}-h') var(~'--@{color}-s') var(~'--@{color}-l') ~' / ' 0%);
39
- }
40
- #d-internals #dark-mode('.d\:d-bgg-from-@{color}', {
41
- --bgg-from-opacity: 100%;
42
- --bgg-from: hsla(var(~'--@{color}-h') var(~'--@{color}-s') var(~'--@{color}-l') ~' / ' var(--bgg-from-opacity));
43
- --bgg-to: hsla(var(~'--@{color}-h') var(~'--@{color}-s') var(~'--@{color}-l') ~' / ' 0%);
44
- });
45
-
46
- // COLOR STOP 2, ENDING STOP
47
- .d-bgg-to-@{color},
48
- .h\:d-bgg-to-@{color}:hover,
49
- .f\:d-bgg-to-@{color}:focus {
50
- --bgg-to-opacity: 100%;
51
- --bgg-to: hsla(var(~'--@{color}-h') var(~'--@{color}-s') var(~'--@{color}-l') ~' / ' var(--bgg-to-opacity)) !important;
52
- }
53
- .f\:d-bgg-to-@{color}:focus-within {
54
- --bgg-to-opacity: 100%;
55
- --bgg-to: hsla(var(~'--@{color}-h') var(~'--@{color}-s') var(~'--@{color}-l') ~' / ' var(--bgg-to-opacity)) !important;
56
- }
57
- #d-internals #dark-mode('.d\:d-bgg-to-@{color}', {
58
- --bgg-to-opacity: 100%;
59
- --bgg-to: hsla(var(~'--@{color}-h') var(~'--@{color}-s') var(~'--@{color}-l') ~' / ' var(--bgg-to-opacity)) !important;
60
- })
61
- }
62
-
63
- #gradient-stops(@color) {
64
- #d-internals #gradient-classes(~'@{color}-600');
65
- #d-internals #gradient-classes(~'@{color}-500');
66
- #d-internals #gradient-classes(~'@{color}-400');
67
- #d-internals #gradient-classes(~'@{color}-300');
68
- #d-internals #gradient-classes(~'@{color}-200');
69
- #d-internals #gradient-classes(~'@{color}-100');
70
- }
71
- }
72
-
73
21
  // ----------------------------------------------------------------------------
74
22
  // -- Create background stops for most colors
75
23
  #d-internals #gradient-stops(black);
@@ -169,7 +117,9 @@
169
117
  .d-bgg-radial { background-image: radial-gradient(var(--bgg-from) 0%, var(--bgg-to) 100%) !important; }
170
118
  .d-bgg-conic { background-image: conic-gradient(var(--bgg-from) 0%, var(--bgg-to) 100%) !important; }
171
119
  .d-bgg-none { background-image: none !important; }
120
+ #d-internals #generate-hover-focus(d-bgg-none, {.d-bgg-none();});
172
121
  .d-bgg-unset { background-image: unset !important; }
122
+ #d-internals #generate-hover-focus(d-bgg-unset, {.d-bgg-unset();});
173
123
 
174
124
 
175
125
  // ============================================================================
@@ -1,7 +1,6 @@
1
- @import (reference) '../variables/spacing.less';
2
- @import (reference) '../utilities/internals.less';
3
- @import (reference) '../variables/borders.less';
4
-
1
+ //@import (reference) '../variables/spacing.less';
2
+ //@import (reference) '../variables/borders.less';
3
+ //@import (reference) '../utilities/internals.less';
5
4
  //
6
5
  // DIALTONE
7
6
  // UTILITIES: BORDERS