claritas-web-framework 7.0.1 → 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.
- package/dist/index.css +276 -1
- package/dist/index.html +1 -1
- package/index.html +11 -6
- package/package.json +6 -5
- package/sass/_functions.scss +3 -145
- package/sass/_mixins.scss +0 -5
- package/sass/_reboot.scss +72 -410
- package/sass/_root.scss +11 -1
- package/sass/_variables.scss +120 -219
- package/sass/helpers/_grid.scss +11 -15
- package/sass/index.scss +2 -0
- package/sass/mixins/_button.scss +124 -232
- package/sass/mixins/_caret.scss +17 -10
- package/sass/mixins/_colors.scss +1 -1
- package/sass/mixins/_gradient.scss +0 -8
- package/sass/mixins/_group.scss +2 -2
- package/sass/mixins/_list.scss +1 -1
- package/sass/modules/_alert.scss +8 -8
- package/sass/modules/_breadcrumbs.scss +3 -3
- package/sass/modules/_button.scss +72 -96
- package/sass/modules/_card.scss +41 -56
- package/sass/modules/_close.scss +20 -10
- package/sass/modules/_details.scss +7 -25
- package/sass/modules/_dialog.scss +5 -5
- package/sass/modules/_dropdown.scss +28 -56
- package/sass/modules/_form.scss +167 -39
- package/sass/modules/_list.scss +19 -17
- package/sass/modules/_loader.scss +36 -36
- package/sass/modules/_nav.scss +92 -67
- package/sass/modules/_pill.scss +9 -22
- package/sass/modules/_table.scss +4 -4
- package/sass/modules/_tabs.scss +34 -57
- package/sass/modules/_tag.scss +11 -23
- package/sass/modules/_tile.scss +7 -7
- package/sass/modules/_tooltip.scss +13 -11
- package/sass/modules/form/_checkbox.scss +20 -21
- package/sass/modules/form/_file.scss +30 -25
- package/sass/modules/form/_formFieldGroup.scss +25 -37
- package/sass/modules/form/_output.scss +1 -1
- package/sass/modules/form/_progress.scss +20 -33
- package/sass/modules/form/_radio.scss +15 -39
- package/sass/modules/form/_range.scss +76 -24
- package/sass/modules/form/_select.scss +5 -5
- package/sass/modules/form/_switch.scss +1 -1
- package/sass/modules/form/_text.scss +20 -17
- package/sass/modules/form/_textarea.scss +1 -1
- package/sass/modules/form/_toggle.scss +23 -52
- package/webpack.config.js +5 -22
- package/webpack.plugins.js +15 -0
- package/webpack.rules.js +8 -0
- package/images/block.svg +0 -3
- package/images/check.svg +0 -3
- package/images/chevron-down.svg +0 -1
- package/images/menu.svg +0 -3
- package/images/remove.svg +0 -3
- package/images/subdirectory.svg +0 -3
- package/images/upload.svg +0 -3
- package/sass/mixins/_borderRadius.scss +0 -79
- package/sass/mixins/_boxShadow.scss +0 -22
- package/sass/mixins/_colors.temp.scss +0 -89
- package/sass/mixins/_pill.scss +0 -14
- package/sass/mixins/_rfs.scss +0 -297
- package/sass/mixins/_tag.scss +0 -52
- package/sass/mixins/_transition.scss +0 -27
- package/sass/modules/_button.old.scss +0 -215
package/sass/mixins/_button.scss
CHANGED
|
@@ -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
|
-
$
|
|
11
|
-
$
|
|
12
|
-
$color: color-
|
|
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-
|
|
45
|
-
--button-
|
|
46
|
-
--button-
|
|
47
|
-
--button-
|
|
48
|
-
|
|
49
|
-
--button-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
--button-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
--button-active-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
--button-disabled-border-color:
|
|
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
|
|
63
|
-
$color
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
--button-color:
|
|
70
|
-
--button-border-color:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
--button-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
--button-
|
|
80
|
-
|
|
81
|
-
--button-
|
|
82
|
-
--button-
|
|
83
|
-
--button-
|
|
84
|
-
--button-
|
|
85
|
-
--button-disabled-
|
|
86
|
-
|
|
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
|
|
90
|
-
--button-color:
|
|
91
|
-
--button-hover-color:
|
|
92
|
-
|
|
93
|
-
|
|
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:
|
|
110
|
-
--button-
|
|
111
|
-
--button-
|
|
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-
|
|
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-
|
|
134
|
-
$color-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
)
|
|
138
|
-
--button-color: hsl(
|
|
139
|
-
var(--#{$color
|
|
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-
|
|
142
|
-
|
|
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
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
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
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
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
|
-
|
|
165
|
-
:
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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-
|
|
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
|
-
|
|
253
|
-
:
|
|
254
|
-
|
|
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
|
}
|
package/sass/mixins/_caret.scss
CHANGED
|
@@ -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
|
-
|
|
9
|
+
inset: 50% auto auto;
|
|
10
|
+
transform: translateY(-50%);
|
|
10
11
|
width: 0;
|
|
11
12
|
height: 0;
|
|
12
|
-
border-left: calc(
|
|
13
|
-
border-right: calc(
|
|
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($
|
|
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(
|
|
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($
|
|
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(
|
|
39
|
+
border-bottom: calc(var(--spacer) * 0.25) solid hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / 100%);
|
|
33
40
|
}
|
|
34
41
|
}
|
package/sass/mixins/_colors.scss
CHANGED
|
@@ -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%) {
|
package/sass/mixins/_group.scss
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
@mixin make-group-column($gap: calc(
|
|
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(
|
|
30
|
+
@mixin make-group-row($gap: calc(var(--spacer) * 0.5)) {
|
|
31
31
|
@include make-group;
|
|
32
32
|
|
|
33
33
|
& > * {
|
package/sass/mixins/_list.scss
CHANGED
package/sass/modules/_alert.scss
CHANGED
|
@@ -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:
|
|
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:
|
|
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:
|
|
34
|
+
color: var(--medium);
|
|
35
35
|
|
|
36
36
|
&:hover {
|
|
37
|
-
color: $
|
|
37
|
+
color: hsl(var(--medium-h) var(--medium-s) calc(var(--medium-l) - #{$link-shade-percentage}) / 100%);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|