@bonniernews/dn-design-system-web 3.0.0-alpha.95 → 3.0.0-alpha.97
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
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
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.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)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **web:** teaser package corrections ([#879](https://github.com/BonnierNews/dn-design-system/issues/879)) ([6c89020](https://github.com/BonnierNews/dn-design-system/commit/6c89020ace3489ef8f3575025a7da0c965ebed03))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [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)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **web:** update spacing on grade in teaser ([#880](https://github.com/BonnierNews/dn-design-system/issues/880)) ([c31d50a](https://github.com/BonnierNews/dn-design-system/commit/c31d50a86b2ac8089f7ad2b7db793501810a2095))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
## [3.0.0-alpha.95](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.94...@bonniernews/dn-design-system-web@3.0.0-alpha.95) (2023-06-13)
|
|
7
25
|
|
|
8
26
|
|
|
@@ -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 {
|
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.97",
|
|
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",
|