@clayui/css 3.41.0 → 3.44.1
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 +1117 -1163
- package/lib/css/atlas.css.map +1 -1
- package/lib/css/base.css +1020 -1068
- package/lib/css/base.css.map +1 -1
- package/lib/css/bootstrap.css.map +1 -1
- package/lib/css/cadmin.css +875 -931
- package/lib/css/cadmin.css.map +1 -1
- package/lib/images/icons/date-time.svg +12 -0
- package/lib/images/icons/filter.svg +1 -1
- package/lib/images/icons/icons.svg +1 -1
- package/package.json +2 -2
- package/src/images/icons/date-time.svg +12 -0
- package/src/images/icons/filter.svg +1 -1
- package/src/scss/_mixins.scss +2 -0
- package/src/scss/atlas/variables/_application-bar.scss +32 -12
- package/src/scss/atlas/variables/_buttons.scss +2 -31
- package/src/scss/atlas/variables/_management-bar.scss +53 -21
- package/src/scss/atlas/variables/_navigation-bar.scss +104 -18
- package/src/scss/atlas/variables/_navs.scss +20 -15
- package/src/scss/atlas/variables/_pagination.scss +2 -0
- package/src/scss/atlas/variables/_sidebar.scss +1 -1
- package/src/scss/cadmin/components/_dropdowns.scss +4 -0
- package/src/scss/cadmin/components/_input-groups.scss +12 -312
- package/src/scss/cadmin/components/_navs.scss +35 -113
- package/src/scss/cadmin/components/_pagination.scss +20 -236
- package/src/scss/cadmin/components/_popovers.scss +31 -252
- package/src/scss/cadmin/components/_tooltip.scss +29 -167
- package/src/scss/cadmin/components/_utilities-functional-important.scss +4 -3
- package/src/scss/cadmin/variables/_alerts.scss +3 -2
- package/src/scss/cadmin/variables/_dropdowns.scss +31 -2
- package/src/scss/cadmin/variables/_forms.scss +366 -5
- package/src/scss/cadmin/variables/_management-bar.scss +70 -30
- package/src/scss/cadmin/variables/_navigation-bar.scss +118 -22
- package/src/scss/cadmin/variables/_navs.scss +270 -53
- package/src/scss/cadmin/variables/_pagination.scss +274 -68
- package/src/scss/cadmin/variables/_popovers.scss +410 -0
- package/src/scss/cadmin/variables/_sidebar.scss +17 -5
- package/src/scss/cadmin/variables/_tooltip.scss +299 -0
- package/src/scss/components/_button-groups.scss +6 -6
- package/src/scss/components/_buttons.scss +87 -49
- package/src/scss/components/_cards.scss +16 -116
- package/src/scss/components/_dropdowns.scss +4 -0
- package/src/scss/components/_input-groups.scss +12 -308
- package/src/scss/components/_multi-step-nav.scss +12 -8
- package/src/scss/components/_navs.scss +45 -128
- package/src/scss/components/_pagination.scss +18 -234
- package/src/scss/components/_popovers.scss +30 -237
- package/src/scss/components/_toggle-switch.scss +2 -2
- package/src/scss/components/_tooltip.scss +29 -164
- package/src/scss/functions/_lx-icons-generated.scss +3 -1
- package/src/scss/mixins/_buttons.scss +674 -472
- package/src/scss/mixins/_cards.scss +751 -557
- package/src/scss/mixins/_close.scss +0 -1
- package/src/scss/mixins/_custom-forms.scss +442 -409
- package/src/scss/mixins/_dropdown-menu.scss +483 -406
- package/src/scss/mixins/_forms.scss +332 -256
- package/src/scss/mixins/_input-groups.scss +405 -11
- package/src/scss/mixins/_labels.scss +320 -296
- package/src/scss/mixins/_links.scss +522 -476
- package/src/scss/mixins/_nav.scss +202 -131
- package/src/scss/mixins/_navbar.scss +791 -140
- package/src/scss/mixins/_pagination.scss +422 -0
- package/src/scss/mixins/_popovers.scss +90 -0
- package/src/scss/mixins/_toggle-switch.scss +64 -0
- package/src/scss/mixins/_tooltip.scss +70 -0
- package/src/scss/variables/_alerts.scss +1 -0
- package/src/scss/variables/_application-bar.scss +18 -6
- package/src/scss/variables/_buttons.scss +26 -3
- package/src/scss/variables/_cards.scss +273 -1
- package/src/scss/variables/_dropdowns.scss +31 -2
- package/src/scss/variables/_forms.scss +405 -22
- package/src/scss/variables/_management-bar.scss +45 -12
- package/src/scss/variables/_navigation-bar.scss +95 -14
- package/src/scss/variables/_navs.scss +266 -33
- package/src/scss/variables/_pagination.scss +261 -61
- package/src/scss/variables/_popovers.scss +392 -0
- package/src/scss/variables/_sidebar.scss +17 -5
- package/src/scss/variables/_tooltip.scss +299 -0
|
@@ -20,3 +20,302 @@ $cadmin-form-feedback-tooltip-line-height: $cadmin-line-height-base !default;
|
|
|
20
20
|
$cadmin-form-feedback-tooltip-opacity: $cadmin-tooltip-opacity !default;
|
|
21
21
|
$cadmin-form-feedback-tooltip-padding-x: $cadmin-tooltip-padding-x !default;
|
|
22
22
|
$cadmin-form-feedback-tooltip-padding-y: $cadmin-tooltip-padding-y !default;
|
|
23
|
+
|
|
24
|
+
// .tooltip
|
|
25
|
+
|
|
26
|
+
$cadmin-tooltip: () !default;
|
|
27
|
+
$cadmin-tooltip: map-deep-merge(
|
|
28
|
+
(
|
|
29
|
+
display: block,
|
|
30
|
+
font-family: $cadmin-font-family-base,
|
|
31
|
+
font-size: $cadmin-tooltip-font-size,
|
|
32
|
+
font-style: normal,
|
|
33
|
+
font-weight: $cadmin-font-weight-normal,
|
|
34
|
+
letter-spacing: normal,
|
|
35
|
+
line-break: auto,
|
|
36
|
+
line-height: $cadmin-line-height-base,
|
|
37
|
+
margin: $cadmin-tooltip-margin,
|
|
38
|
+
opacity: 0,
|
|
39
|
+
position: absolute,
|
|
40
|
+
text-align: left,
|
|
41
|
+
text-decoration: none,
|
|
42
|
+
text-shadow: none,
|
|
43
|
+
text-transform: none,
|
|
44
|
+
white-space: normal,
|
|
45
|
+
word-break: normal,
|
|
46
|
+
word-spacing: normal,
|
|
47
|
+
word-wrap: break-word,
|
|
48
|
+
z-index: $cadmin-zindex-tooltip,
|
|
49
|
+
show: (
|
|
50
|
+
opacity: $cadmin-tooltip-opacity,
|
|
51
|
+
),
|
|
52
|
+
arrow: (
|
|
53
|
+
display: block,
|
|
54
|
+
height: $cadmin-tooltip-arrow-height,
|
|
55
|
+
position: absolute,
|
|
56
|
+
width: $cadmin-tooltip-arrow-width,
|
|
57
|
+
before: (
|
|
58
|
+
border-color: transparent,
|
|
59
|
+
border-style: solid,
|
|
60
|
+
content: '',
|
|
61
|
+
position: absolute,
|
|
62
|
+
),
|
|
63
|
+
),
|
|
64
|
+
),
|
|
65
|
+
$cadmin-tooltip
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
// .tooltip-inner
|
|
69
|
+
|
|
70
|
+
$cadmin-tooltip-inner: () !default;
|
|
71
|
+
$cadmin-tooltip-inner: map-merge(
|
|
72
|
+
(
|
|
73
|
+
background-color: $cadmin-tooltip-bg,
|
|
74
|
+
border-radius: clay-enable-rounded($cadmin-tooltip-border-radius),
|
|
75
|
+
box-shadow: clay-enable-shadows([$cadmin-tooltip-box-shadow]),
|
|
76
|
+
color: $cadmin-tooltip-color,
|
|
77
|
+
max-width: $cadmin-tooltip-max-width,
|
|
78
|
+
padding: $cadmin-tooltip-padding-y $cadmin-tooltip-padding-x,
|
|
79
|
+
text-align: center,
|
|
80
|
+
white-space: pre-line,
|
|
81
|
+
),
|
|
82
|
+
$cadmin-tooltip-inner
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
// .clay-tooltip-bottom, .clay-tooltip-bottom-left, .clay-tooltip-bottom-right
|
|
86
|
+
|
|
87
|
+
$cadmin-clay-tooltip-bottom: () !default;
|
|
88
|
+
$cadmin-clay-tooltip-bottom: map-deep-merge(
|
|
89
|
+
(
|
|
90
|
+
padding-top: $cadmin-tooltip-arrow-height,
|
|
91
|
+
arrow: (
|
|
92
|
+
left: 50%,
|
|
93
|
+
margin-left: math-sign($cadmin-tooltip-arrow-width * 0.5),
|
|
94
|
+
top: 0,
|
|
95
|
+
before: (
|
|
96
|
+
border-bottom-color: $cadmin-tooltip-arrow-color,
|
|
97
|
+
border-width: 0
|
|
98
|
+
(
|
|
99
|
+
$cadmin-tooltip-arrow-width * 0.5,
|
|
100
|
+
)
|
|
101
|
+
$cadmin-tooltip-arrow-height,
|
|
102
|
+
bottom: 0,
|
|
103
|
+
),
|
|
104
|
+
),
|
|
105
|
+
tooltip-arrow: (
|
|
106
|
+
border-bottom-color: transparent,
|
|
107
|
+
border-right-color: transparent,
|
|
108
|
+
left: 50%,
|
|
109
|
+
top: 0,
|
|
110
|
+
),
|
|
111
|
+
),
|
|
112
|
+
$cadmin-clay-tooltip-bottom
|
|
113
|
+
);
|
|
114
|
+
|
|
115
|
+
// .clay-tooltip-bottom-left
|
|
116
|
+
|
|
117
|
+
$cadmin-clay-tooltip-bottom-left: () !default;
|
|
118
|
+
$cadmin-clay-tooltip-bottom-left: map-deep-merge(
|
|
119
|
+
(
|
|
120
|
+
arrow: (
|
|
121
|
+
left: $cadmin-tooltip-arrow-offset,
|
|
122
|
+
margin-left: 0,
|
|
123
|
+
),
|
|
124
|
+
),
|
|
125
|
+
$cadmin-clay-tooltip-bottom-left
|
|
126
|
+
);
|
|
127
|
+
|
|
128
|
+
// .clay-tooltip-bottom-right
|
|
129
|
+
|
|
130
|
+
$cadmin-clay-tooltip-bottom-right: () !default;
|
|
131
|
+
$cadmin-clay-tooltip-bottom-right: map-deep-merge(
|
|
132
|
+
(
|
|
133
|
+
arrow: (
|
|
134
|
+
left: auto,
|
|
135
|
+
margin-left: 0,
|
|
136
|
+
right: $cadmin-tooltip-arrow-offset,
|
|
137
|
+
),
|
|
138
|
+
),
|
|
139
|
+
$cadmin-clay-tooltip-bottom-right
|
|
140
|
+
);
|
|
141
|
+
|
|
142
|
+
// .clay-tooltip-left, .clay-tooltip-left-bottom, .clay-tooltip-left-top
|
|
143
|
+
|
|
144
|
+
$cadmin-clay-tooltip-left: () !default;
|
|
145
|
+
$cadmin-clay-tooltip-left: map-deep-merge(
|
|
146
|
+
(
|
|
147
|
+
padding-right: $cadmin-tooltip-arrow-height,
|
|
148
|
+
arrow: (
|
|
149
|
+
height: $cadmin-tooltip-arrow-width,
|
|
150
|
+
margin-top: math-sign($cadmin-tooltip-arrow-width * 0.5),
|
|
151
|
+
right: 0,
|
|
152
|
+
top: 50%,
|
|
153
|
+
width: $cadmin-tooltip-arrow-height,
|
|
154
|
+
before: (
|
|
155
|
+
border-left-color: $cadmin-tooltip-arrow-color,
|
|
156
|
+
border-width: (
|
|
157
|
+
$cadmin-tooltip-arrow-width * 0.5,
|
|
158
|
+
)
|
|
159
|
+
0
|
|
160
|
+
(
|
|
161
|
+
$cadmin-tooltip-arrow-width * 0.5,
|
|
162
|
+
)
|
|
163
|
+
$cadmin-tooltip-arrow-height,
|
|
164
|
+
left: 0,
|
|
165
|
+
),
|
|
166
|
+
),
|
|
167
|
+
tooltip-arrow: (
|
|
168
|
+
border-bottom-color: transparent,
|
|
169
|
+
border-left-color: transparent,
|
|
170
|
+
right: 0,
|
|
171
|
+
top: 50%,
|
|
172
|
+
),
|
|
173
|
+
),
|
|
174
|
+
$cadmin-clay-tooltip-left
|
|
175
|
+
);
|
|
176
|
+
|
|
177
|
+
// .clay-tooltip-left-bottom
|
|
178
|
+
|
|
179
|
+
$cadmin-clay-tooltip-left-bottom: () !default;
|
|
180
|
+
$cadmin-clay-tooltip-left-bottom: map-deep-merge(
|
|
181
|
+
(
|
|
182
|
+
arrow: (
|
|
183
|
+
bottom: $cadmin-tooltip-arrow-offset,
|
|
184
|
+
margin-top: 0,
|
|
185
|
+
top: auto,
|
|
186
|
+
),
|
|
187
|
+
),
|
|
188
|
+
$cadmin-clay-tooltip-left-bottom
|
|
189
|
+
);
|
|
190
|
+
|
|
191
|
+
// .clay-tooltip-left-top
|
|
192
|
+
|
|
193
|
+
$cadmin-clay-tooltip-left-top: () !default;
|
|
194
|
+
$cadmin-clay-tooltip-left-top: map-deep-merge(
|
|
195
|
+
(
|
|
196
|
+
arrow: (
|
|
197
|
+
margin-top: 0,
|
|
198
|
+
top: $cadmin-tooltip-arrow-offset,
|
|
199
|
+
),
|
|
200
|
+
),
|
|
201
|
+
$cadmin-clay-tooltip-left-top
|
|
202
|
+
);
|
|
203
|
+
|
|
204
|
+
// .clay-tooltip-right, .clay-tooltip-right-bottom, .clay-tooltip-right-top
|
|
205
|
+
|
|
206
|
+
$cadmin-clay-tooltip-right: () !default;
|
|
207
|
+
$cadmin-clay-tooltip-right: map-deep-merge(
|
|
208
|
+
(
|
|
209
|
+
padding-left: $cadmin-tooltip-arrow-height,
|
|
210
|
+
arrow: (
|
|
211
|
+
height: $cadmin-tooltip-arrow-width,
|
|
212
|
+
left: 0,
|
|
213
|
+
margin-top: math-sign($cadmin-tooltip-arrow-width * 0.5),
|
|
214
|
+
top: 50%,
|
|
215
|
+
width: $cadmin-tooltip-arrow-height,
|
|
216
|
+
before: (
|
|
217
|
+
border-right-color: $cadmin-tooltip-arrow-color,
|
|
218
|
+
border-width: (
|
|
219
|
+
$cadmin-tooltip-arrow-width * 0.5,
|
|
220
|
+
)
|
|
221
|
+
$cadmin-tooltip-arrow-height
|
|
222
|
+
(
|
|
223
|
+
$cadmin-tooltip-arrow-width * 0.5,
|
|
224
|
+
)
|
|
225
|
+
0,
|
|
226
|
+
right: 0,
|
|
227
|
+
),
|
|
228
|
+
),
|
|
229
|
+
tooltip-arrow: (
|
|
230
|
+
border-right-color: transparent,
|
|
231
|
+
border-top-color: transparent,
|
|
232
|
+
left: 0,
|
|
233
|
+
top: 50%,
|
|
234
|
+
),
|
|
235
|
+
),
|
|
236
|
+
$cadmin-clay-tooltip-right
|
|
237
|
+
);
|
|
238
|
+
|
|
239
|
+
// .clay-tooltip-right-bottom
|
|
240
|
+
|
|
241
|
+
$cadmin-clay-tooltip-right-bottom: () !default;
|
|
242
|
+
$cadmin-clay-tooltip-right-bottom: map-deep-merge(
|
|
243
|
+
(
|
|
244
|
+
arrow: (
|
|
245
|
+
bottom: $cadmin-tooltip-arrow-offset,
|
|
246
|
+
margin-top: 0,
|
|
247
|
+
top: auto,
|
|
248
|
+
),
|
|
249
|
+
),
|
|
250
|
+
$cadmin-clay-tooltip-right-bottom
|
|
251
|
+
);
|
|
252
|
+
|
|
253
|
+
// .clay-tooltip-right-top
|
|
254
|
+
|
|
255
|
+
$cadmin-clay-tooltip-right-top: () !default;
|
|
256
|
+
$cadmin-clay-tooltip-right-top: map-deep-merge(
|
|
257
|
+
(
|
|
258
|
+
arrow: (
|
|
259
|
+
margin-top: 0,
|
|
260
|
+
top: $cadmin-tooltip-arrow-offset,
|
|
261
|
+
),
|
|
262
|
+
),
|
|
263
|
+
$cadmin-clay-tooltip-right-top
|
|
264
|
+
);
|
|
265
|
+
|
|
266
|
+
// .clay-tooltip-top, .clay-tooltip-top-left, .clay-tooltip-top-right
|
|
267
|
+
|
|
268
|
+
$cadmin-tooltip-top: () !default;
|
|
269
|
+
$cadmin-tooltip-top: map-deep-merge(
|
|
270
|
+
(
|
|
271
|
+
padding-bottom: $cadmin-tooltip-arrow-height,
|
|
272
|
+
arrow: (
|
|
273
|
+
bottom: 0,
|
|
274
|
+
left: 50%,
|
|
275
|
+
margin-left: math-sign($cadmin-tooltip-arrow-width * 0.5),
|
|
276
|
+
before: (
|
|
277
|
+
border-top-color: $cadmin-tooltip-arrow-color,
|
|
278
|
+
border-width: $cadmin-tooltip-arrow-height
|
|
279
|
+
(
|
|
280
|
+
$cadmin-tooltip-arrow-width * 0.5,
|
|
281
|
+
)
|
|
282
|
+
0,
|
|
283
|
+
top: 0,
|
|
284
|
+
),
|
|
285
|
+
),
|
|
286
|
+
tooltip-arrow: (
|
|
287
|
+
border-left-color: transparent,
|
|
288
|
+
border-top-color: transparent,
|
|
289
|
+
bottom: 0,
|
|
290
|
+
left: 50%,
|
|
291
|
+
),
|
|
292
|
+
),
|
|
293
|
+
$cadmin-tooltip-top
|
|
294
|
+
);
|
|
295
|
+
|
|
296
|
+
// .clay-tooltip-top-left
|
|
297
|
+
|
|
298
|
+
$cadmin-tooltip-top-left: () !default;
|
|
299
|
+
$cadmin-tooltip-top-left: map-deep-merge(
|
|
300
|
+
(
|
|
301
|
+
arrow: (
|
|
302
|
+
left: $cadmin-tooltip-arrow-offset,
|
|
303
|
+
margin-left: 0,
|
|
304
|
+
),
|
|
305
|
+
),
|
|
306
|
+
$cadmin-tooltip-top-left
|
|
307
|
+
);
|
|
308
|
+
|
|
309
|
+
// .clay-tooltip-top-right
|
|
310
|
+
|
|
311
|
+
$cadmin-tooltip-top-right: () !default;
|
|
312
|
+
$cadmin-tooltip-top-right: map-deep-merge(
|
|
313
|
+
(
|
|
314
|
+
arrow: (
|
|
315
|
+
left: auto,
|
|
316
|
+
margin-left: 0,
|
|
317
|
+
right: $cadmin-tooltip-arrow-offset,
|
|
318
|
+
),
|
|
319
|
+
),
|
|
320
|
+
$cadmin-tooltip-top-right
|
|
321
|
+
);
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
// Makes .btn narrower
|
|
107
107
|
|
|
108
108
|
.dropdown-toggle-split {
|
|
109
|
-
padding-left: $btn-padding-x * 0.75;
|
|
110
|
-
padding-right: $btn-padding-x * 0.75;
|
|
109
|
+
padding-left: calc(#{$btn-padding-x} * 0.75);
|
|
110
|
+
padding-right: calc(#{$btn-padding-x} * 0.75);
|
|
111
111
|
|
|
112
112
|
@if ($enable-caret) {
|
|
113
113
|
&::after,
|
|
@@ -123,13 +123,13 @@
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
.btn-sm + .dropdown-toggle-split {
|
|
126
|
-
padding-right: $btn-padding-x-sm * 0.75;
|
|
127
|
-
padding-left: $btn-padding-x-sm * 0.75;
|
|
126
|
+
padding-right: calc(#{$btn-padding-x-sm} * 0.75);
|
|
127
|
+
padding-left: calc(#{$btn-padding-x-sm} * 0.75);
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
.btn-lg + .dropdown-toggle-split {
|
|
131
|
-
padding-right: $btn-padding-x-lg * 0.75;
|
|
132
|
-
padding-left: $btn-padding-x-lg * 0.75;
|
|
131
|
+
padding-right: calc(#{$btn-padding-x-lg} * 0.75);
|
|
132
|
+
padding-left: calc(#{$btn-padding-x-lg} * 0.75);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
// Button Group Vertical
|
|
@@ -18,20 +18,26 @@ fieldset:disabled a.btn {
|
|
|
18
18
|
|
|
19
19
|
// Button Sizes
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
21
|
+
@each $size, $value in $btn-sizes {
|
|
22
|
+
$placeholder: if(
|
|
23
|
+
starts-with($size, 'btn-'),
|
|
24
|
+
'%clay-#{$size}',
|
|
25
|
+
'%#{str-slice($size, 2)}'
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
$selector: if(
|
|
29
|
+
starts-with($size, 'btn-'),
|
|
30
|
+
clay-str-replace($size, 'btn-', '.btn-'),
|
|
31
|
+
$size
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
#{$placeholder} {
|
|
35
|
+
@include clay-button-variant($value);
|
|
36
|
+
}
|
|
32
37
|
|
|
33
|
-
|
|
34
|
-
|
|
38
|
+
#{$selector} {
|
|
39
|
+
@extend #{$placeholder} !optional;
|
|
40
|
+
}
|
|
35
41
|
}
|
|
36
42
|
|
|
37
43
|
// Button Block
|
|
@@ -67,65 +73,97 @@ input[type='button'] {
|
|
|
67
73
|
|
|
68
74
|
// Button Monospaced
|
|
69
75
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
76
|
+
@each $size, $value in $btn-monospaced-sizes {
|
|
77
|
+
$placeholder: if(
|
|
78
|
+
starts-with($size, 'btn-monospaced'),
|
|
79
|
+
'%clay-#{$size}',
|
|
80
|
+
'%#{str-slice($size, 2)}'
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
$selector: if(
|
|
84
|
+
starts-with($size, 'btn-monospaced-'),
|
|
85
|
+
clay-str-replace($size, 'btn-monospaced', '.btn-monospaced.btn'),
|
|
86
|
+
if(
|
|
87
|
+
$size == 'btn-monospaced',
|
|
88
|
+
clay-str-replace($size, 'btn-monospaced', '.btn-monospaced'),
|
|
89
|
+
$size
|
|
90
|
+
)
|
|
91
|
+
);
|
|
92
|
+
|
|
93
|
+
#{$placeholder} {
|
|
94
|
+
@include clay-button-variant($value);
|
|
75
95
|
}
|
|
76
|
-
}
|
|
77
96
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.btn-monospaced.btn-lg {
|
|
83
|
-
@extend %clay-btn-monospaced-lg !optional;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
%clay-btn-monospaced-sm {
|
|
87
|
-
@include clay-button-variant($btn-monospaced-sm);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.btn-monospaced.btn-sm {
|
|
91
|
-
@extend %clay-btn-monospaced-sm !optional;
|
|
97
|
+
#{$selector} {
|
|
98
|
+
@extend #{$placeholder} !optional;
|
|
99
|
+
}
|
|
92
100
|
}
|
|
93
101
|
|
|
94
102
|
// Button Variants
|
|
95
103
|
|
|
96
104
|
@each $color, $value in $btn-palette {
|
|
97
|
-
|
|
105
|
+
$placeholder: if(
|
|
106
|
+
starts-with($color, '.') or starts-with($color, '#'),
|
|
107
|
+
'%#{str-slice($color, 2)}',
|
|
108
|
+
'%btn-#{$color}'
|
|
109
|
+
);
|
|
110
|
+
|
|
111
|
+
$placeholder-focus: if(
|
|
112
|
+
starts-with($color, '.') or starts-with($color, '#'),
|
|
113
|
+
'%#{str-slice($color, 2)}-focus',
|
|
114
|
+
'%btn-#{$color}-focus'
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
$selector: if(
|
|
118
|
+
starts-with($color, '.') or starts-with($color, '#'),
|
|
119
|
+
$color,
|
|
120
|
+
str-insert($color, '.btn-', 1)
|
|
121
|
+
);
|
|
122
|
+
|
|
123
|
+
#{$placeholder} {
|
|
98
124
|
@include clay-button-variant($value);
|
|
99
125
|
}
|
|
100
126
|
|
|
101
|
-
|
|
102
|
-
@extend
|
|
127
|
+
#{$selector} {
|
|
128
|
+
@extend #{$placeholder} !optional;
|
|
103
129
|
}
|
|
104
130
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
border-color: map-get($value, focus-border-color);
|
|
108
|
-
box-shadow: map-get($value, focus-box-shadow);
|
|
109
|
-
color: map-get($value, focus-color);
|
|
131
|
+
#{$placeholder-focus} {
|
|
132
|
+
@include clay-button-variant(map-get($value, focus));
|
|
110
133
|
}
|
|
111
134
|
}
|
|
112
135
|
|
|
113
136
|
// Button Outline Variants
|
|
114
137
|
|
|
115
138
|
@each $color, $value in $btn-outline-palette {
|
|
116
|
-
|
|
139
|
+
$placeholder: if(
|
|
140
|
+
starts-with($color, '.') or starts-with($color, '#'),
|
|
141
|
+
'%#{str-slice($color, 2)}',
|
|
142
|
+
'%btn-outline-#{$color}'
|
|
143
|
+
);
|
|
144
|
+
|
|
145
|
+
$placeholder-focus: if(
|
|
146
|
+
starts-with($color, '.') or starts-with($color, '#'),
|
|
147
|
+
'%#{str-slice($color, 2)}-focus',
|
|
148
|
+
'%btn-outline-#{$color}-focus'
|
|
149
|
+
);
|
|
150
|
+
|
|
151
|
+
$selector: if(
|
|
152
|
+
starts-with($color, '.') or starts-with($color, '#'),
|
|
153
|
+
$color,
|
|
154
|
+
str-insert($color, '.btn-outline-', 1)
|
|
155
|
+
);
|
|
156
|
+
|
|
157
|
+
#{$placeholder} {
|
|
117
158
|
@include clay-button-variant($value);
|
|
118
159
|
}
|
|
119
160
|
|
|
120
|
-
|
|
121
|
-
@extend
|
|
161
|
+
#{$selector} {
|
|
162
|
+
@extend #{$placeholder} !optional;
|
|
122
163
|
}
|
|
123
164
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
border-color: map-get($value, focus-border-color);
|
|
127
|
-
box-shadow: map-get($value, focus-box-shadow);
|
|
128
|
-
color: map-get($value, focus-color);
|
|
165
|
+
#{$placeholder-focus} {
|
|
166
|
+
@include clay-button-variant(map-get($value, focus));
|
|
129
167
|
}
|
|
130
168
|
}
|
|
131
169
|
|
|
@@ -567,75 +567,18 @@
|
|
|
567
567
|
// Checkbox and Radio Cards
|
|
568
568
|
|
|
569
569
|
.form-check-card {
|
|
570
|
-
|
|
571
|
-
margin-top: 0;
|
|
572
|
-
padding-left: 0;
|
|
573
|
-
|
|
574
|
-
.card {
|
|
575
|
-
margin-bottom: 0;
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
.custom-control {
|
|
579
|
-
display: inline;
|
|
580
|
-
margin-right: 0;
|
|
581
|
-
position: static;
|
|
582
|
-
|
|
583
|
-
> label {
|
|
584
|
-
font-weight: $font-weight-normal;
|
|
585
|
-
padding-left: 0;
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
.custom-control-input {
|
|
590
|
-
z-index: 2;
|
|
591
|
-
}
|
|
570
|
+
@include clay-form-check-card-variant($form-check-card);
|
|
592
571
|
|
|
593
|
-
.custom-control-label {
|
|
594
|
-
position: absolute;
|
|
595
|
-
z-index: 1;
|
|
596
|
-
|
|
597
|
-
&::before,
|
|
598
|
-
&::after {
|
|
599
|
-
top: 0;
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
.form-check-input {
|
|
604
|
-
margin-left: 0;
|
|
605
|
-
margin-top: 0;
|
|
606
|
-
position: absolute;
|
|
607
|
-
z-index: 1;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
.form-check-label {
|
|
611
|
-
color: $body-color;
|
|
612
|
-
display: inline;
|
|
613
|
-
font-weight: $font-weight-normal;
|
|
614
|
-
padding-left: 0;
|
|
615
|
-
position: static;
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
&.active .card,
|
|
619
|
-
.custom-control-input:checked ~ .card,
|
|
620
572
|
.form-check-input:checked ~ .card {
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
.custom-control-input,
|
|
634
|
-
.form-check-input {
|
|
635
|
-
&:hover {
|
|
636
|
-
~ .card {
|
|
637
|
-
box-shadow: $form-check-card-checked-box-shadow;
|
|
638
|
-
}
|
|
573
|
+
@include clay-card-variant(
|
|
574
|
+
map-deep-get(
|
|
575
|
+
$form-check-card,
|
|
576
|
+
custom-control,
|
|
577
|
+
custom-control-input,
|
|
578
|
+
checked,
|
|
579
|
+
card
|
|
580
|
+
)
|
|
581
|
+
);
|
|
639
582
|
}
|
|
640
583
|
}
|
|
641
584
|
|
|
@@ -660,70 +603,27 @@
|
|
|
660
603
|
}
|
|
661
604
|
|
|
662
605
|
.form-check-bottom-left {
|
|
663
|
-
|
|
664
|
-
.custom-control-label,
|
|
665
|
-
.form-check-input {
|
|
666
|
-
bottom: $checkbox-position;
|
|
667
|
-
left: $checkbox-position;
|
|
668
|
-
top: auto;
|
|
669
|
-
transform: none;
|
|
670
|
-
}
|
|
606
|
+
@include clay-form-check-card-variant($form-check-bottom-left);
|
|
671
607
|
}
|
|
672
608
|
|
|
673
609
|
.form-check-bottom-right {
|
|
674
|
-
|
|
675
|
-
.custom-control-label,
|
|
676
|
-
.form-check-input {
|
|
677
|
-
bottom: $checkbox-position;
|
|
678
|
-
left: auto;
|
|
679
|
-
right: $checkbox-position;
|
|
680
|
-
top: auto;
|
|
681
|
-
transform: none;
|
|
682
|
-
}
|
|
610
|
+
@include clay-form-check-card-variant($form-check-bottom-right);
|
|
683
611
|
}
|
|
684
612
|
|
|
685
613
|
.form-check-middle-left {
|
|
686
|
-
|
|
687
|
-
.custom-control-label,
|
|
688
|
-
.form-check-input {
|
|
689
|
-
left: $checkbox-position;
|
|
690
|
-
margin-top: 0;
|
|
691
|
-
top: 50%;
|
|
692
|
-
transform: translateY(-50%);
|
|
693
|
-
}
|
|
614
|
+
@include clay-form-check-card-variant($form-check-middle-left);
|
|
694
615
|
}
|
|
695
616
|
|
|
696
617
|
.form-check-middle-right {
|
|
697
|
-
|
|
698
|
-
.custom-control-label,
|
|
699
|
-
.form-check-input {
|
|
700
|
-
left: auto;
|
|
701
|
-
margin-top: 0;
|
|
702
|
-
right: $checkbox-position;
|
|
703
|
-
top: 50%;
|
|
704
|
-
transform: translateY(-50%);
|
|
705
|
-
}
|
|
618
|
+
@include clay-form-check-card-variant($form-check-middle-right);
|
|
706
619
|
}
|
|
707
620
|
|
|
708
621
|
.form-check-top-left {
|
|
709
|
-
|
|
710
|
-
.custom-control-label,
|
|
711
|
-
.form-check-input {
|
|
712
|
-
left: $checkbox-position;
|
|
713
|
-
top: $checkbox-position;
|
|
714
|
-
transform: none;
|
|
715
|
-
}
|
|
622
|
+
@include clay-form-check-card-variant($form-check-top-left);
|
|
716
623
|
}
|
|
717
624
|
|
|
718
625
|
.form-check-top-right {
|
|
719
|
-
|
|
720
|
-
.custom-control-label,
|
|
721
|
-
.form-check-input {
|
|
722
|
-
left: auto;
|
|
723
|
-
right: $checkbox-position;
|
|
724
|
-
top: $checkbox-position;
|
|
725
|
-
transform: none;
|
|
726
|
-
}
|
|
626
|
+
@include clay-form-check-card-variant($form-check-top-right);
|
|
727
627
|
}
|
|
728
628
|
|
|
729
629
|
// Card Page
|