@bonniernews/dn-design-system-web 3.0.0-alpha.70 → 3.0.0-alpha.71
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,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.71](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.70...@bonniernews/dn-design-system-web@3.0.0-alpha.71) (2023-05-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **web:** update teaser spacing and typography ([#846](https://github.com/BonnierNews/dn-design-system/issues/846)) ([8dbf030](https://github.com/BonnierNews/dn-design-system/commit/8dbf0300603a417f5c10c10a665d75f4a242fc05))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [3.0.0-alpha.70](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.69...@bonniernews/dn-design-system-web@3.0.0-alpha.70) (2023-05-25)
|
|
7
16
|
|
|
8
17
|
|
|
@@ -42,7 +42,11 @@
|
|
|
42
42
|
.ds-teaser__text {
|
|
43
43
|
@include ds-typography($ds-typography-detailmedryckare);
|
|
44
44
|
color: $ds-color-text-primary;
|
|
45
|
+
// Should be replaced with dynamic spacing layout token when available
|
|
45
46
|
margin: ds-spacing-component($ds-sc-x2 0 0);
|
|
47
|
+
@include ds-mq-smallest-breakpoint(tablet) {
|
|
48
|
+
margin-top: ds-spacing-component($ds-sc-x3);
|
|
49
|
+
}
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
.ds-teaser__sticker {
|
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
grid-auto-rows: auto;
|
|
18
18
|
grid-template-columns: 1fr auto;
|
|
19
19
|
@include ds-spacing-layout($ds-sl-teaser-vertical $ds-sl-teaser-horizontal);
|
|
20
|
+
|
|
21
|
+
// Special case for large teaser, should be replaced with dynamic spacing layout token when available
|
|
22
|
+
@include ds-mq-only-breakpoint(mobile) {
|
|
23
|
+
padding-bottom: ds-spacing-component($ds-sc-x3);
|
|
24
|
+
}
|
|
25
|
+
@include ds-mq-smallest-breakpoint(tablet) {
|
|
26
|
+
padding-bottom: ds-spacing-component($ds-sc-x4);
|
|
27
|
+
}
|
|
20
28
|
}
|
|
21
29
|
|
|
22
30
|
.ds-teaser__vignette {
|
|
@@ -26,7 +34,24 @@
|
|
|
26
34
|
.ds-teaser__title {
|
|
27
35
|
grid-row: 1;
|
|
28
36
|
grid-column: 1 / span 1;
|
|
29
|
-
@include ds-
|
|
37
|
+
@include ds-mq-only-breakpoint(mobile) {
|
|
38
|
+
@include ds-typography-without-mq(
|
|
39
|
+
$ds-typography-expressive-heading04bold,
|
|
40
|
+
mobile
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
@include ds-mq-only-breakpoint(tablet) {
|
|
44
|
+
@include ds-typography-without-mq(
|
|
45
|
+
$ds-typography-expressive-heading04bold,
|
|
46
|
+
tablet
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
@include ds-mq-only-breakpoint(desktop) {
|
|
50
|
+
@include ds-typography-without-mq(
|
|
51
|
+
$ds-typography-expressive-heading05bold,
|
|
52
|
+
desktop
|
|
53
|
+
);
|
|
54
|
+
}
|
|
30
55
|
}
|
|
31
56
|
|
|
32
57
|
@include ds-hover(true) {
|
|
@@ -81,16 +106,16 @@
|
|
|
81
106
|
.ds-teaser__byline {
|
|
82
107
|
grid-column: 2;
|
|
83
108
|
grid-row: 1 / span 3;
|
|
84
|
-
|
|
109
|
+
overflow: hidden;
|
|
85
110
|
position: relative;
|
|
86
111
|
margin-left: ds-spacing-component($ds-sc-x4);
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
margin-bottom,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
112
|
+
// margin-bottom needs to be the negative value of padding-bottom on .ds-teaser__content
|
|
113
|
+
@include ds-mq-only-breakpoint(mobile) {
|
|
114
|
+
margin-bottom: ds-spacing-component($ds-sc-x3, "px", true);
|
|
115
|
+
}
|
|
116
|
+
@include ds-mq-smallest-breakpoint(tablet) {
|
|
117
|
+
margin-bottom: ds-spacing-component($ds-sc-x4, "px", true);
|
|
118
|
+
}
|
|
94
119
|
|
|
95
120
|
.picture {
|
|
96
121
|
position: absolute;
|
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.71",
|
|
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",
|