@clayui/css 3.55.0 → 3.56.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 +49 -27
- package/lib/css/atlas.css.map +1 -1
- package/lib/css/base.css +48 -38
- package/lib/css/base.css.map +1 -1
- package/lib/css/bootstrap.css +0 -0
- package/lib/css/bootstrap.css.map +1 -1
- package/lib/css/cadmin.css +47 -65
- 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/_range.scss +24 -6
- package/src/scss/cadmin/components/_breadcrumbs.scss +12 -62
- package/src/scss/cadmin/variables/_breadcrumbs.scss +94 -16
- package/src/scss/cadmin/variables/_range.scss +110 -51
- package/src/scss/components/_breadcrumbs.scss +12 -71
- package/src/scss/functions/_color-functions.scss +66 -26
- package/src/scss/functions/_global-functions.scss +10 -3
- package/src/scss/mixins/_forms.scss +1020 -378
- package/src/scss/variables/_alerts.scss +8 -0
- package/src/scss/variables/_breadcrumbs.scss +90 -15
- package/src/scss/variables/_range.scss +113 -49
- package/src/scss/variables/_sidebar.scss +2 -0
- package/src/scss/variables/_tables.scss +5 -0
|
@@ -1,81 +1,30 @@
|
|
|
1
1
|
.breadcrumb {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
@include border-radius($breadcrumb-border-radius);
|
|
5
|
-
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-wrap: wrap;
|
|
8
|
-
font-size: $breadcrumb-font-size;
|
|
9
|
-
list-style: none;
|
|
10
|
-
margin-bottom: $breadcrumb-margin-bottom;
|
|
11
|
-
padding: $breadcrumb-padding-y $breadcrumb-padding-x;
|
|
2
|
+
@include clay-css($breadcrumb);
|
|
12
3
|
}
|
|
13
4
|
|
|
14
5
|
.breadcrumb-link {
|
|
15
6
|
@include clay-link($breadcrumb-link);
|
|
16
|
-
|
|
17
|
-
> .breadcrumb-text-truncate {
|
|
18
|
-
text-decoration: $breadcrumb-link-text-decoration;
|
|
19
|
-
|
|
20
|
-
&:hover,
|
|
21
|
-
&:focus {
|
|
22
|
-
text-decoration: $breadcrumb-link-hover-text-decoration;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
7
|
}
|
|
26
8
|
|
|
27
9
|
.breadcrumb-item {
|
|
28
|
-
|
|
29
|
-
font-weight: $breadcrumb-font-weight;
|
|
30
|
-
|
|
31
|
-
@if ($breadcrumb-divider-svg-icon) {
|
|
32
|
-
margin-right: 0.5em;
|
|
33
|
-
position: relative;
|
|
34
|
-
}
|
|
10
|
+
@include clay-css($breadcrumb-item);
|
|
35
11
|
|
|
36
12
|
&.active,
|
|
37
13
|
.active {
|
|
38
|
-
|
|
39
|
-
font-weight: $breadcrumb-active-font-weight;
|
|
14
|
+
@include clay-css(map-get($breadcrumb-item, active));
|
|
40
15
|
}
|
|
41
16
|
|
|
42
17
|
> span {
|
|
43
|
-
text-transform:
|
|
18
|
+
text-transform: inherit;
|
|
44
19
|
}
|
|
45
20
|
|
|
46
21
|
+ .breadcrumb-item {
|
|
47
|
-
|
|
48
|
-
$breadcrumb-divider-svg-icon,
|
|
49
|
-
1em,
|
|
50
|
-
$breadcrumb-item-padding
|
|
51
|
-
);
|
|
22
|
+
@include clay-css(map-get($breadcrumb-item, breadcrumb-item));
|
|
52
23
|
|
|
53
24
|
&::before {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
@if ($breadcrumb-divider-svg-icon) {
|
|
59
|
-
background-image: $breadcrumb-divider-svg-icon;
|
|
60
|
-
background-repeat: no-repeat;
|
|
61
|
-
background-size: 100%;
|
|
62
|
-
content: '';
|
|
63
|
-
height: $breadcrumb-divider-svg-icon-height;
|
|
64
|
-
left: 0;
|
|
65
|
-
margin-top: calc(
|
|
66
|
-
#{math-sign($breadcrumb-divider-svg-icon-height)} / 2
|
|
67
|
-
);
|
|
68
|
-
padding: 0;
|
|
69
|
-
position: absolute;
|
|
70
|
-
top: 50%;
|
|
71
|
-
width: $breadcrumb-divider-svg-icon-width;
|
|
72
|
-
} @else {
|
|
73
|
-
content: escape-svg($breadcrumb-divider);
|
|
74
|
-
font-family: $breadcrumb-divider-font-family;
|
|
75
|
-
font-weight: $breadcrumb-divider-font-weight;
|
|
76
|
-
padding-left: 0.4em;
|
|
77
|
-
padding-right: 0.4em;
|
|
78
|
-
}
|
|
25
|
+
@include clay-css(
|
|
26
|
+
map-deep-get($breadcrumb-item, breadcrumb-item, before)
|
|
27
|
+
);
|
|
79
28
|
}
|
|
80
29
|
}
|
|
81
30
|
|
|
@@ -95,22 +44,14 @@
|
|
|
95
44
|
}
|
|
96
45
|
|
|
97
46
|
.dropdown-toggle {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
&:focus {
|
|
102
|
-
text-decoration: none;
|
|
103
|
-
}
|
|
47
|
+
@include clay-button-variant(
|
|
48
|
+
map-get($breadcrumb-item, dropdown-toggle)
|
|
49
|
+
);
|
|
104
50
|
}
|
|
105
51
|
}
|
|
106
52
|
|
|
107
53
|
.breadcrumb-text-truncate {
|
|
108
|
-
|
|
109
|
-
max-width: $breadcrumb-text-truncate-max-width;
|
|
110
|
-
|
|
111
|
-
@include text-truncate;
|
|
112
|
-
|
|
113
|
-
vertical-align: bottom;
|
|
54
|
+
@include clay-css($breadcrumb-text-truncate);
|
|
114
55
|
|
|
115
56
|
@include clay-scale-component {
|
|
116
57
|
max-width: $breadcrumb-text-truncate-max-width-mobile;
|
|
@@ -34,9 +34,14 @@
|
|
|
34
34
|
/// An alias for the Sass `darken` function. It converts CSS Custom Properties with a fallback value to the correct type in Sass.
|
|
35
35
|
/// @param {Color} $color - The color to darken
|
|
36
36
|
/// @param {Number} $amount - A number between 0% and 100%
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
/// @param {Bool} $fallback[$enable-clay-color-functions-process-fallback] - Force Sass to process the CSS Custom Property fallback colors
|
|
38
|
+
|
|
39
|
+
@function clay-darken(
|
|
40
|
+
$color,
|
|
41
|
+
$amount,
|
|
42
|
+
$fallback: clay-color-functions-process-fallback()
|
|
43
|
+
) {
|
|
44
|
+
@if (is-css-var($color) and not $fallback) {
|
|
40
45
|
@return $color;
|
|
41
46
|
}
|
|
42
47
|
|
|
@@ -49,9 +54,14 @@
|
|
|
49
54
|
/// An alias for the Sass `lighten` function. It converts CSS Custom Properties with a fallback value to the correct type in Sass.
|
|
50
55
|
/// @param {Color} $color - The color to lighten
|
|
51
56
|
/// @param {Number} $amount - A number between 0% and 100%
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
57
|
+
/// @param {Bool} $fallback[$enable-clay-color-functions-process-fallback] - Force Sass to process the CSS Custom Property fallback colors
|
|
58
|
+
|
|
59
|
+
@function clay-lighten(
|
|
60
|
+
$color,
|
|
61
|
+
$amount,
|
|
62
|
+
$fallback: clay-color-functions-process-fallback()
|
|
63
|
+
) {
|
|
64
|
+
@if (is-css-var($color) and not $fallback) {
|
|
55
65
|
@return $color;
|
|
56
66
|
}
|
|
57
67
|
|
|
@@ -64,9 +74,14 @@
|
|
|
64
74
|
/// An alias for the Sass `adjust-hue` function. It converts CSS Custom Properties with a fallback value to the correct type in Sass.
|
|
65
75
|
/// @param {Color} $color - The color to adjust
|
|
66
76
|
/// @param {Number} $degrees - A number between -360deg and 360deg
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
77
|
+
/// @param {Bool} $fallback[$enable-clay-color-functions-process-fallback] - Force Sass to process the CSS Custom Property fallback colors
|
|
78
|
+
|
|
79
|
+
@function clay-adjust-hue(
|
|
80
|
+
$color,
|
|
81
|
+
$degrees,
|
|
82
|
+
$fallback: clay-color-functions-process-fallback()
|
|
83
|
+
) {
|
|
84
|
+
@if (is-css-var($color) and not $fallback) {
|
|
70
85
|
@return $color;
|
|
71
86
|
}
|
|
72
87
|
|
|
@@ -79,9 +94,14 @@
|
|
|
79
94
|
/// An alias for the Sass `desaturate` function. It converts CSS Custom Properties with a fallback value to the correct type in Sass.
|
|
80
95
|
/// @param {Color} $color - The color to desaturate
|
|
81
96
|
/// @param {Number} $amount - A number between 0% and 100%
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
97
|
+
/// @param {Bool} $fallback[$enable-clay-color-functions-process-fallback] - Force Sass to process the CSS Custom Property fallback colors
|
|
98
|
+
|
|
99
|
+
@function clay-desaturate(
|
|
100
|
+
$color,
|
|
101
|
+
$amount,
|
|
102
|
+
$fallback: clay-color-functions-process-fallback()
|
|
103
|
+
) {
|
|
104
|
+
@if (is-css-var($color) and not $fallback) {
|
|
85
105
|
@return $color;
|
|
86
106
|
}
|
|
87
107
|
|
|
@@ -94,9 +114,14 @@
|
|
|
94
114
|
/// An alias for the Sass `saturate` function. It converts CSS Custom Properties with a fallback value to the correct type in Sass.
|
|
95
115
|
/// @param {Color} $color - The color to saturate
|
|
96
116
|
/// @param {Number} $amount - A number between 0% and 100%
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
117
|
+
/// @param {Bool} $fallback[$enable-clay-color-functions-process-fallback] - Force Sass to process the CSS Custom Property fallback colors
|
|
118
|
+
|
|
119
|
+
@function clay-saturate(
|
|
120
|
+
$color,
|
|
121
|
+
$amount,
|
|
122
|
+
$fallback: clay-color-functions-process-fallback()
|
|
123
|
+
) {
|
|
124
|
+
@if (is-css-var($color) and not $fallback) {
|
|
100
125
|
@return $color;
|
|
101
126
|
}
|
|
102
127
|
|
|
@@ -110,17 +135,23 @@
|
|
|
110
135
|
/// @param {Color} $color1 - The first color to mix
|
|
111
136
|
/// @param {Color} $color2 - The second color to mix
|
|
112
137
|
/// @param {Number} $weight - A number between 0% and 100%
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
138
|
+
/// @param {Bool} $fallback[$enable-clay-color-functions-process-fallback] - Force Sass to process the CSS Custom Property fallback colors
|
|
139
|
+
|
|
140
|
+
@function clay-mix(
|
|
141
|
+
$color1,
|
|
142
|
+
$color2,
|
|
143
|
+
$weight: 50%,
|
|
144
|
+
$fallback: clay-color-functions-process-fallback()
|
|
145
|
+
) {
|
|
146
|
+
@if (is-css-var($color1) and not $fallback) {
|
|
116
147
|
@return $color1;
|
|
117
148
|
}
|
|
118
149
|
|
|
119
|
-
@if (is-css-var($color2) and not
|
|
150
|
+
@if (is-css-var($color2) and not $fallback) {
|
|
120
151
|
@return $color2;
|
|
121
152
|
}
|
|
122
153
|
|
|
123
|
-
@if (is-css-var($weight) and not
|
|
154
|
+
@if (is-css-var($weight) and not $fallback) {
|
|
124
155
|
@return $weight;
|
|
125
156
|
}
|
|
126
157
|
|
|
@@ -133,9 +164,13 @@
|
|
|
133
164
|
|
|
134
165
|
/// An alias for the Sass `blue` function. It converts CSS Custom Properties with a fallback value to the correct type in Sass.
|
|
135
166
|
/// @param {Color} $color - The color to get the blue channel from
|
|
167
|
+
/// @param {Bool} $fallback[$enable-clay-color-functions-process-fallback] - Force Sass to process the CSS Custom Property fallback colors
|
|
136
168
|
|
|
137
|
-
@function clay-blue(
|
|
138
|
-
|
|
169
|
+
@function clay-blue(
|
|
170
|
+
$color,
|
|
171
|
+
$fallback: clay-color-functions-process-fallback()
|
|
172
|
+
) {
|
|
173
|
+
@if (is-css-var($color) and not $fallback) {
|
|
139
174
|
@return $color;
|
|
140
175
|
}
|
|
141
176
|
|
|
@@ -146,9 +181,13 @@
|
|
|
146
181
|
|
|
147
182
|
/// An alias for the Sass `green` function. It converts CSS Custom Properties with a fallback value to the correct type in Sass.
|
|
148
183
|
/// @param {Color} $color - The color to get the green channel from
|
|
184
|
+
/// @param {Bool} $fallback[$enable-clay-color-functions-process-fallback] - Force Sass to process the CSS Custom Property fallback colors
|
|
149
185
|
|
|
150
|
-
@function clay-green(
|
|
151
|
-
|
|
186
|
+
@function clay-green(
|
|
187
|
+
$color,
|
|
188
|
+
$fallback: clay-color-functions-process-fallback()
|
|
189
|
+
) {
|
|
190
|
+
@if (is-css-var($color) and not $fallback) {
|
|
152
191
|
@return $color;
|
|
153
192
|
}
|
|
154
193
|
|
|
@@ -159,9 +198,10 @@
|
|
|
159
198
|
|
|
160
199
|
/// An alias for the Sass `red` function. It converts CSS Custom Properties with a fallback value to the correct type in Sass.
|
|
161
200
|
/// @param {Color} $color - The color to get the red channel from
|
|
201
|
+
/// @param {Bool} $fallback[$enable-clay-color-functions-process-fallback] - Force Sass to process the CSS Custom Property fallback colors
|
|
162
202
|
|
|
163
|
-
@function clay-red($color) {
|
|
164
|
-
@if (is-css-var($color) and not
|
|
203
|
+
@function clay-red($color, $fallback: clay-color-functions-process-fallback()) {
|
|
204
|
+
@if (is-css-var($color) and not $fallback) {
|
|
165
205
|
@return $color;
|
|
166
206
|
}
|
|
167
207
|
|
|
@@ -477,9 +477,16 @@
|
|
|
477
477
|
/// @param {Color} $color - The color to convert
|
|
478
478
|
/// @param {Color} $dark[$yiq-text-dark] - The color to return if `$color` >= `$yiq-contrasted-threshold`
|
|
479
479
|
/// @param {Color} $light[$yiq-text-light] - The color to return if `$color` < `$yiq-contrasted-threshold`
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
480
|
+
/// @param {Bool} $fallback[$enable-clay-color-functions-process-fallback] - Force Sass to process the CSS Custom Property fallback colors
|
|
481
|
+
|
|
482
|
+
@function color-yiq(
|
|
483
|
+
$color,
|
|
484
|
+
$dark: null,
|
|
485
|
+
$light: null,
|
|
486
|
+
$threshold: null,
|
|
487
|
+
$fallback: clay-color-functions-process-fallback()
|
|
488
|
+
) {
|
|
489
|
+
@if (is-css-var($color) and not $fallback) {
|
|
483
490
|
@return $color;
|
|
484
491
|
}
|
|
485
492
|
|