@bonniernews/dn-design-system-web 3.0.0-alpha.96 → 3.0.0-alpha.98
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 +17 -0
- package/components/quote/quote.scss +2 -2
- package/components/teaser-package/teaser-package.njk +1 -1
- package/components/teaser-package/teaser-package.scss +21 -10
- package/foundations/variables/typographyTokensList.scss +1 -0
- package/foundations/variables/typographyTokensScreenExtraLarge.scss +14 -8
- package/foundations/variables/typographyTokensScreenLarge.scss +14 -8
- package/foundations/variables/typographyTokensScreenSmall.scss +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 3.0.0-alpha.98 (2023-06-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [3.0.0-alpha.97](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.96...@bonniernews/dn-design-system-web@3.0.0-alpha.97) (2023-06-13)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **web:** teaser package corrections ([#879](https://github.com/BonnierNews/dn-design-system/issues/879)) ([6c89020](https://github.com/BonnierNews/dn-design-system/commit/6c89020ace3489ef8f3575025a7da0c965ebed03))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
## [3.0.0-alpha.96](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.95...@bonniernews/dn-design-system-web@3.0.0-alpha.96) (2023-06-13)
|
|
7
24
|
|
|
8
25
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use "../../foundations/helpers/forward.helpers.scss" as *;
|
|
2
2
|
|
|
3
3
|
.ds-quote {
|
|
4
|
-
@include ds-typography($ds-typography-
|
|
4
|
+
@include ds-typography($ds-typography-detailarticle-quote);
|
|
5
5
|
color: $ds-color-text-primary;
|
|
6
6
|
margin: 0;
|
|
7
7
|
@include ds-spacing-layout(
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
position: relative;
|
|
11
11
|
|
|
12
12
|
@at-root .ds-force-px#{&} {
|
|
13
|
-
@include ds-typography($ds-typography-
|
|
13
|
+
@include ds-typography($ds-typography-detailarticle-quote, true);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.ds-quote__border {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
{%- set classes = componentClassName + " " + additionalClasses | join(" ") %}
|
|
23
23
|
<div class="{{ classes }}">
|
|
24
|
-
{%- if params.vignetteTargetUrl %}
|
|
24
|
+
{%- if params.vignetteTargetUrl and params.vignetteText %}
|
|
25
25
|
<a href="{{ params.vignetteTargetUrl }}"
|
|
26
26
|
class="{{ componentClassName + '__vignette'}}"
|
|
27
27
|
{{- attributes | safe }}>
|
|
@@ -24,9 +24,8 @@
|
|
|
24
24
|
z-index: 5;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
.ds-teaser-package__vignette + .ds-teaser::after,
|
|
28
27
|
.ds-teaser--top-img::after,
|
|
29
|
-
> .ds-teaser:first-child
|
|
28
|
+
> .ds-teaser:first-child::after {
|
|
30
29
|
display: none;
|
|
31
30
|
}
|
|
32
31
|
|
|
@@ -40,25 +39,27 @@
|
|
|
40
39
|
z-index: 5;
|
|
41
40
|
}
|
|
42
41
|
|
|
42
|
+
&:has(.ds-teaser:only-child)::after {
|
|
43
|
+
display: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
43
46
|
.ds-teaser-package__vignette {
|
|
44
47
|
padding: ds-spacing-component($ds-sc-x3);
|
|
45
48
|
@include ds-spacing-layout($ds-sl-teaser-horizontal, padding-left);
|
|
46
49
|
@include ds-spacing-layout($ds-sl-teaser-horizontal, padding-right);
|
|
47
50
|
@include ds-typography($ds-typography-functional-body02bold);
|
|
51
|
+
@include ds-teaser-focus(-8px);
|
|
48
52
|
display: flex;
|
|
49
53
|
justify-content: space-between;
|
|
50
54
|
align-items: center;
|
|
51
55
|
background-color: $ds-color-component-secondary;
|
|
56
|
+
}
|
|
52
57
|
|
|
58
|
+
a.ds-teaser-package__vignette {
|
|
59
|
+
text-decoration-line: none;
|
|
53
60
|
@include ds-hover(true) {
|
|
54
61
|
@include ds-underline(1px, 2px);
|
|
55
62
|
}
|
|
56
|
-
|
|
57
|
-
@include ds-teaser-focus(-8px);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
a.ds-teaser-package__vignette {
|
|
61
|
-
@include ds-link($ds-link-list);
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
.ds-teaser-package__vignette,
|
|
@@ -80,7 +81,7 @@
|
|
|
80
81
|
|
|
81
82
|
.ds-teaser-package__vignette {
|
|
82
83
|
color: $ds-color-static-yellow;
|
|
83
|
-
background-color:
|
|
84
|
+
background-color: $ds-color-static-black;
|
|
84
85
|
@include ds-typography($ds-typography-detailbaota-xl-label);
|
|
85
86
|
}
|
|
86
87
|
|
|
@@ -91,11 +92,21 @@
|
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
@include ds-mq-only-breakpoint(mobile) {
|
|
94
|
-
background-color:
|
|
95
|
+
background-color: $ds-color-static-black;
|
|
95
96
|
.ds-teaser__title,
|
|
96
97
|
.ds-teaser__text {
|
|
97
98
|
color: $ds-color-static-white;
|
|
98
99
|
}
|
|
100
|
+
.ds-teaser-dot {
|
|
101
|
+
background-color: $ds-color-static-red-300;
|
|
102
|
+
}
|
|
103
|
+
.ds-teaser__vignette,
|
|
104
|
+
.ds-teaser__sticker {
|
|
105
|
+
color: $ds-color-static-red-300;
|
|
106
|
+
}
|
|
107
|
+
&::after {
|
|
108
|
+
background-color: $ds-color-static-transparent-white-10;
|
|
109
|
+
}
|
|
99
110
|
|
|
100
111
|
& + .ds-teaser::after,
|
|
101
112
|
& + .ds-split-container::after {
|
|
@@ -87,3 +87,4 @@ $ds-typography-detailarticle-standard: 'detailarticle-standard';
|
|
|
87
87
|
$ds-typography-detailarticle-opinion: 'detailarticle-opinion';
|
|
88
88
|
$ds-typography-detailarticle-longread: 'detailarticle-longread';
|
|
89
89
|
$ds-typography-detailarticle-longread-premium: 'detailarticle-longread-premium';
|
|
90
|
+
$ds-typography-detailarticle-quote: 'detailarticle-quote';
|
|
@@ -505,27 +505,33 @@ $typographyTokensScreenExtraLarge: (
|
|
|
505
505
|
detailarticle-standard: (
|
|
506
506
|
fontFamily: "DN Serif",
|
|
507
507
|
fontWeight: Bold,
|
|
508
|
-
lineHeight:
|
|
509
|
-
fontSize:
|
|
508
|
+
lineHeight: 44,
|
|
509
|
+
fontSize: 40
|
|
510
510
|
),
|
|
511
511
|
detailarticle-opinion: (
|
|
512
512
|
fontFamily: "DN Serif",
|
|
513
513
|
fontWeight: Regular,
|
|
514
|
-
lineHeight:
|
|
515
|
-
fontSize:
|
|
514
|
+
lineHeight: 44,
|
|
515
|
+
fontSize: 40,
|
|
516
516
|
fontStyle: italic
|
|
517
517
|
),
|
|
518
518
|
detailarticle-longread: (
|
|
519
519
|
fontFamily: "DN Serif",
|
|
520
520
|
fontWeight: Regular,
|
|
521
|
-
lineHeight:
|
|
522
|
-
fontSize:
|
|
521
|
+
lineHeight: 52,
|
|
522
|
+
fontSize: 48
|
|
523
523
|
),
|
|
524
524
|
detailarticle-longread-premium: (
|
|
525
525
|
fontFamily: "DN Serif",
|
|
526
526
|
fontWeight: Bold,
|
|
527
|
-
lineHeight:
|
|
528
|
-
fontSize:
|
|
527
|
+
lineHeight: 52,
|
|
528
|
+
fontSize: 48
|
|
529
|
+
),
|
|
530
|
+
detailarticle-quote: (
|
|
531
|
+
fontFamily: "DN Serif",
|
|
532
|
+
fontWeight: Bold,
|
|
533
|
+
lineHeight: 34,
|
|
534
|
+
fontSize: 28
|
|
529
535
|
),
|
|
530
536
|
detailstandard-button: (
|
|
531
537
|
fontFamily: "DN Sans",
|
|
@@ -505,27 +505,33 @@ $typographyTokensScreenLarge: (
|
|
|
505
505
|
detailarticle-standard: (
|
|
506
506
|
fontFamily: "DN Serif",
|
|
507
507
|
fontWeight: Bold,
|
|
508
|
-
lineHeight:
|
|
509
|
-
fontSize:
|
|
508
|
+
lineHeight: 44,
|
|
509
|
+
fontSize: 40
|
|
510
510
|
),
|
|
511
511
|
detailarticle-opinion: (
|
|
512
512
|
fontFamily: "DN Serif",
|
|
513
513
|
fontWeight: Regular,
|
|
514
|
-
lineHeight:
|
|
515
|
-
fontSize:
|
|
514
|
+
lineHeight: 44,
|
|
515
|
+
fontSize: 40,
|
|
516
516
|
fontStyle: italic
|
|
517
517
|
),
|
|
518
518
|
detailarticle-longread: (
|
|
519
519
|
fontFamily: "DN Serif",
|
|
520
520
|
fontWeight: Regular,
|
|
521
|
-
lineHeight:
|
|
522
|
-
fontSize:
|
|
521
|
+
lineHeight: 52,
|
|
522
|
+
fontSize: 48
|
|
523
523
|
),
|
|
524
524
|
detailarticle-longread-premium: (
|
|
525
525
|
fontFamily: "DN Serif",
|
|
526
526
|
fontWeight: Bold,
|
|
527
|
-
lineHeight:
|
|
528
|
-
fontSize:
|
|
527
|
+
lineHeight: 52,
|
|
528
|
+
fontSize: 48
|
|
529
|
+
),
|
|
530
|
+
detailarticle-quote: (
|
|
531
|
+
fontFamily: "DN Serif",
|
|
532
|
+
fontWeight: Bold,
|
|
533
|
+
lineHeight: 34,
|
|
534
|
+
fontSize: 28
|
|
529
535
|
),
|
|
530
536
|
detailstandard-button: (
|
|
531
537
|
fontFamily: "DN Sans",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bonniernews/dn-design-system-web",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.98",
|
|
4
4
|
"description": "DN design system for web.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"homepage": "https://github.com/BonnierNews/dn-design-system/tree/main/web/src#readme",
|