@skyscanner/backpack-web 32.0.0 → 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.
package/bpk-stylesheets/base.css
CHANGED
|
@@ -16,4 +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:.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
|
|
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}
|
package/bpk-stylesheets/index.js
CHANGED
|
@@ -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,17 +15,15 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
@use '../bpk-mixins/tokens';
|
|
22
|
-
@use '../bpk-mixins/utils';
|
|
23
|
-
|
|
18
|
+
/* stylelint-disable at-rule-disallowed-list */
|
|
19
|
+
// stylelint-disable-next-line scss/at-import-partial-extension
|
|
24
20
|
@import './normalize';
|
|
21
|
+
@import '../bpk-mixins/tokens.scss';
|
|
22
|
+
@import '../bpk-mixins/utils.scss';
|
|
25
23
|
|
|
26
24
|
// stylelint-disable-next-line selector-max-type
|
|
27
25
|
html {
|
|
28
|
-
font-size:
|
|
26
|
+
font-size: $bpk-font-size-root;
|
|
29
27
|
box-sizing: border-box;
|
|
30
28
|
}
|
|
31
29
|
|
|
@@ -40,45 +38,45 @@ html {
|
|
|
40
38
|
|
|
41
39
|
/* stylelint-disable selector-class-pattern */
|
|
42
40
|
body {
|
|
43
|
-
color:
|
|
44
|
-
font-family:
|
|
45
|
-
font-size:
|
|
41
|
+
color: $bpk-font-color-base;
|
|
42
|
+
font-family: $bpk-font-family-base;
|
|
43
|
+
font-size: $bpk-font-size-base;
|
|
46
44
|
line-height: 1.3rem; /* stylelint-disable-line scale-unlimited/declaration-strict-value */
|
|
45
|
+
}
|
|
47
46
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
:global(body.scaffold-font-size) {
|
|
48
|
+
font-size: 13px; /* stylelint-disable-line unit-disallowed-list, scale-unlimited/declaration-strict-value */
|
|
49
|
+
}
|
|
51
50
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
51
|
+
:global(body.enable-font-smoothing) {
|
|
52
|
+
-webkit-font-smoothing: antialiased;
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
:focus-visible {
|
|
58
|
-
@include
|
|
56
|
+
@include bpk-focus-indicator;
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
:global(.hidden),
|
|
62
60
|
:global(.hide) {
|
|
63
|
-
@include
|
|
61
|
+
@include bpk-hidden;
|
|
64
62
|
}
|
|
65
63
|
|
|
66
64
|
:global(.visuallyhidden),
|
|
67
65
|
:global(.visually-hidden) {
|
|
68
|
-
@include
|
|
66
|
+
@include bpk-visually-hidden;
|
|
69
67
|
}
|
|
70
68
|
|
|
71
69
|
:global(.visuallyhidden.focusable),
|
|
72
70
|
:global(.visually-hidden.focusable) {
|
|
73
|
-
@include
|
|
71
|
+
@include bpk-visually-hidden--focusable;
|
|
74
72
|
}
|
|
75
73
|
|
|
76
74
|
:global(.invisible) {
|
|
77
|
-
@include
|
|
75
|
+
@include bpk-invisible;
|
|
78
76
|
}
|
|
79
77
|
|
|
80
78
|
:global(.clearfix) {
|
|
81
|
-
@include
|
|
79
|
+
@include bpk-clearfix;
|
|
82
80
|
}
|
|
83
81
|
/* stylelint-enable selector-class-pattern */
|
|
84
82
|
/* stylelint-enable at-rule-disallowed-list */
|