claritas-web-framework 7.0.0 → 8.0.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 (66) hide show
  1. package/dist/index.css +276 -1
  2. package/dist/index.html +1 -1
  3. package/index.html +11 -6
  4. package/index.js +1 -1
  5. package/package.json +9 -5
  6. package/sass/_functions.scss +3 -145
  7. package/sass/_mixins.scss +0 -5
  8. package/sass/_reboot.scss +72 -410
  9. package/sass/_root.scss +11 -1
  10. package/sass/_variables.scss +120 -219
  11. package/sass/helpers/_grid.scss +11 -15
  12. package/sass/{_index.scss → index.scss} +2 -0
  13. package/sass/mixins/_button.scss +124 -232
  14. package/sass/mixins/_caret.scss +17 -10
  15. package/sass/mixins/_colors.scss +1 -1
  16. package/sass/mixins/_gradient.scss +0 -8
  17. package/sass/mixins/_group.scss +2 -2
  18. package/sass/mixins/_list.scss +1 -1
  19. package/sass/modules/_alert.scss +8 -8
  20. package/sass/modules/_breadcrumbs.scss +3 -3
  21. package/sass/modules/_button.scss +72 -96
  22. package/sass/modules/_card.scss +41 -56
  23. package/sass/modules/_close.scss +20 -10
  24. package/sass/modules/_details.scss +7 -25
  25. package/sass/modules/_dialog.scss +5 -5
  26. package/sass/modules/_dropdown.scss +28 -56
  27. package/sass/modules/_form.scss +167 -39
  28. package/sass/modules/_list.scss +19 -17
  29. package/sass/modules/_loader.scss +36 -36
  30. package/sass/modules/_nav.scss +92 -67
  31. package/sass/modules/_pill.scss +9 -22
  32. package/sass/modules/_table.scss +4 -4
  33. package/sass/modules/_tabs.scss +34 -57
  34. package/sass/modules/_tag.scss +11 -23
  35. package/sass/modules/_tile.scss +7 -7
  36. package/sass/modules/_tooltip.scss +13 -11
  37. package/sass/modules/form/_checkbox.scss +20 -21
  38. package/sass/modules/form/_file.scss +30 -25
  39. package/sass/modules/form/_formFieldGroup.scss +25 -37
  40. package/sass/modules/form/_output.scss +1 -1
  41. package/sass/modules/form/_progress.scss +20 -33
  42. package/sass/modules/form/_radio.scss +15 -39
  43. package/sass/modules/form/_range.scss +76 -24
  44. package/sass/modules/form/_select.scss +5 -5
  45. package/sass/modules/form/_switch.scss +1 -1
  46. package/sass/modules/form/_text.scss +20 -17
  47. package/sass/modules/form/_textarea.scss +1 -1
  48. package/sass/modules/form/_toggle.scss +23 -52
  49. package/webpack.config.js +5 -22
  50. package/webpack.plugins.js +15 -0
  51. package/webpack.rules.js +8 -0
  52. package/images/block.svg +0 -3
  53. package/images/check.svg +0 -3
  54. package/images/chevron-down.svg +0 -1
  55. package/images/menu.svg +0 -3
  56. package/images/remove.svg +0 -3
  57. package/images/subdirectory.svg +0 -3
  58. package/images/upload.svg +0 -3
  59. package/sass/mixins/_borderRadius.scss +0 -79
  60. package/sass/mixins/_boxShadow.scss +0 -22
  61. package/sass/mixins/_colors.temp.scss +0 -89
  62. package/sass/mixins/_pill.scss +0 -14
  63. package/sass/mixins/_rfs.scss +0 -297
  64. package/sass/mixins/_tag.scss +0 -52
  65. package/sass/mixins/_transition.scss +0 -27
  66. package/sass/modules/_button.old.scss +0 -215
@@ -1,261 +1,153 @@
1
1
  @use "sass:color";
2
- @use "~rfs/scss" as *;
3
2
  @use "./../variables" as *;
4
3
  @use "./../functions" as *;
5
- @use "./../mixins/borderRadius" as *;
6
- @use "./../mixins/boxShadow" as *;
7
- @use "./../mixins/gradient" as *;
8
4
 
9
5
  @mixin button-variant(
10
- $background,
11
- $border: $button-border-color,
12
- $color: color-contrast($background),
13
- $hover-background:
14
- if(
15
- $color == $color-contrast-light,
16
- color.mix(black, $background, $button-hover-background-shade-amount),
17
- color.mix(white, $background, $button-hover-background-tint-amount)
18
- ),
19
- $hover-border:
20
- if(
21
- $color == $color-contrast-light,
22
- color.mix(black, $border, $button-hover-border-shade-amount),
23
- color.mix(white, $border, $button-hover-border-tint-amount)
24
- ),
25
- $hover-color: color-contrast($hover-background),
26
- $active-background:
27
- if(
28
- $color == $color-contrast-light,
29
- color.mix(black, $background, $button-active-background-shade-amount),
30
- color.mix(white, $background, $button-active-background-tint-amount)
31
- ),
32
- $active-border:
33
- if(
34
- $color == $color-contrast-light,
35
- color.mix(black, $border, $button-active-border-shade-amount),
36
- color.mix(white, $border, $button-active-border-tint-amount)
37
- ),
38
- $active-color: color-contrast($active-background),
39
- $disabled-background: $background,
40
- $disabled-border: $border,
41
- $disabled-color: color-contrast($disabled-background)
6
+ $main,
7
+ $value,
8
+ $color: color-flip($main, $value, $button-color-flip-threshold, $button-color-flip-l)
42
9
  ) {
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(
50
- $background,
51
- $border-opacity
52
- )};
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};
10
+ --button-color: #{color-flip($color, $value, $button-color-flip-threshold, $button-color-flip-l)};
11
+ --button-hover-color: hsl(var(--white-h) var(--white-s) var(--white-l) / 100%);
12
+ --button-focus-color: hsl(var(--white-h) var(--white-s) var(--white-l) / 100%);
13
+ --button-active-color: hsl(var(--white-h) var(--white-s) var(--white-l) / 100%);
14
+ --button-disabled-color: hsl(var(--white-h) var(--white-s) var(--white-l) / 65%);
15
+
16
+ --button-border-color: hsl(var(--#{$main}-h) var(--#{$main}-s) var(--#{$main}-l) / 100%);
17
+ --button-hover-border-color: hsl(
18
+ var(--border-color-h) var(--border-color-s) var(--border-color-l) / #{$border-hover-opacity}
19
+ );
20
+ --button-focus-border-color: hsl(
21
+ var(--border-color-h) var(--border-color-s) var(--border-color-l) / #{$border-hover-opacity}
22
+ );
23
+ --button-active-border-color: hsl(
24
+ var(--border-color-h) var(--border-color-s) var(--border-color-l) / #{$border-hover-opacity}
25
+ );
26
+ --button-disabled-border-color: hsl(var(--#{$main}-h) var(--#{$main}-s) var(--#{$main}-l) / 65%);
27
+
28
+ --button-background: hsl(var(--#{$main}-h) var(--#{$main}-s) var(--#{$main}-l) / 100%);
29
+ --button-hover-background: hsl(
30
+ var(--#{$main}-h) var(--#{$main}-s) calc(var(--#{$main}-l) - #{$link-shade-percentage}) / 100%
31
+ );
32
+ --button-focus-background: hsl(
33
+ var(--#{$main}-h) var(--#{$main}-s) calc(var(--#{$main}-l) - #{$link-shade-percentage}) / 100%
34
+ );
35
+ --button-active-background: hsl(
36
+ var(--#{$main}-h) var(--#{$main}-s) calc(var(--#{$main}-l) - #{$link-shade-percentage}) / 100%
37
+ );
38
+ --button-disabled-background: hsl(var(--#{$main}-h) var(--#{$main}-s) var(--#{$main}-l) / 65%);
39
+
40
+ --button-box-shadow: 0 0 0 0.125em hsl(var(--#{$main}-h) var(--#{$main}-s) var(--#{$main}-l) / 0%);
41
+ --button-hover-box-shadow: 0 0 0 0.125em hsl(var(--#{$main}-h) var(--#{$main}-s) var(--#{$main}-l) / 0%);
42
+ --button-focus-box-shadow: 0 0 0 0.125em
43
+ hsl(var(--#{$main}-h) var(--#{$main}-s) var(--#{$main}-l) / #{$border-opacity});
44
+ --button-active-box-shadow: 0 0 0 0.125em
45
+ hsl(var(--#{$main}-h) var(--#{$main}-s) var(--#{$main}-l) / #{$border-opacity});
46
+ --button-disabled-box-shadow: 0 0 0 0.125em hsl(var(--#{$main}-h) var(--#{$main}-s) var(--#{$main}-l) / 0%);
60
47
  }
61
48
 
62
- @mixin button-outline-variant(
63
- $color,
64
- $color-hover: color-contrast($color),
65
- $active-background: $color,
66
- $active-border: $color,
67
- $active-color: color-contrast($active-background)
68
- ) {
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(
76
- $color,
77
- $border-opacity
78
- )};
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;
49
+ @mixin button-variant-outline($color) {
50
+ --button-color: hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / 100%);
51
+ --button-hover-color: hsl(var(--white-h) var(--white-s) var(--white-l) / 100%);
52
+ --button-focus-color: hsl(var(--white-h) var(--white-s) var(--white-l) / 100%);
53
+ --button-active-color: hsl(var(--white-h) var(--white-s) var(--white-l) / 100%);
54
+ --button-disabled-color: hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / 65%);
55
+
56
+ --button-border-color: hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / 100%);
57
+ --button-hover-border-color: hsl(
58
+ var(--border-color-h) var(--border-color-s) var(--border-color-l) / #{$border-hover-opacity}
59
+ );
60
+ --button-focus-border-color: hsl(
61
+ var(--border-color-h) var(--border-color-s) var(--border-color-l) / #{$border-hover-opacity}
62
+ );
63
+ --button-active-border-color: hsl(
64
+ var(--border-color-h) var(--border-color-s) var(--border-color-l) / #{$border-hover-opacity}
65
+ );
66
+ --button-disabled-border-color: hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / 65%);
67
+
68
+ --button-background: hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / 0%);
69
+ --button-hover-background: hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / 100%);
70
+ --button-focus-background: hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / 100%);
71
+ --button-active-background: hsl(var(--#{$color}-h) var(--#{$color}-s) calc(var(--#{$color}-l) - 10%) / 100%);
72
+ --button-disabled-background: hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / 0%);
73
+
74
+ --button-box-shadow: 0 0 0 0.125em hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / 0%);
75
+ --button-hover-box-shadow: 0 0 0 0.125em hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / 0%);
76
+ --button-focus-box-shadow: 0 0 0 0.125em
77
+ hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / #{$border-opacity});
78
+ --button-active-box-shadow: 0 0 0 0.125em
79
+ hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / #{$border-opacity});
80
+ --button-disabled-box-shadow: 0 0 0 0.125em hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / 0%);
87
81
  }
88
82
 
89
- @mixin button-link-variant($color) {
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)};
83
+ @mixin button-variant-link($color) {
84
+ --button-color: hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / 100%);
85
+ --button-hover-color: hsl(
86
+ var(--#{$color}-h) var(--#{$color}-s) calc(var(--#{$color}-l) - #{$link-shade-percentage}) / 100%
87
+ );
88
+ --button-focus-color: hsl(
89
+ var(--#{$color}-h) var(--#{$color}-s) calc(var(--#{$color}-l) - #{$link-shade-percentage}) / 100%
90
+ );
91
+ --button-active-color: hsl(
92
+ var(--#{$color}-h) var(--#{$color}-s) calc(var(--#{$color}-l) - #{$link-shade-percentage}) / 100%
93
+ );
94
+ --button-disabled-color: hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / 65%);
95
+
94
96
  --button-border-color: transparent;
95
97
  --button-hover-border-color: transparent;
98
+ --button-focus-border-color: transparent;
96
99
  --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
100
  --button-disabled-border-color: transparent;
102
- }
103
101
 
104
- @mixin button-unstyled-variant($color) {
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
102
  --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};
103
+ --button-hover-background: hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / 10%);
104
+ --button-focus-background: hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / 10%);
105
+ --button-active-background: hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / 10%);
120
106
  --button-disabled-background: transparent;
121
- --button-disabled-border-color: transparent;
122
- }
123
-
124
- @mixin button-size($padding-y, $padding-x, $font-size, $border-radius) {
125
- --button-padding-y: #{$padding-y};
126
- --button-padding-x: #{$padding-x};
127
-
128
- @include rfs($font-size, --button-font-size);
129
107
 
130
- --button-border-radius: #{$border-radius};
108
+ --button-box-shadow: none;
109
+ --button-hover-box-shadow: none;
110
+ --button-focus-box-shadow: none;
111
+ --button-active-box-shadow: none;
112
+ --button-disabled-box-shadow: none;
131
113
  }
132
114
 
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)
115
+ @mixin button-variant-unstyled($color) {
116
+ --button-color: hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / 100%);
117
+ --button-hover-color: hsl(
118
+ var(--#{$color}-h) var(--#{$color}-s) calc(var(--#{$color}-l) - #{$link-shade-percentage}) / 100%
119
+ );
120
+ --button-focus-color: hsl(
121
+ var(--#{$color}-h) var(--#{$color}-s) calc(var(--#{$color}-l) - #{$link-shade-percentage}) / 100%
140
122
  );
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%);
123
+ --button-active-color: hsl(
124
+ var(--#{$color}-h) var(--#{$color}-s) calc(var(--#{$color}-l) - #{$link-shade-percentage}) / 100%
125
+ );
126
+ --button-disabled-color: hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / 65%);
143
127
 
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
- }
128
+ --button-border-color: transparent;
129
+ --button-hover-border-color: transparent;
130
+ --button-focus-border-color: transparent;
131
+ --button-active-border-color: transparent;
132
+ --button-disabled-border-color: transparent;
153
133
 
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
- }
134
+ --button-background: transparent;
135
+ --button-hover-background: transparent;
136
+ --button-focus-background: transparent;
137
+ --button-active-background: transparent;
138
+ --button-disabled-background: transparent;
163
139
 
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
- }
140
+ --button-box-shadow: none;
141
+ --button-hover-box-shadow: none;
142
+ --button-focus-box-shadow: none;
143
+ --button-active-box-shadow: none;
144
+ --button-disabled-box-shadow: none;
177
145
 
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
146
  --button-padding-x: 0;
183
147
  --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-text-decoration: underline;
193
- --button-color: hsl(
194
- var(--#{$color-title}-h) var(--#{$color-title}-s) calc(var(--#{$color-title}-l) - #{$shade}) /
195
- var(--#{$color-title}-a)
196
- );
197
- --button-background: transparent;
198
- --button-border-color: transparent;
199
- }
200
-
201
- &:focus-visible,
202
- .button--switch:focus-visible + & {
203
- --button-color: hsl(
204
- var(--#{$color-title}-h) var(--#{$color-title}-s) calc(var(--#{$color-title}-l) - #{$shade}) /
205
- var(--#{$color-title}-a)
206
- );
207
- --button-background: transparent;
208
- --button-box-shadow-color: transparent;
209
- }
210
-
211
- .button--switch:checked + &,
212
- :not(.button--switch) + &:active,
213
- &:first-child:active,
214
- &.active,
215
- &.show {
216
- --button-color: hsl(
217
- var(--#{$color-title}-h) var(--#{$color-title}-s) calc(var(--#{$color-title}-l) - #{$shade}) /
218
- var(--#{$color-title}-a)
219
- );
220
- --button-background: transparent;
221
- --button-box-shadow-color: transparent;
222
- }
223
- }
224
-
225
- @mixin button-variant-outline($color-title: "body-color", $border-color-hover, $background-active) {
226
- --button-color: hsl(
227
- var(--#{$color-title}-h) var(--#{$color-title}-s) var(--#{$color-title}-l) / var(--#{$color-title}-a)
228
- );
229
- --button-border-color: hsl(
230
- var(--#{$color-title}-h) var(--#{$color-title}-s) var(--#{$color-title}-l) / var(--#{$color-title}-a)
231
- );
232
- --button-background: hsl(var(--#{$color-title}-h) var(--#{$color-title}-s) var(--#{$color-title}-l) / 0%);
233
-
234
- &:hover,
235
- .button--switch + &:hover {
236
- --button-color: hsl(var(--white-h) var(--white-s) var(--white-l) / var(--white-a));
237
- --button-background: hsl(
238
- var(--#{$color-title}-h) var(--#{$color-title}-s) var(--#{$color-title}-l) / var(--#{$color-title}-a)
239
- );
240
- --button-border-color: #{$border-color-hover};
241
- }
242
-
243
- &:focus-visible,
244
- .button--switch:focus-visible + & {
245
- --button-color: hsl(var(--white-h) var(--white-s) var(--white-l) / var(--white-a));
246
- --button-background: hsl(
247
- var(--#{$color-title}-h) var(--#{$color-title}-s) var(--#{$color-title}-l) / var(--#{$color-title}-a)
248
- );
249
- --button-border-color: #{$border-color-hover};
250
- }
148
+ --button-hover-text-decoration: underline;
251
149
 
252
- .button--switch:checked + &,
253
- :not(.button--switch) + &:active,
254
- &:first-child:active,
255
- &.active,
256
- &.show {
257
- --button-color: hsl(var(--white-h) var(--white-s) var(--white-l) / var(--white-a));
258
- --button-background: #{$background-active};
259
- --button-border-color: #{$border-color-hover};
260
- }
150
+ --button-border-radius: 0;
151
+ --button-small-border-radius: 0;
152
+ --button-large-border-radius: 0;
261
153
  }
@@ -1,34 +1,41 @@
1
1
  @use "./../variables" as *;
2
2
 
3
- @mixin make-caret() {
3
+ @mixin make-caret($left: false, $position: calc(var(--spacer) * 0.5)) {
4
4
  position: relative;
5
5
 
6
6
  &::after {
7
7
  position: absolute;
8
8
  content: "";
9
- top: calc(50% - calc($spacer * 0.125));
9
+ inset: 50% auto auto;
10
+ transform: translateY(-50%);
10
11
  width: 0;
11
12
  height: 0;
12
- border-left: calc($spacer * 0.25) solid transparent;
13
- border-right: calc($spacer * 0.25) solid transparent;
13
+ border-left: calc(var(--spacer) * 0.25) solid transparent;
14
+ border-right: calc(var(--spacer) * 0.25) solid transparent;
14
15
  pointer-events: none;
16
+
17
+ @if $left {
18
+ left: $position;
19
+ } @else {
20
+ right: $position;
21
+ }
15
22
  }
16
23
  }
17
24
 
18
- @mixin make-caret-down($value) {
19
- @include make-caret;
25
+ @mixin make-caret-down($left: false, $color: "body-color", $position: calc(var(--spacer) * 0.5)) {
26
+ @include make-caret($left);
20
27
 
21
28
  &::after {
22
29
  border-bottom: 0;
23
- border-top: calc($spacer * 0.25) solid $value;
30
+ border-top: calc(var(--spacer) * 0.25) solid hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / 100%);
24
31
  }
25
32
  }
26
33
 
27
- @mixin make-caret-up($value) {
28
- @include make-caret;
34
+ @mixin make-caret-up($left: false, $color: "body-color", $position: calc(var(--spacer) * 0.5)) {
35
+ @include make-caret($left);
29
36
 
30
37
  &::after {
31
38
  border-top: 0;
32
- border-bottom: calc($spacer * 0.25) solid $value;
39
+ border-bottom: calc(var(--spacer) * 0.25) solid hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / 100%);
33
40
  }
34
41
  }
@@ -6,7 +6,7 @@
6
6
  --#{$title}-h: #{color.hue($color)};
7
7
  --#{$title}-s: #{color.saturation($color)};
8
8
  --#{$title}-l: #{color.lightness($color)};
9
- --#{$title}-a: #{color.alpha($color)};
9
+ --#{$title}-a: #{calc(color.alpha($color) * 100%)};
10
10
  }
11
11
 
12
12
  @mixin make-color($title) {
@@ -1,14 +1,6 @@
1
1
  @use "sass:color";
2
2
  @use "./../variables" as *;
3
3
 
4
- @mixin gradient-background($color: null) {
5
- background-color: $color;
6
-
7
- @if $enable-gradients {
8
- background-image: var(--gradient);
9
- }
10
- }
11
-
12
4
  // Horizontal gradient, from left to right
13
5
  // Creates two color stops, start and end, by specifying a color and position for each color stop.
14
6
  @mixin gradient-x($start-color: $gray-7, $end-color: $gray-8, $start-percent: 0%, $end-percent: 100%) {
@@ -15,7 +15,7 @@
15
15
  }
16
16
  }
17
17
 
18
- @mixin make-group-column($gap: calc($spacer * 0.5)) {
18
+ @mixin make-group-column($gap: calc(var(--spacer) * 0.5)) {
19
19
  @include make-group;
20
20
 
21
21
  flex-direction: column;
@@ -27,7 +27,7 @@
27
27
  }
28
28
  }
29
29
 
30
- @mixin make-group-row($gap: calc($spacer * 0.5)) {
30
+ @mixin make-group-row($gap: calc(var(--spacer) * 0.5)) {
31
31
  @include make-group;
32
32
 
33
33
  & > * {
@@ -13,7 +13,7 @@
13
13
  }
14
14
  }
15
15
 
16
- @mixin make-list-inline($gap: calc($spacer * 0.5)) {
16
+ @mixin make-list-inline($gap: calc(var(--spacer) * 0.5)) {
17
17
  @include make-group-row($gap);
18
18
  @include make-list-unsyled;
19
19
  }
@@ -15,13 +15,6 @@
15
15
  var(--body-color-h) var(--body-color-s) calc(#{$alert-color-l} - #{$link-shade-percentage}) / var(--body-color-a)
16
16
  );
17
17
 
18
- @each $key in (1, 2, 3, 4, 5, 6) {
19
- h#{$key},
20
- .h#{$key} {
21
- --color: var(--alert-color);
22
- }
23
- }
24
-
25
18
  color: var(--alert-color);
26
19
  border: var(--alert-border-width) var(--alert-border-style) var(--alert-border-color);
27
20
  padding: var(--alert-padding-y) var(--alert-padding-x);
@@ -35,6 +28,13 @@
35
28
  margin-bottom: 0;
36
29
  }
37
30
 
31
+ @each $key in (1, 2, 3, 4, 5, 6) {
32
+ h#{$key},
33
+ .h#{$key} {
34
+ --color: var(--alert-color);
35
+ }
36
+ }
37
+
38
38
  & > * {
39
39
  &:last-child {
40
40
  margin-bottom: 0;
@@ -44,7 +44,7 @@
44
44
  & a:not(.button),
45
45
  & .button--unstyled {
46
46
  color: var(--alert-link-color);
47
- font-weight: $font-weight-semibold;
47
+ font-weight: 600;
48
48
 
49
49
  &:hover,
50
50
  &:focus {
@@ -7,7 +7,7 @@
7
7
 
8
8
  display: flex;
9
9
  flex-wrap: wrap;
10
- color: $breadcrumb-color;
10
+ color: var(--medium);
11
11
 
12
12
  & li {
13
13
  position: relative;
@@ -31,10 +31,10 @@
31
31
  }
32
32
 
33
33
  & a {
34
- color: $breadcrumb-link-color;
34
+ color: var(--medium);
35
35
 
36
36
  &:hover {
37
- color: $breadcrumb-link-hover-color;
37
+ color: hsl(var(--medium-h) var(--medium-s) calc(var(--medium-l) - #{$link-shade-percentage}) / 100%);
38
38
  }
39
39
  }
40
40
  }