@phillips/seldon 1.213.0 → 1.214.0-beta.1
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/_virtual/index4.js +2 -2
- package/dist/_virtual/index5.js +2 -2
- package/dist/_virtual/index6.js +2 -2
- package/dist/assets/formatted/Clock.d.ts +9 -0
- package/dist/assets/formatted/Clock.js +35 -0
- package/dist/assets/formatted/index.d.ts +1 -0
- package/dist/assets/formatted/index.js +14 -12
- package/dist/components/AddToCalendar/AddToCalendar.js +24 -25
- package/dist/components/Article/Article.js +17 -17
- package/dist/components/Breadcrumb/BreadcrumbItem.js +13 -13
- package/dist/components/Button/Button.d.ts +4 -0
- package/dist/components/Button/Button.js +71 -53
- package/dist/components/Button/Button.stories.d.ts +7 -1
- package/dist/components/ComboBox/ComboBox.js +34 -29
- package/dist/components/ComposedModal/ComposedModal.js +33 -33
- package/dist/components/ComposedModal/ComposedModal.stories.d.ts +1 -0
- package/dist/components/Countdown/Countdown.js +90 -51
- package/dist/components/Countdown/Duration.d.ts +3 -1
- package/dist/components/Countdown/Duration.js +17 -9
- package/dist/components/Countdown/types.d.ts +2 -1
- package/dist/components/Countdown/types.js +1 -1
- package/dist/components/DescriptiveRadioButton/DescriptiveRadioButton.js +21 -21
- package/dist/components/Detail/Detail.d.ts +2 -0
- package/dist/components/Detail/Detail.js +26 -15
- package/dist/components/Detail/Detail.stories.d.ts +9 -2
- package/dist/components/Drawer/DrawerHeader.js +22 -20
- package/dist/components/ExitGateCard/ExitGateCard.js +29 -29
- package/dist/components/FavoritingTileButton/FavoritingTileButton.js +30 -31
- package/dist/components/Filter/Filter.js +36 -34
- package/dist/components/Filter/FilterHeader.d.ts +4 -0
- package/dist/components/Filter/FilterHeader.js +30 -22
- package/dist/components/Input/Input.js +43 -39
- package/dist/components/Input/Input.stories.d.ts +16 -0
- package/dist/components/Link/Link.js +11 -11
- package/dist/components/Link/Link.stories.d.ts +17 -1
- package/dist/components/Link/types.d.ts +9 -4
- package/dist/components/Link/types.js +3 -3
- package/dist/components/LinkBlock/LinkBlock.js +19 -11
- package/dist/components/Modal/Modal.d.ts +0 -4
- package/dist/components/Modal/Modal.js +6 -6
- package/dist/components/Navigation/NavigationItem/NavigationItem.js +31 -23
- package/dist/components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js +29 -29
- package/dist/components/Navigation/NavigationList/NavigationList.js +5 -5
- package/dist/components/Pagination/Pagination.js +22 -21
- package/dist/components/ProgressIndicator/ProgressIndicator.js +22 -22
- package/dist/components/Search/Search.js +55 -53
- package/dist/components/Search/SearchResults/SearchResults.js +16 -16
- package/dist/components/Select/Select.d.ts +4 -0
- package/dist/components/Select/Select.js +51 -45
- package/dist/components/Select/Select.stories.d.ts +1 -0
- package/dist/components/Tabs/TabsContainer.js +1 -1
- package/dist/components/Tags/Tags.js +32 -30
- package/dist/components/Text/Text.js +17 -9
- package/dist/components/Text/types.d.ts +42 -1
- package/dist/components/Text/types.js +3 -3
- package/dist/components/Text/utils.js +40 -7
- package/dist/components/TextArea/TextArea.js +38 -34
- package/dist/components/Toast/Toast.js +4 -4
- package/dist/node_modules/ics/dist/index.js +2 -2
- package/dist/node_modules/ics/dist/pipeline/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/patterns/AccountPageHeader/AccountPageHeader.js +45 -28
- package/dist/patterns/BidSnapshot/BidMessage.d.ts +6 -1
- package/dist/patterns/BidSnapshot/BidMessage.js +14 -13
- package/dist/patterns/BidSnapshot/BidSnapshot.d.ts +7 -1
- package/dist/patterns/BidSnapshot/BidSnapshot.js +84 -66
- package/dist/patterns/BidSnapshot/BidSnapshot.stories.d.ts +100 -0
- package/dist/patterns/CountryPicker/CountryPickerCountryList.js +5 -5
- package/dist/patterns/CountryPicker/CountryPickerModal.js +8 -8
- package/dist/patterns/CountryPicker/CountryPickerOption.js +22 -20
- package/dist/patterns/CountryPicker/CountryPickerTrigger.js +39 -38
- package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.js +52 -52
- package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.stories.d.ts +1 -0
- package/dist/patterns/FiltersInline/FilterButton.js +41 -25
- package/dist/patterns/FiltersInline/FilterDropdownMenuDesktop.js +50 -52
- package/dist/patterns/FiltersInline/FilterDropdownMenuMobile.js +31 -31
- package/dist/patterns/HeroBanner/HeroBanner.js +21 -21
- package/dist/patterns/LanguageSelector/LanguageSelector.js +34 -34
- package/dist/patterns/ObjectTile/ObjectTile.js +51 -66
- package/dist/patterns/ObjectTile/ObjectTile.stories.d.ts +36 -0
- package/dist/patterns/PhoneNumberInput/PhoneNumberInput.js +7 -6
- package/dist/patterns/SaleCard/SaleCard.js +37 -45
- package/dist/patterns/SaleCard/SaleCard.stories.d.ts +1 -1
- package/dist/patterns/SaleCard/SaleCardActions.js +9 -8
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +49 -49
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js +19 -12
- package/dist/patterns/Social/Social.js +20 -20
- package/dist/patterns/Subscribe/Subscribe.stories.d.ts +0 -1
- package/dist/patterns/TextBanner/TextBanner.js +12 -12
- package/dist/patterns/UserManagement/UserManagement.js +13 -13
- package/dist/patterns/ViewingDetails/ViewingDetails.d.ts +4 -0
- package/dist/patterns/ViewingDetails/ViewingDetails.js +36 -34
- package/dist/patterns/ViewingDetails/ViewingDetails.stories.d.ts +2 -0
- package/dist/patterns/ViewingDetails/ViewingDetailsMock.d.ts +2 -0
- package/dist/scss/_reset.scss +4 -0
- package/dist/scss/_type.scss +172 -65
- package/dist/scss/_vars.scss +92 -197
- package/dist/scss/_vars.scss.js +94 -199
- package/dist/scss/componentStyles.scss +178 -0
- package/dist/scss/components/Accordion/_accordion.scss +6 -4
- package/dist/scss/components/Breadcrumb/_breadcrumb.scss +8 -1
- package/dist/scss/components/Button/_button.scss +33 -7
- package/dist/scss/components/ComboBox/_combobox.scss +7 -5
- package/dist/scss/components/ComposedModal/_composedModal.scss +0 -4
- package/dist/scss/components/Countdown/_countdown.scss +8 -9
- package/dist/scss/components/Countdown/_duration.scss +0 -2
- package/dist/scss/components/DatePicker/_datePicker.scss +11 -10
- package/dist/scss/components/Detail/_detail.scss +15 -6
- package/dist/scss/components/Divider/_divider.scss +3 -3
- package/dist/scss/components/Drawer/_drawerHeader.scss +0 -7
- package/dist/scss/components/Dropdown/_dropdown.scss +2 -2
- package/dist/scss/components/FavoritingTileButton/_favoritingTileButton.scss +5 -0
- package/dist/scss/components/Filter/_filter.scss +23 -8
- package/dist/scss/components/Icon/_icon.stories.scss +1 -1
- package/dist/scss/components/IconButton/_iconButton.scss +3 -5
- package/dist/scss/components/Input/_input.scss +22 -14
- package/dist/scss/components/Link/_link.scss +13 -8
- package/dist/scss/components/LinkBlock/_linkBlock.scss +5 -1
- package/dist/scss/components/LinkList/_linkList.scss +8 -0
- package/dist/scss/components/Modal/_modal.scss +2 -2
- package/dist/scss/components/Navigation/NavigationItem/_navigationItem.scss +33 -14
- package/dist/scss/components/Navigation/NavigationItemTrigger/_navigationItemTrigger.scss +1 -1
- package/dist/scss/components/Navigation/NavigationList/_navigationList.scss +2 -2
- package/dist/scss/components/NotificationBanner/_notificationBanner.scss +4 -10
- package/dist/scss/components/Pagination/_pagination.scss +17 -1
- package/dist/scss/components/ProgressIndicator/_progressIndicator.scss +5 -0
- package/dist/scss/components/Search/SearchResults/_searchResults.scss +5 -0
- package/dist/scss/components/Search/_search.scss +9 -10
- package/dist/scss/components/Search/_searchButton.scss +0 -1
- package/dist/scss/components/Select/_select.scss +8 -3
- package/dist/scss/components/Tabs/_tabs.scss +4 -5
- package/dist/scss/components/Tags/_tags.scss +0 -2
- package/dist/scss/components/TextArea/_textArea.scss +2 -4
- package/dist/scss/components/TextSymbol/_textSymbol.scss +2 -2
- package/dist/scss/patterns/AccountPageHeader/_accountPageHeader.scss +4 -0
- package/dist/scss/patterns/BidSnapshot/_bidSnapshot.scss +9 -10
- package/dist/scss/patterns/CountryPicker/_countryPickerModal.scss +4 -0
- package/dist/scss/patterns/CountryPicker/_countryPickerOption.scss +3 -0
- package/dist/scss/patterns/CountryPicker/_countryPickerTrigger.scss +4 -7
- package/dist/scss/patterns/DetailList/_detailList.scss +4 -0
- package/dist/scss/patterns/FavoritesCollectionTile/_favoritesCollectionTile.scss +6 -8
- package/dist/scss/patterns/FilterMenu/_filterMenu.scss +2 -1
- package/dist/scss/patterns/FiltersInline/_filterButton.scss +11 -2
- package/dist/scss/patterns/FiltersInline/_filterDropdownMenu.scss +1 -9
- package/dist/scss/patterns/FiltersInline/_filtersInline.scss +5 -0
- package/dist/scss/patterns/HeroBanner/_heroBanner.scss +13 -6
- package/dist/scss/patterns/ObjectTile/_objectTile.scss +13 -12
- package/dist/scss/patterns/PhoneNumberInput/_phoneNumberInput.scss +9 -2
- package/dist/scss/patterns/SaleCard/_saleCard.scss +13 -22
- package/dist/scss/patterns/SaleHeaderBanner/_saleHeaderBanner.scss +16 -3
- package/dist/scss/patterns/Social/_social.scss +4 -1
- package/dist/scss/patterns/Subscribe/_subscribe.scss +3 -3
- package/dist/scss/patterns/TextBanner/_textBanner.scss +9 -3
- package/dist/scss/patterns/ViewingDetails/_viewingDetails.scss +15 -3
- package/dist/scss/site-furniture/Footer/_footer.scss +8 -2
- package/dist/scss/site-furniture/Header/_header.scss +8 -4
- package/dist/site-furniture/Footer/Footer.js +4 -4
- package/package.json +4 -3
package/dist/scss/_vars.scss
CHANGED
|
@@ -1,6 +1,76 @@
|
|
|
1
1
|
// prefix
|
|
2
2
|
$px: seldon;
|
|
3
3
|
|
|
4
|
+
// TODO: make design team to follow something like https://tailwindcss.com/docs/font-size
|
|
5
|
+
@mixin font-size-vars--sm {
|
|
6
|
+
--font-size-display-medium: 2.5rem; // 40px
|
|
7
|
+
--font-size-display-small: 2rem; // 32px
|
|
8
|
+
--font-size-heading-large: 1.5rem; // 24px
|
|
9
|
+
--font-size-heading-medium: 1.25rem; // 20px
|
|
10
|
+
--font-size-heading-small: 1rem; // 16px
|
|
11
|
+
--font-size-heading-extra-small: 0.75rem; // 12px
|
|
12
|
+
--font-size-body-large: 1rem; // 16px
|
|
13
|
+
--font-size-body-medium: 0.875rem; // 14px
|
|
14
|
+
--font-size-body-small: 0.75rem; // 12px
|
|
15
|
+
--font-size-label-large: 1rem; // 16px
|
|
16
|
+
--font-size-label-medium: 0.875rem; // 14px
|
|
17
|
+
--font-size-label-small: 0.75rem; // 12px
|
|
18
|
+
--font-size-link-stylised: 1rem; // 16px
|
|
19
|
+
--font-size-link-large: 1rem; // 16px
|
|
20
|
+
--font-size-link-medium: 0.875rem; // 14px
|
|
21
|
+
--font-size-link-small: 0.75rem; // 12px
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@mixin font-size-vars--md {
|
|
25
|
+
@include font-size-vars--sm;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@mixin font-size-vars--lg {
|
|
29
|
+
--font-size-display-medium: 3rem; // 48px
|
|
30
|
+
--font-size-display-small: 2.5rem; // 40px
|
|
31
|
+
--font-size-heading-large: 1.75rem; // 28px
|
|
32
|
+
--font-size-heading-medium: 1.5rem; // 24px
|
|
33
|
+
--font-size-heading-small: 1.25rem; // 20px
|
|
34
|
+
--font-size-heading-extra-small: 1rem; // 16px
|
|
35
|
+
--font-size-body-large: 1.25rem; // 20px
|
|
36
|
+
--font-size-body-medium: 1.125rem; // 18px
|
|
37
|
+
--font-size-body-small: 1rem; // 16px
|
|
38
|
+
--font-size-label-large: 1.25rem; // 20px
|
|
39
|
+
--font-size-label-medium: 1.125rem; // 18px
|
|
40
|
+
--font-size-label-small: 1rem; // 16px
|
|
41
|
+
--font-size-link-stylised: 1.25rem; // 20px
|
|
42
|
+
--font-size-link-large: 1.25rem; // 20px
|
|
43
|
+
--font-size-link-medium: 1.125rem; // 18px
|
|
44
|
+
--font-size-link-small: 1rem; // 16px
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
$font-size-xs: var(--font-size-xs);
|
|
48
|
+
$font-size-s: var(--font-size-s);
|
|
49
|
+
$font-size-m: var(--font-size-m);
|
|
50
|
+
$font-size-l: var(--font-size-l);
|
|
51
|
+
$font-size-xl: var(--font-size-xl);
|
|
52
|
+
$font-size-2xl: var(--font-size-2xl);
|
|
53
|
+
$font-size-3xl: var(--font-size-3xl);
|
|
54
|
+
$font-size-4xl: var(--font-size-4xl);
|
|
55
|
+
|
|
56
|
+
////////////////////////
|
|
57
|
+
$font-size-display-medium: var(--font-size-display-medium);
|
|
58
|
+
$font-size-display-small: var(--font-size-display-small);
|
|
59
|
+
$font-size-heading-large: var(--font-size-heading-large);
|
|
60
|
+
$font-size-heading-medium: var(--font-size-heading-medium);
|
|
61
|
+
$font-size-heading-small: var(--font-size-heading-small);
|
|
62
|
+
$font-size-heading-extra-small: var(--font-size-heading-extra-small);
|
|
63
|
+
$font-size-body-large: var(--font-size-body-large);
|
|
64
|
+
$font-size-body-medium: var(--font-size-body-medium);
|
|
65
|
+
$font-size-body-small: var(--font-size-body-small);
|
|
66
|
+
$font-size-label-large: var(--font-size-label-large);
|
|
67
|
+
$font-size-label-medium: var(--font-size-label-medium);
|
|
68
|
+
$font-size-label-small: var(--font-size-label-small);
|
|
69
|
+
$font-size-link-stylised: var(--font-size-link-stylised);
|
|
70
|
+
$font-size-link-large: var(--font-size-link-large);
|
|
71
|
+
$font-size-link-medium: var(--font-size-link-medium);
|
|
72
|
+
$font-size-link-small: var(--font-size-link-small);
|
|
73
|
+
|
|
4
74
|
////////////////////////
|
|
5
75
|
/// COlORS:
|
|
6
76
|
///////////////////////
|
|
@@ -168,9 +238,29 @@ $snwHeaderLink: 'snwHeaderLink';
|
|
|
168
238
|
$snwFlyoutLink: 'snwFlyoutLink';
|
|
169
239
|
$snwHeadingHero1: 'snwHeadingHero1';
|
|
170
240
|
$snwHeadingHero2: 'snwHeadingHero2';
|
|
241
|
+
|
|
242
|
+
// New Typography Variables
|
|
243
|
+
$displayMedium: 'displayMedium';
|
|
244
|
+
$displaySmall: 'displaySmall';
|
|
245
|
+
$headingLarge: 'headingLarge';
|
|
246
|
+
$headingMedium: 'headingMedium';
|
|
247
|
+
$headingSmall: 'headingSmall';
|
|
248
|
+
$headingExtraSmall: 'headingExtraSmall';
|
|
249
|
+
$bodyLarge: 'bodyLarge';
|
|
250
|
+
$bodyMedium: 'bodyMedium';
|
|
251
|
+
$bodySmall: 'bodySmall';
|
|
252
|
+
$labelLarge: 'labelLarge';
|
|
253
|
+
$labelMedium: 'labelMedium';
|
|
254
|
+
$labelSmall: 'labelSmall';
|
|
255
|
+
$linkStylised: 'linkStylised';
|
|
256
|
+
$linkLarge: 'linkLarge';
|
|
257
|
+
$linkMedium: 'linkMedium';
|
|
258
|
+
$linkSmall: 'linkSmall';
|
|
171
259
|
$text-tokens: $button, $link, $email, $label, $badge, $blockquote, $heading1, $heading2, $heading3, $heading4, $heading5,
|
|
172
260
|
$title1, $title2, $title3, $title4, $body1, $body2, $body3, $string1, $string2, $string3, $snwFlyoutLink,
|
|
173
|
-
$snwHeaderLink, $snwHeadingHero1, $snwHeadingHero2
|
|
261
|
+
$snwHeaderLink, $snwHeadingHero1, $snwHeadingHero2, $displayMedium, $displaySmall, $headingLarge, $headingMedium,
|
|
262
|
+
$headingSmall, $headingExtraSmall, $bodyLarge, $bodyMedium, $bodySmall, $labelLarge, $labelMedium, $labelSmall,
|
|
263
|
+
$linkStylised, $linkLarge, $linkMedium, $linkSmall;
|
|
174
264
|
|
|
175
265
|
////////////////////////
|
|
176
266
|
/// Breakpoint TOKENS to be used for min-width comparisons, make sure they match BREAKPOINTS in constants.ts
|
|
@@ -188,142 +278,6 @@ $breakpoint-snw-mobile: 768px;
|
|
|
188
278
|
///////////////////////
|
|
189
279
|
// @TODO: These tokens need to be aligned with the new values from the design system https://www.figma.com/design/hMu9IWH5N3KamJy8tLFdyV/EASEL-Compendium%3A-Tokens%2C-Components-%26-Patterns?node-id=7263-1361&node-type=canvas&m=dev
|
|
190
280
|
// Once we update ObjectTile and other components will need to be updated to match the new token.
|
|
191
|
-
:root {
|
|
192
|
-
--desktop-max-width: 120rem;
|
|
193
|
-
--quote-size: 1.5rem;
|
|
194
|
-
--quote-line-height: 2rem;
|
|
195
|
-
--heading-size1: 1.5rem;
|
|
196
|
-
--heading-line-height-size1: 1.75rem;
|
|
197
|
-
--heading-size2: 1.5rem;
|
|
198
|
-
--heading-line-height-size2: 1.75rem;
|
|
199
|
-
--heading-size3: 1.25rem;
|
|
200
|
-
--heading-line-height-size3: 1.5rem;
|
|
201
|
-
--heading-size4: 1rem;
|
|
202
|
-
--heading-line-height-size4: 1.25rem;
|
|
203
|
-
--heading-size5: 0.75rem;
|
|
204
|
-
--heading-line-height-size5: 1rem;
|
|
205
|
-
--string-size1: 1rem;
|
|
206
|
-
--string-line-height-size1: 1.25rem;
|
|
207
|
-
--string-size2: 0.75rem;
|
|
208
|
-
--string-line-height-size2: 1rem;
|
|
209
|
-
--string-size3: 0.5rem;
|
|
210
|
-
--string-line-height-size3: 0.75rem;
|
|
211
|
-
--body-size1: 1rem;
|
|
212
|
-
--body-line-height-size1: 1.5rem;
|
|
213
|
-
--body-size2: 0.75rem;
|
|
214
|
-
--body-line-height-size2: 1.25rem;
|
|
215
|
-
--body-size3: 0.5rem;
|
|
216
|
-
--body-line-height-size3: 1rem;
|
|
217
|
-
--label-size1: 1rem;
|
|
218
|
-
--label-size2: 0.75rem;
|
|
219
|
-
--label-size3: 0.56rem;
|
|
220
|
-
--label-size4: 0.56rem;
|
|
221
|
-
--link-label-size: 0.75rem;
|
|
222
|
-
--link-label-line-height: 0.75rem;
|
|
223
|
-
--button-label-size: 0.75rem;
|
|
224
|
-
--button-label-line-height: 1rem;
|
|
225
|
-
--button-tertiary-height: 1.75rem;
|
|
226
|
-
--badge-label-size: 0.5rem;
|
|
227
|
-
--badge-label-line-height: 0.67rem;
|
|
228
|
-
--snw-header-link-size: 1rem;
|
|
229
|
-
--snw-header-link-line-height: 1.5rem;
|
|
230
|
-
--snw-flyout-link-size: 1rem;
|
|
231
|
-
--snw-flyout-link-line-height: 1.75rem;
|
|
232
|
-
--snw-heading-hero-size1: 2rem;
|
|
233
|
-
--snw-heading-hero-line-height-size1: 2.375rem;
|
|
234
|
-
--snw-heading-hero-size2: 1.625rem;
|
|
235
|
-
--snw-heading-hero-line-height-size2: 1.9375rem;
|
|
236
|
-
--snw-note-size: 0.75rem;
|
|
237
|
-
--snw-note-line-height: 1rem;
|
|
238
|
-
|
|
239
|
-
@media (min-width: $breakpoint-md) {
|
|
240
|
-
--quote-size: 1.75rem;
|
|
241
|
-
--quote-line-height: 2.25rem;
|
|
242
|
-
--heading-size1: 1.75rem;
|
|
243
|
-
--heading-line-height-size1: 2rem;
|
|
244
|
-
--heading-size2: 1.75rem;
|
|
245
|
-
--heading-line-height-size2: 2rem;
|
|
246
|
-
--heading-size3: 1.5rem;
|
|
247
|
-
--heading-line-height-size3: 1.75rem;
|
|
248
|
-
--heading-size4: 1.25rem;
|
|
249
|
-
--heading-line-height-size4: 1.5rem;
|
|
250
|
-
--heading-size5: 1rem;
|
|
251
|
-
--heading-line-height-size5: 1.25rem;
|
|
252
|
-
--string-size1: 1.25rem;
|
|
253
|
-
--string-line-height-size1: 1.5rem;
|
|
254
|
-
--string-size2: 1rem;
|
|
255
|
-
--string-line-height-size2: 1.25rem;
|
|
256
|
-
--string-size3: 0.75rem;
|
|
257
|
-
--string-line-height-size3: 1rem;
|
|
258
|
-
--body-size1: 1.25rem;
|
|
259
|
-
--body-line-height-size1: 1.75rem;
|
|
260
|
-
--body-size2: 1rem;
|
|
261
|
-
--body-line-height-size2: 1.5rem;
|
|
262
|
-
--body-size3: 0.75rem;
|
|
263
|
-
--body-line-height-size3: 1.25rem;
|
|
264
|
-
--label-size1: 1.25rem;
|
|
265
|
-
--label-size2: 1rem;
|
|
266
|
-
--label-size3: 0.75rem;
|
|
267
|
-
--label-size4: 0.75rem;
|
|
268
|
-
--link-label-size: 1rem;
|
|
269
|
-
--link-label-line-height: 1rem;
|
|
270
|
-
--button-label-size: 1rem;
|
|
271
|
-
--button-label-line-height: 1.25rem;
|
|
272
|
-
--badge-label-size: 0.75rem;
|
|
273
|
-
--badge-label-line-height: 1rem;
|
|
274
|
-
--snw-header-link-size: 1rem;
|
|
275
|
-
--snw-header-link-line-height: 1.5rem;
|
|
276
|
-
--snw-flyout-link-size: 0.875rem;
|
|
277
|
-
--snw-flyout-link-line-height: 1.75rem;
|
|
278
|
-
--snw-heading-hero-size1: 2.375rem;
|
|
279
|
-
--snw-heading-hero-line-height-size1: 2.875rem;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
@media (min-width: $breakpoint-lg) {
|
|
283
|
-
--snw-flyout-link-size: 0.875rem;
|
|
284
|
-
--snw-flyout-link-line-height: 1.75rem;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
@media (min-width: $breakpoint-xl) {
|
|
288
|
-
--quote-size: 2rem;
|
|
289
|
-
--quote-line-height: 2.5rem;
|
|
290
|
-
--heading-size1: 2rem;
|
|
291
|
-
--heading-line-height-size1: 2.25rem;
|
|
292
|
-
--heading-size2: 2rem;
|
|
293
|
-
--heading-line-height-size2: 2.25rem;
|
|
294
|
-
--heading-size3: 1.75rem;
|
|
295
|
-
--heading-line-height-size3: 2rem;
|
|
296
|
-
--heading-size4: 1.5rem;
|
|
297
|
-
--heading-line-height-size4: 1.75rem;
|
|
298
|
-
--heading-size5: 1.25rem;
|
|
299
|
-
--heading-line-height-size5: 1.5rem;
|
|
300
|
-
--string-size1: 1.5rem;
|
|
301
|
-
--string-line-height-size1: 1.75rem;
|
|
302
|
-
--string-size2: 1.25rem;
|
|
303
|
-
--string-line-height-size2: 1.5rem;
|
|
304
|
-
--string-size3: 1rem;
|
|
305
|
-
--string-line-height-size3: 1.25rem;
|
|
306
|
-
--body-size1: 1.5rem;
|
|
307
|
-
--body-line-height-size1: 2rem;
|
|
308
|
-
--body-size2: 1.25rem;
|
|
309
|
-
--body-line-height-size2: 1.75rem;
|
|
310
|
-
--body-size3: 1rem;
|
|
311
|
-
--body-line-height-size3: 1.5rem;
|
|
312
|
-
--label-size1: 1.56rem;
|
|
313
|
-
--label-size2: 1.25rem;
|
|
314
|
-
--label-size3: 1rem;
|
|
315
|
-
--link-label-size: 1.25rem;
|
|
316
|
-
--link-label-line-height: 1.25rem;
|
|
317
|
-
--button-label-size: 1.25rem;
|
|
318
|
-
--button-label-line-height: 1.5rem;
|
|
319
|
-
--badge-label-size: 1rem;
|
|
320
|
-
--badge-label-line-height: 1.5rem;
|
|
321
|
-
--snw-header-link-size: 1.125rem;
|
|
322
|
-
--snw-header-link-line-height: 1.75rem;
|
|
323
|
-
--snw-flyout-link-size: 1.125rem;
|
|
324
|
-
--snw-flyout-link-line-height: 2.125rem;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
281
|
|
|
328
282
|
// TITLE
|
|
329
283
|
$title-size1: var(--heading-size1);
|
|
@@ -360,7 +314,7 @@ $string-size3: var(--string-size3);
|
|
|
360
314
|
$string-line-height-size3: var(--string-line-height-size3);
|
|
361
315
|
|
|
362
316
|
// LABELS
|
|
363
|
-
$email-label-size: var(--
|
|
317
|
+
$email-label-size: var(--font-size-link-medium);
|
|
364
318
|
$text-label-size: var(--label-size3);
|
|
365
319
|
$badge-label-size: var(--label-size3);
|
|
366
320
|
$link-label-size: var(--link-label-size);
|
|
@@ -385,46 +339,6 @@ $snw-heading-hero-line-height2: var(--snw-heading-hero-line-height-size2);
|
|
|
385
339
|
|
|
386
340
|
// SNOWFLAKES
|
|
387
341
|
$snowflake-menu-padding: 1.25rem;
|
|
388
|
-
$snowflake-note-size: var(--snw-note-size);
|
|
389
|
-
$snowflake-note-line-height: var(--snw-note-line-height);
|
|
390
|
-
|
|
391
|
-
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
392
|
-
:root {
|
|
393
|
-
--snw-button-padding: 0.8125rem;
|
|
394
|
-
--spacing-micro: 0.25rem;
|
|
395
|
-
--spacing-xsm: 0.5rem;
|
|
396
|
-
--spacing-sm: 0.75rem;
|
|
397
|
-
--spacing-md: 1.75rem;
|
|
398
|
-
--spacing-lg: 2.75rem;
|
|
399
|
-
--spacing-xl: 3.75rem;
|
|
400
|
-
--spacing-xxl: 4.75rem;
|
|
401
|
-
--spacing-xxxl: 5.75rem;
|
|
402
|
-
|
|
403
|
-
@media (min-width: $breakpoint-md) {
|
|
404
|
-
--snw-button-padding: 0.8125rem;
|
|
405
|
-
--spacing-micro: 0.25rem;
|
|
406
|
-
--spacing-xsm: 0.5rem;
|
|
407
|
-
--spacing-sm: 1rem;
|
|
408
|
-
--spacing-md: 2rem;
|
|
409
|
-
--spacing-lg: 3rem;
|
|
410
|
-
--spacing-xl: 4rem;
|
|
411
|
-
--spacing-xxl: 5rem;
|
|
412
|
-
--spacing-xxxl: 6rem;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
@media (min-width: $breakpoint-xl) {
|
|
416
|
-
--snw-button-padding: 0.813rem;
|
|
417
|
-
--spacing-micro: 0.5rem;
|
|
418
|
-
--spacing-xsm: 0.75rem;
|
|
419
|
-
--spacing-sm: 1.25rem;
|
|
420
|
-
--spacing-md: 2.25rem;
|
|
421
|
-
--spacing-lg: 3.25rem;
|
|
422
|
-
--spacing-xl: 4.25rem;
|
|
423
|
-
--spacing-xxl: 5.25rem;
|
|
424
|
-
--spacing-xxxl: 6.25rem;
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
|
|
428
342
|
$spacing-micro: var(--spacing-micro);
|
|
429
343
|
$spacing-xsm: var(--spacing-xsm);
|
|
430
344
|
$spacing-sm: var(--spacing-sm);
|
|
@@ -455,25 +369,6 @@ $margin-lg: var(--spacing-lg);
|
|
|
455
369
|
$margin-xl: var(--spacing-xl);
|
|
456
370
|
$margin-xxl: var(--spacing-xxl);
|
|
457
371
|
|
|
458
|
-
////////////////////////
|
|
459
|
-
/// HEADER TOKENS:
|
|
460
|
-
///////////////////////
|
|
461
|
-
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
462
|
-
:root {
|
|
463
|
-
--header-height: 56px; // ideally we would calculate the size from the current text size plus spacing components so that it scales with the text size and spacing
|
|
464
|
-
--search-size: 2.625rem; // This should be calculated from the scaling text and scaling spacing tokens instead of hardcoding in case they change
|
|
465
|
-
--banner-height: 0px;
|
|
466
|
-
|
|
467
|
-
@media (min-width: $breakpoint-md) {
|
|
468
|
-
--header-height: 123px; // ideally we would calculate the size from the current text size plus spacing components so that it scales with the text size and spacing
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
@media (min-width: $breakpoint-xl) {
|
|
472
|
-
--header-height: 135px; // ideally we would calculate the size from the current text size plus spacing components so that it scales with the text size and spacing
|
|
473
|
-
--search-size: 2.875rem; // This should be calculated from the scaling text and scaling spacing tokens instead of hardcoding in case they change
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
|
|
477
372
|
////////////////////////
|
|
478
373
|
/// max-site-width TOKEN:
|
|
479
374
|
///////////////////////
|
package/dist/scss/_vars.scss.js
CHANGED
|
@@ -1,6 +1,76 @@
|
|
|
1
|
-
const
|
|
1
|
+
const n = `// prefix
|
|
2
2
|
$px: seldon;
|
|
3
3
|
|
|
4
|
+
// TODO: make design team to follow something like https://tailwindcss.com/docs/font-size
|
|
5
|
+
@mixin font-size-vars--sm {
|
|
6
|
+
--font-size-display-medium: 2.5rem; // 40px
|
|
7
|
+
--font-size-display-small: 2rem; // 32px
|
|
8
|
+
--font-size-heading-large: 1.5rem; // 24px
|
|
9
|
+
--font-size-heading-medium: 1.25rem; // 20px
|
|
10
|
+
--font-size-heading-small: 1rem; // 16px
|
|
11
|
+
--font-size-heading-extra-small: 0.75rem; // 12px
|
|
12
|
+
--font-size-body-large: 1rem; // 16px
|
|
13
|
+
--font-size-body-medium: 0.875rem; // 14px
|
|
14
|
+
--font-size-body-small: 0.75rem; // 12px
|
|
15
|
+
--font-size-label-large: 1rem; // 16px
|
|
16
|
+
--font-size-label-medium: 0.875rem; // 14px
|
|
17
|
+
--font-size-label-small: 0.75rem; // 12px
|
|
18
|
+
--font-size-link-stylised: 1rem; // 16px
|
|
19
|
+
--font-size-link-large: 1rem; // 16px
|
|
20
|
+
--font-size-link-medium: 0.875rem; // 14px
|
|
21
|
+
--font-size-link-small: 0.75rem; // 12px
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@mixin font-size-vars--md {
|
|
25
|
+
@include font-size-vars--sm;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@mixin font-size-vars--lg {
|
|
29
|
+
--font-size-display-medium: 3rem; // 48px
|
|
30
|
+
--font-size-display-small: 2.5rem; // 40px
|
|
31
|
+
--font-size-heading-large: 1.75rem; // 28px
|
|
32
|
+
--font-size-heading-medium: 1.5rem; // 24px
|
|
33
|
+
--font-size-heading-small: 1.25rem; // 20px
|
|
34
|
+
--font-size-heading-extra-small: 1rem; // 16px
|
|
35
|
+
--font-size-body-large: 1.25rem; // 20px
|
|
36
|
+
--font-size-body-medium: 1.125rem; // 18px
|
|
37
|
+
--font-size-body-small: 1rem; // 16px
|
|
38
|
+
--font-size-label-large: 1.25rem; // 20px
|
|
39
|
+
--font-size-label-medium: 1.125rem; // 18px
|
|
40
|
+
--font-size-label-small: 1rem; // 16px
|
|
41
|
+
--font-size-link-stylised: 1.25rem; // 20px
|
|
42
|
+
--font-size-link-large: 1.25rem; // 20px
|
|
43
|
+
--font-size-link-medium: 1.125rem; // 18px
|
|
44
|
+
--font-size-link-small: 1rem; // 16px
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
$font-size-xs: var(--font-size-xs);
|
|
48
|
+
$font-size-s: var(--font-size-s);
|
|
49
|
+
$font-size-m: var(--font-size-m);
|
|
50
|
+
$font-size-l: var(--font-size-l);
|
|
51
|
+
$font-size-xl: var(--font-size-xl);
|
|
52
|
+
$font-size-2xl: var(--font-size-2xl);
|
|
53
|
+
$font-size-3xl: var(--font-size-3xl);
|
|
54
|
+
$font-size-4xl: var(--font-size-4xl);
|
|
55
|
+
|
|
56
|
+
////////////////////////
|
|
57
|
+
$font-size-display-medium: var(--font-size-display-medium);
|
|
58
|
+
$font-size-display-small: var(--font-size-display-small);
|
|
59
|
+
$font-size-heading-large: var(--font-size-heading-large);
|
|
60
|
+
$font-size-heading-medium: var(--font-size-heading-medium);
|
|
61
|
+
$font-size-heading-small: var(--font-size-heading-small);
|
|
62
|
+
$font-size-heading-extra-small: var(--font-size-heading-extra-small);
|
|
63
|
+
$font-size-body-large: var(--font-size-body-large);
|
|
64
|
+
$font-size-body-medium: var(--font-size-body-medium);
|
|
65
|
+
$font-size-body-small: var(--font-size-body-small);
|
|
66
|
+
$font-size-label-large: var(--font-size-label-large);
|
|
67
|
+
$font-size-label-medium: var(--font-size-label-medium);
|
|
68
|
+
$font-size-label-small: var(--font-size-label-small);
|
|
69
|
+
$font-size-link-stylised: var(--font-size-link-stylised);
|
|
70
|
+
$font-size-link-large: var(--font-size-link-large);
|
|
71
|
+
$font-size-link-medium: var(--font-size-link-medium);
|
|
72
|
+
$font-size-link-small: var(--font-size-link-small);
|
|
73
|
+
|
|
4
74
|
////////////////////////
|
|
5
75
|
/// COlORS:
|
|
6
76
|
///////////////////////
|
|
@@ -168,9 +238,29 @@ $snwHeaderLink: 'snwHeaderLink';
|
|
|
168
238
|
$snwFlyoutLink: 'snwFlyoutLink';
|
|
169
239
|
$snwHeadingHero1: 'snwHeadingHero1';
|
|
170
240
|
$snwHeadingHero2: 'snwHeadingHero2';
|
|
241
|
+
|
|
242
|
+
// New Typography Variables
|
|
243
|
+
$displayMedium: 'displayMedium';
|
|
244
|
+
$displaySmall: 'displaySmall';
|
|
245
|
+
$headingLarge: 'headingLarge';
|
|
246
|
+
$headingMedium: 'headingMedium';
|
|
247
|
+
$headingSmall: 'headingSmall';
|
|
248
|
+
$headingExtraSmall: 'headingExtraSmall';
|
|
249
|
+
$bodyLarge: 'bodyLarge';
|
|
250
|
+
$bodyMedium: 'bodyMedium';
|
|
251
|
+
$bodySmall: 'bodySmall';
|
|
252
|
+
$labelLarge: 'labelLarge';
|
|
253
|
+
$labelMedium: 'labelMedium';
|
|
254
|
+
$labelSmall: 'labelSmall';
|
|
255
|
+
$linkStylised: 'linkStylised';
|
|
256
|
+
$linkLarge: 'linkLarge';
|
|
257
|
+
$linkMedium: 'linkMedium';
|
|
258
|
+
$linkSmall: 'linkSmall';
|
|
171
259
|
$text-tokens: $button, $link, $email, $label, $badge, $blockquote, $heading1, $heading2, $heading3, $heading4, $heading5,
|
|
172
260
|
$title1, $title2, $title3, $title4, $body1, $body2, $body3, $string1, $string2, $string3, $snwFlyoutLink,
|
|
173
|
-
$snwHeaderLink, $snwHeadingHero1, $snwHeadingHero2
|
|
261
|
+
$snwHeaderLink, $snwHeadingHero1, $snwHeadingHero2, $displayMedium, $displaySmall, $headingLarge, $headingMedium,
|
|
262
|
+
$headingSmall, $headingExtraSmall, $bodyLarge, $bodyMedium, $bodySmall, $labelLarge, $labelMedium, $labelSmall,
|
|
263
|
+
$linkStylised, $linkLarge, $linkMedium, $linkSmall;
|
|
174
264
|
|
|
175
265
|
////////////////////////
|
|
176
266
|
/// Breakpoint TOKENS to be used for min-width comparisons, make sure they match BREAKPOINTS in constants.ts
|
|
@@ -188,142 +278,6 @@ $breakpoint-snw-mobile: 768px;
|
|
|
188
278
|
///////////////////////
|
|
189
279
|
// @TODO: These tokens need to be aligned with the new values from the design system https://www.figma.com/design/hMu9IWH5N3KamJy8tLFdyV/EASEL-Compendium%3A-Tokens%2C-Components-%26-Patterns?node-id=7263-1361&node-type=canvas&m=dev
|
|
190
280
|
// Once we update ObjectTile and other components will need to be updated to match the new token.
|
|
191
|
-
:root {
|
|
192
|
-
--desktop-max-width: 120rem;
|
|
193
|
-
--quote-size: 1.5rem;
|
|
194
|
-
--quote-line-height: 2rem;
|
|
195
|
-
--heading-size1: 1.5rem;
|
|
196
|
-
--heading-line-height-size1: 1.75rem;
|
|
197
|
-
--heading-size2: 1.5rem;
|
|
198
|
-
--heading-line-height-size2: 1.75rem;
|
|
199
|
-
--heading-size3: 1.25rem;
|
|
200
|
-
--heading-line-height-size3: 1.5rem;
|
|
201
|
-
--heading-size4: 1rem;
|
|
202
|
-
--heading-line-height-size4: 1.25rem;
|
|
203
|
-
--heading-size5: 0.75rem;
|
|
204
|
-
--heading-line-height-size5: 1rem;
|
|
205
|
-
--string-size1: 1rem;
|
|
206
|
-
--string-line-height-size1: 1.25rem;
|
|
207
|
-
--string-size2: 0.75rem;
|
|
208
|
-
--string-line-height-size2: 1rem;
|
|
209
|
-
--string-size3: 0.5rem;
|
|
210
|
-
--string-line-height-size3: 0.75rem;
|
|
211
|
-
--body-size1: 1rem;
|
|
212
|
-
--body-line-height-size1: 1.5rem;
|
|
213
|
-
--body-size2: 0.75rem;
|
|
214
|
-
--body-line-height-size2: 1.25rem;
|
|
215
|
-
--body-size3: 0.5rem;
|
|
216
|
-
--body-line-height-size3: 1rem;
|
|
217
|
-
--label-size1: 1rem;
|
|
218
|
-
--label-size2: 0.75rem;
|
|
219
|
-
--label-size3: 0.56rem;
|
|
220
|
-
--label-size4: 0.56rem;
|
|
221
|
-
--link-label-size: 0.75rem;
|
|
222
|
-
--link-label-line-height: 0.75rem;
|
|
223
|
-
--button-label-size: 0.75rem;
|
|
224
|
-
--button-label-line-height: 1rem;
|
|
225
|
-
--button-tertiary-height: 1.75rem;
|
|
226
|
-
--badge-label-size: 0.5rem;
|
|
227
|
-
--badge-label-line-height: 0.67rem;
|
|
228
|
-
--snw-header-link-size: 1rem;
|
|
229
|
-
--snw-header-link-line-height: 1.5rem;
|
|
230
|
-
--snw-flyout-link-size: 1rem;
|
|
231
|
-
--snw-flyout-link-line-height: 1.75rem;
|
|
232
|
-
--snw-heading-hero-size1: 2rem;
|
|
233
|
-
--snw-heading-hero-line-height-size1: 2.375rem;
|
|
234
|
-
--snw-heading-hero-size2: 1.625rem;
|
|
235
|
-
--snw-heading-hero-line-height-size2: 1.9375rem;
|
|
236
|
-
--snw-note-size: 0.75rem;
|
|
237
|
-
--snw-note-line-height: 1rem;
|
|
238
|
-
|
|
239
|
-
@media (min-width: $breakpoint-md) {
|
|
240
|
-
--quote-size: 1.75rem;
|
|
241
|
-
--quote-line-height: 2.25rem;
|
|
242
|
-
--heading-size1: 1.75rem;
|
|
243
|
-
--heading-line-height-size1: 2rem;
|
|
244
|
-
--heading-size2: 1.75rem;
|
|
245
|
-
--heading-line-height-size2: 2rem;
|
|
246
|
-
--heading-size3: 1.5rem;
|
|
247
|
-
--heading-line-height-size3: 1.75rem;
|
|
248
|
-
--heading-size4: 1.25rem;
|
|
249
|
-
--heading-line-height-size4: 1.5rem;
|
|
250
|
-
--heading-size5: 1rem;
|
|
251
|
-
--heading-line-height-size5: 1.25rem;
|
|
252
|
-
--string-size1: 1.25rem;
|
|
253
|
-
--string-line-height-size1: 1.5rem;
|
|
254
|
-
--string-size2: 1rem;
|
|
255
|
-
--string-line-height-size2: 1.25rem;
|
|
256
|
-
--string-size3: 0.75rem;
|
|
257
|
-
--string-line-height-size3: 1rem;
|
|
258
|
-
--body-size1: 1.25rem;
|
|
259
|
-
--body-line-height-size1: 1.75rem;
|
|
260
|
-
--body-size2: 1rem;
|
|
261
|
-
--body-line-height-size2: 1.5rem;
|
|
262
|
-
--body-size3: 0.75rem;
|
|
263
|
-
--body-line-height-size3: 1.25rem;
|
|
264
|
-
--label-size1: 1.25rem;
|
|
265
|
-
--label-size2: 1rem;
|
|
266
|
-
--label-size3: 0.75rem;
|
|
267
|
-
--label-size4: 0.75rem;
|
|
268
|
-
--link-label-size: 1rem;
|
|
269
|
-
--link-label-line-height: 1rem;
|
|
270
|
-
--button-label-size: 1rem;
|
|
271
|
-
--button-label-line-height: 1.25rem;
|
|
272
|
-
--badge-label-size: 0.75rem;
|
|
273
|
-
--badge-label-line-height: 1rem;
|
|
274
|
-
--snw-header-link-size: 1rem;
|
|
275
|
-
--snw-header-link-line-height: 1.5rem;
|
|
276
|
-
--snw-flyout-link-size: 0.875rem;
|
|
277
|
-
--snw-flyout-link-line-height: 1.75rem;
|
|
278
|
-
--snw-heading-hero-size1: 2.375rem;
|
|
279
|
-
--snw-heading-hero-line-height-size1: 2.875rem;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
@media (min-width: $breakpoint-lg) {
|
|
283
|
-
--snw-flyout-link-size: 0.875rem;
|
|
284
|
-
--snw-flyout-link-line-height: 1.75rem;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
@media (min-width: $breakpoint-xl) {
|
|
288
|
-
--quote-size: 2rem;
|
|
289
|
-
--quote-line-height: 2.5rem;
|
|
290
|
-
--heading-size1: 2rem;
|
|
291
|
-
--heading-line-height-size1: 2.25rem;
|
|
292
|
-
--heading-size2: 2rem;
|
|
293
|
-
--heading-line-height-size2: 2.25rem;
|
|
294
|
-
--heading-size3: 1.75rem;
|
|
295
|
-
--heading-line-height-size3: 2rem;
|
|
296
|
-
--heading-size4: 1.5rem;
|
|
297
|
-
--heading-line-height-size4: 1.75rem;
|
|
298
|
-
--heading-size5: 1.25rem;
|
|
299
|
-
--heading-line-height-size5: 1.5rem;
|
|
300
|
-
--string-size1: 1.5rem;
|
|
301
|
-
--string-line-height-size1: 1.75rem;
|
|
302
|
-
--string-size2: 1.25rem;
|
|
303
|
-
--string-line-height-size2: 1.5rem;
|
|
304
|
-
--string-size3: 1rem;
|
|
305
|
-
--string-line-height-size3: 1.25rem;
|
|
306
|
-
--body-size1: 1.5rem;
|
|
307
|
-
--body-line-height-size1: 2rem;
|
|
308
|
-
--body-size2: 1.25rem;
|
|
309
|
-
--body-line-height-size2: 1.75rem;
|
|
310
|
-
--body-size3: 1rem;
|
|
311
|
-
--body-line-height-size3: 1.5rem;
|
|
312
|
-
--label-size1: 1.56rem;
|
|
313
|
-
--label-size2: 1.25rem;
|
|
314
|
-
--label-size3: 1rem;
|
|
315
|
-
--link-label-size: 1.25rem;
|
|
316
|
-
--link-label-line-height: 1.25rem;
|
|
317
|
-
--button-label-size: 1.25rem;
|
|
318
|
-
--button-label-line-height: 1.5rem;
|
|
319
|
-
--badge-label-size: 1rem;
|
|
320
|
-
--badge-label-line-height: 1.5rem;
|
|
321
|
-
--snw-header-link-size: 1.125rem;
|
|
322
|
-
--snw-header-link-line-height: 1.75rem;
|
|
323
|
-
--snw-flyout-link-size: 1.125rem;
|
|
324
|
-
--snw-flyout-link-line-height: 2.125rem;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
281
|
|
|
328
282
|
// TITLE
|
|
329
283
|
$title-size1: var(--heading-size1);
|
|
@@ -360,7 +314,7 @@ $string-size3: var(--string-size3);
|
|
|
360
314
|
$string-line-height-size3: var(--string-line-height-size3);
|
|
361
315
|
|
|
362
316
|
// LABELS
|
|
363
|
-
$email-label-size: var(--
|
|
317
|
+
$email-label-size: var(--font-size-link-medium);
|
|
364
318
|
$text-label-size: var(--label-size3);
|
|
365
319
|
$badge-label-size: var(--label-size3);
|
|
366
320
|
$link-label-size: var(--link-label-size);
|
|
@@ -385,46 +339,6 @@ $snw-heading-hero-line-height2: var(--snw-heading-hero-line-height-size2);
|
|
|
385
339
|
|
|
386
340
|
// SNOWFLAKES
|
|
387
341
|
$snowflake-menu-padding: 1.25rem;
|
|
388
|
-
$snowflake-note-size: var(--snw-note-size);
|
|
389
|
-
$snowflake-note-line-height: var(--snw-note-line-height);
|
|
390
|
-
|
|
391
|
-
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
392
|
-
:root {
|
|
393
|
-
--snw-button-padding: 0.8125rem;
|
|
394
|
-
--spacing-micro: 0.25rem;
|
|
395
|
-
--spacing-xsm: 0.5rem;
|
|
396
|
-
--spacing-sm: 0.75rem;
|
|
397
|
-
--spacing-md: 1.75rem;
|
|
398
|
-
--spacing-lg: 2.75rem;
|
|
399
|
-
--spacing-xl: 3.75rem;
|
|
400
|
-
--spacing-xxl: 4.75rem;
|
|
401
|
-
--spacing-xxxl: 5.75rem;
|
|
402
|
-
|
|
403
|
-
@media (min-width: $breakpoint-md) {
|
|
404
|
-
--snw-button-padding: 0.8125rem;
|
|
405
|
-
--spacing-micro: 0.25rem;
|
|
406
|
-
--spacing-xsm: 0.5rem;
|
|
407
|
-
--spacing-sm: 1rem;
|
|
408
|
-
--spacing-md: 2rem;
|
|
409
|
-
--spacing-lg: 3rem;
|
|
410
|
-
--spacing-xl: 4rem;
|
|
411
|
-
--spacing-xxl: 5rem;
|
|
412
|
-
--spacing-xxxl: 6rem;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
@media (min-width: $breakpoint-xl) {
|
|
416
|
-
--snw-button-padding: 0.813rem;
|
|
417
|
-
--spacing-micro: 0.5rem;
|
|
418
|
-
--spacing-xsm: 0.75rem;
|
|
419
|
-
--spacing-sm: 1.25rem;
|
|
420
|
-
--spacing-md: 2.25rem;
|
|
421
|
-
--spacing-lg: 3.25rem;
|
|
422
|
-
--spacing-xl: 4.25rem;
|
|
423
|
-
--spacing-xxl: 5.25rem;
|
|
424
|
-
--spacing-xxxl: 6.25rem;
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
|
|
428
342
|
$spacing-micro: var(--spacing-micro);
|
|
429
343
|
$spacing-xsm: var(--spacing-xsm);
|
|
430
344
|
$spacing-sm: var(--spacing-sm);
|
|
@@ -455,25 +369,6 @@ $margin-lg: var(--spacing-lg);
|
|
|
455
369
|
$margin-xl: var(--spacing-xl);
|
|
456
370
|
$margin-xxl: var(--spacing-xxl);
|
|
457
371
|
|
|
458
|
-
////////////////////////
|
|
459
|
-
/// HEADER TOKENS:
|
|
460
|
-
///////////////////////
|
|
461
|
-
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
462
|
-
:root {
|
|
463
|
-
--header-height: 56px; // ideally we would calculate the size from the current text size plus spacing components so that it scales with the text size and spacing
|
|
464
|
-
--search-size: 2.625rem; // This should be calculated from the scaling text and scaling spacing tokens instead of hardcoding in case they change
|
|
465
|
-
--banner-height: 0px;
|
|
466
|
-
|
|
467
|
-
@media (min-width: $breakpoint-md) {
|
|
468
|
-
--header-height: 123px; // ideally we would calculate the size from the current text size plus spacing components so that it scales with the text size and spacing
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
@media (min-width: $breakpoint-xl) {
|
|
472
|
-
--header-height: 135px; // ideally we would calculate the size from the current text size plus spacing components so that it scales with the text size and spacing
|
|
473
|
-
--search-size: 2.875rem; // This should be calculated from the scaling text and scaling spacing tokens instead of hardcoding in case they change
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
|
|
477
372
|
////////////////////////
|
|
478
373
|
/// max-site-width TOKEN:
|
|
479
374
|
///////////////////////
|
|
@@ -527,5 +422,5 @@ $radius-2xl: 24px;
|
|
|
527
422
|
$radius-3xl: 40px;
|
|
528
423
|
`;
|
|
529
424
|
export {
|
|
530
|
-
|
|
425
|
+
n as default
|
|
531
426
|
};
|