@bonniernews/dn-design-system-web 7.2.0 → 7.2.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/CHANGELOG.md +8 -0
- package/assets/form-field/form-field.scss +4 -4
- package/assets/teaser/teaser.scss +6 -6
- package/components/article-body-image/article-body-image.scss +2 -2
- package/components/article-top-image/article-top-image.scss +1 -1
- package/components/badge/badge.scss +2 -2
- package/components/blocked-content/blocked-content.scss +6 -6
- package/components/buddy-menu/buddy-menu.scss +11 -11
- package/components/button/button.scss +19 -19
- package/components/button-toggle/button-toggle.scss +20 -20
- package/components/byline/byline.scss +9 -9
- package/components/checkbox/checkbox.scss +9 -9
- package/components/divider/divider.scss +1 -1
- package/components/factbox/factbox.scss +8 -8
- package/components/floating-button/floating-button.scss +14 -14
- package/components/footer/footer.scss +16 -16
- package/components/group-header/group-header.scss +4 -4
- package/components/icon-button/icon-button.scss +2 -2
- package/components/image-caption/image-caption.scss +1 -1
- package/components/list-item/list-item.scss +9 -9
- package/components/quote/quote.scss +3 -3
- package/components/radio-button/radio-button.scss +9 -9
- package/components/switch/switch.scss +2 -2
- package/components/teaser-image/teaser-image.scss +2 -2
- package/components/teaser-large/teaser-large.scss +9 -9
- package/components/teaser-list-swipe/teaser-list-swipe.scss +3 -3
- package/components/teaser-list-vertical/teaser-list-vertical.scss +9 -9
- package/components/teaser-longlife/teaser-longlife.scss +1 -1
- package/components/teaser-native/teaser-native.scss +5 -5
- package/components/teaser-onsite/teaser-onsite.scss +3 -3
- package/components/teaser-package/teaser-package.scss +1 -1
- package/components/teaser-right-now/teaser-right-now.scss +2 -2
- package/components/teaser-slideshow/teaser-slideshow.scss +2 -5
- package/components/teaser-split/teaser-split.scss +1 -1
- package/components/teaser-standard/teaser-standard.scss +5 -5
- package/components/teaser-swipe-card/teaser-swipe-card.scss +9 -9
- package/components/teaser-tipsa/teaser-tipsa.scss +4 -4
- package/components/text-button/text-button.scss +13 -13
- package/components/text-button-toggle/text-button-toggle.scss +3 -3
- package/components/text-input/text-input.scss +16 -16
- package/components/thematic-break/thematic-break.scss +2 -2
- package/components/video-caption/video-caption.scss +1 -1
- package/components/vip-badge/vip-badge.scss +6 -7
- package/package.json +1 -1
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
@use "sass:math";
|
|
4
4
|
|
|
5
5
|
.ds-teaser.ds-teaser--standard {
|
|
6
|
-
|
|
7
|
-
$ds-
|
|
6
|
+
padding: ds-spacing(
|
|
7
|
+
$ds-s-teaser-vertical-small $ds-s-teaser-horizontal 0
|
|
8
8
|
);
|
|
9
9
|
overflow: hidden;
|
|
10
10
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
.ds-teaser__media,
|
|
20
20
|
.ds-teaser__content {
|
|
21
|
-
|
|
21
|
+
margin-bottom: ds-spacing($ds-s-teaser-vertical-medium);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&::after {
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.ds-teaser__media {
|
|
35
|
-
|
|
36
|
-
margin-left: ds-spacing
|
|
35
|
+
margin-bottom: ds-spacing($ds-s-teaser-vertical-medium);
|
|
36
|
+
margin-left: ds-spacing($ds-s-100);
|
|
37
37
|
float: right;
|
|
38
38
|
|
|
39
39
|
@include ds-mq-only-breakpoint(mobile) {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
.ds-teaser__text {
|
|
22
22
|
display: flex;
|
|
23
23
|
flex-direction: column;
|
|
24
|
-
padding: ds-spacing
|
|
24
|
+
padding: ds-spacing($ds-s-075);
|
|
25
25
|
margin: 0;
|
|
26
26
|
flex: 1;
|
|
27
27
|
}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
.ds-teaser__title {
|
|
35
35
|
@include ds-typography($ds-typography-expressive-heading01bold);
|
|
36
|
-
margin-bottom: ds-spacing
|
|
36
|
+
margin-bottom: ds-spacing($ds-s-050);
|
|
37
37
|
flex: 1;
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
border-radius: 0;
|
|
55
55
|
|
|
56
56
|
&:not(:last-of-type) {
|
|
57
|
-
margin-right: ds-spacing
|
|
57
|
+
margin-right: ds-spacing($ds-s-050);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.ds-teaser__text {
|
|
61
|
-
padding: ds-spacing
|
|
61
|
+
padding: ds-spacing($ds-s-025 0 0 0);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.ds-teaser-swipe-card__time {
|
|
@@ -66,16 +66,16 @@
|
|
|
66
66
|
@include ds-typography($ds-typography-functional-body01semibold);
|
|
67
67
|
color: $ds-theme-color;
|
|
68
68
|
align-items: center;
|
|
69
|
-
margin-bottom: ds-spacing
|
|
69
|
+
margin-bottom: ds-spacing($ds-s-025);
|
|
70
70
|
|
|
71
71
|
&::before {
|
|
72
72
|
content: "";
|
|
73
73
|
display: block;
|
|
74
|
-
width: ds-spacing
|
|
75
|
-
height: ds-spacing
|
|
74
|
+
width: ds-spacing($ds-s-050);
|
|
75
|
+
height: ds-spacing($ds-s-050);
|
|
76
76
|
background-color: $ds-theme-color;
|
|
77
77
|
border-radius: 50%;
|
|
78
|
-
margin-right: ds-spacing
|
|
78
|
+
margin-right: ds-spacing($ds-s-050);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
&::after {
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
height: 2px;
|
|
85
85
|
flex: 1;
|
|
86
86
|
background-color: $ds-color-border-primary;
|
|
87
|
-
margin-left: ds-spacing
|
|
87
|
+
margin-left: ds-spacing($ds-s-050);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
.ds-teaser.ds-teaser--tipsa {
|
|
5
5
|
.ds-teaser__content {
|
|
6
|
-
|
|
7
|
-
$ds-
|
|
8
|
-
$ds-
|
|
6
|
+
padding: ds-spacing(
|
|
7
|
+
$ds-s-teaser-vertical-small $ds-s-teaser-horizontal
|
|
8
|
+
$ds-s-teaser-vertical-medium
|
|
9
9
|
);
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -21,6 +21,6 @@
|
|
|
21
21
|
|
|
22
22
|
.ds-teaser__text {
|
|
23
23
|
@include ds-typography($ds-typography-functional-body02regular);
|
|
24
|
-
margin-top: ds-spacing
|
|
24
|
+
margin-top: ds-spacing($ds-s-050);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -6,7 +6,7 @@ $ds-text-btn__min-clickable-area: 0;
|
|
|
6
6
|
$ds-text-btn__underline-offset: 2px;
|
|
7
7
|
|
|
8
8
|
.ds-text-btn {
|
|
9
|
-
--ds-text-btn__inner-padding: #{ds-spacing
|
|
9
|
+
--ds-text-btn__inner-padding: #{ds-spacing($ds-s-075)};
|
|
10
10
|
--ds-text-btn__icon-size: #{ds-px-to-rem(24px)};
|
|
11
11
|
|
|
12
12
|
&.ds-force-px {
|
|
@@ -14,17 +14,17 @@ $ds-text-btn__underline-offset: 2px;
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
&.ds-text-btn--icon-left {
|
|
17
|
-
--ds-text-btn__inner-padding: #{ds-spacing
|
|
18
|
-
--ds-text-btn__icon-margin: #{ds-spacing
|
|
17
|
+
--ds-text-btn__inner-padding: #{ds-spacing($ds-s-075 $ds-s-075 $ds-s-075 $ds-s-050)};
|
|
18
|
+
--ds-text-btn__icon-margin: #{ds-spacing(0 $ds-s-050 0 0)};
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
&.ds-text-btn--icon-right {
|
|
22
|
-
--ds-text-btn__inner-padding: #{ds-spacing
|
|
23
|
-
--ds-text-btn__icon-margin: #{ds-spacing
|
|
22
|
+
--ds-text-btn__inner-padding: #{ds-spacing($ds-s-075 $ds-s-050 $ds-s-075 $ds-s-075)};
|
|
23
|
+
--ds-text-btn__icon-margin: #{ds-spacing(0 0 0 $ds-s-050)};
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
&.ds-text-btn--small {
|
|
27
|
-
--ds-text-btn__inner-padding: #{ds-spacing
|
|
27
|
+
--ds-text-btn__inner-padding: #{ds-spacing($ds-s-050)};
|
|
28
28
|
--ds-text-btn__icon-size: #{ds-px-to-rem(20px)};
|
|
29
29
|
|
|
30
30
|
&.ds-force-px {
|
|
@@ -32,24 +32,24 @@ $ds-text-btn__underline-offset: 2px;
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
&.ds-text-btn--icon-left {
|
|
35
|
-
--ds-text-btn__icon-margin: #{ds-spacing
|
|
36
|
-
--ds-text-btn__inner-padding: #{ds-spacing
|
|
35
|
+
--ds-text-btn__icon-margin: #{ds-spacing(0 $ds-s-025 0 0)};
|
|
36
|
+
--ds-text-btn__inner-padding: #{ds-spacing($ds-s-050 $ds-s-050 $ds-s-050 $ds-s-025)};
|
|
37
37
|
&.ds-text-btn--condensed {
|
|
38
|
-
--ds-text-btn__inner-padding: #{ds-spacing
|
|
38
|
+
--ds-text-btn__inner-padding: #{ds-spacing($ds-s-025 $ds-s-025 $ds-s-025 0)};
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
&.ds-text-btn--icon-right {
|
|
43
|
-
--ds-text-btn__icon-margin: #{ds-spacing
|
|
44
|
-
--ds-text-btn__inner-padding: #{ds-spacing
|
|
43
|
+
--ds-text-btn__icon-margin: #{ds-spacing(0 0 0 $ds-s-025)};
|
|
44
|
+
--ds-text-btn__inner-padding: #{ds-spacing($ds-s-050 $ds-s-025 $ds-s-050 $ds-s-050)};
|
|
45
45
|
&.ds-text-btn--condensed {
|
|
46
|
-
--ds-text-btn__inner-padding: #{ds-spacing
|
|
46
|
+
--ds-text-btn__inner-padding: #{ds-spacing($ds-s-025 0 $ds-s-025 $ds-s-025)};
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
&.ds-text-btn--condensed {
|
|
52
|
-
--ds-text-btn__inner-padding: #{ds-spacing
|
|
52
|
+
--ds-text-btn__inner-padding: #{ds-spacing($ds-s-025)};
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -55,7 +55,7 @@ $ds-text-btn-toggle__icon-size: 24px;
|
|
|
55
55
|
justify-content: center;
|
|
56
56
|
background-color: transparent;
|
|
57
57
|
border-radius: ds-metrics-border-radius(x1);
|
|
58
|
-
padding: ds-spacing
|
|
58
|
+
padding: ds-spacing($ds-s-075 $ds-s-075 $ds-s-075 $ds-s-050);
|
|
59
59
|
position: relative;
|
|
60
60
|
&::before {
|
|
61
61
|
content: "";
|
|
@@ -72,7 +72,7 @@ $ds-text-btn-toggle__icon-size: 24px;
|
|
|
72
72
|
display: flex;
|
|
73
73
|
height: ds-px-to-rem($ds-text-btn-toggle__icon-size);
|
|
74
74
|
width: ds-px-to-rem($ds-text-btn-toggle__icon-size);
|
|
75
|
-
margin: ds-spacing
|
|
75
|
+
margin: ds-spacing(0 $ds-s-050 0 0);
|
|
76
76
|
color: $ds-color-icon-primary;
|
|
77
77
|
svg {
|
|
78
78
|
fill: currentColor;
|
|
@@ -128,5 +128,5 @@ $ds-text-btn-toggle__icon-size: 24px;
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
.ds-text-btn-toggle--condensed .ds-text-btn-toggle__inner {
|
|
131
|
-
padding: ds-spacing
|
|
131
|
+
padding: ds-spacing($ds-s-025);
|
|
132
132
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
$ds-text-input-toggle-btn__width: 28px;
|
|
6
6
|
$ds-text-input-toggle-btn__top: 22px;
|
|
7
7
|
$ds-text-input-toggle-btn__area: (
|
|
8
|
-
$ds-text-input-toggle-btn__width + ds-spacing
|
|
8
|
+
$ds-text-input-toggle-btn__width + ds-spacing($ds-s-050)
|
|
9
9
|
);
|
|
10
10
|
|
|
11
11
|
.ds-form-field__error {
|
|
@@ -15,7 +15,7 @@ $ds-text-input-toggle-btn__area: (
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.ds-text-input {
|
|
18
|
-
padding-top: ds-
|
|
18
|
+
padding-top: ds-spacing($ds-s-050, rem);
|
|
19
19
|
position: relative;
|
|
20
20
|
color: $ds-color-text-primary;
|
|
21
21
|
}
|
|
@@ -27,7 +27,7 @@ $ds-text-input-toggle-btn__area: (
|
|
|
27
27
|
background-color: $ds-color-component-secondary;
|
|
28
28
|
@include ds-typography($ds-typography-functional-body02regular);
|
|
29
29
|
/* stylelint-disable-next-line */
|
|
30
|
-
padding: ds-px-to-rem(ds-spacing
|
|
30
|
+
padding: ds-px-to-rem(ds-spacing($ds-s-100) - ds-metrics-border-width(x1)) ds-spacing($ds-s-100) - ds-metrics-border-width(x1);
|
|
31
31
|
border: solid ds-metrics-border-width(x1) $ds-color-border-primary-02;
|
|
32
32
|
border-radius: ds-metrics-border-radius(x1);
|
|
33
33
|
margin: 0;
|
|
@@ -55,9 +55,9 @@ $ds-text-input-toggle-btn__area: (
|
|
|
55
55
|
|
|
56
56
|
&:focus {
|
|
57
57
|
padding: ds-px-to-rem(
|
|
58
|
-
ds-spacing
|
|
58
|
+
ds-spacing($ds-s-100) - ds-metrics-border-width(x2)
|
|
59
59
|
)
|
|
60
|
-
ds-spacing
|
|
60
|
+
ds-spacing($ds-s-100) - ds-metrics-border-width(x2);
|
|
61
61
|
border-color: $ds-color-border-primary-03;
|
|
62
62
|
border-width: ds-metrics-border-width(x2);
|
|
63
63
|
|
|
@@ -83,18 +83,18 @@ $ds-text-input-toggle-btn__area: (
|
|
|
83
83
|
|
|
84
84
|
.ds-text-input__label {
|
|
85
85
|
position: absolute;
|
|
86
|
-
top: ds-
|
|
87
|
-
left: ds-spacing
|
|
86
|
+
top: ds-spacing($ds-s-150, rem);
|
|
87
|
+
left: ds-spacing($ds-s-100);
|
|
88
88
|
z-index: 1;
|
|
89
89
|
transition: font-size 0.1s ease-in, top 0.1s ease-in;
|
|
90
90
|
@include ds-typography($ds-typography-functional-body02regular);
|
|
91
91
|
&::before {
|
|
92
92
|
content: "";
|
|
93
|
-
width: calc(100% + ds-spacing
|
|
94
|
-
left: -#{ds-spacing
|
|
93
|
+
width: calc(100% + ds-spacing($ds-s-050));
|
|
94
|
+
left: -#{ds-spacing($ds-s-025)};
|
|
95
95
|
height: ds-metrics-border-width(x1);
|
|
96
96
|
position: absolute;
|
|
97
|
-
top: ds-
|
|
97
|
+
top: ds-spacing($ds-s-050, rem);
|
|
98
98
|
z-index: -1;
|
|
99
99
|
background-color: transparent; // for animation
|
|
100
100
|
transition: background-color 0.2s ease-in-out;
|
|
@@ -104,7 +104,7 @@ $ds-text-input-toggle-btn__area: (
|
|
|
104
104
|
.ds-icon-btn.ds-text-input__password-toggle {
|
|
105
105
|
position: absolute;
|
|
106
106
|
top: ds-px-to-rem($ds-text-input-toggle-btn__top);
|
|
107
|
-
right: ds-spacing
|
|
107
|
+
right: ds-spacing($ds-s-025);
|
|
108
108
|
z-index: 1;
|
|
109
109
|
min-width: 0;
|
|
110
110
|
min-height: 0;
|
|
@@ -112,13 +112,13 @@ $ds-text-input-toggle-btn__area: (
|
|
|
112
112
|
|
|
113
113
|
.ds-force-px {
|
|
114
114
|
&.ds-text-input {
|
|
115
|
-
padding-top: ds-spacing
|
|
115
|
+
padding-top: ds-spacing($ds-s-050);
|
|
116
116
|
font-size: 16px;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
.ds-text-input__input {
|
|
120
120
|
@include ds-typography($ds-typography-functional-body02regular, true);
|
|
121
|
-
padding: ds-spacing
|
|
121
|
+
padding: ds-spacing($ds-s-100) - ds-metrics-border-width(x1);
|
|
122
122
|
|
|
123
123
|
&.password-toggle {
|
|
124
124
|
padding-right: $ds-text-input-toggle-btn__area;
|
|
@@ -137,15 +137,15 @@ $ds-text-input-toggle-btn__area: (
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
&:focus {
|
|
140
|
-
padding: ds-spacing
|
|
140
|
+
padding: ds-spacing($ds-s-100) - ds-metrics-border-width(x2);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
.ds-text-input__label {
|
|
145
145
|
@include ds-typography($ds-typography-functional-body02regular, true);
|
|
146
|
-
top: ds-spacing
|
|
146
|
+
top: ds-spacing($ds-s-150);
|
|
147
147
|
&::before {
|
|
148
|
-
top: ds-spacing
|
|
148
|
+
top: ds-spacing($ds-s-050);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
|
|
@@ -14,13 +14,13 @@ $ds-vip-badge__icon-size: 16px;
|
|
|
14
14
|
color: $ds-color-static-white;
|
|
15
15
|
fill: $ds-color-static-white;
|
|
16
16
|
@include ds-typography($ds-typography-functional-meta01regular);
|
|
17
|
-
padding: ds-
|
|
17
|
+
padding: ds-spacing($ds-s-025, rem);
|
|
18
18
|
|
|
19
19
|
@at-root .ds-force-px#{&} {
|
|
20
20
|
@include ds-typography($ds-typography-functional-meta01regular, true);
|
|
21
21
|
border-radius: ds-metrics-border-radius(x1) 0 ds-metrics-border-radius(x1)
|
|
22
22
|
ds-metrics-border-radius(x1);
|
|
23
|
-
padding: ds-spacing
|
|
23
|
+
padding: ds-spacing($ds-s-025);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
// bang class indicating that the user has premium access
|
|
@@ -39,16 +39,15 @@ $ds-vip-badge__icon-size: 16px;
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.ds-vip-badge--text {
|
|
42
|
-
padding: ds-
|
|
43
|
-
ds-px-to-rem(ds-spacing-component($ds-sc-x2));
|
|
42
|
+
padding: ds-spacing($ds-s-025 $ds-s-050, rem);
|
|
44
43
|
@at-root .ds-force-px#{&} {
|
|
45
|
-
padding: ds-spacing
|
|
44
|
+
padding: ds-spacing($ds-s-025 $ds-s-050);
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
.ds-icon {
|
|
49
|
-
margin-right: ds-
|
|
48
|
+
margin-right: ds-spacing($ds-s-025, rem);
|
|
50
49
|
@at-root .ds-force-px#{&} {
|
|
51
|
-
margin-right: ds-spacing
|
|
50
|
+
margin-right: ds-spacing($ds-s-025);
|
|
52
51
|
}
|
|
53
52
|
}
|
|
54
53
|
}
|
package/package.json
CHANGED