@skyscanner/backpack-web 31.10.1 → 32.0.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.
Files changed (184) hide show
  1. package/bpk-component-accordion/src/BpkAccordion.module.css +2 -2
  2. package/bpk-component-accordion/src/BpkAccordionItem.module.css +2 -2
  3. package/bpk-component-aria-live/src/BpkAriaLive.module.css +2 -2
  4. package/bpk-component-autosuggest/src/BpkAutosuggest.module.css +2 -2
  5. package/bpk-component-badge/index.js +1 -3
  6. package/bpk-component-badge/src/BpkBadge.module.css +2 -2
  7. package/bpk-component-banner-alert/src/BpkAnimateAndFade.module.css +2 -2
  8. package/bpk-component-banner-alert/src/BpkBannerAlert.module.css +2 -2
  9. package/bpk-component-barchart/src/BpkBarchart.module.css +2 -2
  10. package/bpk-component-barchart/src/BpkBarchartBar.module.css +2 -2
  11. package/bpk-component-barchart/src/BpkChartAxis.module.css +2 -2
  12. package/bpk-component-barchart/src/BpkChartDataTable.module.css +2 -2
  13. package/bpk-component-barchart/src/BpkChartGridLines.module.css +2 -2
  14. package/bpk-component-blockquote/src/BpkBlockquote.module.css +2 -2
  15. package/bpk-component-boilerplate/src/BpkBoilerplate.module.css +2 -2
  16. package/bpk-component-bottom-sheet/src/BpkBottomSheet.module.css +2 -2
  17. package/bpk-component-bottom-sheet/src/BpkBottomSheetInner.module.css +2 -2
  18. package/bpk-component-breadcrumb/src/BpkBreadcrumb.module.css +2 -2
  19. package/bpk-component-breadcrumb/src/BpkBreadcrumbItem.module.css +2 -2
  20. package/bpk-component-button/src/BpkButtonBase.module.css +2 -2
  21. package/bpk-component-button/src/BpkButtonDestructive.module.css +2 -2
  22. package/bpk-component-button/src/BpkButtonFeatured.module.css +2 -2
  23. package/bpk-component-button/src/BpkButtonLink.module.css +2 -2
  24. package/bpk-component-button/src/BpkButtonLinkOnDark.module.css +2 -2
  25. package/bpk-component-button/src/BpkButtonPrimaryOnDark.module.css +2 -2
  26. package/bpk-component-button/src/BpkButtonPrimaryOnLight.module.css +2 -2
  27. package/bpk-component-button/src/BpkButtonSecondary.module.css +2 -2
  28. package/bpk-component-button/src/BpkButtonSecondaryOnDark.module.css +2 -2
  29. package/bpk-component-button/src/BpkButtonV2/BpkButton.module.css +2 -2
  30. package/bpk-component-calendar/src/BpkCalendar.module.css +2 -2
  31. package/bpk-component-calendar/src/BpkCalendarDate.module.css +2 -2
  32. package/bpk-component-calendar/src/BpkCalendarGrid.module.css +2 -2
  33. package/bpk-component-calendar/src/BpkCalendarGridHeader.module.css +2 -2
  34. package/bpk-component-calendar/src/BpkCalendarGridTransition.module.css +2 -2
  35. package/bpk-component-calendar/src/BpkCalendarNav.module.css +2 -2
  36. package/bpk-component-card/src/BpkCard.module.css +2 -2
  37. package/bpk-component-card/src/BpkCardWrapper.module.css +2 -2
  38. package/bpk-component-card/src/BpkDividedCard.module.css +2 -2
  39. package/bpk-component-card-button/src/BpkSaveButton.module.css +2 -2
  40. package/bpk-component-checkbox/src/BpkCheckbox.module.css +2 -2
  41. package/bpk-component-chip/src/BpkSelectableChip.module.css +2 -2
  42. package/bpk-component-close-button/src/BpkCloseButton.module.css +2 -2
  43. package/bpk-component-code/src/BpkCode.module.css +2 -2
  44. package/bpk-component-code/src/BpkCodeBlock.module.css +2 -2
  45. package/bpk-component-content-cards/src/BpkContentCard.module.css +2 -2
  46. package/bpk-component-content-cards/src/BpkContentCards.module.css +2 -2
  47. package/bpk-component-datatable/index.js +3 -2
  48. package/bpk-component-datatable/src/BpkDataTable.js +38 -103
  49. package/bpk-component-datatable/src/BpkDataTable.module.css +2 -2
  50. package/bpk-component-datatable/src/BpkDataTableHeader.js +22 -2
  51. package/bpk-component-datatable/src/BpkDataTableHeader.module.css +2 -2
  52. package/bpk-component-datatable/src/common-types.js +22 -0
  53. package/bpk-component-datatable/src/utils.js +14 -148
  54. package/bpk-component-datepicker/src/BpkDatepicker.module.css +2 -2
  55. package/bpk-component-description-list/src/BpkDescriptionList.module.css +2 -2
  56. package/bpk-component-dialog/src/BpkDialog.module.css +2 -2
  57. package/bpk-component-dialog/src/BpkDialogInner.module.css +2 -2
  58. package/bpk-component-drawer/src/BpkDrawer.module.css +2 -2
  59. package/bpk-component-drawer/src/BpkDrawerContent.module.css +2 -2
  60. package/bpk-component-fieldset/src/BpkFieldset.module.css +2 -2
  61. package/bpk-component-flare/src/bpk-content-bubble.module.css +2 -2
  62. package/bpk-component-flare/src/bpk-flare-bar.module.css +2 -2
  63. package/bpk-component-floating-notification/src/BpkFloatingNotification.module.css +2 -2
  64. package/bpk-component-form-validation/src/BpkFormValidation.module.css +2 -2
  65. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.css +2 -2
  66. package/bpk-component-grid-toggle/src/BpkGridToggle.module.css +2 -2
  67. package/bpk-component-horizontal-nav/src/BpkHorizontalNav.module.css +2 -2
  68. package/bpk-component-horizontal-nav/src/BpkHorizontalNavItem.module.css +2 -2
  69. package/bpk-component-icon/src/BpkIcon.module.css +2 -2
  70. package/bpk-component-icon/src/withDescription.module.css +2 -2
  71. package/bpk-component-image/src/BpkBackgroundImage.module.css +2 -2
  72. package/bpk-component-image/src/BpkImage.module.css +2 -2
  73. package/bpk-component-infinite-scroll/src/withInfiniteScroll.module.css +2 -2
  74. package/bpk-component-info-banner/src/BpkAnimateAndFade.module.css +2 -2
  75. package/bpk-component-info-banner/src/BpkInfoBanner.module.css +2 -2
  76. package/bpk-component-input/src/BpkClearButton.module.css +2 -2
  77. package/bpk-component-input/src/BpkInput.module.css +2 -2
  78. package/bpk-component-label/src/BpkLabel.module.css +2 -2
  79. package/bpk-component-link/src/BpkLink.module.css +2 -2
  80. package/bpk-component-list/src/BpkList.module.css +2 -2
  81. package/bpk-component-loading-button/src/BpkLoadingButton.module.css +2 -2
  82. package/bpk-component-map/src/BpkIconMarker.module.css +2 -2
  83. package/bpk-component-map/src/BpkIconMarkerBackground.module.css +2 -2
  84. package/bpk-component-map/src/BpkMap.module.css +2 -2
  85. package/bpk-component-map/src/BpkPriceMarker.module.css +2 -2
  86. package/bpk-component-map/src/BpkPriceMarkerV2/BpkPriceMarker.module.css +2 -2
  87. package/bpk-component-map/src/DefaultLoadingElement.module.css +2 -2
  88. package/bpk-component-mobile-scroll-container/src/BpkMobileScrollContainer.module.css +2 -2
  89. package/bpk-component-modal/src/BpkModal.module.css +2 -2
  90. package/bpk-component-modal/src/BpkModalInner.module.css +2 -2
  91. package/bpk-component-modal/src/BpkModalV2/BpKModal.module.css +2 -2
  92. package/bpk-component-navigation-bar/src/BpkNavigationBar.module.css +2 -2
  93. package/bpk-component-navigation-bar/src/BpkNavigationBarButtonLink.module.css +2 -2
  94. package/bpk-component-navigation-bar/src/BpkNavigationBarIconButton.module.css +2 -2
  95. package/bpk-component-nudger/src/BpkNudger.module.css +2 -2
  96. package/bpk-component-overlay/src/BpkOverlay.module.css +2 -2
  97. package/bpk-component-page-indicator/src/BpkPageIndicator.module.css +2 -2
  98. package/bpk-component-pagination/src/BpkPagination.module.css +2 -2
  99. package/bpk-component-pagination/src/BpkPaginationList.module.css +2 -2
  100. package/bpk-component-pagination/src/BpkPaginationNudger.module.css +2 -2
  101. package/bpk-component-pagination/src/BpkPaginationPage.module.css +2 -2
  102. package/bpk-component-panel/src/BpkPanel.module.css +2 -2
  103. package/bpk-component-phone-input/src/BpkPhoneInput.module.css +2 -2
  104. package/bpk-component-popover/src/BpkPopover.module.css +2 -2
  105. package/bpk-component-price/src/BpkPrice.module.css +2 -2
  106. package/bpk-component-progress/src/BpkProgress.module.css +2 -2
  107. package/bpk-component-radio/src/BpkRadio.module.css +2 -2
  108. package/bpk-component-rating/src/BpkRating.module.css +2 -2
  109. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGrid.module.css +2 -2
  110. package/bpk-component-scrollable-calendar/src/BpkScrollableCalendarGridList.module.css +2 -2
  111. package/bpk-component-section-header/src/BpkSectionHeader.module.css +2 -2
  112. package/bpk-component-section-list/src/BpkSectionListItem.module.css +2 -2
  113. package/bpk-component-section-list/src/BpkSectionListSection.module.css +2 -2
  114. package/bpk-component-select/src/BpkSelect.module.css +2 -2
  115. package/bpk-component-skip-link/src/BpkSkipLink.module.css +2 -2
  116. package/bpk-component-slider/src/BpkSlider.module.css +2 -2
  117. package/bpk-component-spinner/src/BpkSpinner.module.css +2 -2
  118. package/bpk-component-split-input/src/BpkInputField.module.css +2 -2
  119. package/bpk-component-split-input/src/BpkSplitInput.module.css +2 -2
  120. package/bpk-component-star-rating/src/BpkInteractiveStar.module.css +2 -2
  121. package/bpk-component-star-rating/src/BpkStar.module.css +2 -2
  122. package/bpk-component-star-rating/src/BpkStarRating.module.css +2 -2
  123. package/bpk-component-swap-button/src/BpkSwapButton.module.css +2 -2
  124. package/bpk-component-switch/src/BpkSwitch.module.css +2 -2
  125. package/bpk-component-table/src/BpkTable.module.css +2 -2
  126. package/bpk-component-text/src/BpkText.module.css +2 -2
  127. package/bpk-component-textarea/src/BpkTextarea.module.css +2 -2
  128. package/bpk-component-theme-toggle/src/BpkThemeToggle.module.css +2 -2
  129. package/bpk-component-ticket/src/BpkTicket.module.css +2 -2
  130. package/bpk-component-tooltip/src/BpkTooltip.module.css +2 -2
  131. package/bpk-mixins/{src/mixins/_badges-v2.scss → _badges-v2.scss} +3 -1
  132. package/bpk-mixins/{src/mixins/_badges.scss → _badges.scss} +13 -9
  133. package/bpk-mixins/{src/mixins/_borders.scss → _borders.scss} +11 -9
  134. package/bpk-mixins/{src/mixins/_breakpoints.scss → _breakpoints.scss} +3 -1
  135. package/bpk-mixins/{src/mixins/_buttons.scss → _buttons.scss} +7 -4
  136. package/bpk-mixins/{src/mixins/_cards.scss → _cards.scss} +6 -1
  137. package/bpk-mixins/{src/mixins/_chips.scss → _chips.scss} +8 -0
  138. package/bpk-mixins/{src/mixins/_forms.scss → _forms.scss} +5 -1
  139. package/bpk-mixins/_icons.scss +88 -0
  140. package/bpk-mixins/_index.scss +20 -17
  141. package/bpk-mixins/{src/mixins/_layers.scss → _layers.scss} +18 -15
  142. package/bpk-mixins/{src/mixins/_margins.scss → _margins.scss} +4 -0
  143. package/bpk-mixins/{src/mixins/_panels.scss → _panels.scss} +6 -2
  144. package/bpk-mixins/{src/mixins/_radii.scss → _radii.scss} +3 -1
  145. package/bpk-mixins/{src/mixins/_scroll-indicators.scss → _scroll-indicators.scss} +3 -1
  146. package/bpk-mixins/{src/mixins/_shadows.scss → _shadows.scss} +3 -1
  147. package/bpk-mixins/{src/mixins/_svgs.scss → _spinners.scss} +5 -68
  148. package/bpk-mixins/{src/_bonds.scss → _tokens.scss} +2 -0
  149. package/bpk-mixins/{src/mixins/_typography.scss → _typography.scss} +6 -2
  150. package/bpk-mixins/{src/mixins/_utils.scss → _utils.scss} +4 -0
  151. package/bpk-scrim-utils/src/bpk-scrim-content.module.css +2 -2
  152. package/bpk-scrim-utils/src/bpk-scrim.module.css +2 -2
  153. package/bpk-stylesheets/base.css +1 -2
  154. package/bpk-stylesheets/font.css +2 -2
  155. package/bpk-stylesheets/index.js +2 -2
  156. package/bpk-stylesheets/index.scss +13 -11
  157. package/bpk-stylesheets/normalize.css +422 -0
  158. package/package.json +15 -2
  159. package/unstable__bpk-mixins/_badges-v2.scss +240 -0
  160. package/unstable__bpk-mixins/_badges.scss +240 -0
  161. package/unstable__bpk-mixins/_borders.scss +268 -0
  162. package/unstable__bpk-mixins/_breakpoints.scss +221 -0
  163. package/unstable__bpk-mixins/_buttons.scss +568 -0
  164. package/unstable__bpk-mixins/_cards.scss +94 -0
  165. package/unstable__bpk-mixins/_chips.scss +240 -0
  166. package/unstable__bpk-mixins/_forms.scss +1049 -0
  167. package/unstable__bpk-mixins/_icons.scss +88 -0
  168. package/{bpk-mixins/sass-functions.js → unstable__bpk-mixins/_index.scss} +19 -10
  169. package/unstable__bpk-mixins/_layers.scss +199 -0
  170. package/unstable__bpk-mixins/_margins.scss +75 -0
  171. package/unstable__bpk-mixins/_panels.scss +71 -0
  172. package/unstable__bpk-mixins/_radii.scss +80 -0
  173. package/unstable__bpk-mixins/_scroll-indicators.scss +79 -0
  174. package/unstable__bpk-mixins/_shadows.scss +58 -0
  175. package/unstable__bpk-mixins/_spinners.scss +102 -0
  176. package/{bpk-component-datatable/src/sort-types.js → unstable__bpk-mixins/_tokens.scss} +3 -6
  177. package/unstable__bpk-mixins/_typography.scss +1039 -0
  178. package/unstable__bpk-mixins/_utils.scss +266 -0
  179. package/bpk-component-badge/src/BpkBadgeV2/BpkBadge.d.ts +0 -22
  180. package/bpk-component-badge/src/BpkBadgeV2/BpkBadge.js +0 -47
  181. package/bpk-component-badge/src/BpkBadgeV2/BpkBadge.module.css +0 -18
  182. package/bpk-component-datatable/src/BpkDataTableColumn.js +0 -54
  183. package/bpk-component-datatable/src/BpkDataTableColumn.module.css +0 -18
  184. package/bpk-component-datatable/src/hasChildrenOfType.js +0 -35
@@ -16,7 +16,12 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '../bonds.scss';
19
+ /* stylelint-disable at-rule-disallowed-list */
20
+
21
+ @import 'tokens.scss';
22
+ @import 'radii.scss';
23
+ @import 'shadows.scss';
24
+ @import 'utils.scss';
20
25
 
21
26
  ////
22
27
  /// @group cards
@@ -16,6 +16,14 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
+ /* stylelint-disable at-rule-disallowed-list */
20
+
21
+ @import 'tokens.scss';
22
+ @import 'borders.scss';
23
+ @import 'margins.scss';
24
+ @import 'shadows.scss';
25
+ @import 'utils.scss';
26
+
19
27
  @mixin bpk-chip {
20
28
  display: inline-flex;
21
29
  height: bpk-spacing-xl();
@@ -16,7 +16,11 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '../bonds.scss';
19
+ /* stylelint-disable at-rule-disallowed-list */
20
+
21
+ @import 'tokens.scss';
22
+ @import 'typography.scss';
23
+ @import 'utils.scss';
20
24
 
21
25
  ////
22
26
  /// @group forms
@@ -0,0 +1,88 @@
1
+ /*
2
+ * Backpack - Skyscanner's Design System
3
+ *
4
+ * Copyright 2016 Skyscanner Ltd
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ /* stylelint-disable at-rule-disallowed-list */
20
+
21
+ @import 'tokens.scss';
22
+ @import 'utils.scss';
23
+
24
+ ////
25
+ /// @group svgs
26
+ ////
27
+
28
+ /// Button alignment utility.
29
+ ///
30
+ /// @access private
31
+
32
+ @mixin _bpk-svg--align-to-button() {
33
+ vertical-align: text-bottom;
34
+ }
35
+
36
+ /// Large button alignment utility.
37
+ ///
38
+ /// @access private
39
+
40
+ @mixin _bpk-svg--align-to-large-button() {
41
+ margin-top: ($bpk-private-button-line-height - $bpk-icon-size-lg) / 2;
42
+ vertical-align: top;
43
+ }
44
+
45
+ /// Align to button. Modifies the bpk-icon-sm mixin.
46
+ ///
47
+ /// @require {mixin} bpk-icon-sm
48
+ ///
49
+ /// @example scss
50
+ /// .selector {
51
+ /// @include bpk-icon-sm(flight-sky-gray-tint-02);
52
+ /// @include bpk-icon-sm--align-to-button();
53
+ /// }
54
+
55
+ @mixin bpk-icon-sm--align-to-button() {
56
+ @include _bpk-svg--align-to-button;
57
+ }
58
+
59
+ /// Align to large button. Modifies the bpk-icon-lg mixin.
60
+ ///
61
+ /// @require {mixin} bpk-icon-lg
62
+ ///
63
+ /// @example scss
64
+ /// .selector {
65
+ /// @include bpk-icon-lg(flight-sky-gray-tint-02);
66
+ /// @include bpk-icon-lg--align-to-large-button();
67
+ /// }
68
+
69
+ @mixin bpk-icon-lg--align-to-large-button() {
70
+ @include _bpk-svg--align-to-large-button;
71
+ }
72
+
73
+ /// RTL support. Modifies the bpk-icon-sm or bpk-icon-lg mixin.
74
+ ///
75
+ /// @require {mixin} bpk-icon-sm
76
+ /// @require {mixin} bpk-icon-lg
77
+ ///
78
+ /// @example scss
79
+ /// .selector {
80
+ /// @include bpk-icon-sm(flight-sky-gray-tint-02);
81
+ /// @include bpk-icon--rtl-support();
82
+ /// }
83
+
84
+ @mixin bpk-icon--rtl-support() {
85
+ @include bpk-rtl {
86
+ transform: scaleX(-1);
87
+ }
88
+ }
@@ -16,20 +16,23 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import 'src/bonds.scss';
20
- @import 'src/mixins/badges.scss';
21
- @import 'src/mixins/borders.scss';
22
- @import 'src/mixins/breakpoints.scss';
23
- @import 'src/mixins/buttons.scss';
24
- @import 'src/mixins/cards.scss';
25
- @import 'src/mixins/chips.scss';
26
- @import 'src/mixins/forms.scss';
27
- @import 'src/mixins/layers.scss';
28
- @import 'src/mixins/margins.scss';
29
- @import 'src/mixins/panels.scss';
30
- @import 'src/mixins/radii.scss';
31
- @import 'src/mixins/scroll-indicators.scss';
32
- @import 'src/mixins/shadows.scss';
33
- @import 'src/mixins/svgs.scss';
34
- @import 'src/mixins/typography.scss';
35
- @import 'src/mixins/utils.scss';
19
+ /* stylelint-disable at-rule-disallowed-list */
20
+
21
+ @import 'tokens.scss';
22
+ @import 'badges.scss';
23
+ @import 'borders.scss';
24
+ @import 'breakpoints.scss';
25
+ @import 'buttons.scss';
26
+ @import 'cards.scss';
27
+ @import 'chips.scss';
28
+ @import 'forms.scss';
29
+ @import 'icons.scss';
30
+ @import 'layers.scss';
31
+ @import 'margins.scss';
32
+ @import 'panels.scss';
33
+ @import 'radii.scss';
34
+ @import 'scroll-indicators.scss';
35
+ @import 'shadows.scss';
36
+ @import 'spinners.scss';
37
+ @import 'typography.scss';
38
+ @import 'utils.scss';
@@ -16,9 +16,12 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '../bonds.scss';
19
+ /* stylelint-disable at-rule-disallowed-list */
20
+
21
+ @import 'tokens.scss';
20
22
  @import 'radii.scss';
21
23
  @import 'shadows.scss';
24
+ @import 'utils.scss';
22
25
 
23
26
  ////
24
27
  /// @group layers
@@ -87,18 +90,18 @@
87
90
  height: $arrow-size;
88
91
 
89
92
  &::before {
90
- top: -($arrow-size + $bpk-one-pixel-rem);
91
- margin-left: -$bpk-one-pixel-rem;
93
+ top: -1 * ($arrow-size + $bpk-one-pixel-rem);
94
+ margin-left: -1 * $bpk-one-pixel-rem;
92
95
  border-bottom-color: $border-color;
93
96
 
94
97
  @include bpk-rtl {
95
- margin-right: -$bpk-one-pixel-rem;
98
+ margin-right: -1 * $bpk-one-pixel-rem;
96
99
  margin-left: 0;
97
100
  }
98
101
  }
99
102
 
100
103
  &::after {
101
- top: -$arrow-size + $bpk-one-pixel-rem;
104
+ top: -1 * $arrow-size + $bpk-one-pixel-rem;
102
105
  border-bottom-color: $arrow-color;
103
106
  }
104
107
  }
@@ -121,13 +124,13 @@
121
124
  height: ($arrow-size * 2);
122
125
 
123
126
  &::before {
124
- right: -($arrow-size + $bpk-one-pixel-rem);
125
- margin-top: -$bpk-one-pixel-rem;
127
+ right: -1 * ($arrow-size + $bpk-one-pixel-rem);
128
+ margin-top: -1 * $bpk-one-pixel-rem;
126
129
  border-left-color: $border-color;
127
130
  }
128
131
 
129
132
  &::after {
130
- right: -$arrow-size + $bpk-one-pixel-rem;
133
+ right: -1 * $arrow-size + $bpk-one-pixel-rem;
131
134
  border-left-color: $arrow-color;
132
135
  }
133
136
  }
@@ -150,18 +153,18 @@
150
153
  height: $arrow-size;
151
154
 
152
155
  &::before {
153
- bottom: -($arrow-size + $bpk-one-pixel-rem);
154
- margin-left: -$bpk-one-pixel-rem;
156
+ bottom: -1 * ($arrow-size + $bpk-one-pixel-rem);
157
+ margin-left: -1 * $bpk-one-pixel-rem;
155
158
  border-top-color: $border-color;
156
159
 
157
160
  @include bpk-rtl {
158
- margin-right: -$bpk-one-pixel-rem;
161
+ margin-right: -1 * $bpk-one-pixel-rem;
159
162
  margin-left: 0;
160
163
  }
161
164
  }
162
165
 
163
166
  &::after {
164
- bottom: -$arrow-size + $bpk-one-pixel-rem;
167
+ bottom: -1 * $arrow-size + $bpk-one-pixel-rem;
165
168
  border-top-color: $arrow-color;
166
169
  }
167
170
  }
@@ -184,13 +187,13 @@
184
187
  height: ($arrow-size * 2);
185
188
 
186
189
  &::before {
187
- left: -($arrow-size + $bpk-one-pixel-rem);
188
- margin-top: -$bpk-one-pixel-rem;
190
+ left: -1 * ($arrow-size + $bpk-one-pixel-rem);
191
+ margin-top: -1 * $bpk-one-pixel-rem;
189
192
  border-right-color: $border-color;
190
193
  }
191
194
 
192
195
  &::after {
193
- left: -$arrow-size + $bpk-one-pixel-rem;
196
+ left: -1 * $arrow-size + $bpk-one-pixel-rem;
194
197
  border-right-color: $arrow-color;
195
198
  }
196
199
  }
@@ -16,6 +16,10 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
+ /* stylelint-disable at-rule-disallowed-list */
20
+
21
+ @import 'utils.scss';
22
+
19
23
  /// RTL aware leading margin
20
24
  ///
21
25
  /// @param {string} $margin The desired leading margin.
@@ -16,7 +16,11 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '../bonds.scss';
19
+ /* stylelint-disable at-rule-disallowed-list */
20
+
21
+ @import 'tokens.scss';
22
+ @import 'borders.scss';
23
+ @import 'radii.scss';
20
24
 
21
25
  ////
22
26
  /// @group panels
@@ -62,6 +66,6 @@
62
66
  @mixin bpk-panel--full-width {
63
67
  border-radius: 0;
64
68
  box-shadow:
65
- $bpk-panel-border-color 0 #{-$bpk-one-pixel-rem} 0 0 inset,
69
+ $bpk-panel-border-color 0 -1 * $bpk-one-pixel-rem 0 0 inset,
66
70
  $bpk-panel-border-color 0 $bpk-one-pixel-rem 0 0 inset;
67
71
  }
@@ -16,7 +16,9 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '../bonds.scss';
19
+ /* stylelint-disable at-rule-disallowed-list */
20
+
21
+ @import 'tokens.scss';
20
22
 
21
23
  ////
22
24
  /// @group radii
@@ -16,7 +16,9 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '../bonds.scss';
19
+ /* stylelint-disable at-rule-disallowed-list */
20
+
21
+ @import 'tokens.scss';
20
22
 
21
23
  ////
22
24
  /// @group scroll-indicator
@@ -16,7 +16,9 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '../bonds.scss';
19
+ /* stylelint-disable at-rule-disallowed-list */
20
+
21
+ @import 'tokens.scss';
20
22
 
21
23
  ////
22
24
  /// @group box-shadows
@@ -16,7 +16,10 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '../bonds.scss';
19
+ /* stylelint-disable at-rule-disallowed-list */
20
+
21
+ @import 'tokens.scss';
22
+ @import './icons.scss';
20
23
  @import './utils.scss';
21
24
 
22
25
  @keyframes bpk-keyframe-spin {
@@ -25,72 +28,6 @@
25
28
  }
26
29
  }
27
30
 
28
- ////
29
- /// @group svgs
30
- ////
31
-
32
- /// Button alignment utility.
33
- ///
34
- /// @access private
35
-
36
- @mixin _bpk-svg--align-to-button() {
37
- vertical-align: text-bottom;
38
- }
39
-
40
- /// Large button alignment utility.
41
- ///
42
- /// @access private
43
-
44
- @mixin _bpk-svg--align-to-large-button() {
45
- margin-top: ($bpk-private-button-line-height - $bpk-icon-size-lg) / 2;
46
- vertical-align: top;
47
- }
48
-
49
- /// Align to button. Modifies the bpk-icon-sm mixin.
50
- ///
51
- /// @require {mixin} bpk-icon-sm
52
- ///
53
- /// @example scss
54
- /// .selector {
55
- /// @include bpk-icon-sm(flight-sky-gray-tint-02);
56
- /// @include bpk-icon-sm--align-to-button();
57
- /// }
58
-
59
- @mixin bpk-icon-sm--align-to-button() {
60
- @include _bpk-svg--align-to-button;
61
- }
62
-
63
- /// Align to large button. Modifies the bpk-icon-lg mixin.
64
- ///
65
- /// @require {mixin} bpk-icon-lg
66
- ///
67
- /// @example scss
68
- /// .selector {
69
- /// @include bpk-icon-lg(flight-sky-gray-tint-02);
70
- /// @include bpk-icon-lg--align-to-large-button();
71
- /// }
72
-
73
- @mixin bpk-icon-lg--align-to-large-button() {
74
- @include _bpk-svg--align-to-large-button;
75
- }
76
-
77
- /// RTL support. Modifies the bpk-icon-sm or bpk-icon-lg mixin.
78
- ///
79
- /// @require {mixin} bpk-icon-sm
80
- /// @require {mixin} bpk-icon-lg
81
- ///
82
- /// @example scss
83
- /// .selector {
84
- /// @include bpk-icon-sm(flight-sky-gray-tint-02);
85
- /// @include bpk-icon--rtl-support();
86
- /// }
87
-
88
- @mixin bpk-icon--rtl-support() {
89
- @include bpk-rtl {
90
- transform: scaleX(-1);
91
- }
92
- }
93
-
94
31
  /// Small spinner.
95
32
  ///
96
33
  /// @param {key} $spinner - The key of the desired SVG datauri from the $bpk-spinners map.
@@ -161,5 +98,5 @@
161
98
  /// }
162
99
 
163
100
  @mixin bpk-spinner--align-to-large-button() {
164
- @include _bpk-svg--align-to-large-button;
101
+ @include bpk-icon-lg--align-to-large-button;
165
102
  }
@@ -16,4 +16,6 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
+ /* stylelint-disable at-rule-disallowed-list */
20
+
19
21
  @import '~@skyscanner/bpk-foundations-web/tokens/base.default';
@@ -16,8 +16,12 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- @import '../bonds.scss';
20
- @import './borders.scss';
19
+ /* stylelint-disable at-rule-disallowed-list */
20
+
21
+ @import 'tokens.scss';
22
+ @import 'borders.scss';
23
+ @import 'radii.scss';
24
+ @import 'utils.scss';
21
25
 
22
26
  ////
23
27
  /// @group typography
@@ -16,6 +16,10 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
+ /* stylelint-disable at-rule-disallowed-list */
20
+
21
+ @import 'tokens.scss';
22
+
19
23
  ////
20
24
  /// @group utils
21
25
  ////
@@ -14,5 +14,5 @@
14
14
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
- */
18
- @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-scrim-content{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;overflow:auto;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}
17
+ */
18
+ .bpk-scrim-content{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;overflow:auto;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}
@@ -14,5 +14,5 @@
14
14
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
- */
18
- @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;transition:opacity 200ms ease-in-out;background-color:rgba(0,0,0,0.7);overflow:hidden}@media (max-width: 32rem){.bpk-scrim--full-screen{opacity:1}}.bpk-scrim--appear{opacity:0}.bpk-scrim--appear-active{opacity:0.7}
17
+ */
18
+ .bpk-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;transition:opacity 200ms ease-in-out;background-color:rgba(0,0,0,.7);overflow:hidden}@media(max-width: 32rem){.bpk-scrim--full-screen{opacity:1}}.bpk-scrim--appear{opacity:0}.bpk-scrim--appear-active{opacity:.7}
@@ -16,5 +16,4 @@
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
18
  *
19
- *//*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block}audio:not([controls]){display:none;height:0}progress{vertical-align:baseline}template,[hidden]{display:none}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}svg:not(:root){overflow:hidden}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}button,input,optgroup,select,textarea{font:inherit;margin:0}optgroup{font-weight:bold}button,input{overflow:visible}button,select{text-transform:none}button,html [type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}textarea{overflow:auto}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px}[type="search"]::-webkit-search-cancel-button,[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-input-placeholder{color:inherit;opacity:0.54}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}html{font-size:100%;box-sizing:border-box}*{box-sizing:inherit}*::before,*::after{box-sizing:inherit}body{color:#161616;font-family:"Skyscanner Relative",-apple-system,BlinkMacSystemFont,"Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:1rem;line-height:1.3rem}body.scaffold-font-size{font-size:13px}body.enable-font-smoothing{-webkit-font-smoothing:antialiased}:focus-visible{outline:.125rem solid #0062e3;outline-offset:.125rem}.hidden,.hide{display:none !important}.visuallyhidden,.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0)}.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus,.visually-hidden.focusable:active,.visually-hidden.focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}.invisible{visibility:hidden}.clearfix::before,.clearfix::after{content:'';display:table}.clearfix::after{clear:both}
20
-
19
+ *//*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block}audio:not([controls]){display:none;height:0}progress{vertical-align:baseline}template,[hidden]{display:none}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}svg:not(:root){overflow:hidden}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}button,input,optgroup,select,textarea{font:inherit;margin:0}optgroup{font-weight:bold}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-input-placeholder{color:inherit;opacity:.54}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}html{font-size:100%;box-sizing:border-box}*{box-sizing:inherit}*::before,*::after{box-sizing:inherit}body{color:#161616;font-family:"Skyscanner Relative",-apple-system,BlinkMacSystemFont,"Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:1rem;line-height:1.3rem}body.scaffold-font-size{font-size:13px}body.enable-font-smoothing{-webkit-font-smoothing:antialiased}:focus-visible{outline:.125rem solid #0062e3;outline-offset:.125rem}.hidden,.hide{display:none !important}.visuallyhidden,.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0)}.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus,.visually-hidden.focusable:active,.visually-hidden.focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}.invisible{visibility:hidden}.clearfix::before,.clearfix::after{content:"";display:table}.clearfix::after{clear:both}
@@ -14,5 +14,5 @@
14
14
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
- */
18
- @font-face{font-family:'Skyscanner Relative';font-style:normal;font-weight:400;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Book-f9356ad6.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Book-46f9f429.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Book-ab1dbcbe.ttf") format("ttf")}@font-face{font-family:'Skyscanner Relative';font-style:italic;font-weight:400;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Italic-10532ac3.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Italic-db5d0ac5.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Italic-8eec3f3a.ttf") format("ttf")}@font-face{font-family:'Skyscanner Relative';font-style:normal;font-weight:500;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Medium-c08dc28b.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Medium-865e167a.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Medium-d0ae478a.ttf") format("ttf")}@font-face{font-family:'Skyscanner Relative';font-style:italic;font-weight:500;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-MediumItalic-81517f37.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-MediumItalic-bbdb6b0c.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-MediumItalic-226fe64c.ttf") format("ttf")}@font-face{font-family:'Skyscanner Relative';font-style:normal;font-weight:700;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Bold-8545937e.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Bold-a099c9f7.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Bold-ec4cc5a7.ttf") format("ttf")}@font-face{font-family:'Skyscanner Relative';font-style:italic;font-weight:700;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BoldItalic-01b5d138.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BoldItalic-4d6d36e3.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BoldItalic-dc9284dc.ttf") format("ttf")}@font-face{font-family:'Skyscanner Relative';font-style:normal;font-weight:900;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Black-bb3c9434.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Black-bba2eb55.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Black-314703cc.ttf") format("ttf")}@font-face{font-family:'Skyscanner Relative';font-style:italic;font-weight:900;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BlackItalic-c2149c91.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BlackItalic-a34cd594.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BlackItalic-7e516ee5.ttf") format("ttf")}
17
+ */
18
+ @font-face{font-family:"Skyscanner Relative";font-style:normal;font-weight:400;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Book-f9356ad6.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Book-46f9f429.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Book-ab1dbcbe.ttf") format("ttf")}@font-face{font-family:"Skyscanner Relative";font-style:italic;font-weight:400;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Italic-10532ac3.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Italic-db5d0ac5.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Italic-8eec3f3a.ttf") format("ttf")}@font-face{font-family:"Skyscanner Relative";font-style:normal;font-weight:500;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Medium-c08dc28b.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Medium-865e167a.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Medium-d0ae478a.ttf") format("ttf")}@font-face{font-family:"Skyscanner Relative";font-style:italic;font-weight:500;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-MediumItalic-81517f37.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-MediumItalic-bbdb6b0c.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-MediumItalic-226fe64c.ttf") format("ttf")}@font-face{font-family:"Skyscanner Relative";font-style:normal;font-weight:700;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Bold-8545937e.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Bold-a099c9f7.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Bold-ec4cc5a7.ttf") format("ttf")}@font-face{font-family:"Skyscanner Relative";font-style:italic;font-weight:700;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BoldItalic-01b5d138.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BoldItalic-4d6d36e3.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BoldItalic-dc9284dc.ttf") format("ttf")}@font-face{font-family:"Skyscanner Relative";font-style:normal;font-weight:900;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Black-bb3c9434.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Black-bba2eb55.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-Black-314703cc.ttf") format("ttf")}@font-face{font-family:"Skyscanner Relative";font-style:italic;font-weight:900;src:url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BlackItalic-c2149c91.woff2") format("woff2"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BlackItalic-a34cd594.woff") format("woff"),url("https://js.skyscnr.com/sttc/bpk-fonts/SkyscannerRelative-BlackItalic-7e516ee5.ttf") format("ttf")}
@@ -27,7 +27,7 @@ import './index.scss';
27
27
 
28
28
  // touch support
29
29
  classNames.push(
30
- 'ontouchstart' in window ||
30
+ 'ontouchstart' in window ||
31
31
  (window.DocumentTouch && document instanceof DocumentTouch) // eslint-disable-line no-undef
32
32
  ? 'touch-support'
33
33
  : 'no-touch-support',
@@ -35,7 +35,7 @@ import './index.scss';
35
35
 
36
36
  // add more feature tests here...
37
37
 
38
-
38
+
39
39
  document.documentElement.className += ` ${classNames
40
40
  .map((className) => `bpk-${className}`)
41
41
  .join(' ')}`;
@@ -15,9 +15,11 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
-
19
- @import '~normalize.css';
20
- @import '../bpk-mixins/index.scss';
18
+ /* stylelint-disable at-rule-disallowed-list */
19
+ // stylelint-disable-next-line scss/at-import-partial-extension
20
+ @import './normalize';
21
+ @import '../bpk-mixins/tokens.scss';
22
+ @import '../bpk-mixins/utils.scss';
21
23
 
22
24
  // stylelint-disable-next-line selector-max-type
23
25
  html {
@@ -40,14 +42,14 @@ body {
40
42
  font-family: $bpk-font-family-base;
41
43
  font-size: $bpk-font-size-base;
42
44
  line-height: 1.3rem; /* stylelint-disable-line scale-unlimited/declaration-strict-value */
45
+ }
43
46
 
44
- :global(&.scaffold-font-size) {
45
- font-size: 13px; /* stylelint-disable-line unit-disallowed-list, scale-unlimited/declaration-strict-value */
46
- }
47
+ :global(body.scaffold-font-size) {
48
+ font-size: 13px; /* stylelint-disable-line unit-disallowed-list, scale-unlimited/declaration-strict-value */
49
+ }
47
50
 
48
- :global(&.enable-font-smoothing) {
49
- -webkit-font-smoothing: antialiased;
50
- }
51
+ :global(body.enable-font-smoothing) {
52
+ -webkit-font-smoothing: antialiased;
51
53
  }
52
54
 
53
55
  :focus-visible {
@@ -76,5 +78,5 @@ body {
76
78
  :global(.clearfix) {
77
79
  @include bpk-clearfix;
78
80
  }
79
-
80
- /* stylelint-enable */
81
+ /* stylelint-enable selector-class-pattern */
82
+ /* stylelint-enable at-rule-disallowed-list */