@clayui/css 3.92.0 → 3.94.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/lib/css/atlas.css +258 -34
- package/lib/css/atlas.css.map +1 -1
- package/lib/css/base.css +127 -1
- package/lib/css/base.css.map +1 -1
- package/lib/css/cadmin.css +157 -69
- package/lib/css/cadmin.css.map +1 -1
- package/lib/images/icons/icons.svg +1 -1
- package/package.json +2 -2
- package/src/scss/_license-text.scss +1 -1
- package/src/scss/atlas/variables/_custom-forms.scss +4 -5
- package/src/scss/atlas/variables/_menubar.scss +57 -17
- package/src/scss/atlas/variables/_pagination.scss +78 -5
- package/src/scss/cadmin/components/_drilldown.scss +1 -1
- package/src/scss/cadmin/components/_forms.scss +1 -1
- package/src/scss/cadmin/components/_input-groups.scss +2 -1
- package/src/scss/cadmin/components/_multi-step-nav.scss +3 -1
- package/src/scss/cadmin/components/_side-navigation.scss +2 -2
- package/src/scss/cadmin/components/_utilities-functional-important.scss +4 -0
- package/src/scss/cadmin/variables/_utilities.scss +35 -0
- package/src/scss/components/_alerts.scss +24 -22
- package/src/scss/components/_aspect-ratio.scss +33 -31
- package/src/scss/components/_badges.scss +28 -26
- package/src/scss/components/_buttons.scss +105 -97
- package/src/scss/components/_drilldown.scss +1 -1
- package/src/scss/components/_dropdowns.scss +10 -8
- package/src/scss/components/_forms.scss +12 -9
- package/src/scss/components/_input-groups.scss +2 -1
- package/src/scss/components/_labels.scss +48 -44
- package/src/scss/components/_list-group.scss +13 -11
- package/src/scss/components/_loaders.scss +22 -18
- package/src/scss/components/_modals.scss +4 -2
- package/src/scss/components/_multi-step-nav.scss +3 -1
- package/src/scss/components/_navs.scss +10 -8
- package/src/scss/components/_popovers.scss +33 -27
- package/src/scss/components/_progress-bars.scss +39 -33
- package/src/scss/components/_sheets.scss +39 -0
- package/src/scss/components/_side-navigation.scss +2 -2
- package/src/scss/components/_sidebar.scss +12 -10
- package/src/scss/components/_spinners.scss +20 -0
- package/src/scss/components/_stickers.scss +50 -46
- package/src/scss/components/_tables.scss +32 -30
- package/src/scss/components/_utilities-functional-important.scss +79 -63
- package/src/scss/functions/_global-functions.scss +25 -1
- package/src/scss/mixins/_alerts.scss +11 -9
- package/src/scss/mixins/_buttons.scss +60 -0
- package/src/scss/mixins/_dropdown-menu.scss +36 -0
- package/src/scss/mixins/_globals.scss +83 -1
- package/src/scss/mixins/_links.scss +9 -7
- package/src/scss/mixins/_transition.scss +15 -1
- package/src/scss/variables/_sheets.scss +17 -0
- package/src/scss/variables/_utilities.scss +35 -0
|
@@ -372,31 +372,33 @@
|
|
|
372
372
|
// Alert Variants
|
|
373
373
|
|
|
374
374
|
@each $color, $value in $alert-palette {
|
|
375
|
-
$
|
|
376
|
-
|
|
377
|
-
starts-with($color, '
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
@if (starts-with($color, '%') or map-get($value, extend)) {
|
|
384
|
-
#{$selector} {
|
|
385
|
-
@include clay-alert-variant($value);
|
|
386
|
-
}
|
|
387
|
-
} @else {
|
|
388
|
-
$placeholder: if(
|
|
389
|
-
starts-with($color, '.') or starts-with($color, '#'),
|
|
390
|
-
'%#{str-slice($color, 2)}',
|
|
391
|
-
'%alert-#{$color}'
|
|
375
|
+
@if not clay-is-map-unset($value) {
|
|
376
|
+
$selector: if(
|
|
377
|
+
starts-with($color, '.') or
|
|
378
|
+
starts-with($color, '#') or
|
|
379
|
+
starts-with($color, '%'),
|
|
380
|
+
$color,
|
|
381
|
+
str-insert($color, '.alert-', 1)
|
|
392
382
|
);
|
|
393
383
|
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
384
|
+
@if (starts-with($color, '%') or map-get($value, extend)) {
|
|
385
|
+
#{$selector} {
|
|
386
|
+
@include clay-alert-variant($value);
|
|
387
|
+
}
|
|
388
|
+
} @else {
|
|
389
|
+
$placeholder: if(
|
|
390
|
+
starts-with($color, '.') or starts-with($color, '#'),
|
|
391
|
+
'%#{str-slice($color, 2)}',
|
|
392
|
+
'%alert-#{$color}'
|
|
393
|
+
);
|
|
397
394
|
|
|
398
|
-
|
|
399
|
-
|
|
395
|
+
#{$placeholder} {
|
|
396
|
+
@include clay-alert-variant($value);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
#{$selector} {
|
|
400
|
+
@extend %alert-#{$color} !optional;
|
|
401
|
+
}
|
|
400
402
|
}
|
|
401
403
|
}
|
|
402
404
|
}
|
|
@@ -161,41 +161,43 @@
|
|
|
161
161
|
// aspect-ratio-#-to-#
|
|
162
162
|
|
|
163
163
|
@each $selector, $value in $aspect-ratio-sizes {
|
|
164
|
-
$
|
|
165
|
-
|
|
166
|
-
starts-with($selector, '
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
@if (starts-with($selector, '%')) {
|
|
173
|
-
#{$selector} {
|
|
174
|
-
@include clay-aspect-ratio(
|
|
175
|
-
map-get($value, width),
|
|
176
|
-
map-get($value, height)
|
|
177
|
-
);
|
|
178
|
-
}
|
|
179
|
-
} @else if (map-get($value, extend)) {
|
|
180
|
-
#{$selector} {
|
|
181
|
-
@include clay-css($value);
|
|
182
|
-
}
|
|
183
|
-
} @else {
|
|
184
|
-
$placeholder: str-insert(
|
|
185
|
-
str-slice($selector, 2, str-length($selector)),
|
|
186
|
-
'%',
|
|
187
|
-
1
|
|
164
|
+
@if not clay-is-map-unset($value) {
|
|
165
|
+
$selector: if(
|
|
166
|
+
starts-with($selector, '.') or
|
|
167
|
+
starts-with($selector, '#') or
|
|
168
|
+
starts-with($selector, '%'),
|
|
169
|
+
$selector,
|
|
170
|
+
str-insert($selector, '.', 1)
|
|
188
171
|
);
|
|
189
172
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
173
|
+
@if (starts-with($selector, '%')) {
|
|
174
|
+
#{$selector} {
|
|
175
|
+
@include clay-aspect-ratio(
|
|
176
|
+
map-get($value, width),
|
|
177
|
+
map-get($value, height)
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
} @else if (map-get($value, extend)) {
|
|
181
|
+
#{$selector} {
|
|
182
|
+
@include clay-css($value);
|
|
183
|
+
}
|
|
184
|
+
} @else {
|
|
185
|
+
$placeholder: str-insert(
|
|
186
|
+
str-slice($selector, 2, str-length($selector)),
|
|
187
|
+
'%',
|
|
188
|
+
1
|
|
194
189
|
);
|
|
195
|
-
}
|
|
196
190
|
|
|
197
|
-
|
|
198
|
-
|
|
191
|
+
#{$placeholder} {
|
|
192
|
+
@include clay-aspect-ratio(
|
|
193
|
+
map-get($value, width),
|
|
194
|
+
map-get($value, height)
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
#{$selector} {
|
|
199
|
+
@extend #{$placeholder} !optional;
|
|
200
|
+
}
|
|
199
201
|
}
|
|
200
202
|
}
|
|
201
203
|
}
|
|
@@ -108,35 +108,37 @@
|
|
|
108
108
|
// Badge Variants
|
|
109
109
|
|
|
110
110
|
@each $color, $value in $badge-palette {
|
|
111
|
-
$
|
|
112
|
-
|
|
113
|
-
starts-with($color, '
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
@if (starts-with($color, '%') or map-get($value, extend)) {
|
|
124
|
-
#{$selector} {
|
|
125
|
-
@include clay-badge-variant($value);
|
|
126
|
-
}
|
|
127
|
-
} @else {
|
|
128
|
-
$placeholder: if(
|
|
129
|
-
starts-with($color, '.') or starts-with($color, '#'),
|
|
130
|
-
'%#{str-slice($color, 2)}',
|
|
131
|
-
'%badge-#{$color}'
|
|
111
|
+
@if not clay-is-map-unset($value) {
|
|
112
|
+
$selector: if(
|
|
113
|
+
starts-with($color, '.') or
|
|
114
|
+
starts-with($color, '#') or
|
|
115
|
+
starts-with($color, '%'),
|
|
116
|
+
$color,
|
|
117
|
+
if(
|
|
118
|
+
starts-with($color, 'badge'),
|
|
119
|
+
str-insert($color, '.', 1),
|
|
120
|
+
str-insert($color, '.badge-', 1)
|
|
121
|
+
)
|
|
132
122
|
);
|
|
133
123
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
124
|
+
@if (starts-with($color, '%') or map-get($value, extend)) {
|
|
125
|
+
#{$selector} {
|
|
126
|
+
@include clay-badge-variant($value);
|
|
127
|
+
}
|
|
128
|
+
} @else {
|
|
129
|
+
$placeholder: if(
|
|
130
|
+
starts-with($color, '.') or starts-with($color, '#'),
|
|
131
|
+
'%#{str-slice($color, 2)}',
|
|
132
|
+
'%badge-#{$color}'
|
|
133
|
+
);
|
|
134
|
+
|
|
135
|
+
#{$placeholder} {
|
|
136
|
+
@include clay-badge-variant($value);
|
|
137
|
+
}
|
|
137
138
|
|
|
138
|
-
|
|
139
|
-
|
|
139
|
+
#{$selector} {
|
|
140
|
+
@extend #{$placeholder} !optional;
|
|
141
|
+
}
|
|
140
142
|
}
|
|
141
143
|
}
|
|
142
144
|
}
|
|
@@ -19,29 +19,31 @@ fieldset:disabled a.btn {
|
|
|
19
19
|
// Button Sizes
|
|
20
20
|
|
|
21
21
|
@each $size, $value in $btn-sizes {
|
|
22
|
-
$
|
|
23
|
-
|
|
24
|
-
clay-str-replace($size, 'btn-', '.btn-'),
|
|
25
|
-
$size
|
|
26
|
-
);
|
|
27
|
-
|
|
28
|
-
@if (starts-with($size, '%') or map-get($value, extend)) {
|
|
29
|
-
#{$selector} {
|
|
30
|
-
@include clay-button-variant($value);
|
|
31
|
-
}
|
|
32
|
-
} @else {
|
|
33
|
-
$placeholder: if(
|
|
22
|
+
@if not clay-is-map-unset($value) {
|
|
23
|
+
$selector: if(
|
|
34
24
|
starts-with($size, 'btn-'),
|
|
35
|
-
|
|
36
|
-
|
|
25
|
+
clay-str-replace($size, 'btn-', '.btn-'),
|
|
26
|
+
$size
|
|
37
27
|
);
|
|
38
28
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
29
|
+
@if (starts-with($size, '%') or map-get($value, extend)) {
|
|
30
|
+
#{$selector} {
|
|
31
|
+
@include clay-button-variant($value);
|
|
32
|
+
}
|
|
33
|
+
} @else {
|
|
34
|
+
$placeholder: if(
|
|
35
|
+
starts-with($size, 'btn-'),
|
|
36
|
+
'%clay-#{$size}',
|
|
37
|
+
'%#{str-slice($size, 2)}'
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
#{$placeholder} {
|
|
41
|
+
@include clay-button-variant($value);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
#{$selector} {
|
|
45
|
+
@extend #{$placeholder} !optional;
|
|
46
|
+
}
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
49
|
}
|
|
@@ -80,33 +82,35 @@ input[type='button'] {
|
|
|
80
82
|
// Button Monospaced
|
|
81
83
|
|
|
82
84
|
@each $size, $value in $btn-monospaced-sizes {
|
|
83
|
-
$
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
@if (starts-with($size, '%') or map-get($value, extend)) {
|
|
94
|
-
#{$selector} {
|
|
95
|
-
@include clay-button-variant($value);
|
|
96
|
-
}
|
|
97
|
-
} @else {
|
|
98
|
-
$placeholder: if(
|
|
99
|
-
starts-with($size, 'btn-monospaced'),
|
|
100
|
-
'%clay-#{$size}',
|
|
101
|
-
'%#{str-slice($size, 2)}'
|
|
85
|
+
@if not clay-is-map-unset($value) {
|
|
86
|
+
$selector: if(
|
|
87
|
+
starts-with($size, 'btn-monospaced-'),
|
|
88
|
+
clay-str-replace($size, 'btn-monospaced', '.btn-monospaced.btn'),
|
|
89
|
+
if(
|
|
90
|
+
$size == 'btn-monospaced',
|
|
91
|
+
clay-str-replace($size, 'btn-monospaced', '.btn-monospaced'),
|
|
92
|
+
$size
|
|
93
|
+
)
|
|
102
94
|
);
|
|
103
95
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
96
|
+
@if (starts-with($size, '%') or map-get($value, extend)) {
|
|
97
|
+
#{$selector} {
|
|
98
|
+
@include clay-button-variant($value);
|
|
99
|
+
}
|
|
100
|
+
} @else {
|
|
101
|
+
$placeholder: if(
|
|
102
|
+
starts-with($size, 'btn-monospaced'),
|
|
103
|
+
'%clay-#{$size}',
|
|
104
|
+
'%#{str-slice($size, 2)}'
|
|
105
|
+
);
|
|
106
|
+
|
|
107
|
+
#{$placeholder} {
|
|
108
|
+
@include clay-button-variant($value);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
#{$selector} {
|
|
112
|
+
@extend #{$placeholder} !optional;
|
|
113
|
+
}
|
|
110
114
|
}
|
|
111
115
|
}
|
|
112
116
|
}
|
|
@@ -114,37 +118,39 @@ input[type='button'] {
|
|
|
114
118
|
// Button Variants
|
|
115
119
|
|
|
116
120
|
@each $color, $value in $btn-palette {
|
|
117
|
-
$
|
|
118
|
-
|
|
119
|
-
starts-with($color, '
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
121
|
+
@if not clay-is-map-unset($value) {
|
|
122
|
+
$selector: if(
|
|
123
|
+
starts-with($color, '.') or
|
|
124
|
+
starts-with($color, '#') or
|
|
125
|
+
starts-with($color, '%'),
|
|
126
|
+
$color,
|
|
127
|
+
if(
|
|
128
|
+
starts-with($color, 'btn'),
|
|
129
|
+
str-insert($color, '.', 1),
|
|
130
|
+
str-insert($color, '.btn-', 1)
|
|
131
|
+
)
|
|
132
|
+
);
|
|
128
133
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
134
|
+
@if (starts-with($color, '%') or map-get($value, extend)) {
|
|
135
|
+
#{$selector} {
|
|
136
|
+
@include clay-button-variant($value);
|
|
137
|
+
}
|
|
138
|
+
} @else {
|
|
139
|
+
$placeholder: '%#{str-slice($selector, 2)}';
|
|
135
140
|
|
|
136
|
-
|
|
141
|
+
$placeholder-focus: '%#{str-slice($selector, 2)}-focus';
|
|
137
142
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
143
|
+
#{$placeholder} {
|
|
144
|
+
@include clay-button-variant($value);
|
|
145
|
+
}
|
|
141
146
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
147
|
+
#{$selector} {
|
|
148
|
+
@extend #{$placeholder} !optional;
|
|
149
|
+
}
|
|
145
150
|
|
|
146
|
-
|
|
147
|
-
|
|
151
|
+
#{$placeholder-focus} {
|
|
152
|
+
@include clay-button-variant(map-get($value, focus));
|
|
153
|
+
}
|
|
148
154
|
}
|
|
149
155
|
}
|
|
150
156
|
}
|
|
@@ -152,37 +158,39 @@ input[type='button'] {
|
|
|
152
158
|
// Button Outline Variants
|
|
153
159
|
|
|
154
160
|
@each $color, $value in $btn-outline-palette {
|
|
155
|
-
$
|
|
156
|
-
|
|
157
|
-
starts-with($color, '
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
161
|
+
@if not clay-is-map-unset($value) {
|
|
162
|
+
$selector: if(
|
|
163
|
+
starts-with($color, '.') or
|
|
164
|
+
starts-with($color, '#') or
|
|
165
|
+
starts-with($color, '%'),
|
|
166
|
+
$color,
|
|
167
|
+
if(
|
|
168
|
+
starts-with($color, 'btn'),
|
|
169
|
+
str-insert($color, '.', 1),
|
|
170
|
+
str-insert($color, '.btn-outline-', 1)
|
|
171
|
+
)
|
|
172
|
+
);
|
|
166
173
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
174
|
+
@if (starts-with($color, '%') or map-get($value, extend)) {
|
|
175
|
+
#{$selector} {
|
|
176
|
+
@include clay-button-variant($value);
|
|
177
|
+
}
|
|
178
|
+
} @else {
|
|
179
|
+
$placeholder: '%#{str-slice($selector, 2)}';
|
|
173
180
|
|
|
174
|
-
|
|
181
|
+
$placeholder-focus: '%#{str-slice($selector, 2)}-focus';
|
|
175
182
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
183
|
+
#{$placeholder} {
|
|
184
|
+
@include clay-button-variant($value);
|
|
185
|
+
}
|
|
179
186
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
187
|
+
#{$selector} {
|
|
188
|
+
@extend #{$placeholder} !optional;
|
|
189
|
+
}
|
|
183
190
|
|
|
184
|
-
|
|
185
|
-
|
|
191
|
+
#{$placeholder-focus} {
|
|
192
|
+
@include clay-button-variant(map-get($value, focus));
|
|
193
|
+
}
|
|
186
194
|
}
|
|
187
195
|
}
|
|
188
196
|
}
|
|
@@ -124,14 +124,16 @@
|
|
|
124
124
|
// Dropdown Menu Variants
|
|
125
125
|
|
|
126
126
|
@each $key, $value in $dropdown-menu-palette {
|
|
127
|
-
$
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
127
|
+
@if not clay-is-map-unset($value) {
|
|
128
|
+
$selector: if(
|
|
129
|
+
starts-with($key, '.') or starts-with($key, '#'),
|
|
130
|
+
$key,
|
|
131
|
+
str-insert($key, '.', 1)
|
|
132
|
+
);
|
|
133
|
+
|
|
134
|
+
#{$selector} {
|
|
135
|
+
@include clay-dropdown-menu-variant($value);
|
|
136
|
+
}
|
|
135
137
|
}
|
|
136
138
|
}
|
|
137
139
|
|
|
@@ -158,14 +158,16 @@ fieldset[disabled] .form-control {
|
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
@each $key, $value in $input-palette {
|
|
161
|
-
$
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
161
|
+
@if not clay-is-map-unset($value) {
|
|
162
|
+
$selector: if(
|
|
163
|
+
starts-with($key, '.') or starts-with($key, '#'),
|
|
164
|
+
$key,
|
|
165
|
+
str-insert($key, '.', 1)
|
|
166
|
+
);
|
|
167
|
+
|
|
168
|
+
#{$selector} {
|
|
169
|
+
@include clay-form-control-variant($value);
|
|
170
|
+
}
|
|
169
171
|
}
|
|
170
172
|
}
|
|
171
173
|
|
|
@@ -343,7 +345,8 @@ textarea.form-control-plaintext,
|
|
|
343
345
|
|
|
344
346
|
&::-webkit-slider-thumb {
|
|
345
347
|
border-radius: 100px;
|
|
346
|
-
|
|
348
|
+
|
|
349
|
+
@include transition($input-transition);
|
|
347
350
|
}
|
|
348
351
|
}
|
|
349
352
|
|
|
@@ -226,7 +226,8 @@
|
|
|
226
226
|
margin-bottom: 0;
|
|
227
227
|
padding-left: $input-group-inset-item-padding-left;
|
|
228
228
|
padding-right: $input-group-inset-item-padding-right;
|
|
229
|
-
|
|
229
|
+
|
|
230
|
+
@include transition($input-transition);
|
|
230
231
|
|
|
231
232
|
.btn {
|
|
232
233
|
@include clay-button-size($input-group-inset-item-btn);
|
|
@@ -89,31 +89,33 @@
|
|
|
89
89
|
// Label Sizes
|
|
90
90
|
|
|
91
91
|
@each $selector, $value in $label-sizes {
|
|
92
|
-
$
|
|
93
|
-
|
|
94
|
-
starts-with($selector, '
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
@if (starts-with($selector, '%') or map-get($value, extend)) {
|
|
101
|
-
#{$selector} {
|
|
102
|
-
@include clay-label-variant($value);
|
|
103
|
-
}
|
|
104
|
-
} @else {
|
|
105
|
-
$placeholder: if(
|
|
106
|
-
starts-with($selector, '.') or starts-with($selector, '#'),
|
|
107
|
-
'%#{str-slice($selector, 2)}',
|
|
108
|
-
'%#{$selector}'
|
|
92
|
+
@if not clay-is-map-unset($value) {
|
|
93
|
+
$selector: if(
|
|
94
|
+
starts-with($selector, '.') or
|
|
95
|
+
starts-with($selector, '#') or
|
|
96
|
+
starts-with($selector, '%'),
|
|
97
|
+
$selector,
|
|
98
|
+
str-insert($selector, '.', 1)
|
|
109
99
|
);
|
|
110
100
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
101
|
+
@if (starts-with($selector, '%') or map-get($value, extend)) {
|
|
102
|
+
#{$selector} {
|
|
103
|
+
@include clay-label-variant($value);
|
|
104
|
+
}
|
|
105
|
+
} @else {
|
|
106
|
+
$placeholder: if(
|
|
107
|
+
starts-with($selector, '.') or starts-with($selector, '#'),
|
|
108
|
+
'%#{str-slice($selector, 2)}',
|
|
109
|
+
'%#{$selector}'
|
|
110
|
+
);
|
|
111
|
+
|
|
112
|
+
#{$placeholder} {
|
|
113
|
+
@include clay-label-variant($value);
|
|
114
|
+
}
|
|
114
115
|
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
#{$selector} {
|
|
117
|
+
@extend #{$placeholder} !optional;
|
|
118
|
+
}
|
|
117
119
|
}
|
|
118
120
|
}
|
|
119
121
|
}
|
|
@@ -121,31 +123,33 @@
|
|
|
121
123
|
// Label Variants
|
|
122
124
|
|
|
123
125
|
@each $color, $value in $label-palette {
|
|
124
|
-
$
|
|
125
|
-
|
|
126
|
-
starts-with($color, '
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
@if (starts-with($color, '%') or map-get($value, extend)) {
|
|
133
|
-
#{$selector} {
|
|
134
|
-
@include clay-label-variant($value);
|
|
135
|
-
}
|
|
136
|
-
} @else {
|
|
137
|
-
$placeholder: if(
|
|
138
|
-
starts-with($color, '.') or starts-with($color, '#'),
|
|
139
|
-
'%#{str-slice($color, 2)}',
|
|
140
|
-
'%label-#{$color}'
|
|
126
|
+
@if not clay-is-map-unset($value) {
|
|
127
|
+
$selector: if(
|
|
128
|
+
starts-with($color, '.') or
|
|
129
|
+
starts-with($color, '#') or
|
|
130
|
+
starts-with($color, '%'),
|
|
131
|
+
$color,
|
|
132
|
+
str-insert($color, '.label-', 1)
|
|
141
133
|
);
|
|
142
134
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
135
|
+
@if (starts-with($color, '%') or map-get($value, extend)) {
|
|
136
|
+
#{$selector} {
|
|
137
|
+
@include clay-label-variant($value);
|
|
138
|
+
}
|
|
139
|
+
} @else {
|
|
140
|
+
$placeholder: if(
|
|
141
|
+
starts-with($color, '.') or starts-with($color, '#'),
|
|
142
|
+
'%#{str-slice($color, 2)}',
|
|
143
|
+
'%label-#{$color}'
|
|
144
|
+
);
|
|
145
|
+
|
|
146
|
+
#{$placeholder} {
|
|
147
|
+
@include clay-label-variant($value);
|
|
148
|
+
}
|
|
146
149
|
|
|
147
|
-
|
|
148
|
-
|
|
150
|
+
#{$selector} {
|
|
151
|
+
@extend #{$placeholder} !optional;
|
|
152
|
+
}
|
|
149
153
|
}
|
|
150
154
|
}
|
|
151
155
|
}
|
|
@@ -410,20 +410,22 @@
|
|
|
410
410
|
// List Group Item Variants
|
|
411
411
|
|
|
412
412
|
@each $color, $value in $list-group-item-theme-colors {
|
|
413
|
-
|
|
414
|
-
|
|
413
|
+
@if not clay-is-map-unset($value) {
|
|
414
|
+
.list-group-item-#{$color} {
|
|
415
|
+
@include clay-css($value);
|
|
415
416
|
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
417
|
+
&.list-group-item-action {
|
|
418
|
+
&:hover {
|
|
419
|
+
@include clay-css(map-get($value, hover));
|
|
420
|
+
}
|
|
420
421
|
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
422
|
+
&:focus {
|
|
423
|
+
@include clay-css(map-get($value, focus));
|
|
424
|
+
}
|
|
424
425
|
|
|
425
|
-
|
|
426
|
-
|
|
426
|
+
&.active {
|
|
427
|
+
@include clay-css(map-get($value, active));
|
|
428
|
+
}
|
|
427
429
|
}
|
|
428
430
|
}
|
|
429
431
|
}
|