claritas-web-framework 6.2.72 → 6.3.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/.stylelintrc.json +6 -8
- package/dist/index.css +1 -1
- package/dist/index.html +1 -1
- package/dist/index.js +0 -1
- package/index.html +37 -30
- package/index.js +0 -7
- package/package.json +15 -20
- package/sass/_functions.scss +18 -6
- package/sass/_mixins.scss +0 -2
- package/sass/_reboot.scss +46 -62
- package/sass/_root.scss +35 -21
- package/sass/_variables.scss +59 -301
- package/sass/helpers/_grid.scss +2 -3
- package/sass/mixins/_borderRadius.scss +2 -1
- package/sass/mixins/_boxShadow.scss +2 -2
- package/sass/mixins/_breakpoints.scss +5 -1
- package/sass/mixins/_button.scss +193 -64
- package/sass/mixins/_colors.scss +18 -9
- package/sass/mixins/_colors.temp.scss +88 -0
- package/sass/mixins/_gradient.scss +0 -1
- package/sass/mixins/_grid.scss +13 -14
- package/sass/mixins/_group.scss +1 -1
- package/sass/mixins/_list.scss +1 -1
- package/sass/mixins/_pill.scss +1 -1
- package/sass/mixins/_rfs.scss +5 -4
- package/sass/mixins/_tag.scss +46 -24
- package/sass/mixins/_transition.scss +2 -2
- package/sass/modules/_alert.scss +37 -13
- package/sass/modules/_button.old.scss +214 -0
- package/sass/modules/_button.scss +151 -161
- package/sass/modules/_card.scss +1 -2
- package/sass/modules/_close.scss +21 -22
- package/sass/modules/_details.scss +1 -1
- package/sass/modules/_dialog.scss +0 -1
- package/sass/modules/_dropdown.scss +0 -1
- package/sass/modules/_form.scss +1 -2
- package/sass/modules/_list.scss +2 -3
- package/sass/modules/_loader.scss +3 -0
- package/sass/modules/_modal.scss +0 -1
- package/sass/modules/_nav.scss +1 -2
- package/sass/modules/_pill.scss +45 -30
- package/sass/modules/_tabs.scss +2 -3
- package/sass/modules/_tag.scss +48 -36
- package/sass/modules/_tile.scss +1 -2
- package/sass/modules/_tooltip.scss +0 -1
- package/sass/modules/form/_checkbox.scss +0 -1
- package/sass/modules/form/_file.scss +0 -1
- package/sass/modules/form/_output.scss +0 -1
- package/sass/modules/form/_progress.scss +0 -1
- package/sass/modules/form/_radio.scss +0 -1
- package/sass/modules/form/_range.scss +0 -1
- package/sass/modules/form/_text.scss +0 -1
- package/sass/modules/form/_toggle.scss +0 -1
- package/sass/utilities/_align.scss +0 -1
- package/sass/utilities/_border.scss +31 -14
- package/sass/utilities/_colors.scss +6 -6
- package/sass/utilities/_display.scss +0 -1
- package/sass/utilities/_flex.scss +0 -1
- package/sass/utilities/_float.scss +0 -1
- package/sass/utilities/_order.scss +0 -1
- package/sass/utilities/_overflow.scss +0 -1
- package/sass/utilities/_pointerEvents.scss +0 -1
- package/sass/utilities/_position.scss +0 -1
- package/sass/utilities/_size.scss +0 -1
- package/sass/utilities/_spacing.scss +0 -1
- package/sass/utilities/_typography.scss +0 -1
- package/sass/utilities/_visibility.scss +0 -1
- package/sass/utilities/_zIndex.scss +0 -1
- package/.eslintrc.js +0 -21
- package/sass/mixins/_alert.scss +0 -31
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@use "sass:list";
|
|
2
|
-
|
|
3
2
|
@use "./../variables" as *;
|
|
4
3
|
|
|
5
4
|
// Single side border-radius
|
|
@@ -7,6 +6,7 @@
|
|
|
7
6
|
// Helper function to replace negative values with 0
|
|
8
7
|
@function valid-radius($radius) {
|
|
9
8
|
$return: ();
|
|
9
|
+
|
|
10
10
|
@each $value in $radius {
|
|
11
11
|
@if type-of($value) == number {
|
|
12
12
|
$return: list.append($return, max($value, 0));
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
$return: list.append($return, $value);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
+
|
|
17
18
|
@return $return;
|
|
18
19
|
}
|
|
19
20
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@use "sass:list";
|
|
2
|
-
|
|
3
2
|
@use "./../variables" as *;
|
|
4
3
|
|
|
5
4
|
@mixin box-shadow($shadow...) {
|
|
@@ -7,9 +6,10 @@
|
|
|
7
6
|
$result: ();
|
|
8
7
|
|
|
9
8
|
@each $value in $shadow {
|
|
10
|
-
@if $value
|
|
9
|
+
@if $value {
|
|
11
10
|
$result: list.append($result, $value, "comma");
|
|
12
11
|
}
|
|
12
|
+
|
|
13
13
|
@if $value == none and length($shadow) > 1 {
|
|
14
14
|
@warn "The keyword 'none' must be used as a single argument.";
|
|
15
15
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
2
|
@use "sass:list";
|
|
3
|
-
|
|
4
3
|
@use "./../variables" as *;
|
|
5
4
|
|
|
6
5
|
// Breakpoint viewport sizes and media queries.
|
|
@@ -17,6 +16,7 @@
|
|
|
17
16
|
// md
|
|
18
17
|
@function breakpoint-next($name, $breakpoints: $breakpoints, $breakpoint-names: map.keys($breakpoints)) {
|
|
19
18
|
$n: list.index($breakpoint-names, $name);
|
|
19
|
+
|
|
20
20
|
@return if($n != null and $n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
// 576px
|
|
26
26
|
@function breakpoint-min($name, $breakpoints: $breakpoints) {
|
|
27
27
|
$min: map.get($breakpoints, $name);
|
|
28
|
+
|
|
28
29
|
@return if($min != 0, $min, null);
|
|
29
30
|
}
|
|
30
31
|
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
// 767.98px
|
|
39
40
|
@function breakpoint-max($name, $breakpoints: $breakpoints) {
|
|
40
41
|
$next: breakpoint-next($name, $breakpoints);
|
|
42
|
+
|
|
41
43
|
@return if($next, breakpoint-min($next, $breakpoints) - 0.02, null);
|
|
42
44
|
}
|
|
43
45
|
|
|
@@ -55,6 +57,7 @@
|
|
|
55
57
|
// Makes the @content apply to the given breakpoint and wider.
|
|
56
58
|
@mixin media-breakpoint-up($name, $breakpoints: $breakpoints) {
|
|
57
59
|
$min: breakpoint-min($name, $breakpoints);
|
|
60
|
+
|
|
58
61
|
@if $min {
|
|
59
62
|
@media (min-width: $min) {
|
|
60
63
|
@content;
|
|
@@ -68,6 +71,7 @@
|
|
|
68
71
|
// Makes the @content apply to the given breakpoint and narrower.
|
|
69
72
|
@mixin media-breakpoint-down($name, $breakpoints: $breakpoints) {
|
|
70
73
|
$max: breakpoint-max($name, $breakpoints);
|
|
74
|
+
|
|
71
75
|
@if $max {
|
|
72
76
|
@media (max-width: $max) {
|
|
73
77
|
@content;
|
package/sass/mixins/_button.scss
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
@use "sass:color";
|
|
2
|
-
|
|
2
|
+
@use "~rfs/scss" as *;
|
|
3
3
|
@use "./../variables" as *;
|
|
4
4
|
@use "./../functions" as *;
|
|
5
|
-
@use "./../mixins/rfs" as *;
|
|
6
5
|
@use "./../mixins/borderRadius" as *;
|
|
7
6
|
@use "./../mixins/boxShadow" as *;
|
|
8
7
|
@use "./../mixins/gradient" as *;
|
|
@@ -41,23 +40,23 @@
|
|
|
41
40
|
$disabled-border: $border,
|
|
42
41
|
$disabled-color: color-contrast($disabled-background)
|
|
43
42
|
) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
--button-color: #{$color};
|
|
44
|
+
--button-background: #{$background};
|
|
45
|
+
--button-border-color: #{$border};
|
|
46
|
+
--button-hover-color: #{$hover-color};
|
|
47
|
+
--button-hover-background: #{$hover-background};
|
|
48
|
+
--button-hover-border-color: #{$hover-border};
|
|
49
|
+
--button-focus-box-shadow: 0 0 #{$input-button-focus-blur} #{$input-button-focus-width} #{rgba(
|
|
51
50
|
$background,
|
|
52
51
|
$border-opacity
|
|
53
52
|
)};
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
--button-active-color: #{$active-color};
|
|
54
|
+
--button-active-background: #{$active-background};
|
|
55
|
+
--button-active-border-color: #{$active-border};
|
|
56
|
+
--button-active-shadow: #{$button-active-box-shadow};
|
|
57
|
+
--button-disabled-color: #{$disabled-color};
|
|
58
|
+
--button-disabled-background: #{$disabled-background};
|
|
59
|
+
--button-disabled-border-color: #{$disabled-border};
|
|
61
60
|
}
|
|
62
61
|
|
|
63
62
|
@mixin button-outline-variant(
|
|
@@ -67,65 +66,195 @@
|
|
|
67
66
|
$active-border: $color,
|
|
68
67
|
$active-color: color-contrast($active-background)
|
|
69
68
|
) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
69
|
+
--button-color: #{$color};
|
|
70
|
+
--button-border-color: #{$color};
|
|
71
|
+
--button-hover-color: #{$color-hover};
|
|
72
|
+
--button-background: transparent;
|
|
73
|
+
--button-hover-background: #{$active-background};
|
|
74
|
+
--button-hover-border-color: #{$active-border};
|
|
75
|
+
--button-focus-box-shadow: 0 0 #{$input-button-focus-blur} #{$input-button-focus-width} #{rgba(
|
|
77
76
|
$color,
|
|
78
77
|
$border-opacity
|
|
79
78
|
)};
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
79
|
+
--button-active-color: #{$active-color};
|
|
80
|
+
--button-active-background: #{$active-background};
|
|
81
|
+
--button-active-border-color: #{$active-border};
|
|
82
|
+
--button-active-shadow: #{$button-active-box-shadow};
|
|
83
|
+
--button-disabled-color: #{$color};
|
|
84
|
+
--button-disabled-background: transparent;
|
|
85
|
+
--button-disabled-border-color: #{$color};
|
|
86
|
+
--gradient: none;
|
|
88
87
|
}
|
|
89
88
|
|
|
90
89
|
@mixin button-link-variant($color) {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
90
|
+
--button-color: #{$color};
|
|
91
|
+
--button-hover-color: #{color.mix(black, $color, $link-shade-percentage)};
|
|
92
|
+
--button-background: transparent;
|
|
93
|
+
--button-hover-background: #{rgba($color, $button-hover-border-tint-amount)};
|
|
94
|
+
--button-border-color: transparent;
|
|
95
|
+
--button-hover-border-color: transparent;
|
|
96
|
+
--button-active-border-color: transparent;
|
|
97
|
+
--button-box-shadow: none;
|
|
98
|
+
--button-focus-box-shadow: none;
|
|
99
|
+
--button-disabled-color: #{$color};
|
|
100
|
+
--button-disabled-background: transparent;
|
|
101
|
+
--button-disabled-border-color: transparent;
|
|
103
102
|
}
|
|
104
103
|
|
|
105
104
|
@mixin button-unstyled-variant($color) {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
105
|
+
--button-color: #{$color};
|
|
106
|
+
--button-hover-color: #{color.mix(black, $color, $link-shade-percentage)};
|
|
107
|
+
--button-active-color: #{color.mix(black, $color, $link-shade-percentage)};
|
|
108
|
+
--button-background: transparent;
|
|
109
|
+
--button-hover-background: transparent;
|
|
110
|
+
--button-active-background: transparent;
|
|
111
|
+
--button-border-color: transparent;
|
|
112
|
+
--button-hover-border-color: transparent;
|
|
113
|
+
--button-active-border-color: transparent;
|
|
114
|
+
--button-box-shadow: none;
|
|
115
|
+
--button-focus-box-shadow: none;
|
|
116
|
+
--button-padding-x: 0;
|
|
117
|
+
--button-padding-y: 0;
|
|
118
|
+
--button-hover-text-decoration: underline;
|
|
119
|
+
--button-disabled-color: #{$color};
|
|
120
|
+
--button-disabled-background: transparent;
|
|
121
|
+
--button-disabled-border-color: transparent;
|
|
123
122
|
}
|
|
124
123
|
|
|
125
124
|
@mixin button-size($padding-y, $padding-x, $font-size, $border-radius) {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
125
|
+
--button-padding-y: #{$padding-y};
|
|
126
|
+
--button-padding-x: #{$padding-x};
|
|
127
|
+
|
|
128
|
+
@include rfs($font-size, --button-font-size);
|
|
129
|
+
|
|
130
|
+
--button-border-radius: #{$border-radius};
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@mixin button-variant-link(
|
|
134
|
+
$color-title: "primary",
|
|
135
|
+
$shade: $link-shade-percentage,
|
|
136
|
+
$alpha: $button-hover-link-background-a
|
|
137
|
+
) {
|
|
138
|
+
--button-color: hsl(
|
|
139
|
+
var(--#{$color-title}-h) var(--#{$color-title}-s) var(--#{$color-title}-l) / var(--#{$color-title}-a)
|
|
140
|
+
);
|
|
141
|
+
--button-border-color: hsl(var(--#{$color-title}-h) var(--#{$color-title}-s) var(--#{$color-title}-l) / 0%);
|
|
142
|
+
--button-background: hsl(var(--#{$color-title}-h) var(--#{$color-title}-s) var(--#{$color-title}-l) / 0%);
|
|
143
|
+
|
|
144
|
+
&:hover,
|
|
145
|
+
.button--switch + &:hover {
|
|
146
|
+
--color: hsl(
|
|
147
|
+
var(--#{$color-title}-h) var(--#{$color-title}-s) calc(var(--#{$color-title}-l) - #{$shade}) /
|
|
148
|
+
var(--#{$color-title}-a)
|
|
149
|
+
);
|
|
150
|
+
--button-border-color: hsl(var(--#{$color-title}-h) var(--#{$color-title}-s) var(--#{$color-title}-l) / 0%);
|
|
151
|
+
--button-background: hsl(var(--#{$color-title}-h) var(--#{$color-title}-s) var(--#{$color-title}-l) / #{$alpha});
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&:focus-visible,
|
|
155
|
+
.button--switch:focus-visible + & {
|
|
156
|
+
--button-color: hsl(
|
|
157
|
+
var(--#{$color-title}-h) var(--#{$color-title}-s) calc(var(--#{$color-title}-l) - #{$shade}) /
|
|
158
|
+
var(--#{$color-title}-a)
|
|
159
|
+
);
|
|
160
|
+
--button-background: hsl(var(--#{$color-title}-h) var(--#{$color-title}-s) var(--#{$color-title}-l) / #{$alpha});
|
|
161
|
+
--button-box-shadow-color: hsl(var(--#{$color-title}-h) var(--#{$color-title}-s) var(--#{$color-title}-l) / 0%);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.button--switch:checked + &,
|
|
165
|
+
:not(.button--switch) + &:active,
|
|
166
|
+
&:first-child:active,
|
|
167
|
+
&.active,
|
|
168
|
+
&.show {
|
|
169
|
+
--button-color: hsl(
|
|
170
|
+
var(--#{$color-title}-h) var(--#{$color-title}-s) calc(var(--#{$color-title}-l) - #{$shade}) /
|
|
171
|
+
var(--#{$color-title}-a)
|
|
172
|
+
);
|
|
173
|
+
--button-background: hsl(var(--#{$color-title}-h) var(--#{$color-title}-s) var(--#{$color-title}-l) / #{$alpha});
|
|
174
|
+
--button-border-color: hsl(var(--#{$color-title}-h) var(--#{$color-title}-s) var(--#{$color-title}-l) / 0%);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@mixin button-variant-unstyled($color-title: "body-color", $shade: $link-shade-percentage) {
|
|
179
|
+
--button-color: hsl(
|
|
180
|
+
var(--#{$color-title}-h) var(--#{$color-title}-s) var(--#{$color-title}-l) / var(--#{$color-title}-a)
|
|
181
|
+
);
|
|
182
|
+
--button-padding-x: 0;
|
|
183
|
+
--button-padding-y: 0;
|
|
184
|
+
--button-border-width: 0;
|
|
185
|
+
--button-border-style: solid;
|
|
186
|
+
--button-border-color: null;
|
|
187
|
+
--button-border-radius: 0;
|
|
188
|
+
--button-background: transparent;
|
|
189
|
+
|
|
190
|
+
&:hover,
|
|
191
|
+
.button--switch + &:hover {
|
|
192
|
+
--button-color: hsl(
|
|
193
|
+
var(--#{$color-title}-h) var(--#{$color-title}-s) calc(var(--#{$color-title}-l) - #{$shade}) /
|
|
194
|
+
var(--#{$color-title}-a)
|
|
195
|
+
);
|
|
196
|
+
--button-background: transparent;
|
|
197
|
+
--button-border-color: transparent;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&:focus-visible,
|
|
201
|
+
.button--switch:focus-visible + & {
|
|
202
|
+
--button-color: hsl(
|
|
203
|
+
var(--#{$color-title}-h) var(--#{$color-title}-s) calc(var(--#{$color-title}-l) - #{$shade}) /
|
|
204
|
+
var(--#{$color-title}-a)
|
|
205
|
+
);
|
|
206
|
+
--button-background: transparent;
|
|
207
|
+
--button-box-shadow-color: transparent;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.button--switch:checked + &,
|
|
211
|
+
:not(.button--switch) + &:active,
|
|
212
|
+
&:first-child:active,
|
|
213
|
+
&.active,
|
|
214
|
+
&.show {
|
|
215
|
+
--button-color: hsl(
|
|
216
|
+
var(--#{$color-title}-h) var(--#{$color-title}-s) calc(var(--#{$color-title}-l) - #{$shade}) /
|
|
217
|
+
var(--#{$color-title}-a)
|
|
218
|
+
);
|
|
219
|
+
--button-background: transparent;
|
|
220
|
+
--button-box-shadow-color: transparent;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
@mixin button-variant-outline($color-title: "body-color", $border-color-hover, $background-active) {
|
|
225
|
+
--button-color: hsl(
|
|
226
|
+
var(--#{$color-title}-h) var(--#{$color-title}-s) var(--#{$color-title}-l) / var(--#{$color-title}-a)
|
|
227
|
+
);
|
|
228
|
+
--button-border-color: hsl(
|
|
229
|
+
var(--#{$color-title}-h) var(--#{$color-title}-s) var(--#{$color-title}-l) / var(--#{$color-title}-a)
|
|
230
|
+
);
|
|
231
|
+
--button-background: hsl(var(--#{$color-title}-h) var(--#{$color-title}-s) var(--#{$color-title}-l) / 0%);
|
|
232
|
+
|
|
233
|
+
&:hover,
|
|
234
|
+
.button--switch + &:hover {
|
|
235
|
+
--button-color: hsl(var(--white-h) var(--white-s) var(--white-l) / var(--white-a));
|
|
236
|
+
--button-background: hsl(
|
|
237
|
+
var(--#{$color-title}-h) var(--#{$color-title}-s) var(--#{$color-title}-l) / var(--#{$color-title}-a)
|
|
238
|
+
);
|
|
239
|
+
--button-border-color: #{$border-color-hover};
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
&:focus-visible,
|
|
243
|
+
.button--switch:focus-visible + & {
|
|
244
|
+
--button-color: hsl(var(--white-h) var(--white-s) var(--white-l) / var(--white-a));
|
|
245
|
+
--button-background: hsl(
|
|
246
|
+
var(--#{$color-title}-h) var(--#{$color-title}-s) var(--#{$color-title}-l) / var(--#{$color-title}-a)
|
|
247
|
+
);
|
|
248
|
+
--button-border-color: #{$border-color-hover};
|
|
249
|
+
}
|
|
129
250
|
|
|
130
|
-
|
|
251
|
+
.button--switch:checked + &,
|
|
252
|
+
:not(.button--switch) + &:active,
|
|
253
|
+
&:first-child:active,
|
|
254
|
+
&.active,
|
|
255
|
+
&.show {
|
|
256
|
+
--button-color: hsl(var(--white-h) var(--white-s) var(--white-l) / var(--white-a));
|
|
257
|
+
--button-background: #{$background-active};
|
|
258
|
+
--button-border-color: #{$border-color-hover};
|
|
259
|
+
}
|
|
131
260
|
}
|
package/sass/mixins/_colors.scss
CHANGED
|
@@ -3,23 +3,32 @@
|
|
|
3
3
|
@use "./../variables" as *;
|
|
4
4
|
@use "./../functions" as *;
|
|
5
5
|
|
|
6
|
-
@mixin
|
|
7
|
-
|
|
6
|
+
@mixin define-color-variables($title, $color) {
|
|
7
|
+
--#{$title}-h: #{color.hue($color)};
|
|
8
|
+
--#{$title}-s: #{color.saturation($color)};
|
|
9
|
+
--#{$title}-l: #{color.lightness($color)};
|
|
10
|
+
--#{$title}-a: #{color.alpha($color)};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@mixin make-color($title) {
|
|
14
|
+
color: hsl(var(--#{$title}-h) var(--#{$title}-s) var(--#{$title}-l) / var(--#{$title}-a)) !important;
|
|
8
15
|
|
|
9
|
-
& a {
|
|
10
|
-
color: $
|
|
16
|
+
& a:not(.button) {
|
|
17
|
+
color: hsl(var(--#{$title}-h) var(--#{$title}-s) var(--#{$title}-l) / var(--#{$title}-a)) !important;
|
|
11
18
|
|
|
12
19
|
&:hover,
|
|
13
20
|
&:focus {
|
|
14
|
-
color:
|
|
21
|
+
color: hsl(
|
|
22
|
+
var(--#{$title}-h) var(--#{$title}-s) calc(var(--#{$title}-l) * #{$link-shade-value}) / var(--#{$title}-a)
|
|
23
|
+
) !important;
|
|
15
24
|
}
|
|
16
25
|
}
|
|
17
26
|
}
|
|
18
27
|
|
|
19
|
-
@mixin make-background-color($
|
|
20
|
-
background-color: $
|
|
28
|
+
@mixin make-background-color($title) {
|
|
29
|
+
background-color: hsl(var(--#{$title}-h) var(--#{$title}-s) var(--#{$title}-l) / var(--#{$title}-a)) !important;
|
|
21
30
|
}
|
|
22
31
|
|
|
23
|
-
@mixin make-border-color($
|
|
24
|
-
border-color: $
|
|
32
|
+
@mixin make-border-color($title) {
|
|
33
|
+
border-color: hsl(var(--#{$title}-h) var(--#{$title}-s) var(--#{$title}-l) / var(--#{$title}-a)) !important;
|
|
25
34
|
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "./../variables" as *;
|
|
3
|
+
@use "./../functions" as *;
|
|
4
|
+
|
|
5
|
+
/* --------------- Splits a colour into it's base hsla values --------------- */
|
|
6
|
+
@mixin define-color-variables($title, $color) {
|
|
7
|
+
--#{$title}-h: #{color.hue($color)};
|
|
8
|
+
--#{$title}-s: #{color.saturation($color)};
|
|
9
|
+
--#{$title}-l: #{color.lightness($color)};
|
|
10
|
+
--#{$title}-a: #{color.alpha($color)};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@function hsl-color($title, $hue: 0deg, $lightness: 0%, $saturation: 0%, $alpha: 0) {
|
|
14
|
+
@return hsl(
|
|
15
|
+
calc(var(--#{$title}-h) + #{$hue}) calc(var(--#{$title}-s) + #{$saturation})
|
|
16
|
+
calc(var(--#{$title}-l) + #{$lightness}) / calc(var(--#{$title}-a) + #{$alpha})
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@mixin make-color($title, $color) {
|
|
21
|
+
// $value: define-color-variables($title, $color);
|
|
22
|
+
|
|
23
|
+
// :root {
|
|
24
|
+
@include define-color-variables($title, $color);
|
|
25
|
+
// }
|
|
26
|
+
|
|
27
|
+
color: hsl(var(--#{$title}-h) var(--#{$title}-s) var(--#{$title}-l) / var(--#{$title}-a));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// @mixin make-link-color($value, $shade: $link-shade-value, $title: "") {
|
|
31
|
+
// $hsla: hsla(
|
|
32
|
+
// #{var(--#{$value}-h)} var(--#{$value}-s) var(--#{$value}-l) / var(--#{$value}-a)
|
|
33
|
+
// );
|
|
34
|
+
|
|
35
|
+
// --#{$title}color: #{$hsla};
|
|
36
|
+
|
|
37
|
+
// color: var(--#{$title}color) !important;
|
|
38
|
+
|
|
39
|
+
// &:hover,
|
|
40
|
+
// &:focus {
|
|
41
|
+
// @include make-color($value, $shade: $link-shade-value, $title: "");
|
|
42
|
+
// }
|
|
43
|
+
// }
|
|
44
|
+
|
|
45
|
+
// @mixin make-color($value, $shade: 0, $title: "") {
|
|
46
|
+
// $hsla: hsl(
|
|
47
|
+
// var(--#{$value}-h) var(--#{$value}-s) calc(var(--#{$value}-l) * $shade) /
|
|
48
|
+
// var(--#{$value}-a)
|
|
49
|
+
// );
|
|
50
|
+
|
|
51
|
+
// --#{$title}color: #{$hsla};
|
|
52
|
+
|
|
53
|
+
// color: var(--#{$title}color) !important;
|
|
54
|
+
|
|
55
|
+
// & a {
|
|
56
|
+
// @include make-link-color($value, $shade: $link-shade-value);
|
|
57
|
+
// }
|
|
58
|
+
// }
|
|
59
|
+
|
|
60
|
+
// @mixin make-background-color($value, $title: "") {
|
|
61
|
+
// $hsla: hsl(
|
|
62
|
+
// var(--#{$value}-h) var(--#{$value}-s) var(--#{$value}-l) /
|
|
63
|
+
// var(--#{$value}-a)
|
|
64
|
+
// );
|
|
65
|
+
|
|
66
|
+
// --#{$title}background-color: #{$hsla};
|
|
67
|
+
|
|
68
|
+
// background-color: var(--#{$title}background-color) !important;
|
|
69
|
+
// }
|
|
70
|
+
|
|
71
|
+
// @mixin make-border-color($value, $title: "", $alpha: null) {
|
|
72
|
+
// @if $alpha {
|
|
73
|
+
// $hsla: hsl(var(--#{$value}-h) var(--#{$value}-s) var(--#{$value}-l) / #{$alpha});
|
|
74
|
+
|
|
75
|
+
// --#{$title}border-color: #{$hsla};
|
|
76
|
+
// } @else {
|
|
77
|
+
// $hsla: hsl(
|
|
78
|
+
// var(--#{$value}-h)
|
|
79
|
+
// var(--#{$value}-s)
|
|
80
|
+
// var(--#{$value}-l) /
|
|
81
|
+
// var(--#{$value}-a)
|
|
82
|
+
// );
|
|
83
|
+
|
|
84
|
+
// --#{$title}border-color: #{$hsla};
|
|
85
|
+
// }
|
|
86
|
+
|
|
87
|
+
// border-color: var(--#{$title}border-color) !important;
|
|
88
|
+
// }
|
package/sass/mixins/_grid.scss
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
@use "sass:math";
|
|
2
2
|
@use "sass:color";
|
|
3
|
-
|
|
4
3
|
@use "./../variables" as *;
|
|
5
4
|
|
|
6
5
|
%col {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
--flex: 0 0 auto;
|
|
7
|
+
--width: 100%;
|
|
8
|
+
--max-width: 100%;
|
|
9
|
+
--padding-x: calc(#{$grid-gutter-x} * 1);
|
|
11
10
|
|
|
12
|
-
flex: var(
|
|
13
|
-
width: var(
|
|
14
|
-
max-width: var(
|
|
15
|
-
padding-right: var(
|
|
16
|
-
padding-left: var(
|
|
11
|
+
flex: var(--flex);
|
|
12
|
+
width: var(--width);
|
|
13
|
+
max-width: var(--max-width);
|
|
14
|
+
padding-right: var(--padding-x);
|
|
15
|
+
padding-left: var(--padding-x);
|
|
17
16
|
}
|
|
18
17
|
|
|
19
18
|
@mixin make-divider() {
|
|
@@ -40,7 +39,7 @@
|
|
|
40
39
|
& > * {
|
|
41
40
|
@extend %col;
|
|
42
41
|
|
|
43
|
-
|
|
42
|
+
--padding-x: calc(#{$grid-gutter-x} * #{$margin-x});
|
|
44
43
|
|
|
45
44
|
@if $grid-gutter-y {
|
|
46
45
|
margin-top: $grid-gutter-y;
|
|
@@ -48,12 +47,12 @@
|
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
& > .col {
|
|
51
|
-
|
|
50
|
+
--flex: 1 0 0%;
|
|
52
51
|
}
|
|
53
52
|
|
|
54
53
|
& > .col--auto {
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
--flex: 0 0 auto;
|
|
55
|
+
--width: auto;
|
|
57
56
|
}
|
|
58
57
|
|
|
59
58
|
& > .divider {
|
package/sass/mixins/_group.scss
CHANGED
package/sass/mixins/_list.scss
CHANGED
package/sass/mixins/_pill.scss
CHANGED
package/sass/mixins/_rfs.scss
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@use "sass:map";
|
|
7
7
|
@use "sass:math";
|
|
8
8
|
@use "sass:meta";
|
|
9
|
-
|
|
9
|
+
@use "sass:string";
|
|
10
10
|
@use "./../functions" as *;
|
|
11
11
|
@use "./../variables" as *;
|
|
12
12
|
|
|
@@ -135,6 +135,7 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
|
|
|
135
135
|
@content;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
+
|
|
138
139
|
@include rfs-media-query {
|
|
139
140
|
@content;
|
|
140
141
|
}
|
|
@@ -169,7 +170,7 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
|
|
|
169
170
|
}
|
|
170
171
|
|
|
171
172
|
// Remove first space
|
|
172
|
-
@return unquote(
|
|
173
|
+
@return unquote(string.slice($val, 2));
|
|
173
174
|
}
|
|
174
175
|
|
|
175
176
|
// Helper function to get the responsive value calculated by RFS
|
|
@@ -223,12 +224,12 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
|
|
|
223
224
|
}
|
|
224
225
|
|
|
225
226
|
// Remove first space
|
|
226
|
-
@return unquote(
|
|
227
|
+
@return unquote(string.slice($val, 2));
|
|
227
228
|
}
|
|
228
229
|
|
|
229
230
|
// RFS mixin
|
|
230
231
|
@mixin rfs($values, $property: font-size) {
|
|
231
|
-
@if $values
|
|
232
|
+
@if $values {
|
|
232
233
|
$val: rfs-value($values);
|
|
233
234
|
$fluid-val: rfs-fluid-value($values);
|
|
234
235
|
|