@clayui/css 3.60.1 → 3.62.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 +1589 -321
- package/lib/css/atlas.css.map +1 -1
- package/lib/css/base.css +1108 -205
- package/lib/css/base.css.map +1 -1
- package/lib/css/cadmin.css +1331 -319
- 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/_globals.scss +10 -30
- package/src/scss/atlas/variables/_sidebar.scss +27 -17
- package/src/scss/cadmin/components/_forms.scss +10 -0
- package/src/scss/cadmin/components/_input-groups.scss +9 -0
- package/src/scss/cadmin/components/_side-navigation.scss +3 -0
- package/src/scss/cadmin/components/_sidebar.scss +10 -10
- package/src/scss/cadmin/components/_type.scss +5 -4
- package/src/scss/cadmin/variables/_forms.scss +31 -19
- package/src/scss/cadmin/variables/_globals.scss +10 -30
- package/src/scss/cadmin/variables/_loaders.scss +1 -0
- package/src/scss/cadmin/variables/_sidebar.scss +140 -54
- package/src/scss/cadmin/variables/_type.scss +14 -0
- package/src/scss/components/_forms.scss +10 -0
- package/src/scss/components/_input-groups.scss +9 -0
- package/src/scss/components/_side-navigation.scss +2 -0
- package/src/scss/components/_sidebar.scss +10 -10
- package/src/scss/components/_type.scss +5 -4
- package/src/scss/functions/_global-functions.scss +137 -41
- package/src/scss/mixins/_alerts.scss +26 -0
- package/src/scss/mixins/_badges.scss +9 -7
- package/src/scss/mixins/_border-radius.scss +78 -57
- package/src/scss/mixins/_box-shadow.scss +9 -7
- package/src/scss/mixins/_breakpoints.scss +44 -4
- package/src/scss/mixins/_buttons.scss +21 -22
- package/src/scss/mixins/_cards.scss +12 -2
- package/src/scss/mixins/_close.scss +9 -7
- package/src/scss/mixins/_dropdown-menu.scss +9 -7
- package/src/scss/mixins/_forms.scss +29 -1
- package/src/scss/mixins/_gradients.scss +18 -10
- package/src/scss/mixins/_grid.scss +9 -7
- package/src/scss/mixins/_input-groups.scss +0 -6
- package/src/scss/mixins/_labels.scss +15 -8
- package/src/scss/mixins/_links.scss +9 -7
- package/src/scss/mixins/_list-group.scss +117 -21
- package/src/scss/mixins/_menubar.scss +117 -22
- package/src/scss/mixins/_navbar.scss +95 -132
- package/src/scss/mixins/_panels.scss +280 -269
- package/src/scss/mixins/_scale-component.scss +10 -2
- package/src/scss/mixins/_sidebar.scss +311 -185
- package/src/scss/mixins/_stickers.scss +143 -134
- package/src/scss/mixins/_tbar.scss +15 -36
- package/src/scss/mixins/_timelines.scss +20 -4
- package/src/scss/variables/_forms.scss +31 -19
- package/src/scss/variables/_globals.scss +7 -21
- package/src/scss/variables/_loaders.scss +1 -0
- package/src/scss/variables/_sidebar.scss +123 -44
- package/src/scss/variables/_type.scss +14 -0
|
@@ -77,39 +77,6 @@ $cadmin-sidebar-list-group-sticker-size: map-deep-merge(
|
|
|
77
77
|
|
|
78
78
|
// Sidebar Light
|
|
79
79
|
|
|
80
|
-
$cadmin-sidebar-light: () !default;
|
|
81
|
-
$cadmin-sidebar-light: map-deep-merge(
|
|
82
|
-
(
|
|
83
|
-
bg: $cadmin-white,
|
|
84
|
-
border-color: $cadmin-gray-300,
|
|
85
|
-
border-left-width: 0,
|
|
86
|
-
box-shadow: -4px 0 8px -4px rgba(0, 0, 0, 0.1),
|
|
87
|
-
color: $cadmin-gray-900,
|
|
88
|
-
dt: (
|
|
89
|
-
color: $cadmin-gray-600,
|
|
90
|
-
),
|
|
91
|
-
dd: (
|
|
92
|
-
clay-link: (
|
|
93
|
-
color: $cadmin-gray-900,
|
|
94
|
-
),
|
|
95
|
-
),
|
|
96
|
-
panel-bg: $cadmin-gray-200,
|
|
97
|
-
panel-unstyled: (
|
|
98
|
-
header-link: (
|
|
99
|
-
focus-box-shadow: #{0 0 0 4px $cadmin-white,
|
|
100
|
-
0 0 0 6px $cadmin-primary-l1},
|
|
101
|
-
),
|
|
102
|
-
),
|
|
103
|
-
sidebar-list-group-title: (
|
|
104
|
-
font-size: 16px,
|
|
105
|
-
clay-link: (
|
|
106
|
-
color: $cadmin-gray-900,
|
|
107
|
-
),
|
|
108
|
-
),
|
|
109
|
-
),
|
|
110
|
-
$cadmin-sidebar-light
|
|
111
|
-
);
|
|
112
|
-
|
|
113
80
|
$cadmin-sidebar-light-navigation-bar: () !default;
|
|
114
81
|
$cadmin-sidebar-light-navigation-bar: map-deep-merge(
|
|
115
82
|
(
|
|
@@ -135,42 +102,161 @@ $cadmin-sidebar-light-navigation-bar: map-deep-merge(
|
|
|
135
102
|
$cadmin-sidebar-light-navigation-bar
|
|
136
103
|
);
|
|
137
104
|
|
|
105
|
+
$cadmin-sidebar-light: () !default;
|
|
106
|
+
$cadmin-sidebar-light: map-deep-merge(
|
|
107
|
+
(
|
|
108
|
+
background-color: $cadmin-white,
|
|
109
|
+
border-color: $cadmin-gray-300,
|
|
110
|
+
border-left-width: 0,
|
|
111
|
+
box-shadow: -4px 0 8px -4px rgba(0, 0, 0, 0.1),
|
|
112
|
+
color: $cadmin-gray-900,
|
|
113
|
+
sidenav-start: (
|
|
114
|
+
box-shadow: 4px 0 8px -4px rgba(0, 0, 0, 0.1),
|
|
115
|
+
),
|
|
116
|
+
sidebar-dt: (
|
|
117
|
+
color: $cadmin-gray-600,
|
|
118
|
+
),
|
|
119
|
+
sidebar-dd: (
|
|
120
|
+
href: (
|
|
121
|
+
color: $cadmin-gray-900,
|
|
122
|
+
),
|
|
123
|
+
),
|
|
124
|
+
sidebar-panel: (
|
|
125
|
+
background-color: $cadmin-gray-200,
|
|
126
|
+
),
|
|
127
|
+
panel-unstyled: (
|
|
128
|
+
header: (
|
|
129
|
+
link: (
|
|
130
|
+
focus: (
|
|
131
|
+
box-shadow: #{0 0 0 4px $cadmin-white,
|
|
132
|
+
0 0 0 6px $cadmin-primary-l1},
|
|
133
|
+
),
|
|
134
|
+
),
|
|
135
|
+
),
|
|
136
|
+
),
|
|
137
|
+
sidebar-list-group: (
|
|
138
|
+
component-title: (
|
|
139
|
+
font-size: 16px,
|
|
140
|
+
href: (
|
|
141
|
+
color: $cadmin-gray-900,
|
|
142
|
+
),
|
|
143
|
+
),
|
|
144
|
+
),
|
|
145
|
+
component-navigation-bar: $cadmin-sidebar-light-navigation-bar,
|
|
146
|
+
),
|
|
147
|
+
$cadmin-sidebar-light
|
|
148
|
+
);
|
|
149
|
+
|
|
138
150
|
// Sidebar Dark
|
|
139
151
|
|
|
140
152
|
$cadmin-sidebar-dark: () !default;
|
|
141
153
|
$cadmin-sidebar-dark: map-deep-merge(
|
|
142
154
|
(
|
|
143
|
-
|
|
155
|
+
background-color: $cadmin-dark,
|
|
144
156
|
color: $cadmin-white,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
clay-link: (
|
|
157
|
+
sidebar-header: (
|
|
158
|
+
component-title: (
|
|
148
159
|
color: inherit,
|
|
160
|
+
href: (
|
|
161
|
+
color: inherit,
|
|
162
|
+
),
|
|
149
163
|
),
|
|
150
|
-
|
|
151
|
-
component-header-subtitle: (
|
|
152
|
-
color: inherit,
|
|
153
|
-
clay-link: (
|
|
164
|
+
component-subtitle: (
|
|
154
165
|
color: inherit,
|
|
166
|
+
href: (
|
|
167
|
+
color: inherit,
|
|
168
|
+
),
|
|
155
169
|
),
|
|
156
170
|
),
|
|
157
171
|
close: (
|
|
158
172
|
color: $cadmin-secondary-l1,
|
|
159
|
-
hover
|
|
173
|
+
hover: (
|
|
174
|
+
color: $cadmin-white,
|
|
175
|
+
),
|
|
160
176
|
),
|
|
161
|
-
nav-nested
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
177
|
+
nav-nested: (
|
|
178
|
+
nav-link: (
|
|
179
|
+
border-radius: $cadmin-border-radius,
|
|
180
|
+
color: $cadmin-secondary-l1,
|
|
181
|
+
transition: box-shadow 0.15s ease-in-out,
|
|
182
|
+
hover: (
|
|
183
|
+
color: $cadmin-white,
|
|
184
|
+
),
|
|
185
|
+
focus: (
|
|
186
|
+
box-shadow: $cadmin-component-focus-box-shadow,
|
|
187
|
+
outline: 0,
|
|
188
|
+
),
|
|
189
|
+
active: (
|
|
190
|
+
color: $cadmin-white,
|
|
191
|
+
),
|
|
192
|
+
disabled: (
|
|
193
|
+
box-shadow: none,
|
|
194
|
+
color: $cadmin-secondary-l1,
|
|
195
|
+
opacity: 0.65,
|
|
196
|
+
active: (
|
|
197
|
+
pointer-events: none,
|
|
198
|
+
),
|
|
199
|
+
),
|
|
200
|
+
),
|
|
173
201
|
),
|
|
174
202
|
),
|
|
175
203
|
$cadmin-sidebar-dark
|
|
176
204
|
);
|
|
205
|
+
|
|
206
|
+
$cadmin-sidebar-palette: () !default;
|
|
207
|
+
$cadmin-sidebar-palette: map-deep-merge(
|
|
208
|
+
(
|
|
209
|
+
sidebar-light: $cadmin-sidebar-light,
|
|
210
|
+
sidebar-dark: $cadmin-sidebar-dark,
|
|
211
|
+
sidebar-dark-l2: (
|
|
212
|
+
background-color: $cadmin-dark-l2,
|
|
213
|
+
color: $cadmin-white,
|
|
214
|
+
sidebar-header: (
|
|
215
|
+
component-title: (
|
|
216
|
+
color: inherit,
|
|
217
|
+
href: (
|
|
218
|
+
color: inherit,
|
|
219
|
+
),
|
|
220
|
+
),
|
|
221
|
+
component-subtitle: (
|
|
222
|
+
color: inherit,
|
|
223
|
+
href: (
|
|
224
|
+
color: inherit,
|
|
225
|
+
),
|
|
226
|
+
),
|
|
227
|
+
),
|
|
228
|
+
close: (
|
|
229
|
+
color: $cadmin-secondary-l1,
|
|
230
|
+
hover: (
|
|
231
|
+
color: $cadmin-white,
|
|
232
|
+
),
|
|
233
|
+
),
|
|
234
|
+
nav-nested: (
|
|
235
|
+
nav-link: (
|
|
236
|
+
border-radius: $cadmin-border-radius,
|
|
237
|
+
color: $cadmin-secondary-l1,
|
|
238
|
+
transition: box-shadow 0.15s ease-in-out,
|
|
239
|
+
hover: (
|
|
240
|
+
color: $cadmin-white,
|
|
241
|
+
),
|
|
242
|
+
focus: (
|
|
243
|
+
box-shadow: $cadmin-component-focus-box-shadow,
|
|
244
|
+
outline: 0,
|
|
245
|
+
),
|
|
246
|
+
active: (
|
|
247
|
+
color: $cadmin-white,
|
|
248
|
+
),
|
|
249
|
+
disabled: (
|
|
250
|
+
box-shadow: none,
|
|
251
|
+
color: $cadmin-secondary-l1,
|
|
252
|
+
opacity: 0.65,
|
|
253
|
+
active: (
|
|
254
|
+
pointer-events: none,
|
|
255
|
+
),
|
|
256
|
+
),
|
|
257
|
+
),
|
|
258
|
+
),
|
|
259
|
+
),
|
|
260
|
+
),
|
|
261
|
+
$cadmin-sidebar-palette
|
|
262
|
+
);
|
|
@@ -5,6 +5,20 @@ $cadmin-strong-font-weight: $cadmin-font-weight-semi-bold !default;
|
|
|
5
5
|
$cadmin-reference-mark-font-size: 12px !default;
|
|
6
6
|
$cadmin-reference-mark-vertical-align: super !default;
|
|
7
7
|
|
|
8
|
+
$cadmin-reference-mark: () !default;
|
|
9
|
+
$cadmin-reference-mark: map-deep-merge(
|
|
10
|
+
(
|
|
11
|
+
display: inline-block,
|
|
12
|
+
font-size: $cadmin-reference-mark-font-size,
|
|
13
|
+
position: relative,
|
|
14
|
+
vertical-align: $cadmin-reference-mark-vertical-align,
|
|
15
|
+
lexicon-icon: (
|
|
16
|
+
vertical-align: $cadmin-reference-mark-vertical-align,
|
|
17
|
+
),
|
|
18
|
+
),
|
|
19
|
+
$cadmin-reference-mark
|
|
20
|
+
);
|
|
21
|
+
|
|
8
22
|
$cadmin-mark-color: null !default;
|
|
9
23
|
|
|
10
24
|
// C Kbd
|
|
@@ -507,6 +507,16 @@ textarea.form-control-sm,
|
|
|
507
507
|
@extend %clay-textarea-form-control-sm !optional;
|
|
508
508
|
}
|
|
509
509
|
|
|
510
|
+
// .form-control-tag-group-sm
|
|
511
|
+
|
|
512
|
+
%clay-form-control-tag-group-sm {
|
|
513
|
+
@include clay-form-control-variant($form-control-tag-group-sm);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.form-control-tag-group-sm.form-control {
|
|
517
|
+
@extend %clay-form-control-tag-group-sm;
|
|
518
|
+
}
|
|
519
|
+
|
|
510
520
|
// Fieldset
|
|
511
521
|
|
|
512
522
|
.form-fieldset {
|
|
@@ -176,6 +176,15 @@
|
|
|
176
176
|
@extend %clay-color-sm-input-group-inset-item-before !optional;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
+
|
|
180
|
+
.form-control {
|
|
181
|
+
@extend %clay-form-control-sm !optional;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.form-control-tag-group,
|
|
185
|
+
&.form-control-tag-group {
|
|
186
|
+
@extend %clay-form-control-tag-group-sm !optional;
|
|
187
|
+
}
|
|
179
188
|
}
|
|
180
189
|
|
|
181
190
|
.input-group-sm {
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
z-index: $zindex-sidenav;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
.sidenav-end,
|
|
66
67
|
.sidenav-right {
|
|
67
68
|
> .sidenav-content {
|
|
68
69
|
left: auto;
|
|
@@ -125,6 +126,7 @@
|
|
|
125
126
|
width: $sidenav-width;
|
|
126
127
|
}
|
|
127
128
|
|
|
129
|
+
&.sidenav-end,
|
|
128
130
|
&.sidenav-right {
|
|
129
131
|
left: auto;
|
|
130
132
|
right: 0;
|
|
@@ -110,14 +110,14 @@
|
|
|
110
110
|
|
|
111
111
|
// Sidebar Variants
|
|
112
112
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
113
|
+
@each $color, $value in $sidebar-palette {
|
|
114
|
+
$selector: if(
|
|
115
|
+
starts-with($color, '.') or starts-with($color, '#'),
|
|
116
|
+
$color,
|
|
117
|
+
str-insert($color, '.', 1)
|
|
118
|
+
);
|
|
119
|
+
|
|
120
|
+
#{$selector} {
|
|
121
|
+
@include clay-sidebar-variant($value);
|
|
122
|
+
}
|
|
123
123
|
}
|
|
@@ -176,10 +176,11 @@ strong {
|
|
|
176
176
|
// Reference Mark
|
|
177
177
|
|
|
178
178
|
.reference-mark {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
179
|
+
@include clay-css($reference-mark);
|
|
180
|
+
|
|
181
|
+
&.lexicon-icon {
|
|
182
|
+
@include clay-css(map-get($reference-mark, lexicon-icon));
|
|
183
|
+
}
|
|
183
184
|
}
|
|
184
185
|
|
|
185
186
|
// Kbd
|
|
@@ -106,6 +106,28 @@
|
|
|
106
106
|
@return null;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
+
/// A function that returns the direct parent selector (e.g., clay-parent('#wrapper .container .row')) will return `.row`.
|
|
110
|
+
/// @param {String} $selector - The full selector
|
|
111
|
+
|
|
112
|
+
@function clay-parent($selector) {
|
|
113
|
+
$selector-list: simple-selectors(clay-str-replace('#{$selector}', ' ', ''));
|
|
114
|
+
|
|
115
|
+
@return nth($selector-list, length($selector-list));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/// A function that inserts a CSS selector at a specific place (e.g., clay-insert-at('.container', '#content ', '#wrapper .container .row')) will return `#wrapper #content .container .row`.
|
|
119
|
+
/// @param {String} $location - The string to target
|
|
120
|
+
/// @param {String} $insert - The string to insert before the location
|
|
121
|
+
/// @param {String} $selector - The full selector
|
|
122
|
+
|
|
123
|
+
@function clay-insert-before($location, $insert, $selector: &) {
|
|
124
|
+
@return clay-str-replace(
|
|
125
|
+
'#{$selector}',
|
|
126
|
+
'#{$location}',
|
|
127
|
+
'#{$insert}#{$location}'
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
|
|
109
131
|
/// A helper function for displaying warning messages for required variables.
|
|
110
132
|
/// @param {Any} $var - The variable to check
|
|
111
133
|
/// @param {String} $msg['This value is required!'] - The error message to display
|
|
@@ -181,13 +203,14 @@
|
|
|
181
203
|
/// @param {Bool} $custom-gradient[false] - Pass in `true` as the second parameter to this function if using a custom gradient.
|
|
182
204
|
|
|
183
205
|
@function clay-enable-gradients($gradient, $custom-gradient: false) {
|
|
184
|
-
$enable:
|
|
206
|
+
$enable: if(
|
|
207
|
+
variable-exists(enable-gradients),
|
|
208
|
+
$enable-gradients,
|
|
185
209
|
if(
|
|
186
|
-
variable-exists(enable-gradients),
|
|
187
|
-
$enable-gradients,
|
|
188
|
-
|
|
189
|
-
)
|
|
190
|
-
false
|
|
210
|
+
variable-exists(cadmin-enable-gradients),
|
|
211
|
+
$cadmin-enable-gradients,
|
|
212
|
+
false
|
|
213
|
+
)
|
|
191
214
|
);
|
|
192
215
|
|
|
193
216
|
@if ($enable and $gradient) {
|
|
@@ -209,13 +232,10 @@
|
|
|
209
232
|
/// @param {Number} $radius - The border radius.
|
|
210
233
|
|
|
211
234
|
@function clay-enable-rounded($radius, $enable: null) {
|
|
212
|
-
$enable:
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
$cadmin-enable-rounded
|
|
217
|
-
),
|
|
218
|
-
true
|
|
235
|
+
$enable: if(
|
|
236
|
+
variable-exists(enable-rounded),
|
|
237
|
+
$enable-rounded,
|
|
238
|
+
if(variable-exists(cadmin-enable-rounded), $cadmin-enable-rounded, true)
|
|
219
239
|
);
|
|
220
240
|
|
|
221
241
|
@if ($enable) {
|
|
@@ -234,13 +254,10 @@
|
|
|
234
254
|
$length: length($shadows);
|
|
235
255
|
$separator: list-separator($shadows);
|
|
236
256
|
|
|
237
|
-
$enable:
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
$cadmin-enable-shadows
|
|
242
|
-
),
|
|
243
|
-
true
|
|
257
|
+
$enable: if(
|
|
258
|
+
variable-exists(enable-shadows),
|
|
259
|
+
$enable-shadows,
|
|
260
|
+
if(variable-exists(cadmin-enable-shadows), $cadmin-enable-shadows, true)
|
|
244
261
|
);
|
|
245
262
|
|
|
246
263
|
@if ($length == 2 and $separator == 'comma') {
|
|
@@ -262,13 +279,14 @@
|
|
|
262
279
|
/// @param {List} $transitions - The transitions.
|
|
263
280
|
|
|
264
281
|
@function clay-enable-transitions($transitions) {
|
|
265
|
-
$enable:
|
|
282
|
+
$enable: if(
|
|
283
|
+
variable-exists(enable-transitions),
|
|
284
|
+
$enable-transitions,
|
|
266
285
|
if(
|
|
267
|
-
variable-exists(enable-transitions),
|
|
268
|
-
$enable-transitions,
|
|
269
|
-
|
|
270
|
-
)
|
|
271
|
-
true
|
|
286
|
+
variable-exists(cadmin-enable-transitions),
|
|
287
|
+
$cadmin-enable-transitions,
|
|
288
|
+
true
|
|
289
|
+
)
|
|
272
290
|
);
|
|
273
291
|
|
|
274
292
|
@if ($enable) {
|
|
@@ -366,7 +384,17 @@
|
|
|
366
384
|
if(
|
|
367
385
|
variable-exists(grid-breakpoints),
|
|
368
386
|
$grid-breakpoints,
|
|
369
|
-
|
|
387
|
+
if(
|
|
388
|
+
variable-exists(cadmin-grid-breakpoints),
|
|
389
|
+
$cadmin-grid-breakpoints,
|
|
390
|
+
(
|
|
391
|
+
xs: 0,
|
|
392
|
+
sm: 576px,
|
|
393
|
+
md: 768px,
|
|
394
|
+
lg: 992px,
|
|
395
|
+
xl: 1280px,
|
|
396
|
+
)
|
|
397
|
+
)
|
|
370
398
|
)
|
|
371
399
|
);
|
|
372
400
|
|
|
@@ -396,7 +424,17 @@
|
|
|
396
424
|
if(
|
|
397
425
|
variable-exists(grid-breakpoints),
|
|
398
426
|
$grid-breakpoints,
|
|
399
|
-
|
|
427
|
+
if(
|
|
428
|
+
variable-exists(cadmin-grid-breakpoints),
|
|
429
|
+
$cadmin-grid-breakpoints,
|
|
430
|
+
(
|
|
431
|
+
xs: 0,
|
|
432
|
+
sm: 576px,
|
|
433
|
+
md: 768px,
|
|
434
|
+
lg: 992px,
|
|
435
|
+
xl: 1280px,
|
|
436
|
+
)
|
|
437
|
+
)
|
|
400
438
|
)
|
|
401
439
|
);
|
|
402
440
|
|
|
@@ -422,7 +460,17 @@
|
|
|
422
460
|
if(
|
|
423
461
|
variable-exists(grid-breakpoints),
|
|
424
462
|
$grid-breakpoints,
|
|
425
|
-
|
|
463
|
+
if(
|
|
464
|
+
variable-exists(cadmin-grid-breakpoints),
|
|
465
|
+
$cadmin-grid-breakpoints,
|
|
466
|
+
(
|
|
467
|
+
xs: 0,
|
|
468
|
+
sm: 576px,
|
|
469
|
+
md: 768px,
|
|
470
|
+
lg: 992px,
|
|
471
|
+
xl: 1280px,
|
|
472
|
+
)
|
|
473
|
+
)
|
|
426
474
|
)
|
|
427
475
|
);
|
|
428
476
|
|
|
@@ -445,7 +493,17 @@
|
|
|
445
493
|
if(
|
|
446
494
|
variable-exists(grid-breakpoints),
|
|
447
495
|
$grid-breakpoints,
|
|
448
|
-
|
|
496
|
+
if(
|
|
497
|
+
variable-exists(cadmin-grid-breakpoints),
|
|
498
|
+
$cadmin-grid-breakpoints,
|
|
499
|
+
(
|
|
500
|
+
xs: 0,
|
|
501
|
+
sm: 576px,
|
|
502
|
+
md: 768px,
|
|
503
|
+
lg: 992px,
|
|
504
|
+
xl: 1280px,
|
|
505
|
+
)
|
|
506
|
+
)
|
|
449
507
|
)
|
|
450
508
|
);
|
|
451
509
|
$next: breakpoint-next($name, $breakpoints);
|
|
@@ -466,7 +524,17 @@
|
|
|
466
524
|
if(
|
|
467
525
|
variable-exists(grid-breakpoints),
|
|
468
526
|
$grid-breakpoints,
|
|
469
|
-
|
|
527
|
+
if(
|
|
528
|
+
variable-exists(cadmin-grid-breakpoints),
|
|
529
|
+
$cadmin-grid-breakpoints,
|
|
530
|
+
(
|
|
531
|
+
xs: 0,
|
|
532
|
+
sm: 576px,
|
|
533
|
+
md: 768px,
|
|
534
|
+
lg: 992px,
|
|
535
|
+
xl: 1280px,
|
|
536
|
+
)
|
|
537
|
+
)
|
|
470
538
|
)
|
|
471
539
|
);
|
|
472
540
|
|
|
@@ -501,7 +569,11 @@
|
|
|
501
569
|
if(
|
|
502
570
|
variable-exists(yiq-text-dark),
|
|
503
571
|
$yiq-text-dark,
|
|
504
|
-
|
|
572
|
+
if(
|
|
573
|
+
variable-exists(cadmin-yiq-text-dark),
|
|
574
|
+
$cadmin-yiq-text-dark,
|
|
575
|
+
#000
|
|
576
|
+
)
|
|
505
577
|
)
|
|
506
578
|
);
|
|
507
579
|
|
|
@@ -510,7 +582,11 @@
|
|
|
510
582
|
if(
|
|
511
583
|
variable-exists(yiq-text-light),
|
|
512
584
|
$yiq-text-light,
|
|
513
|
-
|
|
585
|
+
if(
|
|
586
|
+
variable-exists(cadmin-yiq-text-light),
|
|
587
|
+
$cadmin-yiq-text-light,
|
|
588
|
+
#fff
|
|
589
|
+
)
|
|
514
590
|
)
|
|
515
591
|
);
|
|
516
592
|
|
|
@@ -519,7 +595,11 @@
|
|
|
519
595
|
if(
|
|
520
596
|
variable-exists(yiq-contrasted-threshold),
|
|
521
597
|
$yiq-contrasted-threshold,
|
|
522
|
-
|
|
598
|
+
if(
|
|
599
|
+
variable-exists(cadmin-yiq-contrasted-threshold),
|
|
600
|
+
$cadmin-yiq-contrasted-threshold,
|
|
601
|
+
150
|
|
602
|
+
)
|
|
523
603
|
)
|
|
524
604
|
);
|
|
525
605
|
|
|
@@ -547,7 +627,7 @@
|
|
|
547
627
|
$colors: if(
|
|
548
628
|
variable-exists(theme-colors),
|
|
549
629
|
$theme-colors,
|
|
550
|
-
$cadmin-theme-colors
|
|
630
|
+
if(variable-exists(cadmin-theme-colors), $cadmin-theme-colors, ())
|
|
551
631
|
);
|
|
552
632
|
}
|
|
553
633
|
|
|
@@ -572,21 +652,33 @@
|
|
|
572
652
|
$level: 0,
|
|
573
653
|
$color-interval: null
|
|
574
654
|
) {
|
|
575
|
-
$black:
|
|
655
|
+
$black: if(
|
|
656
|
+
variable-exists('black'),
|
|
657
|
+
$black,
|
|
658
|
+
if(variable-exists(cadmin-black), $cadmin-black, #000)
|
|
659
|
+
);
|
|
576
660
|
|
|
577
|
-
$white:
|
|
661
|
+
$white: if(
|
|
662
|
+
variable-exists('white'),
|
|
663
|
+
$white,
|
|
664
|
+
if(variable-exists(cadmin-white), $cadmin-white, #fff)
|
|
665
|
+
);
|
|
578
666
|
|
|
579
667
|
$color: theme-color($color-name);
|
|
580
668
|
$color-base: if($level > 0, $black, $white);
|
|
581
669
|
$level: abs($level);
|
|
582
670
|
|
|
583
671
|
$color-interval: setter(
|
|
672
|
+
$color-interval,
|
|
584
673
|
if(
|
|
585
674
|
variable-exists(theme-color-interval),
|
|
586
675
|
$theme-color-interval,
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
676
|
+
if(
|
|
677
|
+
variable-exists(cadmin-theme-color-interval),
|
|
678
|
+
$cadmin-theme-color-interval,
|
|
679
|
+
8%
|
|
680
|
+
)
|
|
681
|
+
)
|
|
590
682
|
);
|
|
591
683
|
|
|
592
684
|
@return clay-mix($color-base, $color, $level * $color-interval);
|
|
@@ -805,7 +897,11 @@
|
|
|
805
897
|
$escaped: if(
|
|
806
898
|
variable-exists(escaped-characters),
|
|
807
899
|
$escaped-characters,
|
|
808
|
-
|
|
900
|
+
if(
|
|
901
|
+
variable-exists(cadmin-escaped-characters),
|
|
902
|
+
$cadmin-escaped-characters,
|
|
903
|
+
(('<', '%3c'), ('>', '%3e'), ('#', '%23'))
|
|
904
|
+
)
|
|
809
905
|
);
|
|
810
906
|
}
|
|
811
907
|
|
|
@@ -80,6 +80,18 @@
|
|
|
80
80
|
/// component-subtitle: (
|
|
81
81
|
/// // .alert .component-subtitle
|
|
82
82
|
/// ),
|
|
83
|
+
/// custom-selectors: (
|
|
84
|
+
/// // add custom selectors here, see examples below
|
|
85
|
+
/// btn-primary: (
|
|
86
|
+
/// // .alert .btn-primary
|
|
87
|
+
/// ),
|
|
88
|
+
/// btn-secondary: (
|
|
89
|
+
/// // .alert .btn-secondary
|
|
90
|
+
/// ),
|
|
91
|
+
/// '#custom-alert-btn': (
|
|
92
|
+
/// // .alert #custom-alert-btn
|
|
93
|
+
/// ),
|
|
94
|
+
/// ),
|
|
83
95
|
/// )
|
|
84
96
|
|
|
85
97
|
@mixin clay-alert-variant($map) {
|
|
@@ -236,6 +248,20 @@
|
|
|
236
248
|
.component-subtitle {
|
|
237
249
|
@include clay-text-typography($component-subtitle);
|
|
238
250
|
}
|
|
251
|
+
|
|
252
|
+
@each $key, $properties in map-get($map, custom-selectors) {
|
|
253
|
+
@if ($key) {
|
|
254
|
+
$selector: if(
|
|
255
|
+
starts-with($key, '.') or starts-with($key, '#'),
|
|
256
|
+
$key,
|
|
257
|
+
str-insert($key, '.', 1)
|
|
258
|
+
);
|
|
259
|
+
|
|
260
|
+
#{$selector} {
|
|
261
|
+
@include clay-button-variant($properties);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
239
265
|
}
|
|
240
266
|
}
|
|
241
267
|
}
|
|
@@ -149,13 +149,15 @@
|
|
|
149
149
|
$c-inner: map-merge(
|
|
150
150
|
(
|
|
151
151
|
enabled:
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
152
|
+
if(
|
|
153
|
+
variable-exists(enable-c-inner),
|
|
154
|
+
$enable-c-inner,
|
|
155
|
+
if
|
|
156
|
+
(
|
|
157
|
+
variable-exists(cadmin-enable-c-inner),
|
|
158
|
+
$cadmin-enable-c-inner,
|
|
159
|
+
true
|
|
160
|
+
)
|
|
159
161
|
),
|
|
160
162
|
),
|
|
161
163
|
$c-inner
|