@bonniernews/dn-design-system-web 3.0.0-alpha.39 → 3.0.0-alpha.40
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 +9 -0
- package/assets/teaser/teaser.scss +1 -1
- package/components/teaser-image/teaser-image.scss +1 -1
- package/components/teaser-large/README.md +1 -0
- package/components/teaser-large/teaser-large.njk +6 -2
- package/components/teaser-large/teaser-large.scss +28 -19
- package/components/teaser-standard/README.md +1 -0
- package/components/teaser-standard/teaser-standard.njk +5 -1
- package/components/teaser-standard/teaser-standard.scss +1 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
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.40 (2023-05-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **web:** changes needed in large & standard teasers after implementing them in bang ([#782](https://github.com/BonnierNews/dn-design-system/issues/782)) ([d028b52](https://github.com/BonnierNews/dn-design-system/commit/d028b5240b4c263f88e9c903db2469ddd505bac5))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [3.0.0-alpha.39](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.38...@bonniernews/dn-design-system-web@3.0.0-alpha.39) (2023-05-02)
|
|
7
16
|
|
|
8
17
|
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
|targetLink | String | yes | | | Target URL for the teaser |
|
|
15
15
|
|targetId | String | no | | | Target article ID |
|
|
16
16
|
|variant | String | no | "default" or "podd" | "default" | |
|
|
17
|
+
|areaType | string | no | "right" or "bauta" or "bautaxl" | | The area where the column is rendered |
|
|
17
18
|
|theme | String | no | nyheter, kultur, ekonomi, sport, sthlm | (empty) | The theme-class to apply to the teaser |
|
|
18
19
|
|text | String | no | | | Teaser subtext |
|
|
19
20
|
|vignette | String | no | | | Top text in the teaser |
|
|
@@ -15,11 +15,15 @@
|
|
|
15
15
|
{% set additionalClasses = (additionalClasses.push('ds-theme--' + params.theme), additionalClasses) %}
|
|
16
16
|
{% endif %}
|
|
17
17
|
|
|
18
|
+
{% if params.areaType %}
|
|
19
|
+
{% set additionalClasses = (additionalClasses.push(classNamePrefix + params.areaType), additionalClasses) %}
|
|
20
|
+
{% endif %}
|
|
21
|
+
|
|
18
22
|
{% if params.classNames %}
|
|
19
23
|
{% set additionalClasses = (additionalClasses.push(params.classNames), additionalClasses) %}
|
|
20
24
|
{% endif%}
|
|
21
25
|
|
|
22
|
-
{% if params.isItalicHeadline and params.isLargeHeadline %}
|
|
26
|
+
{% if params.isItalicHeadline and params.isLargeHeadline and params.areaType !== "right" %}
|
|
23
27
|
{% set additionalClasses = (additionalClasses.push("ds-teaser--large-big-italic"), additionalClasses) %}
|
|
24
28
|
{% elif params.isItalicHeadline %}
|
|
25
29
|
{% set additionalClasses = (additionalClasses.push("ds-teaser--large-italic"), additionalClasses) %}
|
|
@@ -55,7 +59,7 @@
|
|
|
55
59
|
{{ params.title | safe }}
|
|
56
60
|
</h2>
|
|
57
61
|
|
|
58
|
-
{% if params.text %}
|
|
62
|
+
{% if params.text and params.areaType !== "right" %}
|
|
59
63
|
<p class="{{ componentClassName + '__text'}}">
|
|
60
64
|
{% if params.isFlashingDot %}
|
|
61
65
|
<span class="ds-sticker__flashing-dot"></span>
|
|
@@ -16,14 +16,7 @@
|
|
|
16
16
|
display: grid;
|
|
17
17
|
grid-auto-rows: auto;
|
|
18
18
|
grid-template-columns: 1fr auto;
|
|
19
|
-
|
|
20
|
-
@include ds-mq-largest-breakpoint(mobile) {
|
|
21
|
-
padding: ds-spacing-component($ds-sc-x3 $ds-sc-x4);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@include ds-mq-smallest-breakpoint(tablet) {
|
|
25
|
-
padding: ds-spacing-component($ds-sc-x4);
|
|
26
|
-
}
|
|
19
|
+
@include ds-spacing-layout($ds-sl-teaser-vertical $ds-sl-teaser-horizontal);
|
|
27
20
|
}
|
|
28
21
|
|
|
29
22
|
.ds-teaser__vignette {
|
|
@@ -79,21 +72,19 @@
|
|
|
79
72
|
|
|
80
73
|
position: relative;
|
|
81
74
|
margin-left: ds-spacing-component($ds-sc-x4);
|
|
75
|
+
@include ds-spacing-layout(
|
|
76
|
+
$ds-sl-teaser-vertical,
|
|
77
|
+
margin-bottom,
|
|
78
|
+
"px",
|
|
79
|
+
true
|
|
80
|
+
);
|
|
82
81
|
overflow: hidden;
|
|
83
82
|
|
|
84
83
|
.picture {
|
|
85
84
|
position: absolute;
|
|
86
85
|
top: 0;
|
|
87
86
|
right: 0;
|
|
88
|
-
|
|
89
|
-
@include ds-mq-only-breakpoint(mobile) {
|
|
90
|
-
bottom: -#{ds-spacing-component($ds-sc-x3)};
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
@include ds-mq-smallest-breakpoint(tablet) {
|
|
94
|
-
bottom: -#{ds-spacing-component($ds-sc-x4)};
|
|
95
|
-
}
|
|
96
|
-
|
|
87
|
+
@include ds-spacing-layout($ds-sl-teaser-vertical, bottom, "px", true);
|
|
97
88
|
width: 100%;
|
|
98
89
|
min-width: 104px;
|
|
99
90
|
margin: 0;
|
|
@@ -109,14 +100,32 @@
|
|
|
109
100
|
width: 104px;
|
|
110
101
|
min-height: 85px;
|
|
111
102
|
margin-left: ds-spacing-component($ds-sc-x2);
|
|
112
|
-
margin-bottom: -#{ds-spacing-component($ds-sc-x3)};
|
|
113
103
|
}
|
|
114
104
|
|
|
115
105
|
@include ds-mq-smallest-breakpoint(tablet) {
|
|
116
106
|
width: 168px;
|
|
117
107
|
// En bylinebild bör va lika hög som en "grekisk byst" - man ska se lite skjortkrage!
|
|
118
108
|
min-height: 110px;
|
|
119
|
-
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@include ds-mq-smallest-breakpoint(tablet) {
|
|
113
|
+
&.ds-teaser--right {
|
|
114
|
+
.ds-teaser__title {
|
|
115
|
+
@include ds-typography($ds-typography-expressive-heading02bold);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&.ds-teaser--large-italic .ds-teaser__title {
|
|
119
|
+
@include ds-typography(
|
|
120
|
+
$ds-typography-expressive-heading02italicregular
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.ds-teaser__byline {
|
|
125
|
+
width: 104px;
|
|
126
|
+
min-height: 85px;
|
|
127
|
+
margin-left: ds-spacing-component($ds-sc-x2);
|
|
128
|
+
}
|
|
120
129
|
}
|
|
121
130
|
}
|
|
122
131
|
}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
|targetLink | String | yes | | | Target URL for the teaser |
|
|
15
15
|
|targetId | String | no | | | Target article ID |
|
|
16
16
|
|variant | String | no | "default" or "podd" | "default" | |
|
|
17
|
+
|areaType | string | no | "right" or "bauta" or "bautaxl" | | The area where the column is rendered |
|
|
17
18
|
|theme | String | no | nyheter, kultur, ekonomi, sport, sthlm | (empty) | The theme-class to apply to the teaser |
|
|
18
19
|
|text | String | no | | | Teaser subtext |
|
|
19
20
|
|vignette | String | no | | | Top text in the teaser |
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
{% set additionalClasses = (additionalClasses.push('ds-theme--' + params.theme), additionalClasses) %}
|
|
16
16
|
{% endif %}
|
|
17
17
|
|
|
18
|
+
{% if params.areaType %}
|
|
19
|
+
{% set additionalClasses = (additionalClasses.push(classNamePrefix + params.areaType), additionalClasses) %}
|
|
20
|
+
{% endif %}
|
|
21
|
+
|
|
18
22
|
{% if params.classNames %}
|
|
19
23
|
{% set additionalClasses = (additionalClasses.push(params.classNames), additionalClasses) %}
|
|
20
24
|
{% endif%}
|
|
@@ -38,7 +42,7 @@
|
|
|
38
42
|
{{ params.title | safe }}
|
|
39
43
|
</h2>
|
|
40
44
|
|
|
41
|
-
{% if params.text %}
|
|
45
|
+
{% if params.text and params.areaType !== "right" %}
|
|
42
46
|
<p class="{{ componentClassName + '__text'}}">
|
|
43
47
|
{% if params.isFlashingDot %}
|
|
44
48
|
<span class="ds-sticker__flashing-dot"></span>
|
|
@@ -4,13 +4,7 @@
|
|
|
4
4
|
.ds-teaser--standard {
|
|
5
5
|
display: flex;
|
|
6
6
|
|
|
7
|
-
@include ds-
|
|
8
|
-
padding: ds-spacing-component($ds-sc-x3 $ds-sc-x4);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@include ds-mq-smallest-breakpoint(tablet) {
|
|
12
|
-
padding: ds-spacing-component($ds-sc-x4);
|
|
13
|
-
}
|
|
7
|
+
@include ds-spacing-layout($ds-sl-teaser-vertical $ds-sl-teaser-horizontal);
|
|
14
8
|
|
|
15
9
|
.ds-teaser__title {
|
|
16
10
|
@include ds-typography($ds-typography-expressive-heading03bold);
|
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.40",
|
|
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",
|