@dialpad/dialtone 6.6.1 → 6.9.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 (65) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/lib/build/less/components/avatar.less +68 -56
  3. package/lib/build/less/components/badge.less +39 -28
  4. package/lib/build/less/components/banner.less +33 -36
  5. package/lib/build/less/components/breadcrumbs.less +7 -8
  6. package/lib/build/less/components/button.less +72 -56
  7. package/lib/build/less/components/forms.less +24 -28
  8. package/lib/build/less/components/input.less +71 -44
  9. package/lib/build/less/components/link.less +12 -15
  10. package/lib/build/less/components/list-group.less +5 -5
  11. package/lib/build/less/components/modal.less +40 -50
  12. package/lib/build/less/components/notice.less +28 -30
  13. package/lib/build/less/components/radio-checkbox.less +73 -66
  14. package/lib/build/less/components/selects.less +30 -26
  15. package/lib/build/less/components/table.less +15 -18
  16. package/lib/build/less/components/tabs.less +30 -31
  17. package/lib/build/less/components/toast.less +39 -40
  18. package/lib/build/less/components/tooltip.less +21 -22
  19. package/lib/build/less/dialtone-globals.less +11 -3
  20. package/lib/build/less/dialtone-reset.less +11 -11
  21. package/lib/build/less/dialtone-variables.less +8 -8
  22. package/lib/build/less/dialtone.less +36 -52
  23. package/lib/build/less/themes/default.less +9 -9
  24. package/lib/build/less/themes/example.less +4 -4
  25. package/lib/build/less/utilities/backgrounds.less +73 -122
  26. package/lib/build/less/utilities/borders.less +101 -88
  27. package/lib/build/less/utilities/colors.less +40 -220
  28. package/lib/build/less/utilities/effects.less +83 -64
  29. package/lib/build/less/utilities/flex.less +110 -139
  30. package/lib/build/less/utilities/grid.less +146 -163
  31. package/lib/build/less/utilities/interactivity.less +27 -27
  32. package/lib/build/less/utilities/internals.less +244 -170
  33. package/lib/build/less/utilities/layout.less +82 -82
  34. package/lib/build/less/utilities/responsive.less +0 -143
  35. package/lib/build/less/utilities/sizing.less +97 -97
  36. package/lib/build/less/utilities/spacing.less +26 -26
  37. package/lib/build/less/utilities/svg.less +9 -1
  38. package/lib/build/less/utilities/typography.less +126 -115
  39. package/lib/build/less/variables/colors.less +8 -8
  40. package/lib/build/less/variables/layout.less +21 -0
  41. package/lib/build/less/variables/sizes.less +8 -8
  42. package/lib/build/less/variables/spacing.less +1 -1
  43. package/lib/build/less/variables/typography.less +8 -9
  44. package/lib/build/less/variables/visual-styles.less +27 -27
  45. package/lib/build/svg/spot/browser-list-callout.svg +57 -0
  46. package/lib/build/svg/spot/browser-table-graph.svg +111 -0
  47. package/lib/build/svg/system/raise-hand.svg +1 -1
  48. package/lib/build/svg/system/thumb-down.svg +3 -0
  49. package/lib/build/svg/system/thumb-up.svg +3 -0
  50. package/lib/build/svg/system/windows.svg +6 -0
  51. package/lib/dist/css/dialtone.css +2660 -23329
  52. package/lib/dist/css/dialtone.min.css +1 -1
  53. package/lib/dist/svg/spot/browser-list-callout.svg +1 -0
  54. package/lib/dist/svg/spot/browser-table-graph.svg +1 -0
  55. package/lib/dist/svg/system/raise-hand.svg +1 -1
  56. package/lib/dist/svg/system/thumb-down.svg +1 -0
  57. package/lib/dist/svg/system/thumb-up.svg +1 -0
  58. package/lib/dist/svg/system/windows.svg +1 -0
  59. package/lib/dist/vue/icons/IconRaiseHand.vue +1 -1
  60. package/lib/dist/vue/icons/IconThumbDown.vue +3 -0
  61. package/lib/dist/vue/icons/IconThumbUp.vue +3 -0
  62. package/lib/dist/vue/icons/IconWindows.vue +3 -0
  63. package/lib/dist/vue/spot/SpotBrowserListCallout.vue +3 -0
  64. package/lib/dist/vue/spot/SpotBrowserTableGraph.vue +3 -0
  65. package/package.json +21 -6
@@ -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
@@ -26,22 +25,22 @@
26
25
  // ============================================================================
27
26
  // $$ COLOR
28
27
  // ----------------------------------------------------------------------------
29
- .d-bc-transparent { border-color: transparent !important; }
30
- .d-bc-current { border-color: currentColor !important; }
31
- .d-bc-unset { border-color: unset !important; }
28
+ .d-bc-transparent { border-color: transparent !important; }
29
+ .d-bc-current { border-color: currentColor !important; }
30
+ .d-bc-unset { border-color: unset !important; }
32
31
 
33
32
 
34
33
  // $$ DIRECTION
35
34
  // ----------------------------------------------------------------------------
36
- .d-ba { border: var(--su1) solid currentColor !important; }
37
- .d-bt { border-top: var(--su1) solid currentColor !important; }
38
- .d-br { border-right: var(--su1) solid currentColor !important; }
39
- .d-bb { border-bottom: var(--su1) solid currentColor !important; }
40
- .d-bl { border-left: var(--su1) solid currentColor !important; }
41
- .d-bx { .d-br(); .d-bl(); }
42
- .d-by { .d-bt(); .d-bb(); }
43
- .d-ba-none { border: none !important; }
44
- .d-ba-unset { border: unset !important; }
35
+ .d-ba { border: var(--su1) solid currentColor !important; }
36
+ .d-bt { border-top: var(--su1) solid currentColor !important; }
37
+ .d-br { border-right: var(--su1) solid currentColor !important; }
38
+ .d-bb { border-bottom: var(--su1) solid currentColor !important; }
39
+ .d-bl { border-left: var(--su1) solid currentColor !important; }
40
+ .d-bx { .d-br(); .d-bl(); }
41
+ .d-by { .d-bt(); .d-bb(); }
42
+ .d-ba-none { border: none !important; }
43
+ .d-ba-unset { border: unset !important; }
45
44
 
46
45
 
47
46
  // ============================================================================
@@ -54,8 +53,8 @@
54
53
  { .template(@value) { border-radius: @value !important; } },
55
54
  @su0 @su2 @su4 @su8 @su12 @su16 @su24 @su32 unset
56
55
  );
57
- .d-bar-circle { border-radius: @br-circle !important; }
58
- .d-bar-pill { border-radius: @br-pill !important; }
56
+ .d-bar-circle { border-radius: @br-circle !important; }
57
+ .d-bar-pill { border-radius: @br-pill !important; }
59
58
 
60
59
  // $$ TOP
61
60
  // ----------------------------------------------------------------------------
@@ -64,8 +63,8 @@
64
63
  { .template(@value) { border-top-left-radius: @value !important; border-top-right-radius: @value !important; } },
65
64
  @su0 @su2 @su4 @su8 @su12 @su16 @su24 @su32
66
65
  );
67
- .d-btr-circle { border-top-left-radius: @br-circle !important; border-top-right-radius: @br-circle !important; }
68
- .d-btr-pill { border-top-left-radius: @br-pill !important; border-top-right-radius: @br-pill !important; }
66
+ .d-btr-circle { border-top-left-radius: @br-circle !important; border-top-right-radius: @br-circle !important; }
67
+ .d-btr-pill { border-top-left-radius: @br-pill !important; border-top-right-radius: @br-pill !important; }
69
68
 
70
69
  // $$ RIGHT
71
70
  // ----------------------------------------------------------------------------
@@ -74,8 +73,8 @@
74
73
  { .template(@value) { border-top-right-radius: @value !important; border-bottom-right-radius: @value !important; } },
75
74
  @su0 @su2 @su4 @su8 @su12 @su16 @su24 @su32
76
75
  );
77
- .d-brr-circle { border-top-right-radius: @br-circle !important; border-bottom-right-radius: @br-circle !important; }
78
- .d-brr-pill { border-top-right-radius: @br-pill !important; border-bottom-right-radius: @br-pill !important; }
76
+ .d-brr-circle { border-top-right-radius: @br-circle !important; border-bottom-right-radius: @br-circle !important; }
77
+ .d-brr-pill { border-top-right-radius: @br-pill !important; border-bottom-right-radius: @br-pill !important; }
79
78
 
80
79
  // $$ TOP
81
80
  // ----------------------------------------------------------------------------
@@ -84,8 +83,8 @@
84
83
  { .template(@value) { border-bottom-left-radius: @value !important; border-bottom-right-radius: @value !important; } },
85
84
  @su0 @su2 @su4 @su8 @su12 @su16 @su24 @su32
86
85
  );
87
- .d-bbr-circle { border-bottom-left-radius: @br-circle !important; border-bottom-right-radius: @br-circle !important; }
88
- .d-bbr-pill { border-bottom-left-radius: @br-pill !important; border-bottom-right-radius: @br-pill !important; }
86
+ .d-bbr-circle { border-bottom-right-radius: @br-circle !important; border-bottom-left-radius: @br-circle !important; }
87
+ .d-bbr-pill { border-bottom-right-radius: @br-pill !important; border-bottom-left-radius: @br-pill !important; }
89
88
 
90
89
  // $$ RIGHT
91
90
  // ----------------------------------------------------------------------------
@@ -94,76 +93,76 @@
94
93
  { .template(@value) { border-top-left-radius: @value !important; border-bottom-left-radius: @value !important; } },
95
94
  @su0 @su2 @su4 @su8 @su12 @su16 @su24 @su32
96
95
  );
97
- .d-blr-circle { border-top-left-radius: @br-circle !important; border-bottom-left-radius: @br-circle !important; }
98
- .d-blr-pill { border-top-left-radius: @br-pill !important; border-bottom-left-radius: @br-pill !important; }
96
+ .d-blr-circle { border-top-left-radius: @br-circle !important; border-bottom-left-radius: @br-circle !important; }
97
+ .d-blr-pill { border-top-left-radius: @br-pill !important; border-bottom-left-radius: @br-pill !important; }
99
98
 
100
99
 
101
100
  // $$ STYLE
102
101
  // ----------------------------------------------------------------------------
103
- .d-bas-dashed { border-style: dashed !important; }
104
- .d-bts-dashed { border-top-style: dashed !important; }
105
- .d-brs-dashed { border-right-style: dashed !important; }
106
- .d-bbs-dashed { border-bottom-style: dashed !important; }
107
- .d-bls-dashed { border-left-style: dashed !important; }
102
+ .d-bas-dashed { border-style: dashed !important; }
103
+ .d-bts-dashed { border-top-style: dashed !important; }
104
+ .d-brs-dashed { border-right-style: dashed !important; }
105
+ .d-bbs-dashed { border-bottom-style: dashed !important; }
106
+ .d-bls-dashed { border-left-style: dashed !important; }
108
107
 
109
- .d-bas-dotted { border-style: dotted !important; }
110
- .d-bts-dotted { border-top-style: dotted !important; }
111
- .d-brs-dotted { border-right-style: dotted !important; }
112
- .d-bbs-dotted { border-bottom-style: dotted !important; }
113
- .d-bls-dotted { border-left-style: dotted !important; }
108
+ .d-bas-dotted { border-style: dotted !important; }
109
+ .d-bts-dotted { border-top-style: dotted !important; }
110
+ .d-brs-dotted { border-right-style: dotted !important; }
111
+ .d-bbs-dotted { border-bottom-style: dotted !important; }
112
+ .d-bls-dotted { border-left-style: dotted !important; }
114
113
 
115
- .d-bas-unset { border-style: unset !important; }
114
+ .d-bas-unset { border-style: unset !important; }
116
115
 
117
116
 
118
117
  // $$ WIDTH
119
118
  // ----------------------------------------------------------------------------
120
- .d-baw0 { border-width: var(--su0) !important; }
121
- .d-baw1 { border-width: var(--su1) !important; }
122
- .d-baw2 { border-width: var(--su2) !important; }
123
- .d-baw4 { border-width: var(--su4) !important; }
124
- .d-baw6 { border-width: var(--su6) !important; }
119
+ .d-baw0 { border-width: var(--su0) !important; }
120
+ .d-baw1 { border-width: var(--su1) !important; }
121
+ .d-baw2 { border-width: var(--su2) !important; }
122
+ .d-baw4 { border-width: var(--su4) !important; }
123
+ .d-baw6 { border-width: var(--su6) !important; }
125
124
 
126
125
  // -- Top Border Width
127
- .d-btw0 { border-top-width: var(--su0) !important; }
128
- .d-btw1 { border-top-width: var(--su1) !important; }
129
- .d-btw2 { border-top-width: var(--su2) !important; }
130
- .d-btw4 { border-top-width: var(--su4) !important; }
131
- .d-btw6 { border-top-width: var(--su6) !important; }
126
+ .d-btw0 { border-top-width: var(--su0) !important; }
127
+ .d-btw1 { border-top-width: var(--su1) !important; }
128
+ .d-btw2 { border-top-width: var(--su2) !important; }
129
+ .d-btw4 { border-top-width: var(--su4) !important; }
130
+ .d-btw6 { border-top-width: var(--su6) !important; }
132
131
 
133
132
  // -- Right Border Width
134
- .d-brw0 { border-right-width: var(--su0) !important; }
135
- .d-brw1 { border-right-width: var(--su1) !important; }
136
- .d-brw2 { border-right-width: var(--su2) !important; }
137
- .d-brw4 { border-right-width: var(--su4) !important; }
138
- .d-brw6 { border-right-width: var(--su6) !important; }
133
+ .d-brw0 { border-right-width: var(--su0) !important; }
134
+ .d-brw1 { border-right-width: var(--su1) !important; }
135
+ .d-brw2 { border-right-width: var(--su2) !important; }
136
+ .d-brw4 { border-right-width: var(--su4) !important; }
137
+ .d-brw6 { border-right-width: var(--su6) !important; }
139
138
 
140
139
  // -- Bottom Border Width
141
- .d-bbw0 { border-bottom-width: var(--su0) !important; }
142
- .d-bbw1 { border-bottom-width: var(--su1) !important; }
143
- .d-bbw2 { border-bottom-width: var(--su2) !important; }
144
- .d-bbw4 { border-bottom-width: var(--su4) !important; }
145
- .d-bbw6 { border-bottom-width: var(--su6) !important; }
140
+ .d-bbw0 { border-bottom-width: var(--su0) !important; }
141
+ .d-bbw1 { border-bottom-width: var(--su1) !important; }
142
+ .d-bbw2 { border-bottom-width: var(--su2) !important; }
143
+ .d-bbw4 { border-bottom-width: var(--su4) !important; }
144
+ .d-bbw6 { border-bottom-width: var(--su6) !important; }
146
145
 
147
146
  // -- Left Border Width
148
- .d-blw0 { border-left-width: var(--su0) !important; }
149
- .d-blw1 { border-left-width: var(--su1) !important; }
150
- .d-blw2 { border-left-width: var(--su2) !important; }
151
- .d-blw4 { border-left-width: var(--su4) !important; }
152
- .d-blw6 { border-left-width: var(--su6) !important; }
147
+ .d-blw0 { border-left-width: var(--su0) !important; }
148
+ .d-blw1 { border-left-width: var(--su1) !important; }
149
+ .d-blw2 { border-left-width: var(--su2) !important; }
150
+ .d-blw4 { border-left-width: var(--su4) !important; }
151
+ .d-blw6 { border-left-width: var(--su6) !important; }
153
152
 
154
153
  // -- X Border Width
155
- .d-bxw0 { .d-brw0(); .d-blw0(); }
156
- .d-bxw1 { .d-brw1(); .d-blw1(); }
157
- .d-bxw2 { .d-brw2(); .d-blw2(); }
158
- .d-bxw4 { .d-brw4(); .d-blw4(); }
159
- .d-bxw6 { .d-brw6(); .d-blw6(); }
154
+ .d-bxw0 { .d-brw0(); .d-blw0(); }
155
+ .d-bxw1 { .d-brw1(); .d-blw1(); }
156
+ .d-bxw2 { .d-brw2(); .d-blw2(); }
157
+ .d-bxw4 { .d-brw4(); .d-blw4(); }
158
+ .d-bxw6 { .d-brw6(); .d-blw6(); }
160
159
 
161
160
  // -- Y Border Width
162
- .d-byw0 { .d-btw0(); .d-bbw0(); }
163
- .d-byw1 { .d-btw1(); .d-bbw1(); }
164
- .d-byw2 { .d-btw2(); .d-bbw2(); }
165
- .d-byw4 { .d-btw4(); .d-bbw4(); }
166
- .d-byw6 { .d-btw6(); .d-bbw6(); }
161
+ .d-byw0 { .d-btw0(); .d-bbw0(); }
162
+ .d-byw1 { .d-btw1(); .d-bbw1(); }
163
+ .d-byw2 { .d-btw2(); .d-bbw2(); }
164
+ .d-byw4 { .d-btw4(); .d-bbw4(); }
165
+ .d-byw6 { .d-btw6(); .d-bbw6(); }
167
166
 
168
167
 
169
168
  // ============================================================================
@@ -173,23 +172,30 @@
173
172
  // ----------------------------------------------------------------------------
174
173
  .d-divide-y > * + * {
175
174
  --divide-y-reverse: 0;
176
- border-top: calc(~"1px * (1 - var(--divide-y-reverse))") solid currentColor !important;
177
- border-bottom: calc(~"1px * var(--divide-y-reverse)") solid currentColor !important;
175
+
176
+ border-top: calc(~'1px * (1 - var(--divide-y-reverse))') solid currentColor !important;
177
+ border-bottom: calc(~'1px * var(--divide-y-reverse)') solid currentColor !important;
178
178
  }
179
+
179
180
  .d-divide-y0 > * + * {
180
181
  --divide-y-reverse: 0;
181
- border-top: calc(~"0 * (1 - var(--divide-y-reverse))") solid currentColor !important;
182
- border-bottom: calc(~"0 * var(--divide-y-reverse)") solid currentColor !important;
182
+
183
+ border-top: calc(~'0 * (1 - var(--divide-y-reverse))') solid currentColor !important;
184
+ border-bottom: calc(~'0 * var(--divide-y-reverse)') solid currentColor !important;
183
185
  }
186
+
184
187
  .d-divide-y2 > * + * {
185
188
  --divide-y-reverse: 0;
186
- border-top: calc(~"2px * (1 - var(--divide-y-reverse))") solid currentColor !important;
187
- border-bottom: calc(~"2px * var(--divide-y-reverse)") solid currentColor !important;
189
+
190
+ border-top: calc(~'2px * (1 - var(--divide-y-reverse))') solid currentColor !important;
191
+ border-bottom: calc(~'2px * var(--divide-y-reverse)') solid currentColor !important;
188
192
  }
193
+
189
194
  .d-divide-y4 > * + * {
190
195
  --divide-y-reverse: 0;
191
- border-top: calc(~"4px * (1 - var(--divide-y-reverse))") solid currentColor !important;
192
- border-bottom: calc(~"4px * var(--divide-y-reverse)") solid currentColor !important;
196
+
197
+ border-top: calc(~'4px * (1 - var(--divide-y-reverse))') solid currentColor !important;
198
+ border-bottom: calc(~'4px * var(--divide-y-reverse)') solid currentColor !important;
193
199
  }
194
200
  .d-divide-y-reverse > * + * { --divide-y-reverse: 1; }
195
201
 
@@ -197,22 +203,29 @@
197
203
  // ----------------------------------------------------------------------------
198
204
  .d-divide-x > * + * {
199
205
  --divide-x-reverse: 0;
200
- border-left: calc(~"1px * (1 - var(--divide-x-reverse))") solid currentColor !important;
201
- border-right: calc(~"1px * var(--divide-x-reverse)") solid currentColor !important;
206
+
207
+ border-right: calc(~'1px * var(--divide-x-reverse)') solid currentColor !important;
208
+ border-left: calc(~'1px * (1 - var(--divide-x-reverse))') solid currentColor !important;
202
209
  }
210
+
203
211
  .d-divide-x0 > * + * {
204
212
  --divide-x-reverse: 0;
205
- border-left: calc(~"0 * (1 - var(--divide-x-reverse))") solid currentColor !important;
206
- border-right: calc(~"0 * var(--divide-x-reverse)") solid currentColor !important;
213
+
214
+ border-right: calc(~'0 * var(--divide-x-reverse)') solid currentColor !important;
215
+ border-left: calc(~'0 * (1 - var(--divide-x-reverse))') solid currentColor !important;
207
216
  }
217
+
208
218
  .d-divide-x2 > * + * {
209
219
  --divide-x-reverse: 0;
210
- border-left: calc(~"2px * (1 - var(--divide-x-reverse))") solid currentColor !important;
211
- border-right: calc(~"2px * var(--divide-x-reverse)") solid currentColor !important;
220
+
221
+ border-right: calc(~'2px * var(--divide-x-reverse)') solid currentColor !important;
222
+ border-left: calc(~'2px * (1 - var(--divide-x-reverse))') solid currentColor !important;
212
223
  }
224
+
213
225
  .d-divide-x4 > * + * {
214
226
  --divide-x-reverse: 0;
215
- border-left: calc(~"4px * (1 - var(--divide-x-reverse))") solid currentColor !important;
216
- border-right: calc(~"4px * var(--divide-x-reverse)") solid currentColor !important;
227
+
228
+ border-right: calc(~'4px * var(--divide-x-reverse)') solid currentColor !important;
229
+ border-left: calc(~'4px * (1 - var(--divide-x-reverse))') solid currentColor !important;
217
230
  }
218
231
  .d-divide-x-reverse > * + * { --divide-x-reverse: 1; }
@@ -1,4 +1,4 @@
1
- @import (reference) "../utilities/internals.less";
1
+ //@import (reference) '../utilities/internals.less';
2
2
 
3
3
  //
4
4
  // DIALTONE
@@ -9,192 +9,8 @@
9
9
  // documentation pages at https://dialpad.design
10
10
  //
11
11
  // TABLE OF CONTENTS
12
- // • MIXINS
13
12
  // • UTILITY CLASSES
14
13
  //
15
- // ============================================================================
16
- // $ MIXINS
17
- // ----------------------------------------------------------------------------
18
- #d-internals() {
19
- // ========================================================================
20
- // $ COLOR CLASS GENERATOR
21
- // Create a mixin to generate all the utility classes required. By doing it
22
- // this way, we are disabling the ability to use Dialtone utility classes as
23
- // a mixin. Previously we had allowed for utility classes to be used as
24
- // mixins, but because our overall CSS bundle size is growing exponentially,
25
- // Dialtone v6 removed this ability. It is now recommended to use CSS
26
- // variables (var(--color)). Less variables (@color) are also available,
27
- // but their use is discouraged.
28
- //
29
- // USAGE:
30
- // #d-internals #color-classes(purple-500);
31
- //
32
- // ------------------------------------------------------------------------
33
- #color-classes(@color-name) {
34
- // -- FONT STYLES
35
- .d-fc-@{color-name},
36
- .h\:d-fc-@{color-name}:hover,
37
- .f\:d-fc-@{color-name}:focus {
38
- --fco: 100%;
39
- color: hsla(var(~"--@{color-name}-h") var(~"--@{color-name}-s") var(~"--@{color-name}-l") ~" / " var(--fco)) !important;
40
- }
41
- .f\:d-fc-@{color-name}:focus-within {
42
- --fco: 100%;
43
- color: hsla(var(~"--@{color-name}-h") var(~"--@{color-name}-s") var(~"--@{color-name}-l") ~" / " var(--fco)) !important;
44
- }
45
- #d-internals #dark-mode('.d\:d-fc-@{color-name}', {
46
- --fco: 100%;
47
- color: hsla(var(~"--@{color-name}-h") var(~"--@{color-name}-s") var(~"--@{color-name}-l") ~" / " var(--fco)) !important;
48
- });
49
-
50
-
51
- // -- BORDER STYLES
52
- .d-bc-@{color-name},
53
- .h\:d-bc-@{color-name}:hover,
54
- .f\:d-bc-@{color-name}:focus {
55
- --bco: 100%;
56
- border-color: hsla(var(~"--@{color-name}-h") var(~"--@{color-name}-s") var(~"--@{color-name}-l") ~" / " var(--bco)) !important;
57
- }
58
- .f\:d-bc-@{color-name}:focus-within {
59
- --bco: 100%;
60
- border-color: hsla(var(~"--@{color-name}-h") var(~"--@{color-name}-s") var(~"--@{color-name}-l") ~" / " var(--bco)) !important;
61
- }
62
- #d-internals #dark-mode('.d\:d-bc-@{color-name}', {
63
- --bco: 100%;
64
- border-color: hsla(var(~"--@{color-name}-h") var(~"--@{color-name}-s") var(~"--@{color-name}-l") ~" / " var(--bco)) !important;
65
- });
66
-
67
- // -- DIVIDER COLORS
68
- .d-divide-@{color-name} > * + * {
69
- --dco: 100%;
70
- border-color: hsla(var(~"--@{color-name}-h") var(~"--@{color-name}-s") var(~"--@{color-name}-l") ~" / " var(--dco)) !important;
71
- }
72
- #d-internals #dark-mode('.d\:d-divide-@{color-name} > * + *', {
73
- --dco: 100%;
74
- border-color: hsla(var(~"--@{color-name}-h") var(~"--@{color-name}-s") var(~"--@{color-name}-l") ~" / " var(--dco)) !important;
75
- });
76
-
77
- // -- BACKGROUND STYLES
78
- .d-bgc-@{color-name},
79
- .h\:d-bgc-@{color-name}:hover,
80
- .f\:d-bgc-@{color-name}:focus {
81
- --bgo: 100%;
82
- background-color: hsla(var(~"--@{color-name}-h") var(~"--@{color-name}-s") var(~"--@{color-name}-l") ~" / " var(--bgo)) !important;
83
- }
84
- .f\:d-bgc-@{color-name}:focus-within {
85
- --bgo: 100%;
86
- background-color: hsla(var(~"--@{color-name}-h") var(~"--@{color-name}-s") var(~"--@{color-name}-l") ~" / " var(--bgo)) !important;
87
- }
88
- #d-internals #dark-mode('.d\:d-bgc-@{color-name}', {
89
- --bgo: 100%;
90
- background-color: hsla(var(~"--@{color-name}-h") var(~"--@{color-name}-s") var(~"--@{color-name}-l") ~" / " var(--bgo)) !important;
91
- });
92
- }
93
-
94
- // ========================================================================
95
- // $ STANDARD WEIGHT LOOP GENERATOR
96
- // Since most of our colors have similar stops (100 - 600), we'll save
97
- // ourselves the need to call the mixin for each color and create a
98
- // loop that will create most of the colors for us.
99
- //
100
- // USAGE:
101
- // #d-internals #standard-stops(purple);
102
- //
103
- // ------------------------------------------------------------------------
104
- #standard-stops(@color) {
105
- #d-internals #color-classes(~"@{color}-600");
106
- #d-internals #color-classes(~"@{color}-500");
107
- #d-internals #color-classes(~"@{color}-400");
108
- #d-internals #color-classes(~"@{color}-300");
109
- #d-internals #color-classes(~"@{color}-200");
110
- #d-internals #color-classes(~"@{color}-100");
111
- }
112
-
113
- // ========================================================================
114
- // $ OPACITY CLASS GENERATOR
115
- // Creates opacity classes for font, background, and border colors.
116
- //
117
- // USAGE:
118
- // #d-internals #opacity-classes(50);
119
- //
120
- // ------------------------------------------------------------------------
121
- #opacity-classes(@opacity) {
122
- // -- FONT OPACITY
123
- .d-fco@{opacity},
124
- .h\:d-fco@{opacity}:hover,
125
- .f\:d-fco@{opacity}:focus {
126
- --fco: ~"@{opacity}%" !important;
127
- }
128
- .f\:d-fco@{opacity}:focus-within {
129
- --fco: ~"@{opacity}%" !important;
130
- }
131
- #d-internals #dark-mode('.d\:d-fco@{opacity}', {
132
- --fco: ~"@{opacity}%" !important;
133
- });
134
-
135
-
136
- // -- BORDER OPACITY
137
- .d-bco@{opacity},
138
- .h\:d-bco@{opacity}:hover,
139
- .f\:d-bco@{opacity}:focus {
140
- --bco: ~"@{opacity}%" !important;
141
- }
142
- .f\:d-bco@{opacity}:focus-within {
143
- --bco: ~"@{opacity}%" !important;
144
- }
145
- #d-internals #dark-mode('.d\:d-bco@{opacity}', {
146
- --bco: ~"@{opacity}%" !important;
147
- });
148
-
149
- // -- DIVIDER OPACITY
150
- .d-dco@{opacity} > * + * {
151
- --dco: ~"@{opacity}%" !important;
152
- }
153
- #d-internals #dark-mode('.d\:d-dco@{opacity} > * + *', {
154
- --dco: ~"@{opacity}%" !important;
155
- });
156
-
157
- // -- BACKGROUND COLOR OPACITY
158
- .d-bgo@{opacity},
159
- .h\:d-bgo@{opacity}:hover,
160
- .f\:d-bgo@{opacity}:focus {
161
- --bgo: ~"@{opacity}%" !important;
162
- }
163
- .f\:d-bgo@{opacity}:focus-within {
164
- --bgo: ~"@{opacity}%" !important;
165
- }
166
- #d-internals #dark-mode('.d\:d-bgo@{opacity}', {
167
- --bgo: ~"@{opacity}%" !important;
168
- });
169
-
170
- // -- BACKGROUND GRADIENT STARTING STOP
171
- .d-bgg-from-o@{opacity},
172
- .h\:d-bgg-from-@{opacity}:hover,
173
- .f\:d-bgg-from-@{opacity}:focus {
174
- --bgg-from-opacity: ~"@{opacity}%" !important;
175
- }
176
- .f\:d-bgg-from-@{opacity}:focus-within {
177
- --bgg-from-opacity: ~"@{opacity}%" !important;
178
- }
179
- #d-internals #dark-mode('.d\:d-bgg-from-@{opacity}', {
180
- --bgg-from-opacity: ~"@{opacity}%" !important;
181
- });
182
-
183
- // -- BACKGROUND GRADIENT ENDING STOP
184
- .d-bgg-to-o@{opacity},
185
- .h\:d-bgg-to-@{opacity}:hover,
186
- .f\:d-bgg-to-@{opacity}:focus {
187
- --bgg-to-opacity: ~"@{opacity}%" !important;
188
- }
189
- .f\:d-bgg-to-@{opacity}:focus-within {
190
- --bgg-to-opacity: ~"@{opacity}%" !important;
191
- }
192
- #d-internals #dark-mode('.d\:d-bgg-to-@{opacity}', {
193
- --bgg-to-opacity: ~"@{opacity}%" !important;
194
- });
195
- }
196
- }
197
-
198
14
  // ============================================================================
199
15
  // $ UTILITY CLASSES
200
16
  // ----------------------------------------------------------------------------
@@ -226,62 +42,66 @@
226
42
  .d-fc-primary,
227
43
  .h\:d-fc-primary:hover,
228
44
  .f\:d-fc-primary:focus {
229
- color: hsla(var(--primary-color-h) var(--primary-color-s) var(--primary-color-l) ~" / " var(--fco)) !important;
45
+ color: hsla(var(--primary-color-h) var(--primary-color-s) var(--primary-color-l) ~' / ' var(--fco)) !important;
230
46
  }
47
+
231
48
  .f\:d-fc-primary:focus-within {
232
- color: hsla(var(--primary-color-h) var(--primary-color-s) var(--primary-color-l) ~" / " var(--fco)) !important;
49
+ color: hsla(var(--primary-color-h) var(--primary-color-s) var(--primary-color-l) ~' / ' var(--fco)) !important;
233
50
  }
234
51
 
235
52
  // $$ TEXT COLORS
236
53
  // ----------------------------------------------------------------------------
237
- .d-fc-dark { &:extend(.d-fc-black-900); }
238
- .h\:d-fc-dark:hover { &:extend(.h\:d-fc-black-900:hover); }
239
- .f\:d-fc-dark:focus { &:extend(.f\:d-fc-black-900:focus); }
240
- .f\:d-fc-dark:focus-within { &:extend(.f\:d-fc-black-900:focus-within); }
241
-
242
- .d-fc-medium { &:extend(.d-fc-black-800); }
243
- .h\:d-fc-medium:hover { &:extend(.h\:d-fc-black-800:hover); }
244
- .f\:d-fc-medium:focus { &:extend(.f\:d-fc-black-800:focus); }
245
- .f\:d-fc-medium:focus-within { &:extend(.f\:d-fc-black-800:focus-within); }
246
-
247
- .d-fc-light { &:extend(.d-fc-black-700); }
248
- .h\:d-fc-light:hover { &:extend(.h\:d-fc-black-700:hover); }
249
- .f\:d-fc-light:focus { &:extend(.f\:d-fc-black-700:focus); }
250
- .f\:d-fc-light:focus-within { &:extend(.f\:d-fc-black-700:focus-within); }
251
-
252
- .d-fc-lighter { &:extend(.d-fc-black-600); }
253
- .d-fc-purple { &:extend(.d-fc-purple-500); }
254
- .d-fc-orange { &:extend(.d-fc-orange-600); }
255
- .d-fc-pink { &:extend(.d-fc-pink-600); }
54
+ .d-fc-dark { &:extend(.d-fc-black-900); }
55
+ .h\:d-fc-dark:hover { &:extend(.h\:d-fc-black-900:hover); }
56
+ .f\:d-fc-dark:focus { &:extend(.f\:d-fc-black-900:focus); }
57
+ .f\:d-fc-dark:focus-within { &:extend(.f\:d-fc-black-900:focus-within); }
58
+
59
+ .d-fc-medium { &:extend(.d-fc-black-800); }
60
+ .h\:d-fc-medium:hover { &:extend(.h\:d-fc-black-800:hover); }
61
+ .f\:d-fc-medium:focus { &:extend(.f\:d-fc-black-800:focus); }
62
+ .f\:d-fc-medium:focus-within { &:extend(.f\:d-fc-black-800:focus-within); }
63
+
64
+ .d-fc-light { &:extend(.d-fc-black-700); }
65
+ .h\:d-fc-light:hover { &:extend(.h\:d-fc-black-700:hover); }
66
+ .f\:d-fc-light:focus { &:extend(.f\:d-fc-black-700:focus); }
67
+ .f\:d-fc-light:focus-within { &:extend(.f\:d-fc-black-700:focus-within); }
68
+
69
+ .d-fc-lighter { &:extend(.d-fc-black-600); }
70
+ .d-fc-purple { &:extend(.d-fc-purple-500); }
71
+ .d-fc-orange { &:extend(.d-fc-orange-600); }
72
+ .d-fc-pink { &:extend(.d-fc-pink-600); }
256
73
 
257
74
  .d-fc-green,
258
- .d-fc-success { &:extend(.d-fc-green-600); }
75
+ .d-fc-success { &:extend(.d-fc-green-600); }
76
+
259
77
  .d-fc-yellow,
260
- .d-fc-warning { &:extend(.d-fc-yellow-600); }
78
+ .d-fc-warning { &:extend(.d-fc-yellow-600); }
79
+
261
80
  .d-fc-red,
262
81
  .d-fc-error,
263
- .d-fc-danger { &:extend(.d-fc-red-600); }
82
+ .d-fc-danger { &:extend(.d-fc-red-600); }
264
83
 
265
- .d-fc-current { color: currentColor !important; }
266
- .d-fc-transparent { color: transparent !important; }
267
- .d-fc-unset { color: unset !important; }
84
+ .d-fc-current { color: currentColor !important; }
85
+ .d-fc-transparent { color: transparent !important; }
86
+ .d-fc-unset { color: unset !important; }
268
87
 
269
88
 
270
89
  // $$ BACKGROUND COLORS
271
90
  // ----------------------------------------------------------------------------
272
- .d-bgc-success { &:extend(.d-bgc-green-500); }
273
- .d-bgc-warning { &:extend(.d-bgc-yellow-500); }
91
+ .d-bgc-success { &:extend(.d-bgc-green-500); }
92
+ .d-bgc-warning { &:extend(.d-bgc-yellow-500); }
93
+
274
94
  .d-bgc-error,
275
- .d-bgc-danger { &:extend(.d-bgc-red-500); }
276
- .d-bgc-transparent { background-color: transparent !important; background-image: none !important; }
277
- .d-bgc-unset { background-color: unset !important; background-image: unset !important; }
95
+ .d-bgc-danger { &:extend(.d-bgc-red-500); }
96
+ .d-bgc-transparent { background-color: transparent !important; background-image: none !important; }
97
+ .d-bgc-unset { background-color: unset !important; background-image: unset !important; }
278
98
 
279
99
 
280
100
  // $$ BORDER COLORS
281
101
  // ----------------------------------------------------------------------------
282
- .d-bc-transparent { border-color: transparent !important; }
283
- .d-bc-current { border-color: currentColor !important; }
284
- .d-bc-unset { border-color: unset !important; }
102
+ .d-bc-transparent { border-color: transparent !important; }
103
+ .d-bc-current { border-color: currentColor !important; }
104
+ .d-bc-unset { border-color: unset !important; }
285
105
 
286
106
 
287
107
  // $ OPACITY CLASSES