@stackoverflow/stacks 2.7.3 → 2.7.5
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/LICENSE.MD +9 -9
- package/README.md +158 -180
- package/dist/css/stacks.css +20 -13
- package/dist/css/stacks.min.css +1 -1
- package/dist/js/stacks.min.js +1 -1
- package/lib/atomic/border.less +139 -139
- package/lib/atomic/color.less +36 -36
- package/lib/atomic/flex.less +426 -426
- package/lib/atomic/gap.less +44 -44
- package/lib/atomic/grid.less +139 -139
- package/lib/atomic/misc.less +374 -374
- package/lib/atomic/spacing.less +98 -98
- package/lib/atomic/typography.less +266 -264
- package/lib/atomic/width-height.less +194 -194
- package/lib/base/body.less +44 -44
- package/lib/base/configuration-static.less +61 -61
- package/lib/base/fieldset.less +5 -5
- package/lib/base/icon.less +11 -11
- package/lib/base/internal.less +220 -220
- package/lib/base/reset-meyer.less +64 -64
- package/lib/base/reset-normalize.less +449 -449
- package/lib/base/reset.less +20 -20
- package/lib/components/activity-indicator/activity-indicator.less +53 -53
- package/lib/components/avatar/avatar.less +108 -108
- package/lib/components/award-bling/award-bling.less +31 -31
- package/lib/components/banner/banner.less +44 -44
- package/lib/components/banner/banner.ts +149 -149
- package/lib/components/block-link/block-link.less +82 -82
- package/lib/components/breadcrumbs/breadcrumbs.less +41 -41
- package/lib/components/button-group/button-group.less +82 -82
- package/lib/components/card/card.less +37 -37
- package/lib/components/check-control/check-control.less +17 -17
- package/lib/components/check-group/check-group.less +19 -19
- package/lib/components/checkbox_radio/checkbox_radio.less +159 -159
- package/lib/components/code-block/code-block.fixtures.ts +88 -88
- package/lib/components/code-block/code-block.less +116 -116
- package/lib/components/description/description.less +9 -9
- package/lib/components/empty-state/empty-state.less +16 -16
- package/lib/components/expandable/expandable.less +118 -118
- package/lib/components/input-fill/input-fill.less +35 -35
- package/lib/components/input-icon/input-icon.less +45 -45
- package/lib/components/input-message/input-message.less +49 -49
- package/lib/components/input_textarea/input_textarea.less +2 -7
- package/lib/components/label/label.less +116 -110
- package/lib/components/link-preview/link-preview.less +148 -148
- package/lib/components/menu/menu.less +41 -41
- package/lib/components/modal/modal.less +118 -118
- package/lib/components/modal/modal.ts +383 -383
- package/lib/components/navigation/navigation.less +136 -136
- package/lib/components/navigation/navigation.ts +128 -128
- package/lib/components/page-title/page-title.less +51 -51
- package/lib/components/popover/popover.less +159 -159
- package/lib/components/popover/popover.ts +651 -651
- package/lib/components/post-summary/post-summary.less +457 -457
- package/lib/components/progress-bar/progress-bar.less +291 -291
- package/lib/components/prose/prose.less +452 -452
- package/lib/components/select/select.less +138 -138
- package/lib/components/spinner/spinner.less +103 -103
- package/lib/components/table/table.ts +296 -296
- package/lib/components/table-container/table-container.less +4 -4
- package/lib/components/tag/tag.less +186 -186
- package/lib/components/toast/toast.less +35 -35
- package/lib/components/toast/toast.ts +357 -357
- package/lib/components/toggle-switch/toggle-switch.less +104 -104
- package/lib/components/topbar/topbar.less +553 -553
- package/lib/components/uploader/uploader.less +205 -205
- package/lib/components/user-card/user-card.less +129 -129
- package/lib/controllers.ts +33 -33
- package/lib/exports/color-mixins.less +283 -283
- package/lib/exports/constants-helpers.less +108 -108
- package/lib/exports/constants-type.less +155 -155
- package/lib/exports/exports.less +15 -15
- package/lib/exports/mixins.less +334 -333
- package/lib/exports/spacing-mixins.less +67 -67
- package/lib/index.ts +32 -32
- package/lib/input-utils.less +41 -41
- package/lib/stacks-dynamic.less +24 -24
- package/lib/stacks-static.less +93 -93
- package/lib/stacks.less +13 -13
- package/lib/test/assertions.ts +36 -36
- package/lib/test/less-test-utils.ts +28 -28
- package/lib/test/open-wc-testing-patch.d.ts +26 -26
- package/lib/tsconfig.build.json +4 -4
- package/lib/tsconfig.json +17 -17
- package/package.json +27 -23
package/lib/atomic/border.less
CHANGED
|
@@ -1,139 +1,139 @@
|
|
|
1
|
-
#stacks-internals #responsify('.ba', { .bas-solid; .baw1; });
|
|
2
|
-
#stacks-internals #responsify('.bt', { .bts-solid; .btw1; });
|
|
3
|
-
#stacks-internals #responsify('.br', { .brs-solid; .brw1; });
|
|
4
|
-
#stacks-internals #responsify('.bb', { .bbs-solid; .bbw1; });
|
|
5
|
-
#stacks-internals #responsify('.bl', { .bls-solid; .blw1; });
|
|
6
|
-
.bx { .bls-solid; .brs-solid; .bxw1; }
|
|
7
|
-
.by { .bts-solid; .bbs-solid; .byw1; }
|
|
8
|
-
|
|
9
|
-
// ============================================================================
|
|
10
|
-
// $ WIDTH
|
|
11
|
-
// ----------------------------------------------------------------------------
|
|
12
|
-
// $$ All Sides
|
|
13
|
-
#stacks-internals #responsify('.baw0', { border-width: 0 !important; });
|
|
14
|
-
.baw1 { border-width: var(--su-static1) !important; }
|
|
15
|
-
.baw2 { border-width: var(--su-static2) !important; }
|
|
16
|
-
.baw3 { border-width: var(--su-static4) !important; }
|
|
17
|
-
|
|
18
|
-
// $$ Top Border
|
|
19
|
-
#stacks-internals #responsify('.btw0', { border-top-width: 0 !important; });
|
|
20
|
-
.btw1 { border-top-width: var(--su-static1) !important; }
|
|
21
|
-
.btw2 { border-top-width: var(--su-static2) !important; }
|
|
22
|
-
.btw3 { border-top-width: var(--su-static4) !important; }
|
|
23
|
-
|
|
24
|
-
// $$ Right Border
|
|
25
|
-
#stacks-internals #responsify('.brw0', { border-right-width: 0 !important; });
|
|
26
|
-
.brw1 { border-right-width: var(--su-static1) !important; }
|
|
27
|
-
.brw2 { border-right-width: var(--su-static2) !important; }
|
|
28
|
-
.brw3 { border-right-width: var(--su-static4) !important; }
|
|
29
|
-
|
|
30
|
-
// $$ Bottom Border
|
|
31
|
-
#stacks-internals #responsify('.bbw0', { border-bottom-width: 0 !important; });
|
|
32
|
-
.bbw1 { border-bottom-width: var(--su-static1) !important; }
|
|
33
|
-
.bbw2 { border-bottom-width: var(--su-static2) !important; }
|
|
34
|
-
.bbw3 { border-bottom-width: var(--su-static4) !important; }
|
|
35
|
-
|
|
36
|
-
// $$ Left Border
|
|
37
|
-
#stacks-internals #responsify('.blw0', { border-left-width: 0 !important; });
|
|
38
|
-
.blw0 { border-left-width: 0 !important; }
|
|
39
|
-
.blw1 { border-left-width: var(--su-static1) !important; }
|
|
40
|
-
.blw2 { border-left-width: var(--su-static2) !important; }
|
|
41
|
-
.blw3 { border-left-width: var(--su-static4) !important; }
|
|
42
|
-
|
|
43
|
-
// $$ Y-Axis Border
|
|
44
|
-
.byw0 { .btw0; .bbw0; }
|
|
45
|
-
.byw1 { .btw1; .bbw1; }
|
|
46
|
-
.byw2 { .btw2; .bbw2; }
|
|
47
|
-
.byw3 { .btw3; .bbw3; }
|
|
48
|
-
|
|
49
|
-
// $$ X-Axis Border
|
|
50
|
-
.bxw0 { .brw0; .blw0; }
|
|
51
|
-
.bxw1 { .brw1; .blw1; }
|
|
52
|
-
.bxw2 { .brw2; .blw2; }
|
|
53
|
-
.bxw3 { .brw3; .blw3; }
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
// ============================================================================
|
|
57
|
-
// $ STYLE
|
|
58
|
-
// ============================================================================
|
|
59
|
-
// $$ All sides
|
|
60
|
-
.bas-solid { border-style: solid !important; }
|
|
61
|
-
.bas-dashed { border-style: dashed !important; }
|
|
62
|
-
|
|
63
|
-
// $$ Top Border
|
|
64
|
-
.bts-solid { border-top-style: solid !important; }
|
|
65
|
-
.bts-dashed { border-top-style: dashed !important; }
|
|
66
|
-
|
|
67
|
-
// $$ Right Border
|
|
68
|
-
.brs-solid { border-right-style: solid !important; }
|
|
69
|
-
.brs-dashed { border-right-style: dashed !important; }
|
|
70
|
-
|
|
71
|
-
// $$ Bottom Border
|
|
72
|
-
.bbs-solid { border-bottom-style: solid !important; }
|
|
73
|
-
.bbs-dashed { border-bottom-style: dashed !important; }
|
|
74
|
-
|
|
75
|
-
// $$ Left Border
|
|
76
|
-
.bls-solid { border-left-style: solid !important; }
|
|
77
|
-
.bls-dashed { border-left-style: dashed !important; }
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
// ============================================================================
|
|
81
|
-
// $ BORDER RADIUS
|
|
82
|
-
// ----------------------------------------------------------------------------
|
|
83
|
-
// $$ All Sides
|
|
84
|
-
.bar-sm { border-radius: var(--br-sm) !important; }
|
|
85
|
-
.bar-md { border-radius: var(--br-md) !important; }
|
|
86
|
-
.bar-lg { border-radius: var(--br-lg) !important; }
|
|
87
|
-
.bar-circle { border-radius: 100% !important; }
|
|
88
|
-
.bar-pill { border-radius: 1000px !important; }
|
|
89
|
-
|
|
90
|
-
// $$ Top Left Corner
|
|
91
|
-
.btlr0 { border-top-left-radius: 0 !important; }
|
|
92
|
-
.btlr-sm { border-top-left-radius: var(--br-sm) !important; }
|
|
93
|
-
.btlr-md { border-top-left-radius: var(--br-md) !important; }
|
|
94
|
-
.btlr-lg { border-top-left-radius: var(--br-lg) !important; }
|
|
95
|
-
|
|
96
|
-
// $$ Top Right Corner
|
|
97
|
-
.btrr0 { border-top-right-radius: 0 !important; }
|
|
98
|
-
.btrr-sm { border-top-right-radius: var(--br-sm) !important; }
|
|
99
|
-
.btrr-md { border-top-right-radius: var(--br-md) !important; }
|
|
100
|
-
.btrr-lg { border-top-right-radius: var(--br-lg) !important; }
|
|
101
|
-
|
|
102
|
-
// $$ Bottom Left Corner
|
|
103
|
-
.bblr0 { border-bottom-left-radius: 0 !important; }
|
|
104
|
-
.bblr-sm { border-bottom-left-radius: var(--br-sm) !important; }
|
|
105
|
-
.bblr-md { border-bottom-left-radius: var(--br-md) !important; }
|
|
106
|
-
.bblr-lg { border-bottom-left-radius: var(--br-lg) !important; }
|
|
107
|
-
|
|
108
|
-
// $$ Bottom Right Corner
|
|
109
|
-
.bbrr0 { border-bottom-right-radius: 0 !important; }
|
|
110
|
-
.bbrr-sm { border-bottom-right-radius: var(--br-sm) !important; }
|
|
111
|
-
.bbrr-md { border-bottom-right-radius: var(--br-md) !important; }
|
|
112
|
-
.bbrr-lg { border-bottom-right-radius: var(--br-lg) !important; }
|
|
113
|
-
|
|
114
|
-
// $$ Top Corners
|
|
115
|
-
.btr0 { .btlr0; .btrr0; }
|
|
116
|
-
.btr-sm { .btlr-sm; .btrr-sm; }
|
|
117
|
-
.btr-md { .btlr-md; .btrr-md; }
|
|
118
|
-
.btr-lg { .btlr-lg; .btrr-lg; }
|
|
119
|
-
|
|
120
|
-
// $$ Right Corners
|
|
121
|
-
.brr0 { .btrr0; .bbrr0; }
|
|
122
|
-
.brr-sm { .btrr-sm; .bbrr-sm; }
|
|
123
|
-
.brr-md { .btrr-md; .bbrr-md; }
|
|
124
|
-
.brr-lg { .btrr-lg; .bbrr-lg; }
|
|
125
|
-
|
|
126
|
-
// $$ Bottom Corners
|
|
127
|
-
.bbr0 { .bblr0; .bbrr0; }
|
|
128
|
-
.bbr-sm { .bblr-sm; .bbrr-sm; }
|
|
129
|
-
.bbr-md { .bblr-md; .bbrr-md; }
|
|
130
|
-
.bbr-lg { .bblr-lg; .bbrr-lg; }
|
|
131
|
-
|
|
132
|
-
// $$ Left Corners
|
|
133
|
-
.blr0 { .btlr0; .bblr0; }
|
|
134
|
-
.blr-sm { .btlr-sm; .bblr-sm; }
|
|
135
|
-
.blr-md { .btlr-md; .bblr-md; }
|
|
136
|
-
.blr-lg { .btlr-lg; .bblr-lg; }
|
|
137
|
-
|
|
138
|
-
// $$ All Sides
|
|
139
|
-
#stacks-internals #responsify('.bar0', { border-radius: 0 !important; });
|
|
1
|
+
#stacks-internals #responsify('.ba', { .bas-solid; .baw1; });
|
|
2
|
+
#stacks-internals #responsify('.bt', { .bts-solid; .btw1; });
|
|
3
|
+
#stacks-internals #responsify('.br', { .brs-solid; .brw1; });
|
|
4
|
+
#stacks-internals #responsify('.bb', { .bbs-solid; .bbw1; });
|
|
5
|
+
#stacks-internals #responsify('.bl', { .bls-solid; .blw1; });
|
|
6
|
+
.bx { .bls-solid; .brs-solid; .bxw1; }
|
|
7
|
+
.by { .bts-solid; .bbs-solid; .byw1; }
|
|
8
|
+
|
|
9
|
+
// ============================================================================
|
|
10
|
+
// $ WIDTH
|
|
11
|
+
// ----------------------------------------------------------------------------
|
|
12
|
+
// $$ All Sides
|
|
13
|
+
#stacks-internals #responsify('.baw0', { border-width: 0 !important; });
|
|
14
|
+
.baw1 { border-width: var(--su-static1) !important; }
|
|
15
|
+
.baw2 { border-width: var(--su-static2) !important; }
|
|
16
|
+
.baw3 { border-width: var(--su-static4) !important; }
|
|
17
|
+
|
|
18
|
+
// $$ Top Border
|
|
19
|
+
#stacks-internals #responsify('.btw0', { border-top-width: 0 !important; });
|
|
20
|
+
.btw1 { border-top-width: var(--su-static1) !important; }
|
|
21
|
+
.btw2 { border-top-width: var(--su-static2) !important; }
|
|
22
|
+
.btw3 { border-top-width: var(--su-static4) !important; }
|
|
23
|
+
|
|
24
|
+
// $$ Right Border
|
|
25
|
+
#stacks-internals #responsify('.brw0', { border-right-width: 0 !important; });
|
|
26
|
+
.brw1 { border-right-width: var(--su-static1) !important; }
|
|
27
|
+
.brw2 { border-right-width: var(--su-static2) !important; }
|
|
28
|
+
.brw3 { border-right-width: var(--su-static4) !important; }
|
|
29
|
+
|
|
30
|
+
// $$ Bottom Border
|
|
31
|
+
#stacks-internals #responsify('.bbw0', { border-bottom-width: 0 !important; });
|
|
32
|
+
.bbw1 { border-bottom-width: var(--su-static1) !important; }
|
|
33
|
+
.bbw2 { border-bottom-width: var(--su-static2) !important; }
|
|
34
|
+
.bbw3 { border-bottom-width: var(--su-static4) !important; }
|
|
35
|
+
|
|
36
|
+
// $$ Left Border
|
|
37
|
+
#stacks-internals #responsify('.blw0', { border-left-width: 0 !important; });
|
|
38
|
+
.blw0 { border-left-width: 0 !important; }
|
|
39
|
+
.blw1 { border-left-width: var(--su-static1) !important; }
|
|
40
|
+
.blw2 { border-left-width: var(--su-static2) !important; }
|
|
41
|
+
.blw3 { border-left-width: var(--su-static4) !important; }
|
|
42
|
+
|
|
43
|
+
// $$ Y-Axis Border
|
|
44
|
+
.byw0 { .btw0; .bbw0; }
|
|
45
|
+
.byw1 { .btw1; .bbw1; }
|
|
46
|
+
.byw2 { .btw2; .bbw2; }
|
|
47
|
+
.byw3 { .btw3; .bbw3; }
|
|
48
|
+
|
|
49
|
+
// $$ X-Axis Border
|
|
50
|
+
.bxw0 { .brw0; .blw0; }
|
|
51
|
+
.bxw1 { .brw1; .blw1; }
|
|
52
|
+
.bxw2 { .brw2; .blw2; }
|
|
53
|
+
.bxw3 { .brw3; .blw3; }
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
// ============================================================================
|
|
57
|
+
// $ STYLE
|
|
58
|
+
// ============================================================================
|
|
59
|
+
// $$ All sides
|
|
60
|
+
.bas-solid { border-style: solid !important; }
|
|
61
|
+
.bas-dashed { border-style: dashed !important; }
|
|
62
|
+
|
|
63
|
+
// $$ Top Border
|
|
64
|
+
.bts-solid { border-top-style: solid !important; }
|
|
65
|
+
.bts-dashed { border-top-style: dashed !important; }
|
|
66
|
+
|
|
67
|
+
// $$ Right Border
|
|
68
|
+
.brs-solid { border-right-style: solid !important; }
|
|
69
|
+
.brs-dashed { border-right-style: dashed !important; }
|
|
70
|
+
|
|
71
|
+
// $$ Bottom Border
|
|
72
|
+
.bbs-solid { border-bottom-style: solid !important; }
|
|
73
|
+
.bbs-dashed { border-bottom-style: dashed !important; }
|
|
74
|
+
|
|
75
|
+
// $$ Left Border
|
|
76
|
+
.bls-solid { border-left-style: solid !important; }
|
|
77
|
+
.bls-dashed { border-left-style: dashed !important; }
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
// ============================================================================
|
|
81
|
+
// $ BORDER RADIUS
|
|
82
|
+
// ----------------------------------------------------------------------------
|
|
83
|
+
// $$ All Sides
|
|
84
|
+
.bar-sm { border-radius: var(--br-sm) !important; }
|
|
85
|
+
.bar-md { border-radius: var(--br-md) !important; }
|
|
86
|
+
.bar-lg { border-radius: var(--br-lg) !important; }
|
|
87
|
+
.bar-circle { border-radius: 100% !important; }
|
|
88
|
+
.bar-pill { border-radius: 1000px !important; }
|
|
89
|
+
|
|
90
|
+
// $$ Top Left Corner
|
|
91
|
+
.btlr0 { border-top-left-radius: 0 !important; }
|
|
92
|
+
.btlr-sm { border-top-left-radius: var(--br-sm) !important; }
|
|
93
|
+
.btlr-md { border-top-left-radius: var(--br-md) !important; }
|
|
94
|
+
.btlr-lg { border-top-left-radius: var(--br-lg) !important; }
|
|
95
|
+
|
|
96
|
+
// $$ Top Right Corner
|
|
97
|
+
.btrr0 { border-top-right-radius: 0 !important; }
|
|
98
|
+
.btrr-sm { border-top-right-radius: var(--br-sm) !important; }
|
|
99
|
+
.btrr-md { border-top-right-radius: var(--br-md) !important; }
|
|
100
|
+
.btrr-lg { border-top-right-radius: var(--br-lg) !important; }
|
|
101
|
+
|
|
102
|
+
// $$ Bottom Left Corner
|
|
103
|
+
.bblr0 { border-bottom-left-radius: 0 !important; }
|
|
104
|
+
.bblr-sm { border-bottom-left-radius: var(--br-sm) !important; }
|
|
105
|
+
.bblr-md { border-bottom-left-radius: var(--br-md) !important; }
|
|
106
|
+
.bblr-lg { border-bottom-left-radius: var(--br-lg) !important; }
|
|
107
|
+
|
|
108
|
+
// $$ Bottom Right Corner
|
|
109
|
+
.bbrr0 { border-bottom-right-radius: 0 !important; }
|
|
110
|
+
.bbrr-sm { border-bottom-right-radius: var(--br-sm) !important; }
|
|
111
|
+
.bbrr-md { border-bottom-right-radius: var(--br-md) !important; }
|
|
112
|
+
.bbrr-lg { border-bottom-right-radius: var(--br-lg) !important; }
|
|
113
|
+
|
|
114
|
+
// $$ Top Corners
|
|
115
|
+
.btr0 { .btlr0; .btrr0; }
|
|
116
|
+
.btr-sm { .btlr-sm; .btrr-sm; }
|
|
117
|
+
.btr-md { .btlr-md; .btrr-md; }
|
|
118
|
+
.btr-lg { .btlr-lg; .btrr-lg; }
|
|
119
|
+
|
|
120
|
+
// $$ Right Corners
|
|
121
|
+
.brr0 { .btrr0; .bbrr0; }
|
|
122
|
+
.brr-sm { .btrr-sm; .bbrr-sm; }
|
|
123
|
+
.brr-md { .btrr-md; .bbrr-md; }
|
|
124
|
+
.brr-lg { .btrr-lg; .bbrr-lg; }
|
|
125
|
+
|
|
126
|
+
// $$ Bottom Corners
|
|
127
|
+
.bbr0 { .bblr0; .bbrr0; }
|
|
128
|
+
.bbr-sm { .bblr-sm; .bbrr-sm; }
|
|
129
|
+
.bbr-md { .bblr-md; .bbrr-md; }
|
|
130
|
+
.bbr-lg { .bblr-lg; .bbrr-lg; }
|
|
131
|
+
|
|
132
|
+
// $$ Left Corners
|
|
133
|
+
.blr0 { .btlr0; .bblr0; }
|
|
134
|
+
.blr-sm { .btlr-sm; .bblr-sm; }
|
|
135
|
+
.blr-md { .btlr-md; .bblr-md; }
|
|
136
|
+
.blr-lg { .btlr-lg; .bblr-lg; }
|
|
137
|
+
|
|
138
|
+
// $$ All Sides
|
|
139
|
+
#stacks-internals #responsify('.bar0', { border-radius: 0 !important; });
|
package/lib/atomic/color.less
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
@import (reference) "../exports/color-mixins.less";
|
|
2
|
-
@import (reference) "../exports/mixins.less";
|
|
3
|
-
|
|
4
|
-
& {
|
|
5
|
-
@set: .sets-mode()[light];
|
|
6
|
-
@miscUtilityClasses: transparent, inherit;
|
|
7
|
-
|
|
8
|
-
// Create utility classes
|
|
9
|
-
.create-colors(@set, classes);
|
|
10
|
-
|
|
11
|
-
// Create aliased utility classes (error, warning, etc)
|
|
12
|
-
.create-aliased-utility-classes();
|
|
13
|
-
|
|
14
|
-
each(@miscUtilityClasses, {
|
|
15
|
-
.create-color-classes(@value, ~"@{value} !important", light, background-color);
|
|
16
|
-
.create-color-classes(@value, ~"@{value} !important", light, border-color);
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
// Create theme-specific utility classes
|
|
20
|
-
.create-colors(.sets-theme-default(), classes);
|
|
21
|
-
|
|
22
|
-
// Create dark mode conditional utility classes
|
|
23
|
-
.dark-mode({
|
|
24
|
-
// Utility classes
|
|
25
|
-
.create-colors(@set, classes, dark);
|
|
26
|
-
|
|
27
|
-
// Aliased utility classes (error, warning, etc)
|
|
28
|
-
.create-aliased-utility-classes(dark);
|
|
29
|
-
|
|
30
|
-
// Misc utility classes
|
|
31
|
-
each(@miscUtilityClasses, {
|
|
32
|
-
.create-color-classes(@value, ~"@{value} !important", light, background-color);
|
|
33
|
-
.create-color-classes(@value, ~"@{value} !important", light, border-color);
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
}
|
|
1
|
+
@import (reference) "../exports/color-mixins.less";
|
|
2
|
+
@import (reference) "../exports/mixins.less";
|
|
3
|
+
|
|
4
|
+
& {
|
|
5
|
+
@set: .sets-mode()[light];
|
|
6
|
+
@miscUtilityClasses: transparent, inherit;
|
|
7
|
+
|
|
8
|
+
// Create utility classes
|
|
9
|
+
.create-colors(@set, classes);
|
|
10
|
+
|
|
11
|
+
// Create aliased utility classes (error, warning, etc)
|
|
12
|
+
.create-aliased-utility-classes();
|
|
13
|
+
|
|
14
|
+
each(@miscUtilityClasses, {
|
|
15
|
+
.create-color-classes(@value, ~"@{value} !important", light, background-color);
|
|
16
|
+
.create-color-classes(@value, ~"@{value} !important", light, border-color);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
// Create theme-specific utility classes
|
|
20
|
+
.create-colors(.sets-theme-default(), classes);
|
|
21
|
+
|
|
22
|
+
// Create dark mode conditional utility classes
|
|
23
|
+
.dark-mode({
|
|
24
|
+
// Utility classes
|
|
25
|
+
.create-colors(@set, classes, dark);
|
|
26
|
+
|
|
27
|
+
// Aliased utility classes (error, warning, etc)
|
|
28
|
+
.create-aliased-utility-classes(dark);
|
|
29
|
+
|
|
30
|
+
// Misc utility classes
|
|
31
|
+
each(@miscUtilityClasses, {
|
|
32
|
+
.create-color-classes(@value, ~"@{value} !important", light, background-color);
|
|
33
|
+
.create-color-classes(@value, ~"@{value} !important", light, border-color);
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
}
|