@clayui/css 3.91.0 → 3.93.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 +623 -178
- package/lib/css/atlas.css.map +1 -1
- package/lib/css/base.css +330 -15
- package/lib/css/base.css.map +1 -1
- package/lib/css/cadmin.css +471 -93
- 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/_cards.scss +3 -4
- package/src/scss/atlas/variables/_clay-color.scss +1 -1
- package/src/scss/atlas/variables/_globals.scss +2 -2
- package/src/scss/atlas/variables/_navs.scss +6 -10
- package/src/scss/atlas/variables/_panels.scss +1 -1
- package/src/scss/atlas/variables/_popovers.scss +2 -1
- package/src/scss/atlas/variables/_sheets.scss +1 -1
- package/src/scss/atlas/variables/_sidebar.scss +1 -1
- package/src/scss/atlas/variables/_time.scss +1 -1
- package/src/scss/cadmin/components/_badges.scss +5 -1
- 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 +42 -1
- package/src/scss/cadmin/components/_side-navigation.scss +2 -2
- package/src/scss/cadmin/components/_treeview.scss +18 -16
- package/src/scss/cadmin/components/_utilities-functional-important.scss +6 -0
- package/src/scss/cadmin/variables/_badges.scss +5 -0
- package/src/scss/cadmin/variables/_buttons.scss +14 -1
- package/src/scss/cadmin/variables/_clay-color.scss +1 -1
- package/src/scss/cadmin/variables/_date-picker.scss +8 -0
- package/src/scss/cadmin/variables/_globals.scss +2 -2
- package/src/scss/cadmin/variables/_multi-step-nav.scss +23 -0
- package/src/scss/cadmin/variables/_navs.scss +1 -2
- package/src/scss/cadmin/variables/_panels.scss +1 -1
- package/src/scss/cadmin/variables/_resizer.scss +2 -2
- package/src/scss/cadmin/variables/_sheets.scss +1 -1
- package/src/scss/cadmin/variables/_sidebar.scss +1 -1
- package/src/scss/cadmin/variables/_tbar.scss +2 -4
- package/src/scss/cadmin/variables/_time.scss +1 -1
- package/src/scss/cadmin/variables/_treeview.scss +21 -8
- package/src/scss/cadmin/variables/_utilities.scss +12 -1
- package/src/scss/components/_alerts.scss +24 -22
- package/src/scss/components/_aspect-ratio.scss +33 -31
- package/src/scss/components/_badges.scss +28 -22
- 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 +45 -1
- package/src/scss/components/_navs.scss +10 -20
- 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/_treeview.scss +18 -12
- package/src/scss/components/_utilities-functional-important.scss +81 -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 +34 -0
- package/src/scss/mixins/_links.scss +9 -7
- package/src/scss/mixins/_nav.scss +16 -0
- package/src/scss/mixins/_transition.scss +12 -0
- package/src/scss/variables/_badges.scss +5 -0
- package/src/scss/variables/_buttons.scss +14 -1
- package/src/scss/variables/_date-picker.scss +2 -2
- package/src/scss/variables/_multi-step-nav.scss +23 -0
- package/src/scss/variables/_navs.scss +38 -5
- package/src/scss/variables/_resizer.scss +2 -2
- package/src/scss/variables/_sheets.scss +17 -0
- package/src/scss/variables/_tbar.scss +2 -2
- package/src/scss/variables/_treeview.scss +21 -8
- package/src/scss/variables/_utilities.scss +11 -0
|
@@ -180,7 +180,7 @@ $cadmin-panel-unstyled-header-link: map-deep-merge(
|
|
|
180
180
|
border-radius: 1px,
|
|
181
181
|
focus: (
|
|
182
182
|
box-shadow: #{0 0 0 4px $cadmin-body-bg,
|
|
183
|
-
0 0 0 6px $cadmin-primary-
|
|
183
|
+
0 0 0 6px $cadmin-primary-l0},
|
|
184
184
|
),
|
|
185
185
|
),
|
|
186
186
|
$cadmin-panel-unstyled-header-link
|
|
@@ -11,10 +11,10 @@ $cadmin-c-horizontal-resizer: map-merge(
|
|
|
11
11
|
width: 0.5rem,
|
|
12
12
|
z-index: 10,
|
|
13
13
|
hover: (
|
|
14
|
-
background-color: $cadmin-primary-
|
|
14
|
+
background-color: $cadmin-primary-l0,
|
|
15
15
|
),
|
|
16
16
|
focus: (
|
|
17
|
-
background-color: $cadmin-primary-
|
|
17
|
+
background-color: $cadmin-primary-l0,
|
|
18
18
|
),
|
|
19
19
|
),
|
|
20
20
|
$cadmin-c-horizontal-resizer
|
|
@@ -62,13 +62,11 @@ $cadmin-tbar-stacked: map-deep-merge(
|
|
|
62
62
|
position: relative,
|
|
63
63
|
width: 40px,
|
|
64
64
|
focus: (
|
|
65
|
-
box-shadow:
|
|
66
|
-
inset 0 0 0 4px $cadmin-white},
|
|
65
|
+
box-shadow: $cadmin-component-focus-inset-box-shadow,
|
|
67
66
|
),
|
|
68
67
|
active: (
|
|
69
68
|
focus: (
|
|
70
|
-
box-shadow:
|
|
71
|
-
inset 0 0 0 4px $cadmin-white},
|
|
69
|
+
box-shadow: $cadmin-component-focus-inset-box-shadow,
|
|
72
70
|
),
|
|
73
71
|
),
|
|
74
72
|
),
|
|
@@ -32,7 +32,7 @@ $cadmin-treeview: map-merge(
|
|
|
32
32
|
),
|
|
33
33
|
treeview-dragging: (
|
|
34
34
|
background-color: $cadmin-white,
|
|
35
|
-
border-color: $cadmin-primary-
|
|
35
|
+
border-color: $cadmin-primary-l0,
|
|
36
36
|
border-radius: $cadmin-border-radius-sm,
|
|
37
37
|
border-style: solid,
|
|
38
38
|
border-width: 1px,
|
|
@@ -61,6 +61,25 @@ $cadmin-treeview: map-merge(
|
|
|
61
61
|
box-shadow: none,
|
|
62
62
|
),
|
|
63
63
|
),
|
|
64
|
+
treeview-dropping-indicator-top: (
|
|
65
|
+
background-color: transparent,
|
|
66
|
+
display: block,
|
|
67
|
+
height: 2px,
|
|
68
|
+
margin-top: -2px,
|
|
69
|
+
outline: none,
|
|
70
|
+
width: 100%,
|
|
71
|
+
),
|
|
72
|
+
treeview-dropping-indicator-bottom: (
|
|
73
|
+
background-color: transparent,
|
|
74
|
+
display: block,
|
|
75
|
+
height: 2px,
|
|
76
|
+
margin-bottom: -2px,
|
|
77
|
+
outline: none,
|
|
78
|
+
width: 100%,
|
|
79
|
+
),
|
|
80
|
+
treeview-dropping-indicator-over: (
|
|
81
|
+
background-color: $cadmin-primary-l0,
|
|
82
|
+
),
|
|
64
83
|
treeview-link: (
|
|
65
84
|
background-color: transparent,
|
|
66
85
|
cursor: pointer,
|
|
@@ -75,15 +94,9 @@ $cadmin-treeview: map-merge(
|
|
|
75
94
|
position: relative,
|
|
76
95
|
text-align: left,
|
|
77
96
|
user-select: none,
|
|
78
|
-
treeview-dropping-bottom: (
|
|
79
|
-
box-shadow: 0 2px 0 0 $cadmin-primary-l1,
|
|
80
|
-
),
|
|
81
97
|
treeview-dropping-middle: (
|
|
82
98
|
background-color: $cadmin-primary-l3,
|
|
83
|
-
border-color: $cadmin-primary-
|
|
84
|
-
),
|
|
85
|
-
treeview-dropping-top: (
|
|
86
|
-
box-shadow: 0 -2px 0 0 $cadmin-primary-l1,
|
|
99
|
+
border-color: $cadmin-primary-l0,
|
|
87
100
|
),
|
|
88
101
|
hover: (
|
|
89
102
|
text-decoration: none,
|
|
@@ -104,7 +104,7 @@ $cadmin-c-focus-inset-focus: () !default;
|
|
|
104
104
|
$cadmin-c-focus-inset-focus: map-deep-merge(
|
|
105
105
|
(
|
|
106
106
|
box-shadow: $cadmin-component-focus-inset-box-shadow,
|
|
107
|
-
border-color: $cadmin-primary-
|
|
107
|
+
border-color: $cadmin-primary-l0,
|
|
108
108
|
outline: 0,
|
|
109
109
|
),
|
|
110
110
|
$cadmin-c-focus-inset-focus
|
|
@@ -541,3 +541,14 @@ $cadmin-text-decorations: map-deep-merge(
|
|
|
541
541
|
),
|
|
542
542
|
$cadmin-text-decorations
|
|
543
543
|
);
|
|
544
|
+
|
|
545
|
+
// Transitions
|
|
546
|
+
|
|
547
|
+
$cadmin-c-prefers-reduced-motion: () !default;
|
|
548
|
+
$cadmin-c-prefers-reduced-motion: map-merge(
|
|
549
|
+
(
|
|
550
|
+
scroll-behavior: auto,
|
|
551
|
+
transition: clay-enable-transitions(none),
|
|
552
|
+
),
|
|
553
|
+
$cadmin-c-prefers-reduced-motion
|
|
554
|
+
);
|
|
@@ -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,31 +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
|
-
} @else {
|
|
124
|
-
$placeholder: if(
|
|
125
|
-
starts-with($color, '.') or starts-with($color, '#'),
|
|
126
|
-
'%#{str-slice($color, 2)}',
|
|
127
|
-
'%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
|
+
)
|
|
128
122
|
);
|
|
129
123
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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
|
+
}
|
|
133
138
|
|
|
134
|
-
|
|
135
|
-
|
|
139
|
+
#{$selector} {
|
|
140
|
+
@extend #{$placeholder} !optional;
|
|
141
|
+
}
|
|
136
142
|
}
|
|
137
143
|
}
|
|
138
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);
|