@skyscanner/backpack-web 16.2.0 → 17.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/README.md +0 -1
- package/bpk-component-calendar/src/BpkCalendarDate.module.scss +13 -17
- package/bpk-component-calendar/src/BpkCalendarNav.module.scss +4 -4
- package/bpk-component-checkbox/src/BpkCheckbox.module.scss +4 -0
- package/bpk-component-content-cards/src/BpkContentCard.module.scss +1 -1
- package/bpk-component-content-cards/src/BpkContentCards.module.scss +1 -1
- package/bpk-component-radio/src/BpkRadio.module.scss +4 -0
- package/bpk-component-theme-toggle/src/theming.js +3 -4
- package/bpk-scrim-utils/src/bpk-scrim.module.scss +3 -6
- package/package.json +4 -4
- package/bpk-component-content-container/README.md +0 -31
- package/bpk-component-content-container/index.js +0 -21
- package/bpk-component-content-container/src/BpkContentContainer.js +0 -85
- package/bpk-component-content-container/src/BpkContentContainer.module.css +0 -18
- package/bpk-component-content-container/src/BpkContentContainer.module.scss +0 -41
package/README.md
CHANGED
|
@@ -40,7 +40,6 @@ To contribute please see [contributing.md](CONTRIBUTING.md).
|
|
|
40
40
|
[`bpk-component-chip`](/packages/bpk-component-chip)
|
|
41
41
|
[`bpk-component-close-button`](/packages/bpk-component-close-button)
|
|
42
42
|
[`bpk-component-code`](/packages/bpk-component-code)
|
|
43
|
-
[`bpk-component-content-container`](/packages/bpk-component-content-container)
|
|
44
43
|
[`bpk-component-datatable`](/packages/bpk-component-datatable)
|
|
45
44
|
[`bpk-component-datepicker`](/packages/bpk-component-datepicker)
|
|
46
45
|
[`bpk-component-description-list`](/packages/bpk-component-description-list)
|
|
@@ -36,34 +36,34 @@ $bpk-spacing-v2: true;
|
|
|
36
36
|
@include bpk-themeable-property(
|
|
37
37
|
color,
|
|
38
38
|
--bpk-calendar-date-text-color,
|
|
39
|
-
$bpk-
|
|
39
|
+
$bpk-text-primary-day
|
|
40
40
|
);
|
|
41
41
|
|
|
42
42
|
@include bpk-hover {
|
|
43
43
|
&:not(.bpk-calendar-date--selected) {
|
|
44
|
-
background-color: $bpk-
|
|
44
|
+
background-color: $bpk-canvas-contrast-day;
|
|
45
45
|
|
|
46
46
|
@include bpk-themeable-property(
|
|
47
47
|
color,
|
|
48
48
|
--bpk-calendar-date-text-hover-color,
|
|
49
|
-
$bpk-
|
|
49
|
+
$bpk-text-primary-day
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
&:not(.bpk-calendar-date--selected):active {
|
|
55
|
-
background-color: $bpk-
|
|
55
|
+
background-color: $bpk-canvas-contrast-day;
|
|
56
56
|
|
|
57
57
|
@include bpk-themeable-property(
|
|
58
58
|
color,
|
|
59
59
|
--bpk-calendar-date-text-active-color,
|
|
60
|
-
$bpk-
|
|
60
|
+
$bpk-text-primary-day
|
|
61
61
|
);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
&--outside {
|
|
65
65
|
background-color: transparent;
|
|
66
|
-
color: $bpk-
|
|
66
|
+
color: $bpk-text-disabled-day;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
&--selected {
|
|
@@ -72,7 +72,7 @@ $bpk-spacing-v2: true;
|
|
|
72
72
|
@include bpk-themeable-property(
|
|
73
73
|
color,
|
|
74
74
|
--bpk-calendar-date-text-selected-color,
|
|
75
|
-
$bpk-
|
|
75
|
+
$bpk-text-primary-inverse-day
|
|
76
76
|
);
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -94,33 +94,29 @@ $bpk-spacing-v2: true;
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
&--focused:not(:disabled):not(.bpk-calendar-date--selected) {
|
|
97
|
-
box-shadow: 0 0 0 2px $bpk-
|
|
97
|
+
box-shadow: 0 0 0 2px $bpk-core-accent-day inset;
|
|
98
98
|
box-shadow: 0 0 0 2px
|
|
99
|
-
var(
|
|
100
|
-
--bpk-calendar-date-focused-border-color,
|
|
101
|
-
$bpk-calendar-day-focused-border-color
|
|
102
|
-
)
|
|
103
|
-
inset;
|
|
99
|
+
var(--bpk-calendar-date-focused-border-color, $bpk-core-accent-day) inset;
|
|
104
100
|
|
|
105
101
|
@include bpk-themeable-property(
|
|
106
102
|
color,
|
|
107
103
|
--bpk-calendar-date-text-focus-color,
|
|
108
|
-
$bpk-
|
|
104
|
+
$bpk-core-accent-day
|
|
109
105
|
);
|
|
110
106
|
}
|
|
111
107
|
|
|
112
108
|
&:disabled,
|
|
113
109
|
&--blocked {
|
|
114
110
|
background-color: transparent;
|
|
115
|
-
color: $bpk-
|
|
111
|
+
color: $bpk-text-disabled-day;
|
|
116
112
|
cursor: not-allowed;
|
|
117
113
|
|
|
118
114
|
@include bpk-hover {
|
|
119
|
-
color: $bpk-
|
|
115
|
+
color: $bpk-text-disabled-day;
|
|
120
116
|
}
|
|
121
117
|
|
|
122
118
|
&:active {
|
|
123
|
-
color: $bpk-
|
|
119
|
+
color: $bpk-text-disabled-day;
|
|
124
120
|
}
|
|
125
121
|
}
|
|
126
122
|
}
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
@include bpk-themeable-property(
|
|
48
48
|
color,
|
|
49
49
|
--bpk-calendar-nudger-icon-color,
|
|
50
|
-
$bpk-
|
|
50
|
+
$bpk-text-primary-day
|
|
51
51
|
);
|
|
52
52
|
|
|
53
53
|
@include bpk-hover {
|
|
54
54
|
@include bpk-themeable-property(
|
|
55
55
|
color,
|
|
56
56
|
--bpk-calendar-nudger-icon-hover-color,
|
|
57
|
-
$bpk-
|
|
57
|
+
$bpk-text-primary-day
|
|
58
58
|
);
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
@include bpk-themeable-property(
|
|
63
63
|
color,
|
|
64
64
|
--bpk-calendar-nudger-icon-active-color,
|
|
65
|
-
$bpk-
|
|
65
|
+
$bpk-text-primary-day
|
|
66
66
|
);
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
cursor: not-allowed;
|
|
77
77
|
|
|
78
78
|
.bpk-calendar-nav__icon {
|
|
79
|
-
fill: $bpk-
|
|
79
|
+
fill: $bpk-text-disabled-day;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
}
|
|
@@ -19,12 +19,11 @@ import {
|
|
|
19
19
|
horizontalNavLinkColor,
|
|
20
20
|
horizontalNavLinkHoverColor,
|
|
21
21
|
horizontalNavLinkActiveColor,
|
|
22
|
-
calendarDayHoverColor,
|
|
23
|
-
calendarDayActiveColor,
|
|
24
22
|
colorSkyGrayTint02,
|
|
25
23
|
colorSkyGrayTint06,
|
|
26
24
|
colorWhite,
|
|
27
25
|
colorMonteverde,
|
|
26
|
+
textPrimaryDay,
|
|
28
27
|
} from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
29
28
|
|
|
30
29
|
const generateTheme = ({
|
|
@@ -159,8 +158,8 @@ const generateTheme = ({
|
|
|
159
158
|
progressBarFillColor: primaryColor500,
|
|
160
159
|
|
|
161
160
|
calendarDateTextColor: primaryColor500,
|
|
162
|
-
calendarDateTextHoverColor:
|
|
163
|
-
calendarDateTextActiveColor:
|
|
161
|
+
calendarDateTextHoverColor: textPrimaryDay,
|
|
162
|
+
calendarDateTextActiveColor: textPrimaryDay,
|
|
164
163
|
calendarDateTextFocusColor: primaryColor500,
|
|
165
164
|
calendarDateTextSelectedColor: colorWhite,
|
|
166
165
|
calendarDateSelectedBackgroundColor: primaryColor700,
|
|
@@ -27,22 +27,19 @@
|
|
|
27
27
|
z-index: $bpk-zindex-scrim;
|
|
28
28
|
transition: opacity $bpk-duration-sm ease-in-out;
|
|
29
29
|
background-color: $bpk-scrim-day;
|
|
30
|
-
|
|
31
|
-
// We will need to remove this on hex launch as opacity will be built into the above colour.
|
|
32
|
-
opacity: $bpk-scrim-opacity;
|
|
33
30
|
overflow: hidden;
|
|
34
31
|
|
|
35
32
|
&--full-screen {
|
|
36
33
|
@include bpk-breakpoint-mobile {
|
|
37
|
-
opacity:
|
|
34
|
+
opacity: 1;
|
|
38
35
|
}
|
|
39
36
|
}
|
|
40
37
|
|
|
41
38
|
&--appear {
|
|
42
|
-
opacity:
|
|
39
|
+
opacity: 0;
|
|
43
40
|
}
|
|
44
41
|
|
|
45
42
|
&--appear-active {
|
|
46
|
-
opacity:
|
|
43
|
+
opacity: 0.7;
|
|
47
44
|
}
|
|
48
45
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyscanner/backpack-web",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"description": "Backpack Design System web library",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@popperjs/core": "^2.11.5",
|
|
26
26
|
"@react-google-maps/api": "^2.12.0",
|
|
27
|
-
"@skyscanner/bpk-foundations-web": "^13.
|
|
28
|
-
"@skyscanner/bpk-svgs": "^16.0.
|
|
27
|
+
"@skyscanner/bpk-foundations-web": "^13.3.0",
|
|
28
|
+
"@skyscanner/bpk-svgs": "^16.0.5",
|
|
29
29
|
"a11y-focus-scope": "^1.1.3",
|
|
30
30
|
"a11y-focus-store": "^1.0.0",
|
|
31
|
-
"bpk-mixins": "^
|
|
31
|
+
"bpk-mixins": "^37.1.0",
|
|
32
32
|
"d3-path": "^2.0.0",
|
|
33
33
|
"d3-scale": "^4.0.2",
|
|
34
34
|
"date-fns": "^2.21.1",
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# bpk-component-content-container
|
|
2
|
-
|
|
3
|
-
> Backpack content container component.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
Check the main [Readme](https://github.com/skyscanner/backpack#usage) for a complete installation guide.
|
|
8
|
-
|
|
9
|
-
## Usage
|
|
10
|
-
|
|
11
|
-
```js
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import BpkContentContainer from '@skyscanner/backpack-web/bpk-component-content-container';
|
|
14
|
-
|
|
15
|
-
export default () => (
|
|
16
|
-
<BpkContentContainer>
|
|
17
|
-
<h1>My heading</h1>
|
|
18
|
-
<p>My paragraph.</p>
|
|
19
|
-
</BpkContentContainer>
|
|
20
|
-
);
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Props
|
|
24
|
-
|
|
25
|
-
| Property | PropType | Required | Default Value |
|
|
26
|
-
| ----------------------- | -------------------------------------------- | -------- | ------------- |
|
|
27
|
-
| children | - | false | null |
|
|
28
|
-
| dangerouslySetInnerHTML | { __html: string } | false | null |
|
|
29
|
-
| tagName | 'article', 'aside', 'div', 'main', 'section' | false | 'div' |
|
|
30
|
-
| bareHtml | bool | false | false |
|
|
31
|
-
| alternate | bool | false | false |
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
import component from './src/BpkContentContainer';
|
|
20
|
-
|
|
21
|
-
export default component;
|
|
@@ -1,85 +0,0 @@
|
|
|
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
|
-
import PropTypes from 'prop-types';
|
|
20
|
-
import React from 'react';
|
|
21
|
-
|
|
22
|
-
import { cssModules } from '../../bpk-react-utils';
|
|
23
|
-
|
|
24
|
-
import STYLES from './BpkContentContainer.module.scss';
|
|
25
|
-
|
|
26
|
-
const getClassName = cssModules(STYLES);
|
|
27
|
-
|
|
28
|
-
const BpkContentContainer = (props) => {
|
|
29
|
-
const {
|
|
30
|
-
alternate,
|
|
31
|
-
bareHtml,
|
|
32
|
-
children,
|
|
33
|
-
className,
|
|
34
|
-
dangerouslySetInnerHTML,
|
|
35
|
-
tagName: TagName,
|
|
36
|
-
...rest
|
|
37
|
-
} = props;
|
|
38
|
-
const classNames = [getClassName('bpk-content-container')];
|
|
39
|
-
|
|
40
|
-
if (bareHtml) {
|
|
41
|
-
classNames.push(getClassName('bpk-content-container--bare-html'));
|
|
42
|
-
|
|
43
|
-
if (alternate) {
|
|
44
|
-
classNames.push(
|
|
45
|
-
getClassName('bpk-content-container--bare-html-alternate'),
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
if (className) {
|
|
51
|
-
classNames.push(className);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
return (
|
|
55
|
-
<TagName
|
|
56
|
-
className={classNames.join(' ')}
|
|
57
|
-
dangerouslySetInnerHTML={dangerouslySetInnerHTML}
|
|
58
|
-
{...rest}
|
|
59
|
-
>
|
|
60
|
-
{children}
|
|
61
|
-
</TagName>
|
|
62
|
-
);
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
BpkContentContainer.propTypes = {
|
|
66
|
-
children: PropTypes.node,
|
|
67
|
-
dangerouslySetInnerHTML: PropTypes.shape({
|
|
68
|
-
__html: PropTypes.string.isRequired,
|
|
69
|
-
}),
|
|
70
|
-
tagName: PropTypes.oneOf(['article', 'aside', 'div', 'main', 'section']),
|
|
71
|
-
bareHtml: PropTypes.bool,
|
|
72
|
-
alternate: PropTypes.bool,
|
|
73
|
-
className: PropTypes.string,
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
BpkContentContainer.defaultProps = {
|
|
77
|
-
children: null,
|
|
78
|
-
dangerouslySetInnerHTML: null,
|
|
79
|
-
tagName: 'div',
|
|
80
|
-
bareHtml: false,
|
|
81
|
-
alternate: false,
|
|
82
|
-
className: null,
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
export default BpkContentContainer;
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-content-container>h1:not(:first-child),.bpk-content-container>h2:not(:first-child),.bpk-content-container>h3:not(:first-child),.bpk-content-container>h4:not(:first-child){margin-top:1.875rem}.bpk-content-container>.bpk-content-container{margin-bottom:.75rem}.bpk-content-container>*:last-child{margin-bottom:0}.bpk-content-container--bare-html h1{margin-top:0;margin-bottom:.75rem;font-size:3rem;line-height:3.5rem;font-weight:700;letter-spacing:-.02em}@media (max-width: 32.25rem){.bpk-content-container--bare-html h1{font-size:2rem;line-height:2.5rem;font-weight:700}}.bpk-content-container--bare-html h2{margin-top:0;margin-bottom:.75rem;font-size:2rem;line-height:2.5rem;font-weight:700}@media (max-width: 32.25rem){.bpk-content-container--bare-html h2{font-size:1.5rem;line-height:2rem;font-weight:400}}.bpk-content-container--bare-html h3{margin-top:0;margin-bottom:.75rem;font-size:1.5rem;line-height:2rem;font-weight:400}@media (max-width: 32.25rem){.bpk-content-container--bare-html h3{font-size:1rem;line-height:1.5rem;font-weight:400;font-weight:700}}.bpk-content-container--bare-html h4{margin-top:0;margin-bottom:.375rem;font-size:1rem;line-height:1.5rem;font-weight:400}@media (max-width: 32.25rem){.bpk-content-container--bare-html h4{font-size:.75rem;line-height:1rem;font-weight:400;font-weight:700}}.bpk-content-container--bare-html h5{margin-top:0;margin-bottom:.75rem;font-size:.75rem;line-height:1rem;font-weight:400}@media (max-width: 32.25rem){.bpk-content-container--bare-html h5{font-size:.75rem;line-height:1rem;font-weight:400;font-weight:700}}.bpk-content-container--bare-html h6{margin-top:0;margin-bottom:.75rem;font-size:.75rem;line-height:1rem;font-weight:400}@media (max-width: 32.25rem){.bpk-content-container--bare-html h6{font-size:.75rem;line-height:1rem;font-weight:400;font-weight:700}}.bpk-content-container--bare-html a{padding:0;border:0;background-color:transparent;text-decoration:none;cursor:pointer;appearance:none;color:#0770e3;color:var(--bpk-link-color, #0770e3)}.bpk-no-touch-support .bpk-content-container--bare-html a:hover:not(:active):not(:disabled){text-decoration:underline;color:#084eb2;color:var(--bpk-link-hover-color, #084eb2)}:global(.bpk-no-touch-support) .bpk-content-container--bare-html a:hover:not(:active):not(:disabled){text-decoration:underline;color:#084eb2;color:var(--bpk-link-hover-color, #084eb2)}.bpk-content-container--bare-html a:visited{color:#0770e3;color:var(--bpk-link-visited-color, #0770e3)}.bpk-content-container--bare-html a:active{text-decoration:underline;color:#042759;color:var(--bpk-link-active-color, #042759)}.bpk-content-container--bare-html p{margin-top:0;margin-bottom:.375rem;font-size:1rem;line-height:1.5rem;font-weight:400}.bpk-content-container--bare-html ul,.bpk-content-container--bare-html ol{margin-top:0;margin-bottom:.75rem;padding-left:1.5rem}.bpk-content-container--bare-html ul ul,.bpk-content-container--bare-html ul ol,.bpk-content-container--bare-html ol ul,.bpk-content-container--bare-html ol ol{margin-top:0;margin-bottom:0}.bpk-content-container--bare-html ul li,.bpk-content-container--bare-html ol li{margin-top:0;margin-bottom:0}.bpk-content-container--bare-html table{width:100%;margin-bottom:0.5rem;border-collapse:collapse;table-layout:fixed;box-shadow:0 0 0 1px #dddde5 }.bpk-content-container--bare-html table td{padding:1rem}.bpk-content-container--bare-html table th{padding:1rem;background-color:#f1f2f8;font-weight:normal;text-align:left}html[dir='rtl'] .bpk-content-container--bare-html table th{text-align:right}.bpk-content-container--bare-html code{display:inline;padding:0 .375rem;background-color:#f1f2f8;color:#444560;text-align:left;text-shadow:0 .0625rem #fff;white-space:nowrap;vertical-align:bottom;border-radius:.25rem}html[dir='rtl'] .bpk-content-container--bare-html code{direction:ltr}.bpk-content-container--bare-html pre{margin:0 0 .75rem;padding:1.5rem;background-color:#f1f2f8;border-radius:.25rem}.bpk-content-container--bare-html pre>code{display:block;margin:0;padding:0;background-color:transparent;white-space:inherit;overflow:auto;-ms-overflow-style:none}.bpk-content-container--bare-html pre>code::-webkit-scrollbar{display:none}.bpk-content-container--bare-html blockquote{margin:0 0 1rem 0;padding:1.5rem;background-color:#f1f2f8;color:#68697f;box-shadow:2px 0 0 0 #0770e3 inset;box-shadow:2px 0 0 0 var(--bpk-blockquote-bar-color, #0770e3) inset}html[dir='rtl'] .bpk-content-container--bare-html blockquote{padding:1.5rem;border-left:0;box-shadow:-2px 0 0 0 #0770e3 inset;box-shadow:-2px 0 0 0 var(--bpk-blockquote-bar-color, #0770e3) inset}.bpk-content-container--bare-html blockquote>*:last-child{margin-bottom:0}.bpk-content-container--bare-html-alternate code{background-color:#cddff8;text-shadow:none}.bpk-content-container--bare-html-alternate pre{background-color:transparent;box-shadow:0 0 0 1px #b2b2bf inset}.bpk-content-container--bare-html-alternate pre>code{display:block;margin:0;padding:0;background-color:transparent;white-space:inherit;overflow:auto;-ms-overflow-style:none}.bpk-content-container--bare-html-alternate pre>code::-webkit-scrollbar{display:none}.bpk-content-container--bare-html-alternate table{box-shadow:0 0 0 1px #b2b2bf }.bpk-content-container--bare-html-alternate table th{background-color:#fff;text-align:left;font-weight:700}html[dir='rtl'] .bpk-content-container--bare-html-alternate table th{text-align:right}
|
|
@@ -1,41 +0,0 @@
|
|
|
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
|
-
@import '~bpk-mixins/index.scss';
|
|
20
|
-
|
|
21
|
-
.bpk-content-container {
|
|
22
|
-
> {
|
|
23
|
-
@include bpk-content-container;
|
|
24
|
-
|
|
25
|
-
.bpk-content-container {
|
|
26
|
-
margin-bottom: $bpk-spacing-sm;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
*:last-child {
|
|
30
|
-
margin-bottom: 0;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&--bare-html {
|
|
35
|
-
@include bpk-content-container--bare-html;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&--bare-html-alternate {
|
|
39
|
-
@include bpk-content-container--bare-html-alternate;
|
|
40
|
-
}
|
|
41
|
-
}
|