@skyscanner/backpack-web 38.21.0 → 39.0.0
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-component-skeleton/index.d.ts +1 -1
- package/bpk-component-skeleton/index.js +1 -1
- package/bpk-component-skeleton/src/BpkSkeleton.js +3 -2
- package/bpk-component-skeleton/src/BpkSkeleton.module.css +1 -1
- package/bpk-component-skeleton/src/common-types.d.ts +7 -0
- package/bpk-component-skeleton/src/common-types.js +4 -0
- package/bpk-mixins/_badges-v2.scss +37 -36
- package/bpk-mixins/_badges.scss +37 -36
- package/bpk-mixins/_borders.scss +16 -16
- package/bpk-mixins/_breakpoints.scss +11 -11
- package/bpk-mixins/_buttons.scss +141 -137
- package/bpk-mixins/_cards.scss +13 -13
- package/bpk-mixins/_chips.scss +66 -66
- package/bpk-mixins/_forms.scss +214 -202
- package/bpk-mixins/_icons.scss +7 -4
- package/bpk-mixins/_index.scss +19 -19
- package/bpk-mixins/_layers.scss +34 -34
- package/bpk-mixins/_margins.scss +3 -3
- package/bpk-mixins/_panels.scss +9 -9
- package/bpk-mixins/_radii.scss +6 -6
- package/bpk-mixins/_scroll-indicators.scss +2 -2
- package/bpk-mixins/_shadows.scss +4 -4
- package/bpk-mixins/_spinners.scss +10 -10
- package/bpk-mixins/_tokens.scss +1 -3
- package/bpk-mixins/_typography.scss +204 -195
- package/bpk-mixins/_utils.scss +17 -12
- package/bpk-stylesheets/index.scss +13 -14
- package/bpk-stylesheets/normalize.css +18 -422
- package/bpk-stylesheets/normalize.scss +422 -0
- package/package.json +2 -6
- package/unstable__bpk-mixins/_badges-v2.scss +0 -240
- package/unstable__bpk-mixins/_badges.scss +0 -240
- package/unstable__bpk-mixins/_borders.scss +0 -268
- package/unstable__bpk-mixins/_breakpoints.scss +0 -221
- package/unstable__bpk-mixins/_buttons.scss +0 -587
- package/unstable__bpk-mixins/_cards.scss +0 -94
- package/unstable__bpk-mixins/_chips.scss +0 -249
- package/unstable__bpk-mixins/_forms.scss +0 -1045
- package/unstable__bpk-mixins/_icons.scss +0 -88
- package/unstable__bpk-mixins/_index.scss +0 -38
- package/unstable__bpk-mixins/_layers.scss +0 -199
- package/unstable__bpk-mixins/_margins.scss +0 -75
- package/unstable__bpk-mixins/_panels.scss +0 -96
- package/unstable__bpk-mixins/_radii.scss +0 -80
- package/unstable__bpk-mixins/_scroll-indicators.scss +0 -79
- package/unstable__bpk-mixins/_shadows.scss +0 -58
- package/unstable__bpk-mixins/_spinners.scss +0 -102
- package/unstable__bpk-mixins/_tokens.scss +0 -19
- package/unstable__bpk-mixins/_typography.scss +0 -1225
- package/unstable__bpk-mixins/_utils.scss +0 -267
package/bpk-mixins/_utils.scss
CHANGED
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
|
|
19
19
|
/* stylelint-disable at-rule-disallowed-list */
|
|
20
20
|
|
|
21
|
-
@
|
|
21
|
+
@use 'sass:string';
|
|
22
|
+
@use 'tokens';
|
|
22
23
|
|
|
23
24
|
////
|
|
24
25
|
/// @group utils
|
|
@@ -32,8 +33,8 @@
|
|
|
32
33
|
/// }
|
|
33
34
|
|
|
34
35
|
@mixin bpk-focus-indicator {
|
|
35
|
-
outline: (
|
|
36
|
-
outline-offset: (
|
|
36
|
+
outline: (tokens.$bpk-one-pixel-rem * 2) solid tokens.$bpk-text-link-day;
|
|
37
|
+
outline-offset: (tokens.$bpk-one-pixel-rem * 2);
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
/// Hide visually and from screen readers.
|
|
@@ -180,7 +181,7 @@
|
|
|
180
181
|
|
|
181
182
|
@mixin bpk-locale($locale) {
|
|
182
183
|
html[lang='#{$locale}'] &,
|
|
183
|
-
html[lang='#{to_lower_case($locale)}'] & {
|
|
184
|
+
html[lang='#{string.to_lower_case($locale)}'] & {
|
|
184
185
|
@content;
|
|
185
186
|
}
|
|
186
187
|
}
|
|
@@ -213,7 +214,7 @@
|
|
|
213
214
|
@include bpk-themeable-property(
|
|
214
215
|
$property,
|
|
215
216
|
--bpk-primary-color,
|
|
216
|
-
|
|
217
|
+
tokens.$bpk-color-sky-blue
|
|
217
218
|
);
|
|
218
219
|
}
|
|
219
220
|
|
|
@@ -226,12 +227,12 @@
|
|
|
226
227
|
@function str-replace($string, $search, $replace: '') {
|
|
227
228
|
/* Disabling rule here as the recommendation method is for newer sass versions that we don't yet support */
|
|
228
229
|
/* stylelint-disable-next-line scss/no-global-function-names */
|
|
229
|
-
$index:
|
|
230
|
+
$index: string.index($string, $search);
|
|
230
231
|
|
|
231
232
|
@if $index {
|
|
232
|
-
@return
|
|
233
|
+
@return string.slice($string, 1, $index - 1) + $replace +
|
|
233
234
|
str-replace(
|
|
234
|
-
|
|
235
|
+
string.slice($string, $index + string.length($search)),
|
|
235
236
|
$search,
|
|
236
237
|
$replace
|
|
237
238
|
);
|
|
@@ -256,11 +257,15 @@
|
|
|
256
257
|
&::before {
|
|
257
258
|
position: absolute;
|
|
258
259
|
/* stylelint-disable-next-line function-calc-no-invalid */
|
|
259
|
-
top: calc(
|
|
260
|
+
top: calc(
|
|
261
|
+
(-#{tokens.bpk-spacing-xxl() + tokens.bpk-spacing-sm()} / 2) + 50%
|
|
262
|
+
);
|
|
260
263
|
/* stylelint-disable-next-line function-calc-no-invalid */
|
|
261
|
-
left: calc(
|
|
264
|
+
left: calc(
|
|
265
|
+
(-#{tokens.bpk-spacing-xxl() + tokens.bpk-spacing-sm()} / 2) + 50%
|
|
266
|
+
);
|
|
262
267
|
content: '';
|
|
263
|
-
width: bpk-spacing-xxl() + bpk-spacing-sm();
|
|
264
|
-
height: bpk-spacing-xxl() + bpk-spacing-sm();
|
|
268
|
+
width: tokens.bpk-spacing-xxl() + tokens.bpk-spacing-sm();
|
|
269
|
+
height: tokens.bpk-spacing-xxl() + tokens.bpk-spacing-sm();
|
|
265
270
|
}
|
|
266
271
|
}
|
|
@@ -16,14 +16,13 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
/* stylelint-disable at-rule-disallowed-list */
|
|
19
|
-
|
|
20
|
-
@
|
|
21
|
-
@
|
|
22
|
-
@import '../bpk-mixins/utils.scss';
|
|
19
|
+
@use '../bpk-mixins/tokens';
|
|
20
|
+
@use '../bpk-mixins/utils';
|
|
21
|
+
@use './normalize';
|
|
23
22
|
|
|
24
23
|
// stylelint-disable-next-line selector-max-type
|
|
25
24
|
html {
|
|
26
|
-
font-size:
|
|
25
|
+
font-size: tokens.$bpk-font-size-root;
|
|
27
26
|
box-sizing: border-box;
|
|
28
27
|
}
|
|
29
28
|
|
|
@@ -38,9 +37,9 @@ html {
|
|
|
38
37
|
|
|
39
38
|
/* stylelint-disable selector-class-pattern */
|
|
40
39
|
body {
|
|
41
|
-
color:
|
|
42
|
-
font-family:
|
|
43
|
-
font-size:
|
|
40
|
+
color: tokens.$bpk-font-color-base;
|
|
41
|
+
font-family: tokens.$bpk-font-family-base;
|
|
42
|
+
font-size: tokens.$bpk-font-size-base;
|
|
44
43
|
line-height: 1.3rem; /* stylelint-disable-line scale-unlimited/declaration-strict-value */
|
|
45
44
|
}
|
|
46
45
|
|
|
@@ -53,30 +52,30 @@ body {
|
|
|
53
52
|
}
|
|
54
53
|
|
|
55
54
|
:focus-visible {
|
|
56
|
-
@include bpk-focus-indicator;
|
|
55
|
+
@include utils.bpk-focus-indicator;
|
|
57
56
|
}
|
|
58
57
|
|
|
59
58
|
:global(.hidden),
|
|
60
59
|
:global(.hide) {
|
|
61
|
-
@include bpk-hidden;
|
|
60
|
+
@include utils.bpk-hidden;
|
|
62
61
|
}
|
|
63
62
|
|
|
64
63
|
:global(.visuallyhidden),
|
|
65
64
|
:global(.visually-hidden) {
|
|
66
|
-
@include bpk-visually-hidden;
|
|
65
|
+
@include utils.bpk-visually-hidden;
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
:global(.visuallyhidden.focusable),
|
|
70
69
|
:global(.visually-hidden.focusable) {
|
|
71
|
-
@include bpk-visually-hidden--focusable;
|
|
70
|
+
@include utils.bpk-visually-hidden--focusable;
|
|
72
71
|
}
|
|
73
72
|
|
|
74
73
|
:global(.invisible) {
|
|
75
|
-
@include bpk-invisible;
|
|
74
|
+
@include utils.bpk-invisible;
|
|
76
75
|
}
|
|
77
76
|
|
|
78
77
|
:global(.clearfix) {
|
|
79
|
-
@include bpk-clearfix;
|
|
78
|
+
@include utils.bpk-clearfix;
|
|
80
79
|
}
|
|
81
80
|
/* stylelint-enable selector-class-pattern */
|
|
82
81
|
/* stylelint-enable at-rule-disallowed-list */
|
|
@@ -1,422 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
body {
|
|
21
|
-
margin: 0;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/* HTML5 display definitions
|
|
25
|
-
========================================================================== */
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Add the correct display in IE 9-.
|
|
29
|
-
* 1. Add the correct display in Edge, IE, and Firefox.
|
|
30
|
-
* 2. Add the correct display in IE.
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
|
-
article,
|
|
34
|
-
aside,
|
|
35
|
-
details, /* 1 */
|
|
36
|
-
figcaption,
|
|
37
|
-
figure,
|
|
38
|
-
footer,
|
|
39
|
-
header,
|
|
40
|
-
main, /* 2 */
|
|
41
|
-
menu,
|
|
42
|
-
nav,
|
|
43
|
-
section,
|
|
44
|
-
summary { /* 1 */
|
|
45
|
-
display: block;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Add the correct display in IE 9-.
|
|
50
|
-
*/
|
|
51
|
-
|
|
52
|
-
audio,
|
|
53
|
-
canvas,
|
|
54
|
-
progress,
|
|
55
|
-
video {
|
|
56
|
-
display: inline-block;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Add the correct display in iOS 4-7.
|
|
61
|
-
*/
|
|
62
|
-
|
|
63
|
-
audio:not([controls]) {
|
|
64
|
-
display: none;
|
|
65
|
-
height: 0;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
70
|
-
*/
|
|
71
|
-
|
|
72
|
-
progress {
|
|
73
|
-
vertical-align: baseline;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Add the correct display in IE 10-.
|
|
78
|
-
* 1. Add the correct display in IE.
|
|
79
|
-
*/
|
|
80
|
-
|
|
81
|
-
template, /* 1 */
|
|
82
|
-
[hidden] {
|
|
83
|
-
display: none;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/* Links
|
|
87
|
-
========================================================================== */
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* 1. Remove the gray background on active links in IE 10.
|
|
91
|
-
* 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
|
|
92
|
-
*/
|
|
93
|
-
|
|
94
|
-
a {
|
|
95
|
-
background-color: transparent; /* 1 */
|
|
96
|
-
-webkit-text-decoration-skip: objects; /* 2 */
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Remove the outline on focused links when they are also active or hovered
|
|
101
|
-
* in all browsers (opinionated).
|
|
102
|
-
*/
|
|
103
|
-
|
|
104
|
-
a:active,
|
|
105
|
-
a:hover {
|
|
106
|
-
outline-width: 0;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/* Text-level semantics
|
|
110
|
-
========================================================================== */
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* 1. Remove the bottom border in Firefox 39-.
|
|
114
|
-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
115
|
-
*/
|
|
116
|
-
|
|
117
|
-
abbr[title] {
|
|
118
|
-
border-bottom: none; /* 1 */
|
|
119
|
-
text-decoration: underline; /* 2 */
|
|
120
|
-
text-decoration: underline dotted; /* 2 */
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Prevent the duplicate application of `bolder` by the next rule in Safari 6.
|
|
125
|
-
*/
|
|
126
|
-
|
|
127
|
-
b,
|
|
128
|
-
strong {
|
|
129
|
-
font-weight: inherit;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
134
|
-
*/
|
|
135
|
-
|
|
136
|
-
b,
|
|
137
|
-
strong {
|
|
138
|
-
font-weight: bolder;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Add the correct font style in Android 4.3-.
|
|
143
|
-
*/
|
|
144
|
-
|
|
145
|
-
dfn {
|
|
146
|
-
font-style: italic;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Correct the font size and margin on `h1` elements within `section` and
|
|
151
|
-
* `article` contexts in Chrome, Firefox, and Safari.
|
|
152
|
-
*/
|
|
153
|
-
|
|
154
|
-
h1 {
|
|
155
|
-
font-size: 2em;
|
|
156
|
-
margin: 0.67em 0;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Add the correct background and color in IE 9-.
|
|
161
|
-
*/
|
|
162
|
-
|
|
163
|
-
mark {
|
|
164
|
-
background-color: #ff0;
|
|
165
|
-
color: #000;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Add the correct font size in all browsers.
|
|
170
|
-
*/
|
|
171
|
-
|
|
172
|
-
small {
|
|
173
|
-
font-size: 80%;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Prevent `sub` and `sup` elements from affecting the line height in
|
|
178
|
-
* all browsers.
|
|
179
|
-
*/
|
|
180
|
-
|
|
181
|
-
sub,
|
|
182
|
-
sup {
|
|
183
|
-
font-size: 75%;
|
|
184
|
-
line-height: 0;
|
|
185
|
-
position: relative;
|
|
186
|
-
vertical-align: baseline;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
sub {
|
|
190
|
-
bottom: -0.25em;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
sup {
|
|
194
|
-
top: -0.5em;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/* Embedded content
|
|
198
|
-
========================================================================== */
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* Remove the border on images inside links in IE 10-.
|
|
202
|
-
*/
|
|
203
|
-
|
|
204
|
-
img {
|
|
205
|
-
border-style: none;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Hide the overflow in IE.
|
|
210
|
-
*/
|
|
211
|
-
|
|
212
|
-
svg:not(:root) {
|
|
213
|
-
overflow: hidden;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/* Grouping content
|
|
217
|
-
========================================================================== */
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
221
|
-
* 2. Correct the odd `em` font sizing in all browsers.
|
|
222
|
-
*/
|
|
223
|
-
|
|
224
|
-
code,
|
|
225
|
-
kbd,
|
|
226
|
-
pre,
|
|
227
|
-
samp {
|
|
228
|
-
font-family: monospace, monospace; /* 1 */
|
|
229
|
-
font-size: 1em; /* 2 */
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* Add the correct margin in IE 8.
|
|
234
|
-
*/
|
|
235
|
-
|
|
236
|
-
figure {
|
|
237
|
-
margin: 1em 40px;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* 1. Add the correct box sizing in Firefox.
|
|
242
|
-
* 2. Show the overflow in Edge and IE.
|
|
243
|
-
*/
|
|
244
|
-
|
|
245
|
-
hr {
|
|
246
|
-
box-sizing: content-box; /* 1 */
|
|
247
|
-
height: 0; /* 1 */
|
|
248
|
-
overflow: visible; /* 2 */
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
/* Forms
|
|
252
|
-
========================================================================== */
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* 1. Change font properties to `inherit` in all browsers (opinionated).
|
|
256
|
-
* 2. Remove the margin in Firefox and Safari.
|
|
257
|
-
*/
|
|
258
|
-
|
|
259
|
-
button,
|
|
260
|
-
input,
|
|
261
|
-
optgroup,
|
|
262
|
-
select,
|
|
263
|
-
textarea {
|
|
264
|
-
font: inherit; /* 1 */
|
|
265
|
-
margin: 0; /* 2 */
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* Restore the font weight unset by the previous rule.
|
|
270
|
-
*/
|
|
271
|
-
|
|
272
|
-
optgroup {
|
|
273
|
-
font-weight: bold;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Show the overflow in IE.
|
|
278
|
-
* 1. Show the overflow in Edge.
|
|
279
|
-
*/
|
|
280
|
-
|
|
281
|
-
button,
|
|
282
|
-
input { /* 1 */
|
|
283
|
-
overflow: visible;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
288
|
-
* 1. Remove the inheritance of text transform in Firefox.
|
|
289
|
-
*/
|
|
290
|
-
|
|
291
|
-
button,
|
|
292
|
-
select { /* 1 */
|
|
293
|
-
text-transform: none;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
|
|
298
|
-
* controls in Android 4.
|
|
299
|
-
* 2. Correct the inability to style clickable types in iOS and Safari.
|
|
300
|
-
*/
|
|
301
|
-
|
|
302
|
-
button,
|
|
303
|
-
html [type="button"], /* 1 */
|
|
304
|
-
[type="reset"],
|
|
305
|
-
[type="submit"] {
|
|
306
|
-
-webkit-appearance: button; /* 2 */
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* Remove the inner border and padding in Firefox.
|
|
311
|
-
*/
|
|
312
|
-
|
|
313
|
-
button::-moz-focus-inner,
|
|
314
|
-
[type="button"]::-moz-focus-inner,
|
|
315
|
-
[type="reset"]::-moz-focus-inner,
|
|
316
|
-
[type="submit"]::-moz-focus-inner {
|
|
317
|
-
border-style: none;
|
|
318
|
-
padding: 0;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* Restore the focus styles unset by the previous rule.
|
|
323
|
-
*/
|
|
324
|
-
|
|
325
|
-
button:-moz-focusring,
|
|
326
|
-
[type="button"]:-moz-focusring,
|
|
327
|
-
[type="reset"]:-moz-focusring,
|
|
328
|
-
[type="submit"]:-moz-focusring {
|
|
329
|
-
outline: 1px dotted ButtonText;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* Change the border, margin, and padding in all browsers (opinionated).
|
|
334
|
-
*/
|
|
335
|
-
|
|
336
|
-
fieldset {
|
|
337
|
-
border: 1px solid #c0c0c0;
|
|
338
|
-
margin: 0 2px;
|
|
339
|
-
padding: 0.35em 0.625em 0.75em;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* 1. Correct the text wrapping in Edge and IE.
|
|
344
|
-
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
|
345
|
-
* 3. Remove the padding so developers are not caught out when they zero out
|
|
346
|
-
* `fieldset` elements in all browsers.
|
|
347
|
-
*/
|
|
348
|
-
|
|
349
|
-
legend {
|
|
350
|
-
box-sizing: border-box; /* 1 */
|
|
351
|
-
color: inherit; /* 2 */
|
|
352
|
-
display: table; /* 1 */
|
|
353
|
-
max-width: 100%; /* 1 */
|
|
354
|
-
padding: 0; /* 3 */
|
|
355
|
-
white-space: normal; /* 1 */
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
/**
|
|
359
|
-
* Remove the default vertical scrollbar in IE.
|
|
360
|
-
*/
|
|
361
|
-
|
|
362
|
-
textarea {
|
|
363
|
-
overflow: auto;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* 1. Add the correct box sizing in IE 10-.
|
|
368
|
-
* 2. Remove the padding in IE 10-.
|
|
369
|
-
*/
|
|
370
|
-
|
|
371
|
-
[type="checkbox"],
|
|
372
|
-
[type="radio"] {
|
|
373
|
-
box-sizing: border-box; /* 1 */
|
|
374
|
-
padding: 0; /* 2 */
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
379
|
-
*/
|
|
380
|
-
|
|
381
|
-
[type="number"]::-webkit-inner-spin-button,
|
|
382
|
-
[type="number"]::-webkit-outer-spin-button {
|
|
383
|
-
height: auto;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
/**
|
|
387
|
-
* 1. Correct the odd appearance in Chrome and Safari.
|
|
388
|
-
* 2. Correct the outline style in Safari.
|
|
389
|
-
*/
|
|
390
|
-
|
|
391
|
-
[type="search"] {
|
|
392
|
-
-webkit-appearance: textfield; /* 1 */
|
|
393
|
-
outline-offset: -2px; /* 2 */
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
/**
|
|
397
|
-
* Remove the inner padding and cancel buttons in Chrome and Safari on OS X.
|
|
398
|
-
*/
|
|
399
|
-
|
|
400
|
-
[type="search"]::-webkit-search-cancel-button,
|
|
401
|
-
[type="search"]::-webkit-search-decoration {
|
|
402
|
-
-webkit-appearance: none;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
/**
|
|
406
|
-
* Correct the text style of placeholders in Chrome, Edge, and Safari.
|
|
407
|
-
*/
|
|
408
|
-
|
|
409
|
-
::-webkit-input-placeholder {
|
|
410
|
-
color: inherit;
|
|
411
|
-
opacity: 0.54;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
/**
|
|
415
|
-
* 1. Correct the inability to style clickable types in iOS and Safari.
|
|
416
|
-
* 2. Change font properties to `inherit` in Safari.
|
|
417
|
-
*/
|
|
418
|
-
|
|
419
|
-
::-webkit-file-upload-button {
|
|
420
|
-
-webkit-appearance: button; /* 1 */
|
|
421
|
-
font: inherit; /* 2 */
|
|
422
|
-
}
|
|
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
|
+
/*! 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:rgba(0,0,0,0);-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}
|