@dialpad/dialtone 6.8.0 → 6.11.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 +43 -0
- package/lib/build/less/components/banner.less +1 -1
- package/lib/build/less/components/button.less +23 -4
- package/lib/build/less/components/forms.less +1 -1
- package/lib/build/less/components/input.less +2 -2
- package/lib/build/less/components/modal.less +1 -1
- package/lib/build/less/components/notice.less +1 -1
- package/lib/build/less/components/selects.less +4 -4
- package/lib/build/less/components/table.less +1 -1
- package/lib/build/less/components/toast.less +2 -2
- package/lib/build/less/dialtone.less +3 -21
- package/lib/build/less/themes/default.less +9 -9
- package/lib/build/less/utilities/backgrounds.less +4 -54
- package/lib/build/less/utilities/borders.less +3 -4
- package/lib/build/less/utilities/colors.less +33 -209
- package/lib/build/less/utilities/effects.less +8 -2
- package/lib/build/less/utilities/flex.less +3 -32
- package/lib/build/less/utilities/grid.less +1 -18
- package/lib/build/less/utilities/internals.less +277 -180
- package/lib/build/less/utilities/layout.less +18 -19
- package/lib/build/less/utilities/responsive.less +0 -143
- package/lib/build/less/utilities/sizing.less +2 -2
- package/lib/build/less/utilities/spacing.less +2 -2
- package/lib/build/less/utilities/svg.less +1 -1
- package/lib/build/less/utilities/typography.less +4 -4
- package/lib/build/less/variables/colors.less +3 -3
- package/lib/build/less/variables/layout.less +21 -0
- package/lib/build/svg/spot/file-upload.svg +56 -0
- package/lib/build/svg/system/{thumb_down.svg → thumb-down.svg} +0 -0
- package/lib/build/svg/system/{thumb_up.svg → thumb-up.svg} +0 -0
- package/lib/build/svg/system/windows.svg +6 -0
- package/lib/dist/css/dialtone.css +10785 -26801
- package/lib/dist/css/dialtone.min.css +1 -1
- package/lib/dist/svg/spot/file-upload.svg +1 -0
- package/lib/dist/svg/system/thumb-down.svg +1 -0
- package/lib/dist/svg/system/thumb-up.svg +1 -0
- package/lib/dist/svg/system/windows.svg +1 -0
- package/lib/dist/vue/icons/IconThumbDown.vue +3 -0
- package/lib/dist/vue/icons/IconThumbUp.vue +3 -0
- package/lib/dist/vue/icons/IconWindows.vue +3 -0
- package/lib/dist/vue/spot/SpotFileUpload.vue +3 -0
- package/package.json +6 -5
- package/lib/dist/svg/system/thumb_down.svg +0 -1
- package/lib/dist/svg/system/thumb_up.svg +0 -1
- package/lib/dist/vue/icons/IconThumb_down.vue +0 -3
- package/lib/dist/vue/icons/IconThumb_up.vue +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,46 @@
|
|
|
1
|
+
# [6.11.0](https://github.com/dialpad/dialtone/compare/v6.10.0...v6.11.0) (2022-01-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* generate missing hover/focus classes ([#522](https://github.com/dialpad/dialtone/issues/522)) ([0cc761b](https://github.com/dialpad/dialtone/commit/0cc761b5b6ee86746dfbd54e48400652b819348c))
|
|
7
|
+
* responsive variations not working ([#526](https://github.com/dialpad/dialtone/issues/526)) ([c29d53d](https://github.com/dialpad/dialtone/commit/c29d53dc1c3c89a839d3c9724380f5b2e27e0cc2))
|
|
8
|
+
* 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))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* add file upload spot illustration ([#527](https://github.com/dialpad/dialtone/issues/527)) ([e1533e8](https://github.com/dialpad/dialtone/commit/e1533e856f570688aa5ffc3dd37ae05c3a842987))
|
|
14
|
+
|
|
15
|
+
# [6.10.0](https://github.com/dialpad/dialtone/compare/v6.9.0...v6.10.0) (2021-12-15)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* add important to padding ([#518](https://github.com/dialpad/dialtone/issues/518)) ([2a7b0a5](https://github.com/dialpad/dialtone/commit/2a7b0a5d0ff700f9bf24369701f0dd4c93988ec3))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* **button:** add muted styles ([#516](https://github.com/dialpad/dialtone/issues/516)) ([5bea155](https://github.com/dialpad/dialtone/commit/5bea155057620865174e596c539660185029f499))
|
|
26
|
+
|
|
27
|
+
# [6.9.0](https://github.com/dialpad/dialtone/compare/v6.8.1...v6.9.0) (2021-12-07)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
* add foundational a11y documentation ([#512](https://github.com/dialpad/dialtone/issues/512)) ([fd7d771](https://github.com/dialpad/dialtone/commit/fd7d77197576ad1506bd1dda71051aa841bcb412))
|
|
33
|
+
* 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)
|
|
34
|
+
* add windows logo as system icon ([#517](https://github.com/dialpad/dialtone/issues/517)) ([3ee2445](https://github.com/dialpad/dialtone/commit/3ee24455842b379328409a1ca30399174be46402))
|
|
35
|
+
* button group css classes ([#514](https://github.com/dialpad/dialtone/issues/514)) ([edb75d7](https://github.com/dialpad/dialtone/commit/edb75d7bb672223d4faaeae5e59b1e77d7644191))
|
|
36
|
+
|
|
37
|
+
## [6.8.1](https://github.com/dialpad/dialtone/compare/v6.8.0...v6.8.1) (2021-11-23)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Bug Fixes
|
|
41
|
+
|
|
42
|
+
* rename thumb down and thumb up to filename conventions ([9a22ad0](https://github.com/dialpad/dialtone/commit/9a22ad01b4b0bda24f7cd76a4465a76fce1ebbc9))
|
|
43
|
+
|
|
1
44
|
# [6.8.0](https://github.com/dialpad/dialtone/compare/v6.7.0...v6.8.0) (2021-11-19)
|
|
2
45
|
|
|
3
46
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
//@import (reference) '../variables/icons.less';
|
|
2
2
|
|
|
3
3
|
//
|
|
4
4
|
// DIALTONE
|
|
@@ -260,11 +260,11 @@
|
|
|
260
260
|
// $$ MUTED BUTTON
|
|
261
261
|
// ----------------------------------------------------------------------------
|
|
262
262
|
.d-btn--muted {
|
|
263
|
-
--button--fc: var(--
|
|
263
|
+
--button--fc: var(--muted-color);
|
|
264
264
|
|
|
265
265
|
&:hover {
|
|
266
|
-
--button--fc: var(--
|
|
267
|
-
--button--bgc: hsla(var(--muted-color-hsl) ~' / '
|
|
266
|
+
--button--fc: var(--muted-color-hover);
|
|
267
|
+
--button--bgc: hsla(var(--muted-color-hsl) ~' / ' 7.5%);
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
&:focus {
|
|
@@ -443,3 +443,22 @@
|
|
|
443
443
|
content: '';
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
+
|
|
447
|
+
// ============================================================================
|
|
448
|
+
// $ BUTTON GROUP
|
|
449
|
+
// ----------------------------------------------------------------------------
|
|
450
|
+
.d-btn-group {
|
|
451
|
+
display: flex;
|
|
452
|
+
|
|
453
|
+
&.d-btn-group--start {
|
|
454
|
+
justify-content: start;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
&.d-btn-group--end {
|
|
458
|
+
justify-content: end;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
&.d-btn-group--space-between {
|
|
462
|
+
justify-content: space-between;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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,7 +100,7 @@
|
|
|
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);
|
|
@@ -29,6 +29,9 @@
|
|
|
29
29
|
@import 'components/tabs';
|
|
30
30
|
@import 'components/tooltip';
|
|
31
31
|
|
|
32
|
+
// -- CONFIG
|
|
33
|
+
@import 'utilities/internals';
|
|
34
|
+
|
|
32
35
|
// -- UTILITIES
|
|
33
36
|
@import 'utilities/backgrounds';
|
|
34
37
|
@import 'utilities/borders';
|
|
@@ -38,32 +41,11 @@
|
|
|
38
41
|
@import 'utilities/grid';
|
|
39
42
|
@import 'utilities/interactivity';
|
|
40
43
|
@import 'utilities/layout';
|
|
41
|
-
@import 'utilities/responsive';
|
|
42
44
|
@import 'utilities/sizing';
|
|
43
45
|
@import 'utilities/spacing';
|
|
44
46
|
@import 'utilities/svg';
|
|
45
47
|
@import 'utilities/typography';
|
|
46
48
|
|
|
47
|
-
|
|
48
49
|
// -- THEMES & GLOBAL SETTINGS
|
|
49
50
|
@import 'dialtone-globals';
|
|
50
51
|
@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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
2
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
//@import (reference) '../utilities/internals.less';
|
|
2
2
|
|
|
3
3
|
//
|
|
4
4
|
// DIALTONE
|
|
@@ -9,199 +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
|
-
|
|
40
|
-
color: hsla(var(~'--@{color-name}-h') var(~'--@{color-name}-s') var(~'--@{color-name}-l') ~' / ' var(--fco)) !important;
|
|
41
|
-
}
|
|
42
|
-
.f\:d-fc-@{color-name}:focus-within {
|
|
43
|
-
--fco: 100%;
|
|
44
|
-
|
|
45
|
-
color: hsla(var(~'--@{color-name}-h') var(~'--@{color-name}-s') var(~'--@{color-name}-l') ~' / ' var(--fco)) !important;
|
|
46
|
-
}
|
|
47
|
-
#d-internals #dark-mode('.d\:d-fc-@{color-name}', {
|
|
48
|
-
--fco: 100%;
|
|
49
|
-
color: hsla(var(~'--@{color-name}-h') var(~'--@{color-name}-s') var(~'--@{color-name}-l') ~' / ' var(--fco)) !important;
|
|
50
|
-
});;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
// -- BORDER STYLES
|
|
54
|
-
.d-bc-@{color-name},
|
|
55
|
-
.h\:d-bc-@{color-name}:hover,
|
|
56
|
-
.f\:d-bc-@{color-name}:focus {
|
|
57
|
-
--bco: 100%;
|
|
58
|
-
|
|
59
|
-
border-color: hsla(var(~'--@{color-name}-h') var(~'--@{color-name}-s') var(~'--@{color-name}-l') ~' / ' var(--bco)) !important;
|
|
60
|
-
}
|
|
61
|
-
.f\:d-bc-@{color-name}:focus-within {
|
|
62
|
-
--bco: 100%;
|
|
63
|
-
|
|
64
|
-
border-color: hsla(var(~'--@{color-name}-h') var(~'--@{color-name}-s') var(~'--@{color-name}-l') ~' / ' var(--bco)) !important;
|
|
65
|
-
}
|
|
66
|
-
#d-internals #dark-mode('.d\:d-bc-@{color-name}', {
|
|
67
|
-
--bco: 100%;
|
|
68
|
-
border-color: hsla(var(~'--@{color-name}-h') var(~'--@{color-name}-s') var(~'--@{color-name}-l') ~' / ' var(--bco)) !important;
|
|
69
|
-
});;
|
|
70
|
-
|
|
71
|
-
// -- DIVIDER COLORS
|
|
72
|
-
.d-divide-@{color-name} > * + * {
|
|
73
|
-
--dco: 100%;
|
|
74
|
-
|
|
75
|
-
border-color: hsla(var(~'--@{color-name}-h') var(~'--@{color-name}-s') var(~'--@{color-name}-l') ~' / ' var(--dco)) !important;
|
|
76
|
-
}
|
|
77
|
-
#d-internals #dark-mode('.d\:d-divide-@{color-name} > * + *', {
|
|
78
|
-
--dco: 100%;
|
|
79
|
-
border-color: hsla(var(~'--@{color-name}-h') var(~'--@{color-name}-s') var(~'--@{color-name}-l') ~' / ' var(--dco)) !important;
|
|
80
|
-
});;
|
|
81
|
-
|
|
82
|
-
// -- BACKGROUND STYLES
|
|
83
|
-
.d-bgc-@{color-name},
|
|
84
|
-
.h\:d-bgc-@{color-name}:hover,
|
|
85
|
-
.f\:d-bgc-@{color-name}:focus {
|
|
86
|
-
--bgo: 100%;
|
|
87
|
-
|
|
88
|
-
background-color: hsla(var(~'--@{color-name}-h') var(~'--@{color-name}-s') var(~'--@{color-name}-l') ~' / ' var(--bgo)) !important;
|
|
89
|
-
}
|
|
90
|
-
.f\:d-bgc-@{color-name}:focus-within {
|
|
91
|
-
--bgo: 100%;
|
|
92
|
-
|
|
93
|
-
background-color: hsla(var(~'--@{color-name}-h') var(~'--@{color-name}-s') var(~'--@{color-name}-l') ~' / ' var(--bgo)) !important;
|
|
94
|
-
}
|
|
95
|
-
#d-internals #dark-mode('.d\:d-bgc-@{color-name}', {
|
|
96
|
-
--bgo: 100%;
|
|
97
|
-
background-color: hsla(var(~'--@{color-name}-h') var(~'--@{color-name}-s') var(~'--@{color-name}-l') ~' / ' var(--bgo)) !important;
|
|
98
|
-
});;;;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// ========================================================================
|
|
102
|
-
// $ STANDARD WEIGHT LOOP GENERATOR
|
|
103
|
-
// Since most of our colors have similar stops (100 - 600), we'll save
|
|
104
|
-
// ourselves the need to call the mixin for each color and create a
|
|
105
|
-
// loop that will create most of the colors for us.
|
|
106
|
-
//
|
|
107
|
-
// USAGE:
|
|
108
|
-
// #d-internals #standard-stops(purple);
|
|
109
|
-
//
|
|
110
|
-
// ------------------------------------------------------------------------
|
|
111
|
-
#standard-stops(@color) {
|
|
112
|
-
#d-internals #color-classes(~'@{color}-600');;;;
|
|
113
|
-
#d-internals #color-classes(~'@{color}-500');;;;
|
|
114
|
-
#d-internals #color-classes(~'@{color}-400');;;;
|
|
115
|
-
#d-internals #color-classes(~'@{color}-300');;;;
|
|
116
|
-
#d-internals #color-classes(~'@{color}-200');;;;
|
|
117
|
-
#d-internals #color-classes(~'@{color}-100');;;;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// ========================================================================
|
|
121
|
-
// $ OPACITY CLASS GENERATOR
|
|
122
|
-
// Creates opacity classes for font, background, and border colors.
|
|
123
|
-
//
|
|
124
|
-
// USAGE:
|
|
125
|
-
// #d-internals #opacity-classes(50);
|
|
126
|
-
//
|
|
127
|
-
// ------------------------------------------------------------------------
|
|
128
|
-
#opacity-classes(@opacity) {
|
|
129
|
-
// -- FONT OPACITY
|
|
130
|
-
.d-fco@{opacity},
|
|
131
|
-
.h\:d-fco@{opacity}:hover,
|
|
132
|
-
.f\:d-fco@{opacity}:focus {
|
|
133
|
-
--fco: ~'@{opacity}%' !important;
|
|
134
|
-
}
|
|
135
|
-
.f\:d-fco@{opacity}:focus-within {
|
|
136
|
-
--fco: ~'@{opacity}%' !important;
|
|
137
|
-
}
|
|
138
|
-
#d-internals #dark-mode('.d\:d-fco@{opacity}', {
|
|
139
|
-
--fco: ~'@{opacity}%' !important;
|
|
140
|
-
});;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
// -- BORDER OPACITY
|
|
144
|
-
.d-bco@{opacity},
|
|
145
|
-
.h\:d-bco@{opacity}:hover,
|
|
146
|
-
.f\:d-bco@{opacity}:focus {
|
|
147
|
-
--bco: ~'@{opacity}%' !important;
|
|
148
|
-
}
|
|
149
|
-
.f\:d-bco@{opacity}:focus-within {
|
|
150
|
-
--bco: ~'@{opacity}%' !important;
|
|
151
|
-
}
|
|
152
|
-
#d-internals #dark-mode('.d\:d-bco@{opacity}', {
|
|
153
|
-
--bco: ~'@{opacity}%' !important;
|
|
154
|
-
});;
|
|
155
|
-
|
|
156
|
-
// -- DIVIDER OPACITY
|
|
157
|
-
.d-dco@{opacity} > * + * {
|
|
158
|
-
--dco: ~'@{opacity}%' !important;
|
|
159
|
-
}
|
|
160
|
-
#d-internals #dark-mode('.d\:d-dco@{opacity} > * + *', {
|
|
161
|
-
--dco: ~'@{opacity}%' !important;
|
|
162
|
-
});;
|
|
163
|
-
|
|
164
|
-
// -- BACKGROUND COLOR OPACITY
|
|
165
|
-
.d-bgo@{opacity},
|
|
166
|
-
.h\:d-bgo@{opacity}:hover,
|
|
167
|
-
.f\:d-bgo@{opacity}:focus {
|
|
168
|
-
--bgo: ~'@{opacity}%' !important;
|
|
169
|
-
}
|
|
170
|
-
.f\:d-bgo@{opacity}:focus-within {
|
|
171
|
-
--bgo: ~'@{opacity}%' !important;
|
|
172
|
-
}
|
|
173
|
-
#d-internals #dark-mode('.d\:d-bgo@{opacity}', {
|
|
174
|
-
--bgo: ~'@{opacity}%' !important;
|
|
175
|
-
});;
|
|
176
|
-
|
|
177
|
-
// -- BACKGROUND GRADIENT STARTING STOP
|
|
178
|
-
.d-bgg-from-o@{opacity},
|
|
179
|
-
.h\:d-bgg-from-@{opacity}:hover,
|
|
180
|
-
.f\:d-bgg-from-@{opacity}:focus {
|
|
181
|
-
--bgg-from-opacity: ~'@{opacity}%' !important;
|
|
182
|
-
}
|
|
183
|
-
.f\:d-bgg-from-@{opacity}:focus-within {
|
|
184
|
-
--bgg-from-opacity: ~'@{opacity}%' !important;
|
|
185
|
-
}
|
|
186
|
-
#d-internals #dark-mode('.d\:d-bgg-from-@{opacity}', {
|
|
187
|
-
--bgg-from-opacity: ~'@{opacity}%' !important;
|
|
188
|
-
});;
|
|
189
|
-
|
|
190
|
-
// -- BACKGROUND GRADIENT ENDING STOP
|
|
191
|
-
.d-bgg-to-o@{opacity},
|
|
192
|
-
.h\:d-bgg-to-@{opacity}:hover,
|
|
193
|
-
.f\:d-bgg-to-@{opacity}:focus {
|
|
194
|
-
--bgg-to-opacity: ~'@{opacity}%' !important;
|
|
195
|
-
}
|
|
196
|
-
.f\:d-bgg-to-@{opacity}:focus-within {
|
|
197
|
-
--bgg-to-opacity: ~'@{opacity}%' !important;
|
|
198
|
-
}
|
|
199
|
-
#d-internals #dark-mode('.d\:d-bgg-to-@{opacity}', {
|
|
200
|
-
--bgg-to-opacity: ~'@{opacity}%' !important;
|
|
201
|
-
});;;;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
14
|
// ============================================================================
|
|
206
15
|
// $ UTILITY CLASSES
|
|
207
16
|
// ----------------------------------------------------------------------------
|
|
@@ -229,70 +38,85 @@
|
|
|
229
38
|
#d-internals #color-classes(green-700);
|
|
230
39
|
#d-internals #color-classes(red-700);
|
|
231
40
|
|
|
232
|
-
|
|
233
|
-
.d-fc-primary,
|
|
234
|
-
.h\:d-fc-primary:hover,
|
|
235
|
-
.f\:d-fc-primary:focus {
|
|
41
|
+
.d-fc-primary {
|
|
236
42
|
color: hsla(var(--primary-color-h) var(--primary-color-s) var(--primary-color-l) ~' / ' var(--fco)) !important;
|
|
237
43
|
}
|
|
238
|
-
|
|
239
|
-
.f\:d-fc-primary:focus-within {
|
|
240
|
-
color: hsla(var(--primary-color-h) var(--primary-color-s) var(--primary-color-l) ~' / ' var(--fco)) !important;
|
|
241
|
-
}
|
|
44
|
+
#d-internals #generate-hover-focus(d-fc-primary, {.d-fc-primary();});
|
|
242
45
|
|
|
243
46
|
// $$ TEXT COLORS
|
|
244
47
|
// ----------------------------------------------------------------------------
|
|
245
48
|
.d-fc-dark { &:extend(.d-fc-black-900); }
|
|
246
|
-
|
|
247
|
-
.f\:d-fc-dark:focus { &:extend(.f\:d-fc-black-900:focus); }
|
|
248
|
-
.f\:d-fc-dark:focus-within { &:extend(.f\:d-fc-black-900:focus-within); }
|
|
49
|
+
#d-internals #generate-hover-focus(d-fc-dark, {.d-fc-dark();});
|
|
249
50
|
|
|
250
51
|
.d-fc-medium { &:extend(.d-fc-black-800); }
|
|
251
|
-
|
|
252
|
-
.f\:d-fc-medium:focus { &:extend(.f\:d-fc-black-800:focus); }
|
|
253
|
-
.f\:d-fc-medium:focus-within { &:extend(.f\:d-fc-black-800:focus-within); }
|
|
52
|
+
#d-internals #generate-hover-focus(d-fc-medium, {.d-fc-medium();});
|
|
254
53
|
|
|
255
54
|
.d-fc-light { &:extend(.d-fc-black-700); }
|
|
256
|
-
|
|
257
|
-
.f\:d-fc-light:focus { &:extend(.f\:d-fc-black-700:focus); }
|
|
258
|
-
.f\:d-fc-light:focus-within { &:extend(.f\:d-fc-black-700:focus-within); }
|
|
55
|
+
#d-internals #generate-hover-focus(d-fc-light, {.d-fc-light();});
|
|
259
56
|
|
|
260
57
|
.d-fc-lighter { &:extend(.d-fc-black-600); }
|
|
58
|
+
#d-internals #generate-hover-focus(d-fc-lighter, {.d-fc-lighter();});
|
|
59
|
+
|
|
261
60
|
.d-fc-purple { &:extend(.d-fc-purple-500); }
|
|
61
|
+
#d-internals #generate-hover-focus(d-fc-purple, {.d-fc-purple();});
|
|
62
|
+
|
|
262
63
|
.d-fc-orange { &:extend(.d-fc-orange-600); }
|
|
64
|
+
#d-internals #generate-hover-focus(d-fc-orange, {.d-fc-orange();});
|
|
65
|
+
|
|
263
66
|
.d-fc-pink { &:extend(.d-fc-pink-600); }
|
|
67
|
+
#d-internals #generate-hover-focus(d-fc-pink, {.d-fc-pink();});
|
|
264
68
|
|
|
265
69
|
.d-fc-green,
|
|
266
70
|
.d-fc-success { &:extend(.d-fc-green-600); }
|
|
71
|
+
#d-internals #generate-hover-focus(d-fc-green, {.d-fc-green();});
|
|
72
|
+
#d-internals #generate-hover-focus(d-fc-success, {.d-fc-success();});
|
|
267
73
|
|
|
268
74
|
.d-fc-yellow,
|
|
269
75
|
.d-fc-warning { &:extend(.d-fc-yellow-600); }
|
|
76
|
+
#d-internals #generate-hover-focus(d-fc-yellow, {.d-fc-yellow();});
|
|
77
|
+
#d-internals #generate-hover-focus(d-fc-warning, {.d-fc-warning();});
|
|
270
78
|
|
|
271
79
|
.d-fc-red,
|
|
272
80
|
.d-fc-error,
|
|
273
81
|
.d-fc-danger { &:extend(.d-fc-red-600); }
|
|
82
|
+
#d-internals #generate-hover-focus(d-fc-red, {.d-fc-red();});
|
|
83
|
+
#d-internals #generate-hover-focus(d-fc-error, {.d-fc-error();});
|
|
84
|
+
#d-internals #generate-hover-focus(d-fc-danger, {.d-fc-danger();});
|
|
274
85
|
|
|
275
86
|
.d-fc-current { color: currentColor !important; }
|
|
87
|
+
#d-internals #generate-hover-focus(d-fc-current, {.d-fc-current();});
|
|
276
88
|
.d-fc-transparent { color: transparent !important; }
|
|
89
|
+
#d-internals #generate-hover-focus(d-fc-transparent, {.d-fc-transparent();});
|
|
277
90
|
.d-fc-unset { color: unset !important; }
|
|
91
|
+
#d-internals #generate-hover-focus(d-fc-unset, {.d-fc-unset();});
|
|
278
92
|
|
|
279
93
|
|
|
280
94
|
// $$ BACKGROUND COLORS
|
|
281
95
|
// ----------------------------------------------------------------------------
|
|
282
96
|
.d-bgc-success { &:extend(.d-bgc-green-500); }
|
|
97
|
+
#d-internals #generate-hover-focus(d-bgc-success, {.d-bgc-success();});
|
|
283
98
|
.d-bgc-warning { &:extend(.d-bgc-yellow-500); }
|
|
99
|
+
#d-internals #generate-hover-focus(d-bgc-warning, {.d-bgc-warning();});
|
|
284
100
|
|
|
285
101
|
.d-bgc-error,
|
|
286
102
|
.d-bgc-danger { &:extend(.d-bgc-red-500); }
|
|
103
|
+
#d-internals #generate-hover-focus(d-bgc-error, {.d-bgc-error();});
|
|
104
|
+
#d-internals #generate-hover-focus(d-bgc-danger, {.d-bgc-danger();});
|
|
105
|
+
|
|
287
106
|
.d-bgc-transparent { background-color: transparent !important; background-image: none !important; }
|
|
107
|
+
#d-internals #generate-hover-focus(d-bgc-transparent, {.d-bgc-transparent();});
|
|
288
108
|
.d-bgc-unset { background-color: unset !important; background-image: unset !important; }
|
|
109
|
+
#d-internals #generate-hover-focus(d-bgc-unset, {.d-bgc-unset();});
|
|
289
110
|
|
|
290
111
|
|
|
291
112
|
// $$ BORDER COLORS
|
|
292
113
|
// ----------------------------------------------------------------------------
|
|
293
114
|
.d-bc-transparent { border-color: transparent !important; }
|
|
115
|
+
#d-internals #generate-hover-focus(d-bc-transparent, {.d-bc-transparent();});
|
|
294
116
|
.d-bc-current { border-color: currentColor !important; }
|
|
117
|
+
#d-internals #generate-hover-focus(d-bc-current , {.d-bc-current();});
|
|
295
118
|
.d-bc-unset { border-color: unset !important; }
|
|
119
|
+
#d-internals #generate-hover-focus(d-bc-unset, {.d-bc-unset();});
|
|
296
120
|
|
|
297
121
|
|
|
298
122
|
// $ OPACITY CLASSES
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
//@import (reference) '../variables/spacing.less';
|
|
2
2
|
|
|
3
3
|
//
|
|
4
4
|
// DIALTONE
|
|
@@ -138,17 +138,23 @@
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
|
|
142
141
|
// ============================================================================
|
|
143
142
|
// $ BOX SHADOW
|
|
144
143
|
// ----------------------------------------------------------------------------
|
|
145
144
|
.d-bs-sm { box-shadow: var(--bs-sm) !important; }
|
|
145
|
+
#d-internals #generate-hover-focus(d-bs-sm, {.d-bs-sm();});
|
|
146
146
|
.d-bs-md { box-shadow: var(--bs-md) !important; }
|
|
147
|
+
#d-internals #generate-hover-focus(d-bs-md, {.d-bs-md ();});
|
|
147
148
|
.d-bs-lg { box-shadow: var(--bs-lg) !important; }
|
|
149
|
+
#d-internals #generate-hover-focus(d-bs-lg, {.d-bs-lg();});
|
|
148
150
|
.d-bs-xl { box-shadow: var(--bs-xl) !important; }
|
|
151
|
+
#d-internals #generate-hover-focus(d-bs-xl, {.d-bs-xl();});
|
|
149
152
|
.d-bs-card { box-shadow: var(--bs-card) !important; }
|
|
153
|
+
#d-internals #generate-hover-focus(d-bs-card, {.d-bs-card();});
|
|
150
154
|
.d-bs-none { box-shadow: none !important; }
|
|
155
|
+
#d-internals #generate-hover-focus(d-bs-none, {.d-bs-none();});
|
|
151
156
|
.d-bs-unset { box-shadow: unset !important; }
|
|
157
|
+
#d-internals #generate-hover-focus(d-bs-unset, {.d-bs-unset();});
|
|
152
158
|
|
|
153
159
|
|
|
154
160
|
// ============================================================================
|