@snyk-mktg/brand-ui 2.5.9-canary.4 → 2.5.9
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/css/bundle.css +1 -82
- package/dist/css/bundle.css.map +1 -1
- package/dist/css/components.css +1 -82
- package/dist/css/components.css.map +1 -1
- package/dist/css/evo-bundle.css +1 -31
- package/dist/css/evo-bundle.css.map +1 -1
- package/dist/css/labs-bundle.css +1 -31
- package/dist/css/labs-bundle.css.map +1 -1
- package/dist/js/helpers/caseFormats.test.d.ts +1 -0
- package/dist/js/helpers/caseFormats.test.js +59 -0
- package/dist/js/helpers/classnames.test.d.ts +1 -0
- package/dist/js/helpers/classnames.test.js +13 -0
- package/dist/js/helpers/getInitials.test.d.ts +1 -0
- package/dist/js/helpers/getInitials.test.js +29 -0
- package/dist/js/helpers/grid.test.d.ts +1 -0
- package/dist/js/helpers/grid.test.js +44 -0
- package/dist/js/helpers/range.test.d.ts +1 -0
- package/dist/js/helpers/range.test.js +24 -0
- package/dist/scss/base/_color.scss +16 -1
- package/dist/scss/base/_layout.scss +11 -7
- package/dist/scss/base/decorations/_markers.scss +26 -28
- package/dist/scss/base/mixins/_accessibility.scss +0 -6
- package/dist/scss/base/mixins/_color-mode.scss +0 -7
- package/dist/scss/base/variables/_colors.scss +29 -34
- package/dist/scss/base/variables/_themes.scss +17 -17
- package/dist/scss/base/variables/_typography.scss +49 -41
- package/dist/scss/base.scss +2 -4
- package/dist/scss/components/atoms/_badge.scss +1 -1
- package/dist/scss/components/atoms/_button.scss +116 -11
- package/dist/scss/components/atoms/_checkbox.scss +2 -12
- package/dist/scss/components/atoms/_dropdown.scss +3 -3
- package/dist/scss/components/atoms/_feature-checkmark.scss +1 -0
- package/dist/scss/components/atoms/_icons.scss +2 -5
- package/dist/scss/components/atoms/_tabs.scss +4 -4
- package/dist/scss/components/atoms/triggers/_filter.scss +1 -1
- package/dist/scss/components/molecules/_announcements.scss +4 -4
- package/dist/scss/components/molecules/_pagination.scss +3 -3
- package/dist/scss/components/molecules/_search.scss +11 -1
- package/dist/scss/components/molecules/_share-this.scss +1 -2
- package/dist/scss/components/molecules/_tables.scss +2 -59
- package/dist/scss/components/molecules/cards/_card.scss +8 -7
- package/dist/scss/components/organisms/_glossary.scss +0 -7
- package/dist/scss/components/organisms/_split-content.scss +4 -0
- package/dist/scss/components/organisms/_sub-navigation.scss +1 -1
- package/dist/scss/components/organisms/ctas/_basic-cta.scss +4 -6
- package/dist/scss/components/organisms/heroes/_hero-case-study.scss +7 -4
- package/dist/scss/evo/_components.scss +1 -1
- package/dist/scss/evo/base/variables/_typography.scss +0 -1
- package/dist/scss/evo/components/atoms/_button.scss +0 -88
- package/dist/scss/evo/components/molecules/cards/_card.scss +0 -3
- package/dist/scss/evo/components/organisms/_footer.scss +0 -14
- package/dist/scss/evo/components/organisms/ctas/_basic-cta.scss +0 -1
- package/dist/scss/labs/base/variables/_colors.scss +0 -8
- package/dist/scss/labs/base/variables/_typography.scss +0 -44
- package/dist/scss/labs/components/atoms/_button.scss +0 -12
- package/dist/scss/labs/components/atoms/triggers/_play.scss +1 -1
- package/dist/scss/labs/components/molecules/_pagination.scss +0 -5
- package/dist/scss/labs/components/molecules/cards/_card.scss +0 -10
- package/dist/scss/labs/components/organisms/ctas/_basic-cta.scss +0 -2
- package/dist/scss/labs/utilities/_rich-text.scss +0 -13
- package/dist/scss/utilities/_rich-text.scss +1 -1
- package/package.json +2 -3
- package/dist/scss/evo/components/molecules/_share-this.scss +0 -44
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
/* Typography variables */
|
|
9
9
|
$brandui-font-size: (
|
|
10
|
-
hero-title-large:
|
|
11
|
-
hero-title-small:
|
|
12
|
-
page-title-large:
|
|
13
|
-
page-title:
|
|
14
|
-
section-title:
|
|
10
|
+
hero-title-large: 5.625rem,
|
|
11
|
+
hero-title-small: 3.125rem,
|
|
12
|
+
page-title-large: 4.375rem,
|
|
13
|
+
page-title: 3rem,
|
|
14
|
+
section-title: 3rem,
|
|
15
15
|
headline-large: 2.5rem,
|
|
16
16
|
headline-small: 2rem,
|
|
17
17
|
subhead: 1.5rem,
|
|
@@ -29,11 +29,11 @@ $brandui-font-size: (
|
|
|
29
29
|
) !default;
|
|
30
30
|
|
|
31
31
|
$brandui-line-height: (
|
|
32
|
-
hero-title-large:
|
|
33
|
-
hero-title-small:
|
|
34
|
-
page-title-large:
|
|
35
|
-
page-title:
|
|
36
|
-
section-title:
|
|
32
|
+
hero-title-large: 6.25rem,
|
|
33
|
+
hero-title-small: 3.75rem,
|
|
34
|
+
page-title-large: 5rem,
|
|
35
|
+
page-title: 4rem,
|
|
36
|
+
section-title: 4rem,
|
|
37
37
|
headline-large: 3rem,
|
|
38
38
|
headline-small: 2.5rem,
|
|
39
39
|
subhead: 2.25rem,
|
|
@@ -56,51 +56,54 @@ $brandui-font-family: (
|
|
|
56
56
|
space-grotesk: 'Space Grotesk',
|
|
57
57
|
roboto: 'Roboto',
|
|
58
58
|
roboto-mono: 'Roboto Mono',
|
|
59
|
-
geist: 'Geist',
|
|
60
|
-
geist-mono: 'Geist Mono',
|
|
61
59
|
) !default;
|
|
62
60
|
|
|
63
61
|
$text-elements: (
|
|
64
62
|
'hero-title-large': (
|
|
65
|
-
'weight':
|
|
66
|
-
'family': map.get($brandui-font-family,
|
|
63
|
+
'weight': 900,
|
|
64
|
+
'family': map.get($brandui-font-family, big-shoulders),
|
|
67
65
|
'type': sans-serif,
|
|
68
66
|
'letter-spacing': -0.01em,
|
|
67
|
+
'text-transform': uppercase,
|
|
69
68
|
),
|
|
70
69
|
'hero-title-small': (
|
|
71
|
-
'weight':
|
|
72
|
-
'family': map.get($brandui-font-family,
|
|
70
|
+
'weight': 900,
|
|
71
|
+
'family': map.get($brandui-font-family, big-shoulders),
|
|
73
72
|
'type': sans-serif,
|
|
74
73
|
'letter-spacing': -0.01em,
|
|
74
|
+
'text-transform': uppercase,
|
|
75
75
|
),
|
|
76
76
|
'page-title-large': (
|
|
77
|
-
'weight':
|
|
77
|
+
'weight': 900,
|
|
78
78
|
// 'family': map.get($brandui-font-family, poppins),
|
|
79
|
-
'family': map.get($brandui-font-family,
|
|
79
|
+
'family': map.get($brandui-font-family, big-shoulders),
|
|
80
80
|
'type': sans-serif,
|
|
81
81
|
'letter-spacing': -0.01em,
|
|
82
82
|
// 'text-transform': none,
|
|
83
|
+
'text-transform': uppercase,
|
|
83
84
|
),
|
|
84
85
|
'page-title': (
|
|
85
|
-
'weight':
|
|
86
|
+
'weight': 900,
|
|
86
87
|
// 'family': map.get($brandui-font-family, poppins),
|
|
87
|
-
'family': map.get($brandui-font-family,
|
|
88
|
+
'family': map.get($brandui-font-family, big-shoulders),
|
|
88
89
|
'type': sans-serif,
|
|
89
90
|
'letter-spacing': -0.01em,
|
|
90
91
|
// 'text-transform': none,
|
|
92
|
+
'text-transform': uppercase,
|
|
91
93
|
),
|
|
92
94
|
'section-title': (
|
|
93
|
-
'weight':
|
|
95
|
+
'weight': 900,
|
|
94
96
|
// 'family': map.get($brandui-font-family, poppins),
|
|
95
|
-
'family': map.get($brandui-font-family,
|
|
97
|
+
'family': map.get($brandui-font-family, big-shoulders),
|
|
96
98
|
'type': sans-serif,
|
|
97
99
|
'letter-spacing': -0.01em,
|
|
98
100
|
// 'text-transform': none,
|
|
101
|
+
'text-transform': uppercase,
|
|
99
102
|
),
|
|
100
103
|
'headline-large': (
|
|
101
104
|
'weight': 700,
|
|
102
105
|
// 'family': map.get($brandui-font-family, poppins),
|
|
103
|
-
'family': map.get($brandui-font-family,
|
|
106
|
+
'family': map.get($brandui-font-family, space-grotesk),
|
|
104
107
|
'type': sans-serif,
|
|
105
108
|
'letter-spacing': -0.01em,
|
|
106
109
|
'text-transform': none,
|
|
@@ -108,7 +111,7 @@ $text-elements: (
|
|
|
108
111
|
'headline-small': (
|
|
109
112
|
'weight': 700,
|
|
110
113
|
// 'family': map.get($brandui-font-family, poppins),
|
|
111
|
-
'family': map.get($brandui-font-family,
|
|
114
|
+
'family': map.get($brandui-font-family, space-grotesk),
|
|
112
115
|
'type': sans-serif,
|
|
113
116
|
'letter-spacing': -0.01em,
|
|
114
117
|
'text-transform': none,
|
|
@@ -117,7 +120,7 @@ $text-elements: (
|
|
|
117
120
|
// 'weight': 600,
|
|
118
121
|
'weight': 700,
|
|
119
122
|
// 'family': map.get($brandui-font-family, poppins),
|
|
120
|
-
'family': map.get($brandui-font-family,
|
|
123
|
+
'family': map.get($brandui-font-family, space-grotesk),
|
|
121
124
|
'type': sans-serif,
|
|
122
125
|
'letter-spacing': -0.01em,
|
|
123
126
|
'text-transform': none,
|
|
@@ -126,7 +129,7 @@ $text-elements: (
|
|
|
126
129
|
// 'weight': 600,
|
|
127
130
|
'weight': 700,
|
|
128
131
|
// 'family': map.get($brandui-font-family, poppins),
|
|
129
|
-
'family': map.get($brandui-font-family,
|
|
132
|
+
'family': map.get($brandui-font-family, space-grotesk),
|
|
130
133
|
'type': sans-serif,
|
|
131
134
|
'letter-spacing': -0.01em,
|
|
132
135
|
'text-transform': none,
|
|
@@ -135,7 +138,7 @@ $text-elements: (
|
|
|
135
138
|
// 'weight': 600,
|
|
136
139
|
'weight': 700,
|
|
137
140
|
// 'family': map.get($brandui-font-family, poppins),
|
|
138
|
-
'family': map.get($brandui-font-family,
|
|
141
|
+
'family': map.get($brandui-font-family, space-grotesk),
|
|
139
142
|
'type': sans-serif,
|
|
140
143
|
'letter-spacing': 0.12em,
|
|
141
144
|
'text-transform': uppercase,
|
|
@@ -144,7 +147,7 @@ $text-elements: (
|
|
|
144
147
|
// 'weight': 600,
|
|
145
148
|
'weight': 700,
|
|
146
149
|
// 'family': map.get($brandui-font-family, poppins),
|
|
147
|
-
'family': map.get($brandui-font-family,
|
|
150
|
+
'family': map.get($brandui-font-family, space-grotesk),
|
|
148
151
|
'type': sans-serif,
|
|
149
152
|
'letter-spacing': 0.12em,
|
|
150
153
|
'text-transform': uppercase,
|
|
@@ -152,7 +155,7 @@ $text-elements: (
|
|
|
152
155
|
'body-lead': (
|
|
153
156
|
'weight': 500,
|
|
154
157
|
// 'family': map.get($brandui-font-family, poppins),
|
|
155
|
-
'family': map.get($brandui-font-family,
|
|
158
|
+
'family': map.get($brandui-font-family, space-grotesk),
|
|
156
159
|
'type': sans-serif,
|
|
157
160
|
'letter-spacing': 0.01em,
|
|
158
161
|
'text-transform': none,
|
|
@@ -160,49 +163,49 @@ $text-elements: (
|
|
|
160
163
|
'body-lead-bold': (
|
|
161
164
|
'weight': 700,
|
|
162
165
|
// 'family': map.get($brandui-font-family, poppins),
|
|
163
|
-
'family': map.get($brandui-font-family,
|
|
166
|
+
'family': map.get($brandui-font-family, space-grotesk),
|
|
164
167
|
'type': sans-serif,
|
|
165
168
|
'letter-spacing': 0.01em,
|
|
166
169
|
'text-transform': none,
|
|
167
170
|
),
|
|
168
171
|
'body': (
|
|
169
172
|
'weight': 400,
|
|
170
|
-
'family': map.get($brandui-font-family,
|
|
173
|
+
'family': map.get($brandui-font-family, roboto),
|
|
171
174
|
'type': sans-serif,
|
|
172
175
|
'letter-spacing': 0,
|
|
173
176
|
'text-transform': none,
|
|
174
177
|
),
|
|
175
178
|
'body-bold': (
|
|
176
179
|
'weight': 600,
|
|
177
|
-
'family': map.get($brandui-font-family,
|
|
180
|
+
'family': map.get($brandui-font-family, roboto),
|
|
178
181
|
'type': sans-serif,
|
|
179
182
|
'letter-spacing': 0.005em,
|
|
180
183
|
'text-transform': none,
|
|
181
184
|
),
|
|
182
185
|
'body-long': (
|
|
183
186
|
'weight': 400,
|
|
184
|
-
'family': map.get($brandui-font-family,
|
|
187
|
+
'family': map.get($brandui-font-family, roboto),
|
|
185
188
|
'type': sans-serif,
|
|
186
189
|
'letter-spacing': 0.01em,
|
|
187
190
|
'text-transform': none,
|
|
188
191
|
),
|
|
189
192
|
'body-small': (
|
|
190
193
|
'weight': 400,
|
|
191
|
-
'family': map.get($brandui-font-family,
|
|
194
|
+
'family': map.get($brandui-font-family, roboto),
|
|
192
195
|
'type': sans-serif,
|
|
193
196
|
'letter-spacing': 0,
|
|
194
197
|
'text-transform': none,
|
|
195
198
|
),
|
|
196
199
|
'body-small-medium': (
|
|
197
200
|
'weight': 500,
|
|
198
|
-
'family': map.get($brandui-font-family,
|
|
201
|
+
'family': map.get($brandui-font-family, roboto),
|
|
199
202
|
'type': sans-serif,
|
|
200
203
|
'letter-spacing': 0,
|
|
201
204
|
'text-transform': none,
|
|
202
205
|
),
|
|
203
206
|
'code': (
|
|
204
207
|
'weight': 400,
|
|
205
|
-
'family': map.get($brandui-font-family,
|
|
208
|
+
'family': map.get($brandui-font-family, roboto-mono),
|
|
206
209
|
'type': monospace,
|
|
207
210
|
'letter-spacing': 0,
|
|
208
211
|
'text-transform': none,
|
|
@@ -212,40 +215,45 @@ $text-elements: (
|
|
|
212
215
|
$text-elements-responsive: (
|
|
213
216
|
'hero-title-large': (
|
|
214
217
|
'target': 'hero-title-small',
|
|
215
|
-
'weight':
|
|
218
|
+
'weight': 900,
|
|
216
219
|
'family': map.get($brandui-font-family, big-shoulders),
|
|
217
220
|
'type': sans-serif,
|
|
218
221
|
'letter-spacing': -0.01em,
|
|
222
|
+
'text-transform': uppercase,
|
|
219
223
|
),
|
|
220
224
|
'hero-title-small': (
|
|
221
225
|
'target': 'hero-title-small',
|
|
222
|
-
'weight':
|
|
226
|
+
'weight': 900,
|
|
223
227
|
'family': map.get($brandui-font-family, big-shoulders),
|
|
224
228
|
'type': sans-serif,
|
|
225
229
|
'letter-spacing': -0.01em,
|
|
230
|
+
'text-transform': uppercase,
|
|
226
231
|
),
|
|
227
232
|
'page-title-large': (
|
|
228
233
|
'target': 'hero-title-small',
|
|
229
|
-
'weight':
|
|
234
|
+
'weight': 900,
|
|
230
235
|
// 'family': map.get($brandui-font-family, poppins),
|
|
231
236
|
'family': map.get($brandui-font-family, big-shoulders),
|
|
232
237
|
'type': sans-serif,
|
|
233
238
|
'letter-spacing': -0.01em,
|
|
234
239
|
// 'text-transform': none,
|
|
240
|
+
'text-transform': uppercase,
|
|
235
241
|
),
|
|
236
242
|
'page-title': (
|
|
237
243
|
'target': 'hero-title-small',
|
|
238
|
-
'weight':
|
|
244
|
+
'weight': 900,
|
|
239
245
|
'family': map.get($brandui-font-family, big-shoulders),
|
|
240
246
|
'type': sans-serif,
|
|
241
247
|
'letter-spacing': -0.01em,
|
|
248
|
+
'text-transform': uppercase,
|
|
242
249
|
),
|
|
243
250
|
'section-title': (
|
|
244
251
|
'target': 'hero-title-small',
|
|
245
|
-
'weight':
|
|
252
|
+
'weight': 900,
|
|
246
253
|
'family': map.get($brandui-font-family, big-shoulders),
|
|
247
254
|
'type': sans-serif,
|
|
248
255
|
'letter-spacing': -0.01em,
|
|
256
|
+
'text-transform': uppercase,
|
|
249
257
|
),
|
|
250
258
|
'headline-large': (
|
|
251
259
|
'target': 'headline-small',
|
package/dist/scss/base.scss
CHANGED
|
@@ -11,10 +11,8 @@
|
|
|
11
11
|
@use '../scss/base/spacing' as *;
|
|
12
12
|
@use '../scss/base/sizing' as *;
|
|
13
13
|
@use '../scss/base/decorations/decorations' as *;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
// @use '../scss/base/decorations/backgrounds' as *;
|
|
17
|
-
// @use '../scss/base/decorations/glows' as *;
|
|
14
|
+
@use '../scss/base/decorations/backgrounds' as *;
|
|
15
|
+
@use '../scss/base/decorations/glows' as *;
|
|
18
16
|
@use '../scss/base/decorations/flourishes' as *;
|
|
19
17
|
@use '../scss/base/decorations/markers' as *;
|
|
20
18
|
@use '../scss/base/decorations/separators' as *;
|
|
@@ -24,11 +24,23 @@ $secondary-conic-light-values: RGBA(brandui-rgb-labels(action), 1), RGBA(brandui
|
|
|
24
24
|
$secondary-conic-dark-values: RGBA(brandui-rgb-labels(action-dark), 1), RGBA(brandui-rgb-labels(action-dark), 0.3),
|
|
25
25
|
RGBA(brandui-rgb-labels(action-dark), 0.3), RGBA(brandui-rgb-labels(action-dark), 1);
|
|
26
26
|
|
|
27
|
+
@property --glimmer-angle {
|
|
28
|
+
syntax: '<angle>';
|
|
29
|
+
inherits: false;
|
|
30
|
+
initial-value: 0deg;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@property --glimmer-duration {
|
|
34
|
+
syntax: '<time>';
|
|
35
|
+
inherits: false;
|
|
36
|
+
initial-value: 6s;
|
|
37
|
+
}
|
|
38
|
+
|
|
27
39
|
.button {
|
|
28
40
|
border: 0.0625rem solid transparent;
|
|
29
41
|
align-content: center;
|
|
30
42
|
align-items: center;
|
|
31
|
-
border-radius: map.get($brandui-radius,
|
|
43
|
+
border-radius: map.get($brandui-radius, pill);
|
|
32
44
|
display: inline-flex;
|
|
33
45
|
font-family: map.get($brandui-font-family, space-grotesk), sans-serif;
|
|
34
46
|
font-size: map.get($brandui-font-size, body);
|
|
@@ -83,21 +95,114 @@ $secondary-conic-dark-values: RGBA(brandui-rgb-labels(action-dark), 1), RGBA(bra
|
|
|
83
95
|
|
|
84
96
|
&.primary {
|
|
85
97
|
position: relative;
|
|
86
|
-
border:
|
|
87
|
-
|
|
88
|
-
border-color: white;
|
|
98
|
+
border: none;
|
|
99
|
+
isolation: isolate;
|
|
89
100
|
@include color.color-mode(color, brandui-color-labels(action-contrast), brandui-color-labels(action-contrast-dark));
|
|
90
|
-
|
|
91
|
-
|
|
101
|
+
|
|
102
|
+
// This is the transparent fake border
|
|
103
|
+
@include color.gradient-mode-pseudo(
|
|
104
|
+
'&:before',
|
|
105
|
+
background,
|
|
106
|
+
'linear',
|
|
107
|
+
90deg,
|
|
108
|
+
brandui-color-labels(action),
|
|
109
|
+
brandui-color-labels(action-secondary),
|
|
110
|
+
brandui-color-labels(action-secondary-dark),
|
|
111
|
+
brandui-color-labels(action-dark)
|
|
112
|
+
);
|
|
113
|
+
&:before {
|
|
114
|
+
content: '';
|
|
115
|
+
position: absolute;
|
|
116
|
+
inset: 0;
|
|
117
|
+
border-radius: inherit;
|
|
118
|
+
z-index: -1;
|
|
119
|
+
}
|
|
120
|
+
// This is the rotating conic-gradient glimmer effect
|
|
121
|
+
@include color.conic-gradient-mode-pseudo(
|
|
122
|
+
'&:after',
|
|
123
|
+
background,
|
|
124
|
+
var(--glimmer-angle),
|
|
125
|
+
$primary-conic-light-values,
|
|
126
|
+
$primary-conic-dark-values
|
|
127
|
+
);
|
|
128
|
+
&:after {
|
|
129
|
+
content: '';
|
|
130
|
+
display: block;
|
|
131
|
+
position: absolute;
|
|
132
|
+
inset: -1px;
|
|
133
|
+
animation: glimmer var(--glimmer-duration) linear infinite;
|
|
134
|
+
border-radius: inherit;
|
|
135
|
+
z-index: -2;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&:hover,
|
|
139
|
+
&:focus {
|
|
140
|
+
@include color.gradient-mode-pseudo(
|
|
141
|
+
'&:before',
|
|
142
|
+
background,
|
|
143
|
+
'linear',
|
|
144
|
+
90deg,
|
|
145
|
+
brandui-color-labels(action-secondary),
|
|
146
|
+
brandui-color-labels(neutral-2),
|
|
147
|
+
brandui-color-labels(action-secondary-dark),
|
|
148
|
+
brandui-color-labels(neutral-5)
|
|
149
|
+
);
|
|
150
|
+
|
|
151
|
+
&:after {
|
|
152
|
+
--glimmer-duration: 2s;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
92
155
|
}
|
|
93
156
|
|
|
94
157
|
&.secondary {
|
|
95
158
|
position: relative;
|
|
96
|
-
border:
|
|
97
|
-
border-style: solid;
|
|
159
|
+
border: none;
|
|
98
160
|
transition: color map.get($brandui-transition, fast), background-color map.get($brandui-transition, fast);
|
|
161
|
+
isolation: isolate;
|
|
99
162
|
@include color.color-mode(color, brandui-color-labels(action), brandui-color-labels(action-dark));
|
|
100
|
-
|
|
163
|
+
|
|
164
|
+
// This is the transparent fake border
|
|
165
|
+
@include color.color-mode-pseudo('&:before', background-color, brandui-color-labels(neutral-5), brandui-color-labels(neutral-2));
|
|
166
|
+
&:before {
|
|
167
|
+
content: '';
|
|
168
|
+
position: absolute;
|
|
169
|
+
inset: 0;
|
|
170
|
+
border-radius: inherit;
|
|
171
|
+
backdrop-filter: blur(4px);
|
|
172
|
+
z-index: -1;
|
|
173
|
+
}
|
|
174
|
+
// This is the rotating conic-gradient glimmer effect
|
|
175
|
+
@include color.conic-gradient-mode-pseudo(
|
|
176
|
+
'&:after',
|
|
177
|
+
background,
|
|
178
|
+
var(--glimmer-angle),
|
|
179
|
+
$secondary-conic-light-values,
|
|
180
|
+
$secondary-conic-dark-values
|
|
181
|
+
);
|
|
182
|
+
&:after {
|
|
183
|
+
content: '';
|
|
184
|
+
display: block;
|
|
185
|
+
position: absolute;
|
|
186
|
+
inset: -1px;
|
|
187
|
+
animation: glimmer var(--glimmer-duration) linear infinite;
|
|
188
|
+
border-radius: inherit;
|
|
189
|
+
z-index: -2;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&:hover,
|
|
193
|
+
&:focus {
|
|
194
|
+
transition: color map.get($brandui-transition, fast);
|
|
195
|
+
@include color.color-mode(color, brandui-color-labels(action-secondary), brandui-color-labels(action-secondary-dark));
|
|
196
|
+
|
|
197
|
+
@include color.color-mode-pseudo('&:before', background-color, brandui-color-labels(neutral-6), brandui-color-labels(neutral-1));
|
|
198
|
+
&:before {
|
|
199
|
+
transition: background-color map.get($brandui-transition, fast);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&:after {
|
|
203
|
+
--glimmer-duration: 2s;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
101
206
|
}
|
|
102
207
|
|
|
103
208
|
&.destroy {
|
|
@@ -127,7 +232,7 @@ $secondary-conic-dark-values: RGBA(brandui-rgb-labels(action-dark), 1), RGBA(bra
|
|
|
127
232
|
vertical-align: middle;
|
|
128
233
|
line-height: 1.2;
|
|
129
234
|
gap: map.get($brandui-padding, extra-small);
|
|
130
|
-
@include color.color-mode(color, brandui-color-labels(action
|
|
235
|
+
@include color.color-mode(color, brandui-color-labels(action), brandui-color-labels(action-dark));
|
|
131
236
|
|
|
132
237
|
&:after {
|
|
133
238
|
content: '';
|
|
@@ -142,7 +247,7 @@ $secondary-conic-dark-values: RGBA(brandui-rgb-labels(action-dark), 1), RGBA(bra
|
|
|
142
247
|
&:hover,
|
|
143
248
|
&:focus {
|
|
144
249
|
background: transparent;
|
|
145
|
-
@include color.color-mode(color, brandui-color-labels(action), brandui-color-labels(action-dark));
|
|
250
|
+
@include color.color-mode(color, brandui-color-labels(action-secondary), brandui-color-labels(action-secondary-dark));
|
|
146
251
|
|
|
147
252
|
&:after {
|
|
148
253
|
transform: translateX(0.25rem);
|
|
@@ -67,7 +67,8 @@ $tinting: RGBA(brandui-rgb-labels(action), 0.05);
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
&:hover
|
|
70
|
+
&:hover,
|
|
71
|
+
&:focus {
|
|
71
72
|
input[type='checkbox'] + .checkmark {
|
|
72
73
|
border-width: 0.0625rem;
|
|
73
74
|
border-style: solid;
|
|
@@ -76,17 +77,6 @@ $tinting: RGBA(brandui-rgb-labels(action), 0.05);
|
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
|
|
79
|
-
&:focus,
|
|
80
|
-
&:focus-visible,
|
|
81
|
-
&:focus-within {
|
|
82
|
-
input[type='checkbox'] + .checkmark {
|
|
83
|
-
outline-width: 3px;
|
|
84
|
-
outline-style: solid;
|
|
85
|
-
box-shadow: 0 0 0.625rem $shading;
|
|
86
|
-
@include color.color-mode(outline-color, brandui-color-labels(action-tertiary), brandui-color-labels(action-tertiary-dark));
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
80
|
i {
|
|
91
81
|
display: inline-block;
|
|
92
82
|
margin-bottom: -0.1875rem;
|
|
@@ -124,7 +124,7 @@ $tinting-dark: RGBA(brandui-rgb-labels(action-dark), 0.1);
|
|
|
124
124
|
border-color map.get($brandui-transition, fast);
|
|
125
125
|
@include color.color-mode(color, brandui-color-labels(ui-text), brandui-color-labels(ui-text-dark));
|
|
126
126
|
@include color.color-mode(background-color, brandui-color-labels(ui-fill), brandui-color-labels(ui-fill-dark));
|
|
127
|
-
@include color.color-mode(border-color, RGBA(brandui-rgb-labels(ui-stroke), 0.
|
|
127
|
+
@include color.color-mode(border-color, RGBA(brandui-rgb-labels(ui-stroke), 0.5), RGBA(brandui-rgb-labels(ui-stroke), 0.5));
|
|
128
128
|
|
|
129
129
|
&:after {
|
|
130
130
|
content: '';
|
|
@@ -168,8 +168,8 @@ $tinting-dark: RGBA(brandui-rgb-labels(action-dark), 0.1);
|
|
|
168
168
|
display: block;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
@include color.color-mode(border-color, RGBA(brandui-rgb-labels(ui-stroke), 0.
|
|
172
|
-
@include color.color-mode(background-color, brandui-
|
|
171
|
+
@include color.color-mode(border-color, RGBA(brandui-rgb-labels(ui-stroke), 0.5), RGBA(brandui-rgb-labels(ui-stroke), 0.5));
|
|
172
|
+
@include color.color-mode(background-color, map.get($brandui-colors, 'white'), map.get($brandui-colors, 'midnight'));
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
&-option {
|
|
@@ -46,8 +46,7 @@
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
&.icon-theme-solid {
|
|
49
|
-
|
|
50
|
-
// @include theme.theme-color(color, 'solid-primary');
|
|
49
|
+
@include theme.theme-color(color, 'solid-primary');
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
&.icon-solid {
|
|
@@ -71,12 +70,10 @@
|
|
|
71
70
|
mask-position: center;
|
|
72
71
|
mask-repeat: no-repeat;
|
|
73
72
|
mask-size: contain;
|
|
73
|
+
background-color: currentColor;
|
|
74
74
|
mask-image: url($icon-val);
|
|
75
75
|
mask-position: center;
|
|
76
76
|
mask-repeat: no-repeat;
|
|
77
|
-
|
|
78
|
-
background-color: currentColor;
|
|
79
|
-
// @include color.color-mode(background-color, brandui-color-labels(default), brandui-color-labels(default-dark));
|
|
80
77
|
}
|
|
81
78
|
}
|
|
82
79
|
}
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
padding: map.get($brandui-padding, extra-small);
|
|
15
15
|
display: flex;
|
|
16
16
|
gap: map.get($brandui-padding, medium);
|
|
17
|
-
border-radius: map.get($brandui-radius,
|
|
18
|
-
border-width:
|
|
17
|
+
border-radius: map.get($brandui-radius, pill);
|
|
18
|
+
border-width: 0.0625rem;
|
|
19
19
|
border-style: solid;
|
|
20
20
|
cursor: default;
|
|
21
21
|
overflow-x: auto;
|
|
22
22
|
scroll-snap-type: x mandatory;
|
|
23
|
-
@include color.color-mode(border-color,
|
|
23
|
+
@include color.color-mode(border-color, brandui-color-labels(neutral-4), brandui-color-labels(neutral-3));
|
|
24
24
|
|
|
25
25
|
&-body {
|
|
26
26
|
display: flex;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
.tab {
|
|
31
31
|
border: 0.0625rem solid transparent;
|
|
32
|
-
border-radius: map.get($brandui-radius,
|
|
32
|
+
border-radius: map.get($brandui-radius, pill);
|
|
33
33
|
cursor: pointer;
|
|
34
34
|
display: flex;
|
|
35
35
|
flex-direction: column;
|
|
@@ -36,6 +36,6 @@
|
|
|
36
36
|
&:hover,
|
|
37
37
|
&:focus-within,
|
|
38
38
|
&.open {
|
|
39
|
-
@include color.color-mode(color, brandui-color-labels(action-
|
|
39
|
+
@include color.color-mode(color, brandui-color-labels(action-secondary), brandui-color-labels(action-secondary-dark));
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
.announcement {
|
|
12
12
|
&-bar {
|
|
13
|
-
border:
|
|
13
|
+
border: 4px solid;
|
|
14
14
|
border-radius: map.get($brandui-radius, pill);
|
|
15
15
|
cursor: pointer;
|
|
16
16
|
display: inline-block;
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
max-width: max-content;
|
|
20
20
|
padding: 0.5rem 1.5rem;
|
|
21
21
|
position: relative;
|
|
22
|
+
box-shadow: map.get($brandui-shadow, outline);
|
|
22
23
|
transition: map.get($brandui-transition, fast);
|
|
23
|
-
@include
|
|
24
|
-
|
|
25
|
-
// @include color.color-mode(border-color, RGBA(brandui-rgb-labels(neutral-3), 0.3), RGBA(brandui-rgb-labels(neutral-5), 0.3));
|
|
24
|
+
@include glass.bg-glass;
|
|
25
|
+
@include glass.border-glass;
|
|
26
26
|
|
|
27
27
|
.badge {
|
|
28
28
|
margin-right: map.get($brandui-padding, 'extra-small');
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
padding: map.get($brandui-padding, extra-small) map.get($brandui-padding, small);
|
|
31
31
|
border-width: 0.0625rem;
|
|
32
32
|
border-style: solid;
|
|
33
|
-
border-radius: map.get($brandui-radius,
|
|
33
|
+
border-radius: map.get($brandui-radius, pill);
|
|
34
34
|
text-decoration: none;
|
|
35
35
|
transition: color map.get($brandui-transition, fast), background-color map.get($brandui-transition, 'fast'),
|
|
36
36
|
border-color map.get($brandui-transition, fast);
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
|
|
42
42
|
&:hover {
|
|
43
43
|
@include color.color-mode(color, brandui-color-labels(action-secondary), brandui-color-labels(action-secondary-dark));
|
|
44
|
-
@include color.color-mode(background-color, brandui-color-labels(
|
|
45
|
-
@include color.color-mode(border-color, brandui-color-labels(action), brandui-color-labels(action-dark));
|
|
44
|
+
@include color.color-mode(background-color, brandui-color-labels(neutral-6), brandui-color-labels(neutral-1));
|
|
45
|
+
@include color.color-mode(border-color, brandui-color-labels(action-secondary), brandui-color-labels(action-secondary-dark));
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -41,9 +41,19 @@
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
&-
|
|
44
|
+
&-actions {
|
|
45
45
|
position: absolute;
|
|
46
46
|
right: 0;
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: row-reverse;
|
|
49
|
+
align-items: center;
|
|
50
|
+
|
|
51
|
+
hr {
|
|
52
|
+
width: 1px;
|
|
53
|
+
height: 20px;
|
|
54
|
+
margin: 0 10px;
|
|
55
|
+
background-color: map.get($brandui-colors, 'midnight');
|
|
56
|
+
}
|
|
47
57
|
}
|
|
48
58
|
}
|
|
49
59
|
|
|
@@ -38,8 +38,7 @@
|
|
|
38
38
|
RGBA(brandui-rgb-labels(action-secondary), 0.1),
|
|
39
39
|
RGBA(brandui-rgb-labels(action-secondary-dark), 0.1)
|
|
40
40
|
);
|
|
41
|
-
@include color.color-mode(
|
|
42
|
-
@include color.color-mode(color, brandui-color-labels(action-tertiary), brandui-color-labels(action-tertiary-dark));
|
|
41
|
+
@include color.color-mode(color, brandui-color-labels(action-secondary), brandui-color-labels(action-secondary-dark));
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
}
|