@automattic/jetpack-components 1.1.13 → 1.1.15
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/CHANGELOG.md +10 -0
- package/build/components/action-button/index.d.ts +2 -0
- package/build/components/action-button/index.js +5 -1
- package/build/components/layout/col/index.js +3 -3
- package/components/action-button/index.jsx +5 -1
- package/components/action-button/style.module.scss +1 -1
- package/components/action-popover/styles.module.scss +11 -11
- package/components/admin-page/style.module.scss +1 -1
- package/components/admin-section/hero/style.module.scss +1 -1
- package/components/alert/style.module.scss +16 -16
- package/components/badge/style.module.scss +2 -2
- package/components/boost-score-bar/style.scss +5 -5
- package/components/boost-score-graph/style-annotation.scss +4 -4
- package/components/boost-score-graph/style-tooltip.scss +55 -54
- package/components/boost-score-graph/style.scss +15 -15
- package/components/button/style.module.scss +12 -12
- package/components/contextual-upgrade-trigger/style.module.scss +10 -10
- package/components/decorative-card/style.scss +10 -10
- package/components/details-viewer/styles.module.scss +6 -6
- package/components/dialog/style.module.scss +5 -5
- package/components/diff-viewer/styles.module.scss +12 -12
- package/components/donut-meter/style.scss +9 -9
- package/components/dot-pager/style.scss +2 -2
- package/components/global-notices/styles.module.scss +1 -1
- package/components/gridicon/style.scss +3 -3
- package/components/icon-tooltip/style.scss +4 -4
- package/components/icons/style.module.scss +12 -12
- package/components/indeterminate-progress-bar/style.module.scss +3 -9
- package/components/jetpack-footer/style.scss +17 -17
- package/components/layout/col/index.tsx +3 -3
- package/components/layout/col/style.module.scss +3 -3
- package/components/layout/container/style.module.scss +1 -1
- package/components/loading-placeholder/style.module.scss +13 -13
- package/components/marked-lines/styles.module.scss +12 -12
- package/components/notice/style.module.scss +19 -16
- package/components/number-slider/style.scss +1 -1
- package/components/popover/style.scss +1 -1
- package/components/pricing-card/style.scss +15 -15
- package/components/pricing-table/styles.module.scss +4 -3
- package/components/product-offer/style.module.scss +20 -20
- package/components/product-price/style.module.scss +11 -11
- package/components/progress-bar/style.module.scss +3 -3
- package/components/radio-control/styles.module.scss +5 -5
- package/components/spinner/style.scss +3 -2
- package/components/split-button/style.module.scss +10 -10
- package/components/stat-card/style.module.scss +11 -11
- package/components/status/style.module.scss +54 -49
- package/components/swipeable/style.scss +1 -1
- package/components/testimonials/style.scss +113 -113
- package/components/text/style.module.scss +6 -6
- package/components/toggle-control/styles.module.scss +11 -11
- package/components/upsell-banner/style.scss +12 -12
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
### This is a list detailing changes for the Jetpack RNA Components package releases.
|
|
4
4
|
|
|
5
|
+
## [1.1.15] - 2025-07-23
|
|
6
|
+
### Changed
|
|
7
|
+
- Internal updates.
|
|
8
|
+
|
|
9
|
+
## [1.1.14] - 2025-07-21
|
|
10
|
+
### Changed
|
|
11
|
+
- Update package dependencies. [#44356]
|
|
12
|
+
|
|
5
13
|
## [1.1.13] - 2025-07-10
|
|
6
14
|
### Changed
|
|
7
15
|
- Update package dependencies. [#44219]
|
|
@@ -1477,6 +1485,8 @@
|
|
|
1477
1485
|
### Changed
|
|
1478
1486
|
- Update node version requirement to 14.16.1
|
|
1479
1487
|
|
|
1488
|
+
[1.1.15]: https://github.com/Automattic/jetpack-components/compare/1.1.14...1.1.15
|
|
1489
|
+
[1.1.14]: https://github.com/Automattic/jetpack-components/compare/1.1.13...1.1.14
|
|
1480
1490
|
[1.1.13]: https://github.com/Automattic/jetpack-components/compare/1.1.12...1.1.13
|
|
1481
1491
|
[1.1.12]: https://github.com/Automattic/jetpack-components/compare/1.1.11...1.1.12
|
|
1482
1492
|
[1.1.11]: https://github.com/Automattic/jetpack-components/compare/1.1.10...1.1.11
|
|
@@ -34,8 +34,12 @@ ActionButton.propTypes = {
|
|
|
34
34
|
/** The error message string */
|
|
35
35
|
errorMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
36
36
|
/** The type/variant of button */
|
|
37
|
-
variant: PropTypes.
|
|
37
|
+
variant: PropTypes.oneOf(['primary', 'secondary', 'link']),
|
|
38
38
|
/** Will display the button as a link with an external icon. */
|
|
39
39
|
isExternalLink: PropTypes.bool,
|
|
40
|
+
/** Custom CSS class to apply to the button */
|
|
41
|
+
customClass: PropTypes.string,
|
|
42
|
+
/** Text to display when loading */
|
|
43
|
+
loadingText: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
40
44
|
};
|
|
41
45
|
export default ActionButton;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import clsx from 'clsx';
|
|
2
2
|
import { createElement } from 'react';
|
|
3
3
|
import styles from './style.module.scss';
|
|
4
|
-
const smCols = Number(styles.
|
|
5
|
-
const mdCols = Number(styles.
|
|
6
|
-
const lgCols = Number(styles.
|
|
4
|
+
const smCols = Number(styles.smcols);
|
|
5
|
+
const mdCols = Number(styles.mdcols);
|
|
6
|
+
const lgCols = Number(styles.lgcols);
|
|
7
7
|
/**
|
|
8
8
|
* The basic Col component.
|
|
9
9
|
*
|
|
@@ -67,9 +67,13 @@ ActionButton.propTypes = {
|
|
|
67
67
|
/** The error message string */
|
|
68
68
|
errorMessage: PropTypes.oneOfType( [ PropTypes.string, PropTypes.element ] ),
|
|
69
69
|
/** The type/variant of button */
|
|
70
|
-
variant: PropTypes.
|
|
70
|
+
variant: PropTypes.oneOf( [ 'primary', 'secondary', 'link' ] ),
|
|
71
71
|
/** Will display the button as a link with an external icon. */
|
|
72
72
|
isExternalLink: PropTypes.bool,
|
|
73
|
+
/** Custom CSS class to apply to the button */
|
|
74
|
+
customClass: PropTypes.string,
|
|
75
|
+
/** Text to display when loading */
|
|
76
|
+
loadingText: PropTypes.oneOfType( [ PropTypes.string, PropTypes.element ] ),
|
|
73
77
|
};
|
|
74
78
|
|
|
75
79
|
export default ActionButton;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.error {
|
|
2
|
-
color: var(
|
|
2
|
+
color: var(--jp-red);
|
|
3
3
|
line-height: 25px;
|
|
4
4
|
padding-left: 25px;
|
|
5
5
|
background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDIwQzE2LjQxODMgMjAgMjAgMTYuNDE4MyAyMCAxMkMyMCA3LjU4MTcyIDE2LjQxODMgNCAxMiA0QzcuNTgxNzIgNCA0IDcuNTgxNzIgNCAxMkM0IDE2LjQxODMgNy41ODE3MiAyMCAxMiAyMFoiIHN0cm9rZT0iI0Q2MzYzOSIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPHBhdGggZD0iTTEzIDdIMTFWMTNIMTNWN1oiIGZpbGw9IiNENjM2MzkiLz4KPHBhdGggZD0iTTEzIDE1SDExVjE3SDEzVjE1WiIgZmlsbD0iI0Q2MzYzOSIvPgo8L3N2Zz4K) no-repeat 0 0;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
.wrapper {
|
|
2
2
|
width: 304px;
|
|
3
3
|
min-height: 230px;
|
|
4
|
-
padding: calc(
|
|
4
|
+
padding: calc(var(--spacing-base) * 3); // 24px;
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
|
|
8
8
|
.header {
|
|
9
9
|
display: flex;
|
|
10
|
-
margin-bottom: calc(
|
|
10
|
+
margin-bottom: calc(var(--spacing-base) * 2); // 16px
|
|
11
11
|
justify-content: space-between;
|
|
12
12
|
|
|
13
13
|
.title {
|
|
14
14
|
max-width: 226px;
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
.close-button {
|
|
18
|
-
height: calc(
|
|
19
|
-
width: calc(
|
|
18
|
+
height: calc(var(--spacing-base) * 3); // 24px
|
|
19
|
+
width: calc(var(--spacing-base) * 3); // 24px
|
|
20
20
|
min-width: unset;
|
|
21
|
-
color: var(
|
|
22
|
-
background-color: var(
|
|
21
|
+
color: var(--jp-gray-90);
|
|
22
|
+
background-color: var(--jp-white);
|
|
23
23
|
flex-shrink: 0;
|
|
24
24
|
|
|
25
25
|
&:hover:not(:focus) {
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.footer {
|
|
32
|
-
height: calc(
|
|
33
|
-
margin-top: calc(
|
|
32
|
+
height: calc(var(--spacing-base) * 6); // 48px
|
|
33
|
+
margin-top: calc(var(--spacing-base) * 2); // 16px
|
|
34
34
|
display: flex;
|
|
35
35
|
justify-content: flex-end;
|
|
36
36
|
align-items: flex-end;
|
|
37
37
|
flex-grow: 1;
|
|
38
38
|
|
|
39
39
|
.steps {
|
|
40
|
-
color: var(
|
|
40
|
+
color: var(--jp-gray-60);
|
|
41
41
|
flex-grow: 1;
|
|
42
|
-
margin-bottom: var(
|
|
42
|
+
margin-bottom: var(--spacing-base);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.action-button {
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
.container {
|
|
2
2
|
display: flex;
|
|
3
|
-
font-size: var(
|
|
4
|
-
line-height: calc(
|
|
5
|
-
min-height: calc(
|
|
3
|
+
font-size: var(--font-body);
|
|
4
|
+
line-height: calc(var(--spacing-base) * 3);
|
|
5
|
+
min-height: calc(var(--spacing-base) * 3);
|
|
6
6
|
align-items: center;
|
|
7
|
-
margin: calc(
|
|
7
|
+
margin: calc(var(--spacing-base) * 2) 0;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.icon-wrapper {
|
|
11
|
-
margin-right: calc(
|
|
12
|
-
width: calc(
|
|
13
|
-
height: calc(
|
|
11
|
+
margin-right: calc(var(--spacing-base) / 2);
|
|
12
|
+
width: calc(var(--spacing-base) * 3);
|
|
13
|
+
height: calc(var(--spacing-base) * 3);
|
|
14
14
|
align-self: flex-start;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.is-error {
|
|
18
|
-
color: var(
|
|
18
|
+
color: var(--jp-red);
|
|
19
19
|
|
|
20
20
|
.icon {
|
|
21
|
-
fill: var(
|
|
21
|
+
fill: var(--jp-red);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.is-warning {
|
|
26
|
-
color: var(
|
|
26
|
+
color: var(--jp-yellow-40);
|
|
27
27
|
|
|
28
28
|
.icon {
|
|
29
|
-
fill: var(
|
|
29
|
+
fill: var(--jp-yellow-40);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.is-info {
|
|
34
|
-
color: var(
|
|
34
|
+
color: var(--jp-blue-40);
|
|
35
35
|
|
|
36
36
|
.icon {
|
|
37
|
-
fill: var(
|
|
37
|
+
fill: var(--jp-blue-40);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.is-success {
|
|
42
|
-
color: var(
|
|
42
|
+
color: var(--jp-green);
|
|
43
43
|
|
|
44
44
|
.icon {
|
|
45
|
-
fill: var(
|
|
45
|
+
fill: var(--jp-green);
|
|
46
46
|
}
|
|
47
|
-
}
|
|
47
|
+
}
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
color: var(--jp-green-50);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
&.is-warning {
|
|
17
17
|
background-color: var(--jp-yellow-5);
|
|
18
18
|
color: var(--jp-yellow-60);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
&.is-danger {
|
|
22
22
|
background-color: var(--jp-red-5);
|
|
23
23
|
color: var(--jp-red-70);
|
|
24
24
|
}
|
|
@@ -83,7 +83,7 @@ $no_boost_score_size: 28px;
|
|
|
83
83
|
|
|
84
84
|
@media (min-width: 768px) {
|
|
85
85
|
width: calc(100% + #{math.div($bar-height, 2)});
|
|
86
|
-
margin-left: math.div(-$bar_height, 2)
|
|
86
|
+
margin-left: math.div(-$bar_height, 2);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -146,7 +146,7 @@ $no_boost_score_size: 28px;
|
|
|
146
146
|
top: -62px;
|
|
147
147
|
left: -10em;
|
|
148
148
|
width: 20em;
|
|
149
|
-
background: #
|
|
149
|
+
background: #fff;
|
|
150
150
|
padding: 16px;
|
|
151
151
|
border-radius: 4px;
|
|
152
152
|
margin: 0 16px;
|
|
@@ -163,11 +163,11 @@ $no_boost_score_size: 28px;
|
|
|
163
163
|
position: absolute;
|
|
164
164
|
bottom: -$score_pointer_size;
|
|
165
165
|
left: 10em;
|
|
166
|
-
margin: 0 -10px
|
|
166
|
+
margin: 0 -10px;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
|
|
170
|
+
&__no_boost_score:hover &__no_boost_score_tooltip {
|
|
171
171
|
display: block;
|
|
172
172
|
}
|
|
173
173
|
|
|
@@ -186,4 +186,4 @@ $no_boost_score_size: 28px;
|
|
|
186
186
|
.fill-bad {
|
|
187
187
|
background-color: var(--jp-red-50);
|
|
188
188
|
}
|
|
189
|
-
}
|
|
189
|
+
}
|
|
@@ -19,11 +19,11 @@ $white: #fff;
|
|
|
19
19
|
z-index: 1;
|
|
20
20
|
|
|
21
21
|
/*
|
|
22
|
-
* The actual line is a pseudo element
|
|
22
|
+
* The actual line is a pseudo element to create a bigger hover area.
|
|
23
23
|
*/
|
|
24
24
|
&::after {
|
|
25
25
|
position: absolute;
|
|
26
|
-
content:
|
|
26
|
+
content: "";
|
|
27
27
|
display: block;
|
|
28
28
|
width: 2px;
|
|
29
29
|
height: 100%;
|
|
@@ -42,7 +42,7 @@ $white: #fff;
|
|
|
42
42
|
&__annotation {
|
|
43
43
|
|
|
44
44
|
&::after {
|
|
45
|
-
content:
|
|
45
|
+
content: "";
|
|
46
46
|
width: 0;
|
|
47
47
|
height: 0;
|
|
48
48
|
border-left: 8px solid transparent;
|
|
@@ -73,4 +73,4 @@ $white: #fff;
|
|
|
73
73
|
color: $white !important;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
}
|
|
76
|
+
}
|
|
@@ -3,71 +3,72 @@ $black: #101517;
|
|
|
3
3
|
$white: #fff;
|
|
4
4
|
|
|
5
5
|
.jb-score-tooltips-container {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
width: 100%;
|
|
7
|
+
position: relative;
|
|
8
|
+
pointer-events: none;
|
|
9
9
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.jb-score-tooltip-react-root {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
position: absolute;
|
|
14
|
+
bottom: -20px;
|
|
15
|
+
translate: -50% calc(100% - 20px);
|
|
16
|
+
z-index: 1000;
|
|
17
|
+
pointer-events: auto;
|
|
18
|
+
user-select: text;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.jb-score-tooltip {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
background-color: $black;
|
|
23
|
+
color: $white;
|
|
24
|
+
padding: 16px 24px;
|
|
25
|
+
border-radius: 4px;
|
|
26
|
+
font-size: 14px;
|
|
27
|
+
width: 20em;
|
|
28
|
+
position: relative;
|
|
29
|
+
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
30
|
+
display: none;
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
.visible &,
|
|
33
|
+
&:hover {
|
|
34
|
+
display: block;
|
|
35
|
+
}
|
|
35
36
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
hr {
|
|
38
|
+
border-top: 1px solid $grey;
|
|
39
|
+
border-bottom: none;
|
|
40
|
+
border-left: none;
|
|
41
|
+
border-right: none;
|
|
42
|
+
}
|
|
42
43
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
&__date {
|
|
45
|
+
font-size: 1em;
|
|
46
|
+
font-weight: 600;
|
|
47
|
+
// stylelint-disable-next-line declaration-property-unit-allowed-list -- this should be changed to a unitless value: https://developer.wordpress.org/coding-standards/wordpress-coding-standards/css/#values
|
|
48
|
+
line-height: 1.6em;
|
|
49
|
+
}
|
|
49
50
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
&__row {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: row;
|
|
54
|
+
justify-content: space-between;
|
|
55
|
+
margin: 0.9em 0;
|
|
55
56
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
&--secondary {
|
|
58
|
+
color: $grey;
|
|
59
|
+
margin-left: 1em;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
61
62
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
63
|
+
&__pointer {
|
|
64
|
+
width: 0;
|
|
65
|
+
height: 0;
|
|
66
|
+
border-left: 8px solid transparent;
|
|
67
|
+
border-right: 8px solid transparent;
|
|
68
|
+
border-bottom: 8px solid $black;
|
|
69
|
+
position: absolute;
|
|
70
|
+
top: -7px;
|
|
71
|
+
left: 50%;
|
|
72
|
+
transform: translateX(-50%);
|
|
73
|
+
}
|
|
73
74
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
.jb-score-graph {
|
|
2
|
-
|
|
2
|
+
height: 300px;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
&__placeholder {
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 100%;
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
svg {
|
|
10
|
+
object-position: right bottom;
|
|
11
|
+
object-fit: cover;
|
|
12
|
+
height: 100%;
|
|
13
|
+
width: 100%;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
16
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.boost-uplot-container {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
20
|
+
display: grid;
|
|
21
|
+
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
|
|
22
|
+
}
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
|
|
12
12
|
// Icon Button
|
|
13
13
|
&.is-icon-button {
|
|
14
|
-
padding: var(
|
|
15
|
-
width: calc(
|
|
16
|
-
height: calc(
|
|
14
|
+
padding: var(--spacing-base);
|
|
15
|
+
width: calc(var(--spacing-base) * 5);
|
|
16
|
+
height: calc(var(--spacing-base) * 5);
|
|
17
17
|
|
|
18
18
|
> svg:first-child {
|
|
19
19
|
margin: 0;
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&.small {
|
|
24
|
-
padding: calc(
|
|
25
|
-
width: calc(
|
|
26
|
-
min-width: calc(
|
|
27
|
-
height: calc(
|
|
24
|
+
padding: calc(var(--spacing-base) / 2);
|
|
25
|
+
width: calc(var(--spacing-base) * 4);
|
|
26
|
+
min-width: calc(var(--spacing-base) * 4);
|
|
27
|
+
height: calc(var(--spacing-base) * 4);
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
height: auto;
|
|
34
34
|
font-size: var(--font-body);
|
|
35
35
|
line-height: 24px;
|
|
36
|
-
padding: var(--spacing-base) calc(
|
|
36
|
+
padding: var(--spacing-base) calc(var(--spacing-base) * 3); // 8px - 24px
|
|
37
37
|
|
|
38
38
|
// With icon
|
|
39
39
|
&.icon {
|
|
40
|
-
padding: var(--spacing-base) calc(
|
|
40
|
+
padding: var(--spacing-base) calc(var(--spacing-base) * 2); // 8px - 16px
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
height: auto;
|
|
47
47
|
font-size: var(--font-body-extra-small);
|
|
48
48
|
line-height: 20px;
|
|
49
|
-
padding: calc(
|
|
49
|
+
padding: calc(var(--spacing-base) / 2) var(--spacing-base); // 4px - 8px
|
|
50
50
|
|
|
51
51
|
&.icon > svg:first-child {
|
|
52
|
-
margin-right: calc(
|
|
52
|
+
margin-right: calc(var(--spacing-base) / 2); // 4px
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
// With Spinner
|
|
@@ -210,5 +210,5 @@
|
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
.external-icon {
|
|
213
|
-
margin-left: calc(
|
|
213
|
+
margin-left: calc(var(--spacing-base) / 2); // 4px
|
|
214
214
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
.cut {
|
|
2
|
-
border: 2px solid var(
|
|
3
|
-
border-radius: var(
|
|
4
|
-
padding: calc(
|
|
2
|
+
border: 2px solid var(--jp-green-40);
|
|
3
|
+
border-radius: var(--jp-border-radius);
|
|
4
|
+
padding: calc(var(--spacing-base) * 2) calc(var(--spacing-base) * 3);
|
|
5
5
|
display: flex;
|
|
6
6
|
justify-content: space-between;
|
|
7
7
|
align-items: center;
|
|
8
|
-
gap: calc(
|
|
8
|
+
gap: calc(var(--spacing-base) * 3);
|
|
9
9
|
text-align: left;
|
|
10
10
|
background: none;
|
|
11
11
|
width: 100%;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
cursor: pointer;
|
|
20
20
|
|
|
21
21
|
&::after {
|
|
22
|
-
content:
|
|
22
|
+
content: "";
|
|
23
23
|
position: absolute;
|
|
24
24
|
top: 0;
|
|
25
25
|
left: 0;
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
&:focus-within {
|
|
32
|
-
border-color: var(
|
|
32
|
+
border-color: var(--jp-black);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
&:focus-within,
|
|
36
36
|
&:hover {
|
|
37
37
|
|
|
38
38
|
.icon {
|
|
39
|
-
transform: translateX(
|
|
39
|
+
transform: translateX(calc(var(--spacing-base) * 2));
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.cta {
|
|
@@ -56,16 +56,16 @@
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
.icon {
|
|
59
|
-
fill: var(
|
|
59
|
+
fill: var(--jp-green-40);
|
|
60
60
|
transition: transform 0.1s ease-out;
|
|
61
61
|
pointer-events: none;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.iconContainer {
|
|
65
|
-
margin: 0 0 0 calc(
|
|
65
|
+
margin: 0 0 0 calc(var(--spacing-base) / 3);
|
|
66
66
|
display: inline;
|
|
67
67
|
vertical-align: middle;
|
|
68
|
-
|
|
68
|
+
|
|
69
69
|
svg {
|
|
70
70
|
z-index: 10;
|
|
71
71
|
position: relative;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
@use
|
|
1
|
+
@use "@automattic/jetpack-base-styles/style";
|
|
2
2
|
|
|
3
3
|
.jp-components__decorative-card {
|
|
4
4
|
display: flex;
|
|
5
5
|
border-radius: 8px;
|
|
6
6
|
overflow: hidden;
|
|
7
|
-
box-shadow: 0 0 15px var(
|
|
7
|
+
box-shadow: 0 0 15px var(--jp-gray);
|
|
8
8
|
position: relative;
|
|
9
9
|
width: 360px;
|
|
10
10
|
max-width: 100%;
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
&__image {
|
|
21
|
-
background: var(
|
|
21
|
+
background: var(--jp-gray);
|
|
22
22
|
background-size: cover;
|
|
23
23
|
position: relative;
|
|
24
24
|
|
|
25
25
|
&::before {
|
|
26
|
-
content:
|
|
26
|
+
content: "";
|
|
27
27
|
display: block;
|
|
28
28
|
position: absolute;
|
|
29
29
|
top: 24px;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
&__content {
|
|
39
|
-
background: #
|
|
39
|
+
background: #fff;
|
|
40
40
|
padding: 2rem;
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
position: absolute;
|
|
58
58
|
top: 50%;
|
|
59
59
|
left: 50%;
|
|
60
|
-
transform: translate(
|
|
60
|
+
transform: translate(-50%, -50%);
|
|
61
61
|
background-position: center, center;
|
|
62
62
|
background-repeat: no-repeat;
|
|
63
63
|
|
|
64
64
|
&--unlink {
|
|
65
65
|
// stylelint-disable-next-line function-url-quotes -- quotes are required here. Bug report: https://github.com/stylelint/stylelint/issues/8544
|
|
66
|
-
background-image: url('data:image/svg+xml,<svg width="34" height="37" viewBox="0 0 34 37" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M22.3335 10.001H25.0002C29.4184 10.001 33.0002 13.5827 33.0002 18.001V19.7788C33.0002 24.197 29.4184 27.7788 25.0002 27.7788H22.3335" stroke="white" stroke-width="1.5" stroke-linecap="square"/> <path d="M11.6675 27.7783L9.00082 27.7783C4.58254 27.7783 1.00081 24.1966 1.00081 19.7783L1.00081 18.0005C1.00081 13.5823 4.58253 10.0005 9.00081 10.0005L11.6675 10.0005" stroke="white" stroke-width="1.5" stroke-linecap="square"/> <path d="M10.9998 19.167L16.9998 19.167" stroke="white" stroke-width="1.5"/> <path d="M8.99951 35.998L24.9995 0.998048" stroke="white"/> </svg>')
|
|
66
|
+
background-image: url('data:image/svg+xml,<svg width="34" height="37" viewBox="0 0 34 37" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M22.3335 10.001H25.0002C29.4184 10.001 33.0002 13.5827 33.0002 18.001V19.7788C33.0002 24.197 29.4184 27.7788 25.0002 27.7788H22.3335" stroke="white" stroke-width="1.5" stroke-linecap="square"/> <path d="M11.6675 27.7783L9.00082 27.7783C4.58254 27.7783 1.00081 24.1966 1.00081 19.7783L1.00081 18.0005C1.00081 13.5823 4.58253 10.0005 9.00081 10.0005L11.6675 10.0005" stroke="white" stroke-width="1.5" stroke-linecap="square"/> <path d="M10.9998 19.167L16.9998 19.167" stroke="white" stroke-width="1.5"/> <path d="M8.99951 35.998L24.9995 0.998048" stroke="white"/> </svg>');
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -72,17 +72,17 @@
|
|
|
72
72
|
width: 100%;
|
|
73
73
|
height: 12px;
|
|
74
74
|
border-radius: 6px;
|
|
75
|
-
background: #
|
|
75
|
+
background: #e9eff5;
|
|
76
76
|
position: relative;
|
|
77
77
|
|
|
78
78
|
&::before,
|
|
79
79
|
&::after {
|
|
80
|
-
content:
|
|
80
|
+
content: "";
|
|
81
81
|
display: block;
|
|
82
82
|
width: 100%;
|
|
83
83
|
height: 12px;
|
|
84
84
|
border-radius: 6px;
|
|
85
|
-
background: #
|
|
85
|
+
background: #e9eff5;
|
|
86
86
|
position: relative;
|
|
87
87
|
top: calc(100% + 16px);
|
|
88
88
|
}
|