claritas-web-framework 6.2.72 → 6.3.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.
Files changed (70) hide show
  1. package/.stylelintrc.json +6 -8
  2. package/dist/index.css +1 -1
  3. package/dist/index.html +1 -1
  4. package/dist/index.js +0 -1
  5. package/index.html +37 -30
  6. package/index.js +0 -7
  7. package/package.json +15 -20
  8. package/sass/_functions.scss +18 -6
  9. package/sass/_mixins.scss +0 -2
  10. package/sass/_reboot.scss +46 -62
  11. package/sass/_root.scss +35 -21
  12. package/sass/_variables.scss +60 -301
  13. package/sass/helpers/_grid.scss +2 -3
  14. package/sass/mixins/_borderRadius.scss +2 -1
  15. package/sass/mixins/_boxShadow.scss +2 -2
  16. package/sass/mixins/_breakpoints.scss +5 -1
  17. package/sass/mixins/_button.scss +193 -64
  18. package/sass/mixins/_colors.scss +18 -9
  19. package/sass/mixins/_colors.temp.scss +88 -0
  20. package/sass/mixins/_gradient.scss +0 -1
  21. package/sass/mixins/_grid.scss +13 -14
  22. package/sass/mixins/_group.scss +1 -1
  23. package/sass/mixins/_list.scss +1 -1
  24. package/sass/mixins/_pill.scss +1 -1
  25. package/sass/mixins/_rfs.scss +5 -4
  26. package/sass/mixins/_tag.scss +46 -24
  27. package/sass/mixins/_transition.scss +2 -2
  28. package/sass/modules/_alert.scss +37 -13
  29. package/sass/modules/_button.old.scss +214 -0
  30. package/sass/modules/_button.scss +151 -161
  31. package/sass/modules/_card.scss +1 -2
  32. package/sass/modules/_close.scss +21 -22
  33. package/sass/modules/_details.scss +1 -1
  34. package/sass/modules/_dialog.scss +0 -1
  35. package/sass/modules/_dropdown.scss +0 -1
  36. package/sass/modules/_form.scss +1 -2
  37. package/sass/modules/_list.scss +2 -3
  38. package/sass/modules/_loader.scss +3 -0
  39. package/sass/modules/_modal.scss +0 -1
  40. package/sass/modules/_nav.scss +1 -2
  41. package/sass/modules/_pill.scss +45 -30
  42. package/sass/modules/_tabs.scss +2 -3
  43. package/sass/modules/_tag.scss +48 -36
  44. package/sass/modules/_tile.scss +1 -2
  45. package/sass/modules/_tooltip.scss +0 -1
  46. package/sass/modules/form/_checkbox.scss +0 -1
  47. package/sass/modules/form/_file.scss +0 -1
  48. package/sass/modules/form/_output.scss +0 -1
  49. package/sass/modules/form/_progress.scss +0 -1
  50. package/sass/modules/form/_radio.scss +0 -1
  51. package/sass/modules/form/_range.scss +0 -1
  52. package/sass/modules/form/_text.scss +0 -1
  53. package/sass/modules/form/_toggle.scss +0 -1
  54. package/sass/utilities/_align.scss +0 -1
  55. package/sass/utilities/_border.scss +31 -14
  56. package/sass/utilities/_colors.scss +6 -6
  57. package/sass/utilities/_display.scss +0 -1
  58. package/sass/utilities/_flex.scss +0 -1
  59. package/sass/utilities/_float.scss +0 -1
  60. package/sass/utilities/_order.scss +0 -1
  61. package/sass/utilities/_overflow.scss +0 -1
  62. package/sass/utilities/_pointerEvents.scss +0 -1
  63. package/sass/utilities/_position.scss +0 -1
  64. package/sass/utilities/_size.scss +0 -1
  65. package/sass/utilities/_spacing.scss +0 -1
  66. package/sass/utilities/_typography.scss +0 -1
  67. package/sass/utilities/_visibility.scss +0 -1
  68. package/sass/utilities/_zIndex.scss +0 -1
  69. package/.eslintrc.js +0 -21
  70. 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 != null {
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;
@@ -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
- --#{$prefix}button-color: #{$color};
45
- --#{$prefix}button-background: #{$background};
46
- --#{$prefix}button-border-color: #{$border};
47
- --#{$prefix}button-hover-color: #{$hover-color};
48
- --#{$prefix}button-hover-background: #{$hover-background};
49
- --#{$prefix}button-hover-border-color: #{$hover-border};
50
- --#{$prefix}button-focus-box-shadow: 0 0 #{$input-button-focus-blur} #{$input-button-focus-width} #{rgba(
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
- --#{$prefix}button-active-color: #{$active-color};
55
- --#{$prefix}button-active-background: #{$active-background};
56
- --#{$prefix}button-active-border-color: #{$active-border};
57
- --#{$prefix}button-active-shadow: #{$button-active-box-shadow};
58
- --#{$prefix}button-disabled-color: #{$disabled-color};
59
- --#{$prefix}button-disabled-background: #{$disabled-background};
60
- --#{$prefix}button-disabled-border-color: #{$disabled-border};
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
- --#{$prefix}button-color: #{$color};
71
- --#{$prefix}button-border-color: #{$color};
72
- --#{$prefix}button-hover-color: #{$color-hover};
73
- --#{$prefix}button-background: transparent;
74
- --#{$prefix}button-hover-background: #{$active-background};
75
- --#{$prefix}button-hover-border-color: #{$active-border};
76
- --#{$prefix}button-focus-box-shadow: 0 0 #{$input-button-focus-blur} #{$input-button-focus-width} #{rgba(
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
- --#{$prefix}button-active-color: #{$active-color};
81
- --#{$prefix}button-active-background: #{$active-background};
82
- --#{$prefix}button-active-border-color: #{$active-border};
83
- --#{$prefix}button-active-shadow: #{$button-active-box-shadow};
84
- --#{$prefix}button-disabled-color: #{$color};
85
- --#{$prefix}button-disabled-background: transparent;
86
- --#{$prefix}button-disabled-border-color: #{$color};
87
- --#{$prefix}gradient: none;
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
- --#{$prefix}button-color: #{$color};
92
- --#{$prefix}button-hover-color: #{color.mix(black, $color, $link-shade-percentage)};
93
- --#{$prefix}button-background: transparent;
94
- --#{$prefix}button-hover-background: #{rgba($color, $button-hover-border-tint-amount)};
95
- --#{$prefix}button-border-color: transparent;
96
- --#{$prefix}button-hover-border-color: transparent;
97
- --#{$prefix}button-active-border-color: transparent;
98
- --#{$prefix}button-box-shadow: none;
99
- --#{$prefix}button-focus-box-shadow: none;
100
- --#{$prefix}button-disabled-color: #{$color};
101
- --#{$prefix}button-disabled-background: transparent;
102
- --#{$prefix}button-disabled-border-color: transparent;
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
- --#{$prefix}button-color: #{$color};
107
- --#{$prefix}button-hover-color: #{color.mix(black, $color, $link-shade-percentage)};
108
- --#{$prefix}button-active-color: #{color.mix(black, $color, $link-shade-percentage)};
109
- --#{$prefix}button-background: transparent;
110
- --#{$prefix}button-hover-background: transparent;
111
- --#{$prefix}button-active-background: transparent;
112
- --#{$prefix}button-border-color: transparent;
113
- --#{$prefix}button-hover-border-color: transparent;
114
- --#{$prefix}button-active-border-color: transparent;
115
- --#{$prefix}button-box-shadow: none;
116
- --#{$prefix}button-focus-box-shadow: none;
117
- --#{$prefix}button-padding-x: 0;
118
- --#{$prefix}button-padding-y: 0;
119
- --#{$prefix}button-hover-text-decoration: underline;
120
- --#{$prefix}button-disabled-color: #{$color};
121
- --#{$prefix}button-disabled-background: transparent;
122
- --#{$prefix}button-disabled-border-color: transparent;
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
- --#{$prefix}button-padding-y: #{$padding-y};
127
- --#{$prefix}button-padding-x: #{$padding-x};
128
- @include rfs($font-size, --#{$prefix}button-font-size);
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
- --#{$prefix}button-border-radius: #{$border-radius};
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
  }
@@ -3,23 +3,32 @@
3
3
  @use "./../variables" as *;
4
4
  @use "./../functions" as *;
5
5
 
6
- @mixin make-color($value) {
7
- color: $value !important;
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: $value !important;
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: color.mix(black, $value, $link-shade-percentage) !important;
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($value) {
20
- background-color: $value !important;
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($value) {
24
- border-color: $value !important;
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
+ // }
@@ -1,5 +1,4 @@
1
1
  @use "sass:color";
2
-
3
2
  @use "./../variables" as *;
4
3
 
5
4
  @mixin gradient-background($color: null) {
@@ -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
- --#{$prefix}flex: 0 0 auto;
8
- --#{$prefix}width: 100%;
9
- --#{$prefix}max-width: 100%;
10
- --#{$prefix}padding-x: calc(#{$grid-gutter-x} * 1);
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(--#{$prefix}flex);
13
- width: var(--#{$prefix}width);
14
- max-width: var(--#{$prefix}max-width);
15
- padding-right: var(--#{$prefix}padding-x);
16
- padding-left: var(--#{$prefix}padding-x);
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
- --#{$prefix}padding-x: calc(#{$grid-gutter-x} * #{$margin-x});
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
- --#{$prefix}flex: 1 0 0%;
50
+ --flex: 1 0 0%;
52
51
  }
53
52
 
54
53
  & > .col--auto {
55
- --#{$prefix}flex: 0 0 auto;
56
- --#{$prefix}width: auto;
54
+ --flex: 0 0 auto;
55
+ --width: auto;
57
56
  }
58
57
 
59
58
  & > .divider {
@@ -9,7 +9,7 @@
9
9
  position: relative;
10
10
 
11
11
  @if $enable-margins {
12
- margin-bottom: $spacer;
12
+ margin-bottom: var(--spacer);
13
13
  } @else {
14
14
  margin-bottom: 0;
15
15
  }
@@ -7,7 +7,7 @@
7
7
  padding: 0;
8
8
 
9
9
  @if $enable-margins {
10
- margin-bottom: $spacer;
10
+ margin-bottom: var(--spacer);
11
11
  } @else {
12
12
  margin-bottom: 0;
13
13
  }
@@ -1,11 +1,11 @@
1
1
  @use "sass:color";
2
-
3
2
  @use "./../variables" as *;
4
3
  @use "./../functions" as *;
5
4
  @use "./../mixins/gradient" as *;
6
5
 
7
6
  @mixin pill-variant($background, $color) {
8
7
  color: $color;
8
+
9
9
  @include gradient-background($background);
10
10
 
11
11
  &.pill--link {
@@ -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(str-slice($val, 2));
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(str-slice($val, 2));
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 != null {
232
+ @if $values {
232
233
  $val: rfs-value($values);
233
234
  $fluid-val: rfs-fluid-value($values);
234
235