@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
|
@@ -4,53 +4,53 @@
|
|
|
4
4
|
@use "../spinner/spinner.scss" as *;
|
|
5
5
|
|
|
6
6
|
.ds-floating-btn {
|
|
7
|
-
--ds-floating-btn__inner-padding: #{ds-spacing
|
|
7
|
+
--ds-floating-btn__inner-padding: #{ds-spacing($ds-s-075 $ds-s-125, rem)};
|
|
8
8
|
--ds-floating-btn__icon-size: #{ds-px-to-rem(24px)};
|
|
9
9
|
|
|
10
10
|
&.ds-force-px {
|
|
11
|
-
--ds-floating-btn__inner-padding: #{ds-spacing
|
|
11
|
+
--ds-floating-btn__inner-padding: #{ds-spacing($ds-s-075 $ds-s-125)};
|
|
12
12
|
--ds-floating-btn__icon-size: 24px;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
&.ds-floating-btn--icon-left {
|
|
16
|
-
--ds-floating-btn__inner-padding: #{ds-spacing
|
|
17
|
-
--ds-floating-btn__icon-margin: #{ds-spacing
|
|
16
|
+
--ds-floating-btn__inner-padding: #{ds-spacing($ds-s-075 $ds-s-125 $ds-s-075 $ds-s-100, rem)};
|
|
17
|
+
--ds-floating-btn__icon-margin: #{ds-spacing(0 $ds-s-050 0 0)};
|
|
18
18
|
|
|
19
19
|
&.ds-force-px {
|
|
20
|
-
--ds-floating-btn__inner-padding: #{ds-spacing
|
|
20
|
+
--ds-floating-btn__inner-padding: #{ds-spacing($ds-s-075 $ds-s-125 $ds-s-075 $ds-s-100)};
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&.ds-floating-btn--icon-right {
|
|
25
|
-
--ds-floating-btn__inner-padding: #{ds-spacing
|
|
26
|
-
--ds-floating-btn__icon-margin: #{ds-spacing
|
|
25
|
+
--ds-floating-btn__inner-padding: #{ds-spacing($ds-s-075 $ds-s-100 $ds-s-075 $ds-s-125, rem)};
|
|
26
|
+
--ds-floating-btn__icon-margin: #{ds-spacing(0 0 0 $ds-s-050)};
|
|
27
27
|
|
|
28
28
|
&.ds-force-px {
|
|
29
|
-
--ds-floating-btn__inner-padding: #{ds-spacing
|
|
29
|
+
--ds-floating-btn__inner-padding: #{ds-spacing($ds-s-075 $ds-s-100 $ds-s-075 $ds-s-125)};
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
&.ds-floating-btn--small {
|
|
34
|
-
--ds-floating-btn__inner-padding: #{ds-spacing
|
|
34
|
+
--ds-floating-btn__inner-padding: #{ds-spacing($ds-s-050 $ds-s-125, rem)};
|
|
35
35
|
|
|
36
36
|
&.ds-force-px {
|
|
37
|
-
--ds-floating-btn__inner-padding: #{ds-spacing
|
|
37
|
+
--ds-floating-btn__inner-padding: #{ds-spacing($ds-s-050 $ds-s-125)};
|
|
38
38
|
|
|
39
39
|
&.ds-floating-btn--icon-left {
|
|
40
|
-
--ds-floating-btn__inner-padding: #{ds-spacing
|
|
40
|
+
--ds-floating-btn__inner-padding: #{ds-spacing($ds-s-050 $ds-s-125 $ds-s-050 $ds-s-100)};
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
&.ds-floating-btn--icon-right {
|
|
44
|
-
--ds-floating-btn__inner-padding: #{ds-spacing
|
|
44
|
+
--ds-floating-btn__inner-padding: #{ds-spacing($ds-s-050 $ds-s-100 $ds-s-050 $ds-s-125)};
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
&.ds-floating-btn--icon-left {
|
|
49
|
-
--ds-floating-btn__inner-padding: #{ds-spacing
|
|
49
|
+
--ds-floating-btn__inner-padding: #{ds-spacing($ds-s-050 $ds-s-125 $ds-s-050 $ds-s-100, rem)};
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
&.ds-floating-btn--icon-right {
|
|
53
|
-
--ds-floating-btn__inner-padding: #{ds-spacing
|
|
53
|
+
--ds-floating-btn__inner-padding: #{ds-spacing($ds-s-050 $ds-s-100 $ds-s-050 $ds-s-125, rem)};
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
@use "../../foundations/helpers/forward.helpers.scss" as *;
|
|
2
2
|
|
|
3
|
-
$ds-footer-row-gap-spacing-token: $ds-
|
|
4
|
-
$ds-footer-row-padding-spacing-token: $ds-
|
|
5
|
-
$ds-footer-column-gap: ds-spacing
|
|
3
|
+
$ds-footer-row-gap-spacing-token: $ds-s-200;
|
|
4
|
+
$ds-footer-row-padding-spacing-token: $ds-s-100;
|
|
5
|
+
$ds-footer-column-gap: ds-spacing($ds-s-400);
|
|
6
6
|
|
|
7
7
|
.ds-footer {
|
|
8
8
|
background-color: $ds-color-static-black;
|
|
9
9
|
|
|
10
10
|
&__inner {
|
|
11
11
|
color: $ds-color-static-white;
|
|
12
|
-
padding: ds-spacing
|
|
12
|
+
padding: ds-spacing($ds-s-200 $ds-s-100);
|
|
13
13
|
display: grid;
|
|
14
14
|
margin: 0 auto;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
@include ds-mq-smallest-breakpoint(tablet) {
|
|
18
18
|
&__inner {
|
|
19
|
-
padding: ds-spacing
|
|
19
|
+
padding: ds-spacing($ds-s-500);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -57,7 +57,7 @@ $ds-footer-column-gap: ds-spacing-component($ds-sc-x8) * 2; // @todo change to t
|
|
|
57
57
|
|
|
58
58
|
&__rudolf,
|
|
59
59
|
&__editors {
|
|
60
|
-
padding: ds-spacing
|
|
60
|
+
padding: ds-spacing(
|
|
61
61
|
$ds-footer-row-padding-spacing-token 0 $ds-footer-row-gap-spacing-token
|
|
62
62
|
);
|
|
63
63
|
|
|
@@ -77,19 +77,19 @@ $ds-footer-column-gap: ds-spacing-component($ds-sc-x8) * 2; // @todo change to t
|
|
|
77
77
|
|
|
78
78
|
img {
|
|
79
79
|
min-width: 64px;
|
|
80
|
-
margin: ds-spacing
|
|
80
|
+
margin: ds-spacing(0 $ds-s-100 0 0);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
&__link-grid {
|
|
85
85
|
display: grid;
|
|
86
|
-
grid-row-gap: ds-spacing
|
|
86
|
+
grid-row-gap: ds-spacing($ds-footer-row-gap-spacing-token);
|
|
87
87
|
justify-content: space-between;
|
|
88
|
-
padding: ds-spacing
|
|
88
|
+
padding: ds-spacing(0 0 $ds-footer-row-gap-spacing-token);
|
|
89
89
|
|
|
90
90
|
@include ds-mq-smallest-breakpoint(tablet) {
|
|
91
91
|
grid-template-columns: repeat(3, auto);
|
|
92
|
-
grid-column-gap: ds-spacing
|
|
92
|
+
grid-column-gap: ds-spacing($ds-s-100);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
@include ds-mq-smallest-breakpoint(desktop) {
|
|
@@ -99,7 +99,7 @@ $ds-footer-column-gap: ds-spacing-component($ds-sc-x8) * 2; // @todo change to t
|
|
|
99
99
|
|
|
100
100
|
h2 {
|
|
101
101
|
@include ds-typography($ds-typography-functional-body02bold);
|
|
102
|
-
margin: ds-spacing
|
|
102
|
+
margin: ds-spacing(0 0 $ds-s-100);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
ul {
|
|
@@ -109,7 +109,7 @@ $ds-footer-column-gap: ds-spacing-component($ds-sc-x8) * 2; // @todo change to t
|
|
|
109
109
|
padding: 0;
|
|
110
110
|
|
|
111
111
|
li:not(:last-of-type) {
|
|
112
|
-
margin: 0 0
|
|
112
|
+
margin: ds-spacing(0 0 $ds-s-050);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
a {
|
|
@@ -119,20 +119,20 @@ $ds-footer-column-gap: ds-spacing-component($ds-sc-x8) * 2; // @todo change to t
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
&__logo {
|
|
122
|
-
padding: ds-spacing
|
|
122
|
+
padding: ds-spacing($ds-footer-row-padding-spacing-token 0 0);
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
&__channels {
|
|
126
126
|
@include ds-typography($ds-typography-functional-body01regular);
|
|
127
|
-
margin-top: ds-spacing
|
|
127
|
+
margin-top: ds-spacing($ds-footer-row-gap-spacing-token);
|
|
128
128
|
|
|
129
129
|
a {
|
|
130
130
|
@include ds-link($ds-link-list);
|
|
131
|
-
margin: ds-spacing
|
|
131
|
+
margin: ds-spacing($ds-s-100 $ds-s-100 0 0);
|
|
132
132
|
display: inline-block;
|
|
133
133
|
|
|
134
134
|
@include ds-mq-smallest-breakpoint(tablet) {
|
|
135
|
-
margin: ds-spacing
|
|
135
|
+
margin: ds-spacing($ds-s-100 $ds-s-150 0 0);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
&:last-of-type {
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
.ds-group-header__icon,
|
|
34
34
|
.ds-btn-toggle {
|
|
35
35
|
flex-shrink: 0;
|
|
36
|
-
margin-right: ds-spacing
|
|
36
|
+
margin-right: ds-spacing($ds-s-100);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.ds-group-header__arrows {
|
|
40
40
|
display: flex;
|
|
41
41
|
flex-shrink: 0;
|
|
42
|
-
padding-right: ds-spacing
|
|
42
|
+
padding-right: ds-spacing($ds-s-050);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.ds-btn-toggle, .ds-group-header__arrows {
|
|
@@ -81,14 +81,14 @@
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
.ds-group-header__title {
|
|
84
|
-
padding: ds-spacing
|
|
84
|
+
padding: ds-spacing($ds-s-075 $ds-s-100);
|
|
85
85
|
flex: 1;
|
|
86
86
|
@include ds-typography($ds-typography-functional-body02bold);
|
|
87
87
|
margin: 0;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
&--bottom-border .ds-group-header__title {
|
|
91
|
-
padding-bottom: ds-spacing
|
|
91
|
+
padding-bottom: ds-spacing($ds-s-075) - ds-metrics-border-width(x1);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
&--bautaxl .ds-group-header__title {
|
|
@@ -7,7 +7,7 @@ $ds-icon-btn__min-clickable-area: 48px;
|
|
|
7
7
|
$ds-btn-outlined__border-width: ds-metrics-border-width(x1);
|
|
8
8
|
|
|
9
9
|
.ds-icon-btn {
|
|
10
|
-
--ds-icon-btn__inner-padding: #{ds-spacing
|
|
10
|
+
--ds-icon-btn__inner-padding: #{ds-spacing($ds-s-050)-$ds-btn-outlined__border-width};
|
|
11
11
|
--ds-icon-btn__icon-size: #{ds-px-to-rem(24px)};
|
|
12
12
|
|
|
13
13
|
&.ds-force-px {
|
|
@@ -19,7 +19,7 @@ $ds-btn-outlined__border-width: ds-metrics-border-width(x1);
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
&.ds-icon-btn--large {
|
|
22
|
-
--ds-icon-btn__inner-padding: #{ds-spacing
|
|
22
|
+
--ds-icon-btn__inner-padding: #{ds-spacing($ds-s-075)-$ds-btn-outlined__border-width};
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -32,7 +32,7 @@ $ds-list-item__icon-size: 24px;
|
|
|
32
32
|
align-items: center;
|
|
33
33
|
justify-content: space-between;
|
|
34
34
|
position: relative;
|
|
35
|
-
padding: ds-spacing
|
|
35
|
+
padding: ds-spacing($ds-s-100 $ds-s-outer);
|
|
36
36
|
width: 100%;
|
|
37
37
|
|
|
38
38
|
&::before {
|
|
@@ -97,17 +97,17 @@ $ds-list-item__icon-size: 24px;
|
|
|
97
97
|
@include ds-typography($ds-typography-functional-body01regular, true);
|
|
98
98
|
}
|
|
99
99
|
color: $ds-color-text-primary-02;
|
|
100
|
-
margin-left: ds-spacing
|
|
100
|
+
margin-left: ds-spacing($ds-s-100);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
.ds-list-item__icon-left {
|
|
104
104
|
display: inline-flex;
|
|
105
|
-
margin-right: ds-spacing
|
|
105
|
+
margin-right: ds-spacing($ds-s-100);
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.ds-list-item__icon-right {
|
|
109
109
|
display: inline-flex;
|
|
110
|
-
margin-left: ds-spacing
|
|
110
|
+
margin-left: ds-spacing($ds-s-100);
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
@include ds-hover() {
|
|
@@ -141,10 +141,10 @@ $ds-list-item__icon-size: 24px;
|
|
|
141
141
|
&.ds-list-item--accordion-active + .ds-list-item__accordion-inner::after {
|
|
142
142
|
content: "";
|
|
143
143
|
height: ds-metrics-border-width(x1);
|
|
144
|
-
width: calc(100% - (ds-spacing
|
|
144
|
+
width: calc(100% - (ds-spacing($ds-s-100) * 2));
|
|
145
145
|
background-color: $ds-color-border-primary;
|
|
146
146
|
position: absolute;
|
|
147
|
-
left: ds-spacing
|
|
147
|
+
left: ds-spacing($ds-s-100);
|
|
148
148
|
bottom: 0;
|
|
149
149
|
}
|
|
150
150
|
|
|
@@ -238,13 +238,13 @@ $ds-list-item__icon-size: 24px;
|
|
|
238
238
|
cursor: default;
|
|
239
239
|
.ds-list-item__inner {
|
|
240
240
|
display: flex;
|
|
241
|
-
padding: 0 0 0
|
|
241
|
+
padding: ds-spacing(0 0 0 $ds-s-outer);
|
|
242
242
|
}
|
|
243
243
|
.ds-list-item__titles {
|
|
244
|
-
padding: ds-spacing
|
|
244
|
+
padding: ds-spacing($ds-s-100) 0;
|
|
245
245
|
}
|
|
246
246
|
.ds-btn-toggle {
|
|
247
|
-
margin: ds-spacing
|
|
247
|
+
margin: ds-spacing(0 $ds-s-outer 0 $ds-s-100);
|
|
248
248
|
}
|
|
249
249
|
a {
|
|
250
250
|
@include ds-link($ds-link-list);
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
@include ds-typography($ds-typography-detailarticle-quote);
|
|
5
5
|
color: $ds-color-text-primary;
|
|
6
6
|
margin: 0;
|
|
7
|
-
|
|
8
|
-
$ds-
|
|
7
|
+
padding: ds-spacing(
|
|
8
|
+
$ds-s-gap-vertical-static-medium 0 $ds-s-gap-vertical-static-large
|
|
9
9
|
);
|
|
10
10
|
position: relative;
|
|
11
11
|
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
height: 8px;
|
|
20
20
|
color: $ds-theme-color;
|
|
21
21
|
background: currentColor;
|
|
22
|
-
margin: ds-spacing
|
|
22
|
+
margin: ds-spacing(0 0 $ds-s-050);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -16,7 +16,7 @@ $ds-radio-btn__icon-size: 24px;
|
|
|
16
16
|
justify-content: center;
|
|
17
17
|
color: $ds-color-text-primary;
|
|
18
18
|
position: relative;
|
|
19
|
-
padding: ds-spacing
|
|
19
|
+
padding: ds-spacing($ds-s-075);
|
|
20
20
|
&::before {
|
|
21
21
|
content: "";
|
|
22
22
|
position: absolute;
|
|
@@ -27,11 +27,11 @@ $ds-radio-btn__icon-size: 24px;
|
|
|
27
27
|
bottom: 0;
|
|
28
28
|
}
|
|
29
29
|
.ds-radio-btn__text {
|
|
30
|
-
margin: ds-spacing
|
|
30
|
+
margin: ds-spacing(0 0 0 $ds-s-050, rem);
|
|
31
31
|
@include ds-typography($ds-typography-functional-body02regular);
|
|
32
32
|
@at-root .ds-force-px#{&} {
|
|
33
33
|
@include ds-typography($ds-typography-functional-body02regular, true);
|
|
34
|
-
margin: ds-spacing
|
|
34
|
+
margin: ds-spacing(0 0 0 $ds-s-050);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
.ds-radio-btn__icon {
|
|
@@ -98,13 +98,13 @@ $ds-radio-btn__icon-size: 24px;
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.ds-form-field__error-message {
|
|
101
|
-
margin-top: ds-spacing
|
|
102
|
-
padding:
|
|
101
|
+
margin-top: ds-spacing($ds-s-025);
|
|
102
|
+
padding: ds-spacing(0 $ds-s-075 $ds-s-075);
|
|
103
103
|
|
|
104
104
|
.ds-icon {
|
|
105
|
-
margin:
|
|
105
|
+
margin: ds-spacing(0 $ds-s-050 0 $ds-s-200, rem);
|
|
106
106
|
@at-root .ds-force-px#{&} {
|
|
107
|
-
margin: ds-spacing
|
|
107
|
+
margin: ds-spacing(0 $ds-s-050 0 $ds-s-200);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
}
|
|
@@ -113,11 +113,11 @@ $ds-radio-btn__icon-size: 24px;
|
|
|
113
113
|
|
|
114
114
|
.ds-radio-btn--condensed {
|
|
115
115
|
.ds-radio-btn__inner {
|
|
116
|
-
padding: ds-spacing
|
|
116
|
+
padding: ds-spacing($ds-s-025);
|
|
117
117
|
}
|
|
118
118
|
&.ds-form-field__error .ds-form-field__error-message,
|
|
119
119
|
.invalid .ds-form-field__error-message {
|
|
120
|
-
padding:
|
|
120
|
+
padding: ds-spacing(0 $ds-s-025 $ds-s-025);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
|
|
@@ -12,13 +12,13 @@ $ds-switch__container-width: 44px;
|
|
|
12
12
|
align-items: flex-start;
|
|
13
13
|
|
|
14
14
|
.ds-switch__inner {
|
|
15
|
-
padding: ds-spacing
|
|
15
|
+
padding: ds-spacing($ds-s-075 0);
|
|
16
16
|
cursor: pointer;
|
|
17
17
|
display: inline-flex;
|
|
18
18
|
align-items: center;
|
|
19
19
|
justify-content: center;
|
|
20
20
|
.ds-switch__meta {
|
|
21
|
-
margin: ds-spacing
|
|
21
|
+
margin: ds-spacing(0 $ds-s-050 0 0);
|
|
22
22
|
color: $ds-color-text-primary-02;
|
|
23
23
|
@include ds-typography($ds-typography-functional-body01regular);
|
|
24
24
|
@at-root .ds-force-px#{&} {
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
position: absolute;
|
|
10
10
|
bottom: 0;
|
|
11
11
|
right: 0;
|
|
12
|
-
padding: ds-spacing
|
|
13
|
-
margin-left: ds-spacing
|
|
12
|
+
padding: ds-spacing($ds-s-025 $ds-s-050);
|
|
13
|
+
margin-left: ds-spacing($ds-s-050);
|
|
14
14
|
|
|
15
15
|
@include ds-typography($ds-typography-functional-meta01regular, true);
|
|
16
16
|
color: $ds-color-static-white;
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
.ds-teaser__content {
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: row;
|
|
18
|
-
|
|
19
|
-
$ds-
|
|
20
|
-
$ds-
|
|
18
|
+
padding: ds-spacing(
|
|
19
|
+
$ds-s-teaser-vertical-small $ds-s-teaser-horizontal
|
|
20
|
+
$ds-s-teaser-vertical-medium
|
|
21
21
|
);
|
|
22
22
|
|
|
23
23
|
.ds-teaser__content-inner {
|
|
@@ -66,14 +66,14 @@
|
|
|
66
66
|
.ds-teaser__byline {
|
|
67
67
|
overflow: hidden;
|
|
68
68
|
position: relative;
|
|
69
|
-
margin-left: ds-spacing
|
|
69
|
+
margin-left: ds-spacing($ds-s-100);
|
|
70
70
|
|
|
71
71
|
// margin-bottom needs to be the negative value of padding-bottom on .ds-teaser__content
|
|
72
72
|
@include ds-mq-only-breakpoint(mobile) {
|
|
73
|
-
margin-bottom: ds-spacing
|
|
73
|
+
margin-bottom: ds-spacing($ds-s-075, "px", true);
|
|
74
74
|
}
|
|
75
75
|
@include ds-mq-smallest-breakpoint(tablet) {
|
|
76
|
-
margin-bottom: ds-spacing
|
|
76
|
+
margin-bottom: ds-spacing($ds-s-100, "px", true);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
.picture {
|
|
@@ -95,14 +95,14 @@
|
|
|
95
95
|
@include ds-mq-largest-breakpoint(mobile) {
|
|
96
96
|
width: 96px;
|
|
97
97
|
min-height: 96px;
|
|
98
|
-
margin-left: ds-spacing
|
|
98
|
+
margin-left: ds-spacing($ds-s-050);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
@include ds-mq-smallest-breakpoint(tablet) {
|
|
102
102
|
width: 144px;
|
|
103
103
|
// En bylinebild bör va lika hög som en "grekisk byst" - man ska se lite skjortkrage!
|
|
104
104
|
min-height: 110px;
|
|
105
|
-
margin-left: ds-spacing
|
|
105
|
+
margin-left: ds-spacing($ds-s-100);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
.ds-teaser__byline {
|
|
128
128
|
width: 96px;
|
|
129
129
|
min-height: 96px;
|
|
130
|
-
margin-left: ds-spacing
|
|
130
|
+
margin-left: ds-spacing($ds-s-050);
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
}
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
@include ds-teaser-focus(2px);
|
|
12
12
|
|
|
13
13
|
.ds-teaser__carousel {
|
|
14
|
-
margin: ds-spacing
|
|
15
|
-
padding-bottom: ds-spacing
|
|
14
|
+
margin: ds-spacing(0 $ds-s-100);
|
|
15
|
+
padding-bottom: ds-spacing($ds-s-075);
|
|
16
16
|
overflow-x: scroll;
|
|
17
17
|
display: grid;
|
|
18
18
|
grid-auto-columns: max-content;
|
|
19
19
|
grid-auto-flow: column;
|
|
20
|
-
gap: ds-spacing
|
|
20
|
+
gap: ds-spacing($ds-s-050);
|
|
21
21
|
|
|
22
22
|
@include ds-teaser-focus(2px);
|
|
23
23
|
}
|
|
@@ -22,7 +22,7 @@ $ds-teaser-list-vertical-media-icon-size: 20px;
|
|
|
22
22
|
|
|
23
23
|
.ds-teaser-list-vertical__link {
|
|
24
24
|
position: relative;
|
|
25
|
-
padding: ds-spacing
|
|
25
|
+
padding: ds-spacing($ds-s-100, rem);
|
|
26
26
|
|
|
27
27
|
&::before {
|
|
28
28
|
content: "";
|
|
@@ -36,7 +36,7 @@ $ds-teaser-list-vertical-media-icon-size: 20px;
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.ds-teaser-list-vertical__item {
|
|
39
|
-
padding: ds-spacing
|
|
39
|
+
padding: ds-spacing($ds-s-075 $ds-s-100, rem);
|
|
40
40
|
display: block;
|
|
41
41
|
text-decoration: none;
|
|
42
42
|
position: relative;
|
|
@@ -46,7 +46,7 @@ $ds-teaser-list-vertical-media-icon-size: 20px;
|
|
|
46
46
|
position: absolute;
|
|
47
47
|
bottom: 0;
|
|
48
48
|
height: ds-metrics-border-width(x1);
|
|
49
|
-
width: calc(100% - ds-spacing
|
|
49
|
+
width: calc(100% - ds-spacing($ds-s-200));
|
|
50
50
|
background-color: $ds-color-border-primary;
|
|
51
51
|
}
|
|
52
52
|
|
|
@@ -57,7 +57,7 @@ $ds-teaser-list-vertical-media-icon-size: 20px;
|
|
|
57
57
|
|
|
58
58
|
.ds-teaser-list-vertical__item-title,
|
|
59
59
|
.ds-teaser-list-vertical__item-notes {
|
|
60
|
-
margin: 0 0 0 (ds-spacing
|
|
60
|
+
margin: 0 0 0 (ds-spacing($ds-s-050, rem) + $ds-dot-size);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.ds-teaser-list-vertical__item-title {
|
|
@@ -69,7 +69,7 @@ $ds-teaser-list-vertical-media-icon-size: 20px;
|
|
|
69
69
|
.ds-teaser-list-vertical__item-notes {
|
|
70
70
|
@include ds-typography($ds-typography-functional-meta02regular);
|
|
71
71
|
color: $ds-color-text-primary-02;
|
|
72
|
-
margin-top: ds-spacing
|
|
72
|
+
margin-top: ds-spacing($ds-s-050, rem);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
@include ds-hover() {
|
|
@@ -80,7 +80,7 @@ $ds-teaser-list-vertical-media-icon-size: 20px;
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
.ds-teaser-list-vertical__media-item {
|
|
83
|
-
padding: ds-spacing
|
|
83
|
+
padding: ds-spacing($ds-s-075 $ds-s-100, rem);
|
|
84
84
|
display: flex;
|
|
85
85
|
justify-content: space-between;
|
|
86
86
|
text-decoration: none;
|
|
@@ -91,7 +91,7 @@ $ds-teaser-list-vertical-media-icon-size: 20px;
|
|
|
91
91
|
position: absolute;
|
|
92
92
|
bottom: 0;
|
|
93
93
|
height: ds-metrics-border-width(x1);
|
|
94
|
-
width: calc(100% - ds-spacing
|
|
94
|
+
width: calc(100% - ds-spacing($ds-s-200));
|
|
95
95
|
background-color: $ds-color-border-primary;
|
|
96
96
|
}
|
|
97
97
|
|
|
@@ -110,14 +110,14 @@ $ds-teaser-list-vertical-media-icon-size: 20px;
|
|
|
110
110
|
.ds-teaser-list-vertical__media-item-notes {
|
|
111
111
|
@include ds-typography($ds-typography-functional-meta02regular);
|
|
112
112
|
color: $ds-color-text-primary-02;
|
|
113
|
-
margin-top: ds-spacing
|
|
113
|
+
margin-top: ds-spacing($ds-s-050, rem);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
.ds-teaser-list-vertical__media-item-img {
|
|
117
117
|
flex: 0 0 91px;
|
|
118
118
|
align-self: flex-start;
|
|
119
119
|
position: relative;
|
|
120
|
-
margin-left: ds-spacing
|
|
120
|
+
margin-left: ds-spacing($ds-s-100);
|
|
121
121
|
|
|
122
122
|
.ds-icon {
|
|
123
123
|
width: $ds-teaser-list-vertical-media-icon-size;
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
border-bottom: 4px solid $ds-color-static-ad-yellow;
|
|
8
8
|
|
|
9
9
|
.ds-teaser__media {
|
|
10
|
-
|
|
10
|
+
margin-bottom: ds-spacing($ds-s-teaser-vertical-medium);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.ds-teaser__content {
|
|
14
14
|
display: block;
|
|
15
|
-
|
|
15
|
+
padding: ds-spacing($ds-s-teaser-vertical-small $ds-s-teaser-horizontal $ds-s-teaser-vertical-medium);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.ds-teaser__title {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
&.ds-teaser--native-right,
|
|
30
30
|
&.ds-teaser--native-large {
|
|
31
31
|
.ds-teaser__media {
|
|
32
|
-
|
|
32
|
+
margin: 0;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.ds-teaser__media {
|
|
57
|
-
margin-left: ds-spacing
|
|
57
|
+
margin-left: ds-spacing($ds-s-100);
|
|
58
58
|
float: right;
|
|
59
59
|
|
|
60
60
|
@include ds-mq-only-breakpoint(mobile) {
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
span {
|
|
90
90
|
display: flex;
|
|
91
91
|
align-items: center;
|
|
92
|
-
padding: ds-spacing
|
|
92
|
+
padding: ds-spacing(0 $ds-s-100);
|
|
93
93
|
background-color: $ds-color-static-black;
|
|
94
94
|
color: $ds-color-static-white;
|
|
95
95
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
@use "../../assets/teaser/teaser.scss" as *;
|
|
3
3
|
|
|
4
4
|
.ds-teaser.ds-teaser--onsite {
|
|
5
|
-
|
|
6
|
-
$ds-
|
|
5
|
+
padding: ds-spacing(
|
|
6
|
+
$ds-s-teaser-vertical-medium $ds-s-teaser-horizontal
|
|
7
7
|
);
|
|
8
8
|
display: flex;
|
|
9
9
|
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.ds-teaser__media {
|
|
31
|
-
margin-right: ds-spacing
|
|
31
|
+
margin-right: ds-spacing($ds-s-100);
|
|
32
32
|
width: 56px;
|
|
33
33
|
height: 56px;
|
|
34
34
|
}
|
|
@@ -14,12 +14,9 @@
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.ds-teaser__content {
|
|
17
|
-
|
|
18
|
-
$ds-
|
|
17
|
+
padding: ds-spacing(
|
|
18
|
+
$ds-s-teaser-vertical-medium $ds-s-teaser-horizontal $ds-s-100 $ds-s-teaser-horizontal
|
|
19
19
|
);
|
|
20
|
-
padding-bottom: ds-spacing-component(
|
|
21
|
-
$ds-sc-x4
|
|
22
|
-
) !important; // !important to override spacing set in media query above
|
|
23
20
|
display: block;
|
|
24
21
|
color: $ds-color-text-primary;
|
|
25
22
|
|