@tui/design-system 5.0.0-beta.4 → 5.0.0-beta.5
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/CHANGELOG.md +34 -1
- package/dist/themes/crystalski/index.css +34 -4
- package/dist/themes/crystalski/index.css.map +1 -1
- package/dist/themes/firstchoice/index.css +34 -4
- package/dist/themes/firstchoice/index.css.map +1 -1
- package/dist/themes/tui/fonts.css +14 -0
- package/dist/themes/tui/fonts.css.map +1 -1
- package/dist/themes/tui/index.css +46 -6
- package/dist/themes/tui/index.css.map +1 -1
- package/package.json +30 -28
- package/scss/lib/active-tag/_mixins.scss +1 -1
- package/scss/lib/button/_mixins.scss +12 -6
- package/scss/lib/cards/card/_mixins.scss +1 -1
- package/scss/lib/cards/search/_mixins.scss +4 -4
- package/scss/lib/flight-details/_index.scss +3 -0
- package/scss/lib/flight-details/_mixins.scss +468 -0
- package/scss/lib/flight-details/_variables.scss +6 -0
- package/scss/lib/forms/input-chip/_mixins.scss +1 -1
- package/scss/lib/forms/input-chip/_variables.scss +1 -1
- package/scss/lib/forms/input-switch/_index.scss +3 -0
- package/scss/lib/forms/input-switch/_mixins.scss +122 -0
- package/scss/lib/forms/input-switch/_variables.scss +18 -0
- package/scss/lib/forms/textarea/_index.scss +3 -0
- package/scss/lib/forms/textarea/_mixins.scss +88 -0
- package/scss/lib/hero/_index.scss +3 -0
- package/scss/lib/hero/_mixins.scss +336 -0
- package/scss/lib/hero/_variables.scss +21 -0
- package/scss/lib/image/_mixins.scss +40 -0
- package/scss/lib/media-button/_mixins.scss +1 -1
- package/scss/lib/pagination/_mixins.scss +1 -1
- package/scss/lib/ratings-reviews/percentage/_mixins.scss +1 -1
- package/scss/lib/show-more-less/_mixins.scss +1 -1
- package/scss/mixins.scss +3 -0
- package/scss/themes/crystalski/_overrides.scss +11 -2
- package/scss/themes/crystalski/fonts.json +19 -0
- package/scss/themes/crystalski/index.scss +9 -0
- package/scss/themes/crystalski/theme.json +1 -1
- package/scss/themes/firstchoice/_overrides.scss +11 -2
- package/scss/themes/firstchoice/fonts.json +27 -0
- package/scss/themes/firstchoice/index.scss +9 -0
- package/scss/themes/firstchoice/theme.json +1 -1
- package/scss/themes/tui/_colors.scss +1 -0
- package/scss/themes/tui/_overrides.scss +2 -1
- package/scss/themes/tui/_primitives.scss +1 -0
- package/scss/themes/tui/_typography.scss +10 -1
- package/scss/themes/tui/fonts.json +59 -0
- package/scss/themes/tui/fonts.scss +2 -0
- package/scss/themes/tui/index.scss +9 -0
- package/scss/themes/tui/theme.json +5 -3
- package/scss/variables/_elevations.scss +4 -3
- package/scss/variables/_env-variables.scss +1 -1
- package/scss/variables/_typography.scss +2 -0
- package/scss/variables/base-theme.json +324 -134
- package/scss/variables/fonts/_tuiheadline-black-italic.scss +10 -0
- package/scss/variables/fonts/_tuiheadline-black.scss +10 -0
- package/scss/variables/fonts/_tuiheadline-fallback.scss +11 -0
- package/scss/variables.scss +3 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// textarea / _mixins
|
|
2
|
+
@use '../../utility/mixins' as *;
|
|
3
|
+
|
|
4
|
+
// Builds textarea
|
|
5
|
+
@mixin uilib-textarea() {
|
|
6
|
+
.uilib-textarea {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
|
|
10
|
+
max-width: 42.5rem; /* 680px / 16 */
|
|
11
|
+
|
|
12
|
+
border: var(--uilib-stroke-size-025) var(--uilib-stroke-style-solid) var(--uilib-color-border-input);
|
|
13
|
+
border-radius: var(--uilib-border-radius-100);
|
|
14
|
+
|
|
15
|
+
background: var(--uilib-color-core-neutral);
|
|
16
|
+
|
|
17
|
+
&:focus-within {
|
|
18
|
+
@include uilib-focus;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&:has(textarea[aria-invalid='true']) {
|
|
22
|
+
border-color: var(--uilib-color-border-danger);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:has(textarea:disabled) {
|
|
26
|
+
border-color: var(--uilib-color-border-input);
|
|
27
|
+
|
|
28
|
+
background: var(--uilib-color-other-disabled-soft);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
textarea {
|
|
32
|
+
flex: 1;
|
|
33
|
+
|
|
34
|
+
width: 100%;
|
|
35
|
+
min-width: 0;
|
|
36
|
+
min-height: 4rem; /* 38px / 16 */
|
|
37
|
+
padding: var(--uilib-spacing-200) var(--uilib-spacing-300);
|
|
38
|
+
|
|
39
|
+
color: var(--uilib-color-text-body);
|
|
40
|
+
font: var(--uilib-typography-body-medium);
|
|
41
|
+
|
|
42
|
+
border: 0;
|
|
43
|
+
border-radius: var(--uilib-border-radius-100);
|
|
44
|
+
|
|
45
|
+
background: transparent;
|
|
46
|
+
|
|
47
|
+
appearance: none;
|
|
48
|
+
resize: none;
|
|
49
|
+
|
|
50
|
+
/* Edge legacy */
|
|
51
|
+
-ms-overflow-style: initial;
|
|
52
|
+
|
|
53
|
+
scrollbar-width: thin;
|
|
54
|
+
|
|
55
|
+
scrollbar-color: var(--uilib-scroller-thumb-color) transparent;
|
|
56
|
+
|
|
57
|
+
&:focus::before,
|
|
58
|
+
&:focus-visible::before {
|
|
59
|
+
display: none; /* Fix for iOS and Android double focus */
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:focus-visible::before {
|
|
63
|
+
display: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&::-webkit-scrollbar-button {
|
|
67
|
+
display: none;
|
|
68
|
+
|
|
69
|
+
width: 0;
|
|
70
|
+
height: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&::-webkit-scrollbar-track {
|
|
74
|
+
background: transparent;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&::-webkit-scrollbar-thumb {
|
|
78
|
+
border: var(--uilib-spacing-100) solid transparent;
|
|
79
|
+
border-radius: var(--uilib-scroller-thumb-radius);
|
|
80
|
+
|
|
81
|
+
background-color: var(--uilib-scroller-thumb-color);
|
|
82
|
+
background-clip: padding-box;
|
|
83
|
+
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
// hero / _mixins
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use '../grid/mixins' as *;
|
|
4
|
+
@use '../utility/mixins' as *;
|
|
5
|
+
@use '../../variables/breakpoints' as *;
|
|
6
|
+
|
|
7
|
+
// Builds hero
|
|
8
|
+
@mixin uilib-hero() {
|
|
9
|
+
$hero-image-height: 21.063rem; /* 337 / 16 */
|
|
10
|
+
$hero-image-slim-height: 15.4375rem; /* 247 / 16 */
|
|
11
|
+
$hero-height-medium: 39.5rem; /* 632 / 16 */
|
|
12
|
+
$hero-height-slim-medium: 25rem; /* 400 / 16 */
|
|
13
|
+
$hero-height-large: 34.375rem; /* 550 / 16 */
|
|
14
|
+
$hero-height-slim-large: 24.375rem; /* 390 / 16 */
|
|
15
|
+
$hero-content-width: 18.5rem; /* 296 / 16 */
|
|
16
|
+
$hero-content-center-width: 42.188rem; /* 675 / 16 */
|
|
17
|
+
|
|
18
|
+
.uilib-hero {
|
|
19
|
+
position: relative;
|
|
20
|
+
|
|
21
|
+
container-type: inline-size;
|
|
22
|
+
container-name: uilib-hero;
|
|
23
|
+
|
|
24
|
+
&__image.uilib-image {
|
|
25
|
+
position: absolute;
|
|
26
|
+
inset: auto auto 0 50%;
|
|
27
|
+
|
|
28
|
+
min-width: 100%;
|
|
29
|
+
min-height: #{$hero-image-height};
|
|
30
|
+
|
|
31
|
+
background-size: min(60%, 30rem);
|
|
32
|
+
|
|
33
|
+
transform: translateX(-50%);
|
|
34
|
+
|
|
35
|
+
mask-image: var(--uilib-hero-image-mask);
|
|
36
|
+
mask-size: cover;
|
|
37
|
+
mask-repeat: no-repeat;
|
|
38
|
+
mask-position: center bottom;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&__inner {
|
|
42
|
+
position: relative;
|
|
43
|
+
|
|
44
|
+
max-width: var(--uilib-layout-max-width);
|
|
45
|
+
margin: 0 auto;
|
|
46
|
+
padding-bottom: calc(#{$hero-image-height} - var(--uilib-hero-image-mask-height-small));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&__content {
|
|
50
|
+
position: relative;
|
|
51
|
+
|
|
52
|
+
max-width: 100%;
|
|
53
|
+
padding: var(--uilib-spacing-800);
|
|
54
|
+
box-sizing: content-box;
|
|
55
|
+
|
|
56
|
+
color: var(--uilib-hero-content-text-color);
|
|
57
|
+
font: var(--uilib-typography-component-heading-xlarge);
|
|
58
|
+
text-align: center;
|
|
59
|
+
|
|
60
|
+
border-radius: var(--uilib-hero-content-radius) var(--uilib-hero-content-radius) 0 0;
|
|
61
|
+
|
|
62
|
+
mask-image: var(--uilib-hero-image-mask);
|
|
63
|
+
mask-size: cover;
|
|
64
|
+
mask-repeat: no-repeat;
|
|
65
|
+
mask-position: center bottom;
|
|
66
|
+
|
|
67
|
+
background: var(--uilib-hero-content-bg-small);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&__heading {
|
|
71
|
+
margin-bottom: var(--uilib-spacing-200);
|
|
72
|
+
|
|
73
|
+
font: var(--uilib-typography-display-small);
|
|
74
|
+
|
|
75
|
+
strong {
|
|
76
|
+
font: var(--uilib-typography-display-large);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&__caveat {
|
|
81
|
+
margin-top: var(--uilib-spacing-200);
|
|
82
|
+
|
|
83
|
+
font: var(--uilib-typography-body-small-strong);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
em {
|
|
87
|
+
color: var(--uilib-hero-content-text-highlight-color);
|
|
88
|
+
font-style: normal;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&__button {
|
|
92
|
+
display: inline-block;
|
|
93
|
+
|
|
94
|
+
margin-top: var(--uilib-spacing-800);
|
|
95
|
+
|
|
96
|
+
border-radius: var(--uilib-button-radius);
|
|
97
|
+
|
|
98
|
+
&::after {
|
|
99
|
+
position: absolute;
|
|
100
|
+
inset: 0;
|
|
101
|
+
content: '';
|
|
102
|
+
|
|
103
|
+
display: block;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&:focus-visible {
|
|
107
|
+
position: static;
|
|
108
|
+
|
|
109
|
+
&::before {
|
|
110
|
+
display: none;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.uilib-button {
|
|
114
|
+
@include uilib-focus();
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* stylelint-disable-next-line order/order */
|
|
120
|
+
&--center {
|
|
121
|
+
.uilib-hero__image.uilib-image {
|
|
122
|
+
inset: 0 auto 0 50%;
|
|
123
|
+
|
|
124
|
+
height: 100%;
|
|
125
|
+
|
|
126
|
+
border-radius: var(--uilib-hero-image-radius-small);
|
|
127
|
+
|
|
128
|
+
background-image: none;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.uilib-hero__inner {
|
|
132
|
+
padding-top: var(--uilib-spacing-400);
|
|
133
|
+
padding-right: var(--uilib-spacing-400);
|
|
134
|
+
padding-left: var(--uilib-spacing-400);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.uilib-hero__content {
|
|
138
|
+
padding: var(--uilib-spacing-600);
|
|
139
|
+
|
|
140
|
+
border-radius: var(--uilib-hero-content-radius);
|
|
141
|
+
|
|
142
|
+
background: var(--uilib-hero-content-bg);
|
|
143
|
+
|
|
144
|
+
mask-image: none;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&--flagship {
|
|
149
|
+
.uilib-hero__content {
|
|
150
|
+
color: var(--uilib-hero-flagship-content-text-color);
|
|
151
|
+
|
|
152
|
+
background: var(--uilib-hero-flagship-content-bg-small);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
em {
|
|
156
|
+
color: var(--uilib-hero-flagship-content-text-highlight-color);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&--illustration {
|
|
161
|
+
.uilib-hero__image.uilib-image {
|
|
162
|
+
inset: 0 auto 0 50%;
|
|
163
|
+
|
|
164
|
+
min-height: 100%;
|
|
165
|
+
|
|
166
|
+
border-radius: var(--uilib-hero-image-radius-small);
|
|
167
|
+
|
|
168
|
+
background-image: none;
|
|
169
|
+
|
|
170
|
+
@container uilib-hero (max-width: #{map.get($uilib-breakpoints, xs)}) {
|
|
171
|
+
img {
|
|
172
|
+
object-position: bottom center;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.uilib-hero__content {
|
|
178
|
+
background: transparent;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.uilib-hero__caveat {
|
|
182
|
+
margin-top: var(--uilib-spacing-200);
|
|
183
|
+
|
|
184
|
+
font: var(--uilib-typography-body-small);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&--slim {
|
|
189
|
+
.uilib-hero__image.uilib-image {
|
|
190
|
+
min-height: #{$hero-image-slim-height};
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.uilib-hero__inner {
|
|
194
|
+
padding-bottom: calc(#{$hero-image-slim-height} - var(--uilib-hero-image-mask-height-small));
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.uilib-hero__content {
|
|
198
|
+
font: var(--uilib-typography-label-medium);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&--reduced {
|
|
203
|
+
min-height: 0;
|
|
204
|
+
|
|
205
|
+
.uilib-hero__image.uilib-image {
|
|
206
|
+
display: none;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.uilib-hero__inner {
|
|
210
|
+
padding-bottom: 0;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* stylelint-disable-next-line order/order */
|
|
215
|
+
@include uilib-container-breakpoint(xs, 'uilib-hero') {
|
|
216
|
+
&__image.uilib-image {
|
|
217
|
+
height: 100%;
|
|
218
|
+
|
|
219
|
+
border-radius: var(--uilib-hero-image-radius-large);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
&__inner {
|
|
223
|
+
display: flex;
|
|
224
|
+
flex-flow: row nowrap;
|
|
225
|
+
justify-content: flex-start;
|
|
226
|
+
align-items: flex-start;
|
|
227
|
+
|
|
228
|
+
min-height: #{$hero-height-medium};
|
|
229
|
+
padding: var(--uilib-spacing-600) var(--uilib-spacing-1600) var(--uilib-spacing-1200);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
&__content {
|
|
233
|
+
width: #{$hero-content-width};
|
|
234
|
+
padding: var(--uilib-spacing-600) var(--uilib-spacing-800);
|
|
235
|
+
|
|
236
|
+
text-align: left;
|
|
237
|
+
|
|
238
|
+
border-radius: var(--uilib-hero-content-radius);
|
|
239
|
+
|
|
240
|
+
mask: none;
|
|
241
|
+
|
|
242
|
+
background: var(--uilib-hero-content-bg);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
&__heading {
|
|
246
|
+
font: var(--uilib-typography-heading-xxlarge);
|
|
247
|
+
|
|
248
|
+
strong {
|
|
249
|
+
font: var(--uilib-typography-display-small);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/* stylelint-disable-next-line order/order */
|
|
254
|
+
&--right {
|
|
255
|
+
.uilib-hero__inner {
|
|
256
|
+
justify-content: flex-end;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
&--center {
|
|
261
|
+
.uilib-hero__image.uilib-image {
|
|
262
|
+
border-radius: var(--uilib-hero-image-radius-large);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.uilib-hero__inner {
|
|
266
|
+
justify-content: center;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.uilib-hero__content {
|
|
270
|
+
width: #{$hero-content-center-width};
|
|
271
|
+
padding: var(--uilib-spacing-800);
|
|
272
|
+
|
|
273
|
+
text-align: center;
|
|
274
|
+
|
|
275
|
+
border-radius: var(--uilib-border-radius-1000) var(--uilib-border-radius-1000) var(--uilib-border-radius-1800)
|
|
276
|
+
var(--uilib-border-radius-1800);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
&--flagship {
|
|
281
|
+
.uilib-hero__content {
|
|
282
|
+
background: var(--uilib-hero-flagship-content-bg);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
&--illustration {
|
|
287
|
+
.uilib-hero__image.uilib-image {
|
|
288
|
+
border-radius: var(--uilib-hero-image-radius-large);
|
|
289
|
+
|
|
290
|
+
background-position: center;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
&__heading {
|
|
294
|
+
font: var(--uilib-typography-heading-small);
|
|
295
|
+
|
|
296
|
+
strong {
|
|
297
|
+
font: var(--uilib-typography-display-large);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
&--slim {
|
|
303
|
+
.uilib-hero__image.uilib-image {
|
|
304
|
+
min-height: 100%;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.uilib-hero__inner {
|
|
308
|
+
min-height: #{$hero-height-slim-medium};
|
|
309
|
+
padding-bottom: var(--uilib-spacing-1200);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
&--reduced {
|
|
314
|
+
.uilib-hero__image.uilib-image {
|
|
315
|
+
display: block;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.uilib-hero__inner {
|
|
319
|
+
padding-bottom: var(--uilib-spacing-1200);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
@include uilib-container-breakpoint(sm, 'uilib-hero') {
|
|
325
|
+
&__inner {
|
|
326
|
+
min-height: #{$hero-height-large};
|
|
327
|
+
padding: var(--uilib-spacing-600) 10rem var(--uilib-spacing-1200); /* 160 / 16 */
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/* stylelint-disable-next-line order/order */
|
|
331
|
+
&--slim &__inner {
|
|
332
|
+
min-height: #{$hero-height-slim-large};
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
@use '../../variables/env-variables' as *;
|
|
3
|
+
|
|
4
|
+
// Hero specific variables to allow theming
|
|
5
|
+
$uilib-hero-variables: (
|
|
6
|
+
image-radius-small: var(--uilib-border-radius-600) var(--uilib-border-radius-600) 0 0,
|
|
7
|
+
image-radius-large: var(--uilib-border-radius-1800) var(--uilib-border-radius-1800) 0 0,
|
|
8
|
+
image-mask:
|
|
9
|
+
url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkyMCIgaGVpZ2h0PSI2NzM4IiB2aWV3Qm94PSIwIDAgMTkyMCA2NzM4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMjAwN18yKSI+CjxwYXRoIGQ9Ik0xOTIwIDY1NzUuNDJWMEgwVjY1NzUuMDZDMjg4LjQzNSA2Njc5LjI3IDYxNC44MjIgNjczOCA5NjAuNSA2NzM4QzEzMDUuNzggNjczOCAxNjMxLjgxIDY2NzkuNCAxOTIwIDY1NzUuNDJaIiBmaWxsPSIjRDlEOUQ5Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMjAwN18yIj4KPHJlY3Qgd2lkdGg9IjE5MjAiIGhlaWdodD0iNjczOCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K),
|
|
10
|
+
image-mask-height-small: var(--uilib-spacing-1200),
|
|
11
|
+
image-mask-height-large: var(--uilib-spacing-1600),
|
|
12
|
+
content-radius: var(--uilib-border-radius-600),
|
|
13
|
+
content-bg-small: var(--uilib-color-core-surface),
|
|
14
|
+
content-bg: color-mix(in srgb, var(--uilib-color-core-neutral) 90%, transparent),
|
|
15
|
+
content-text-color: var(--uilib-color-text-strong),
|
|
16
|
+
content-text-highlight-color: var(--uilib-color-text-promotion),
|
|
17
|
+
flagship-content-bg-small: var(--uilib-color-core-brand-strong),
|
|
18
|
+
flagship-content-bg: color-mix(in srgb, var(--uilib-color-core-brand-strong) 90%, transparent),
|
|
19
|
+
flagship-content-text-color: var(--uilib-color-text-inverse),
|
|
20
|
+
flagship-content-text-highlight-color: var(--uilib-color-text-inverse),
|
|
21
|
+
) !default;
|
|
@@ -44,6 +44,46 @@
|
|
|
44
44
|
font-size: 0;
|
|
45
45
|
|
|
46
46
|
object-fit: cover;
|
|
47
|
+
object-position: center;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* stylelint-disable-next-line order/order */
|
|
51
|
+
&--focus {
|
|
52
|
+
&-top-left img {
|
|
53
|
+
object-position: top left;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&-top-center img {
|
|
57
|
+
object-position: top center;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&-top-right img {
|
|
61
|
+
object-position: top right;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&-center-left img {
|
|
65
|
+
object-position: center left;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&-center img {
|
|
69
|
+
object-position: center;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&-center-right img {
|
|
73
|
+
object-position: center right;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&-bottom-left img {
|
|
77
|
+
object-position: bottom left;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&-bottom-center img {
|
|
81
|
+
object-position: bottom center;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&-bottom-right img {
|
|
85
|
+
object-position: bottom right;
|
|
86
|
+
}
|
|
47
87
|
}
|
|
48
88
|
}
|
|
49
89
|
}
|
package/scss/mixins.scss
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
@forward 'lib/cards/card/mixins';
|
|
8
8
|
@forward 'lib/cards/search/mixins';
|
|
9
9
|
@forward 'lib/divider/mixins';
|
|
10
|
+
@forward 'lib/flight-details/mixins';
|
|
10
11
|
@forward 'lib/flyout-dropdown/mixins';
|
|
11
12
|
@forward 'lib/forms/form-row/mixins';
|
|
12
13
|
@forward 'lib/forms/input-checkbox/mixins';
|
|
@@ -14,8 +15,10 @@
|
|
|
14
15
|
@forward 'lib/forms/input-count/mixins';
|
|
15
16
|
@forward 'lib/forms/input-radio/mixins';
|
|
16
17
|
@forward 'lib/forms/input-slider/mixins';
|
|
18
|
+
@forward 'lib/forms/input-switch/mixins';
|
|
17
19
|
@forward 'lib/forms/input-text/mixins';
|
|
18
20
|
@forward 'lib/grid/mixins';
|
|
21
|
+
@forward 'lib/hero/mixins';
|
|
19
22
|
@forward 'lib/icon/mixins';
|
|
20
23
|
@forward 'lib/icon-button/mixins';
|
|
21
24
|
@forward 'lib/image/mixins';
|
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
$uilib-crystalski-font-families: map.merge(
|
|
11
11
|
$uilib-font-families,
|
|
12
12
|
(
|
|
13
|
-
'
|
|
14
|
-
'
|
|
13
|
+
'display': #{$uilib-font-family-brandon},
|
|
14
|
+
'lead': #{$uilib-font-family-brandon},
|
|
15
|
+
'base': #{$uilib-font-family-brandon},
|
|
15
16
|
)
|
|
16
17
|
);
|
|
17
18
|
$uilib-crystalski-font-weight: map.merge(
|
|
@@ -108,6 +109,14 @@ $uilib-crystalski-card-search-variables: map.merge(
|
|
|
108
109
|
)
|
|
109
110
|
);
|
|
110
111
|
|
|
112
|
+
// Flight details
|
|
113
|
+
$uilib-crystalski-flight-details-variables: map.merge(
|
|
114
|
+
$uilib-flight-details-variables,
|
|
115
|
+
(
|
|
116
|
+
icon: url('#{$uilib-assets-base-url}v3/icons/crystalski/standard/chevron-down.svg'),
|
|
117
|
+
)
|
|
118
|
+
);
|
|
119
|
+
|
|
111
120
|
// Form row
|
|
112
121
|
$uilib-crystalski-form-row-variables: map.merge(
|
|
113
122
|
$uilib-form-row-variables,
|
|
@@ -26,5 +26,24 @@
|
|
|
26
26
|
"display": "swap",
|
|
27
27
|
"weight": "400",
|
|
28
28
|
"style": "normal"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"weight": "400 700",
|
|
32
|
+
"family": "BrandonFallbackFont",
|
|
33
|
+
"src": "local('verdana')",
|
|
34
|
+
"sizeAdjust": "85.5%",
|
|
35
|
+
"ascentOverride": "110.8%",
|
|
36
|
+
"descentOverride": "31.7%",
|
|
37
|
+
"lineGapOverride": "19.1%"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"weight": "400 700",
|
|
41
|
+
"family": "BrandonFallbackFont",
|
|
42
|
+
"style": "italic",
|
|
43
|
+
"src": "local('verdana italic')",
|
|
44
|
+
"sizeAdjust": "85.5%",
|
|
45
|
+
"ascentOverride": "110.8%",
|
|
46
|
+
"descentOverride": "31.7%",
|
|
47
|
+
"lineGapOverride": "19.1%"
|
|
29
48
|
}
|
|
30
49
|
]
|
|
@@ -74,6 +74,9 @@
|
|
|
74
74
|
// Card - search
|
|
75
75
|
@include util.uilib-build-css-vars('card-search', $uilib-crystalski-card-search-variables);
|
|
76
76
|
|
|
77
|
+
// Flight details
|
|
78
|
+
@include util.uilib-build-css-vars('flight-details', $uilib-crystalski-flight-details-variables);
|
|
79
|
+
|
|
77
80
|
// Form row
|
|
78
81
|
@include util.uilib-build-css-vars('form-row', $uilib-crystalski-form-row-variables);
|
|
79
82
|
|
|
@@ -95,9 +98,15 @@
|
|
|
95
98
|
// Form input slider
|
|
96
99
|
@include util.uilib-build-css-vars('input-slider', $uilib-input-slider-variables);
|
|
97
100
|
|
|
101
|
+
// Form input switch
|
|
102
|
+
@include util.uilib-build-css-vars('input-switch', $uilib-input-switch-variables);
|
|
103
|
+
|
|
98
104
|
// Form input text
|
|
99
105
|
@include util.uilib-build-css-vars('input-text', $uilib-crystalski-input-text-variables);
|
|
100
106
|
|
|
107
|
+
// Hero
|
|
108
|
+
@include util.uilib-build-css-vars('hero', $uilib-hero-variables);
|
|
109
|
+
|
|
101
110
|
// Icon button
|
|
102
111
|
@include util.uilib-build-css-vars('icon-button', $uilib-crystalski-icon-button-variables);
|
|
103
112
|
|
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
$uilib-firstchoice-font-families: map.merge(
|
|
11
11
|
$uilib-font-families,
|
|
12
12
|
(
|
|
13
|
-
'
|
|
14
|
-
'lead': $uilib-font-family-pastichegrotesque,
|
|
13
|
+
'display': #{$uilib-font-family-pastichegrotesque},
|
|
14
|
+
'lead': #{$uilib-font-family-pastichegrotesque},
|
|
15
|
+
'base': #{$uilib-font-family-rondelle},
|
|
15
16
|
)
|
|
16
17
|
);
|
|
17
18
|
|
|
@@ -166,6 +167,14 @@ $uilib-firstchoice-card-search-variables: map.merge(
|
|
|
166
167
|
)
|
|
167
168
|
);
|
|
168
169
|
|
|
170
|
+
// Flight details
|
|
171
|
+
$uilib-firstchoice-flight-details-variables: map.merge(
|
|
172
|
+
$uilib-flight-details-variables,
|
|
173
|
+
(
|
|
174
|
+
icon: url('#{$uilib-assets-base-url}v3/icons/firstchoice/standard/chevron-down.svg'),
|
|
175
|
+
)
|
|
176
|
+
);
|
|
177
|
+
|
|
169
178
|
// Form row
|
|
170
179
|
$uilib-firstchoice-form-row-variables: map.merge(
|
|
171
180
|
$uilib-form-row-variables,
|
|
@@ -19,5 +19,32 @@
|
|
|
19
19
|
"display": "swap",
|
|
20
20
|
"weight": "400",
|
|
21
21
|
"style": "normal"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"weight": "400 900",
|
|
25
|
+
"family": "PasticheGrotesqueFallbackFont",
|
|
26
|
+
"src": "local('arial black')",
|
|
27
|
+
"sizeAdjust": "92%",
|
|
28
|
+
"ascentOverride": "95.5%",
|
|
29
|
+
"descentOverride": "22.6%",
|
|
30
|
+
"lineGapOverride": "12.7%"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"weight": "400",
|
|
34
|
+
"family": "RondelleFallbackFont",
|
|
35
|
+
"src": "local('verdana')",
|
|
36
|
+
"sizeAdjust": "95%",
|
|
37
|
+
"ascentOverride": "81.6%",
|
|
38
|
+
"descentOverride": "23.2%",
|
|
39
|
+
"lineGapOverride": "24%"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"weight": "700 900",
|
|
43
|
+
"family": "RondelleFallbackFont",
|
|
44
|
+
"src": "local('arial black')",
|
|
45
|
+
"sizeAdjust": "90%",
|
|
46
|
+
"ascentOverride": "81.5%",
|
|
47
|
+
"descentOverride": "30.1%",
|
|
48
|
+
"lineGapOverride": "25.3%"
|
|
22
49
|
}
|
|
23
50
|
]
|