@bonniernews/dn-design-system-web 4.7.7 → 4.8.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
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
|
+
## 4.8.1 (2023-09-21)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 4.8.0 (2023-09-21)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **web:** update design for teaser-rightnow ([#995](https://github.com/BonnierNews/dn-design-system/issues/995)) ([8827b79](https://github.com/BonnierNews/dn-design-system/commit/8827b7937e07aaa1ddad6bba18ba42980f237985))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
## 4.7.7 (2023-09-20)
|
|
7
24
|
|
|
8
25
|
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
attributes: params.attributes,
|
|
14
14
|
classNames: extraClasses
|
|
15
15
|
}) %}
|
|
16
|
-
<span class="ds-teaser__right-now-sticker">Just nu</span>
|
|
17
16
|
<div class="{{ componentClassName + '__content'}}">
|
|
18
17
|
<h2 class="ds-teaser__title">
|
|
18
|
+
<span class="ds-teaser__highlight">Just nu:</span>
|
|
19
19
|
{{ params.title }}
|
|
20
20
|
</h2>
|
|
21
21
|
</div>
|
|
@@ -7,53 +7,16 @@
|
|
|
7
7
|
flex-direction: row;
|
|
8
8
|
align-items: center;
|
|
9
9
|
@include ds-spacing-layout(
|
|
10
|
-
$ds-sl-teaser-vertical-
|
|
10
|
+
$ds-sl-teaser-vertical-small $ds-sl-teaser-horizontal
|
|
11
11
|
);
|
|
12
12
|
|
|
13
|
-
.ds-teaser__content {
|
|
14
|
-
padding-left: ds-spacing-component($ds-sc-x3);
|
|
15
|
-
flex: 1;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
13
|
.ds-teaser__title {
|
|
19
|
-
@include ds-typography($ds-typography-
|
|
14
|
+
@include ds-typography($ds-typography-expressive-heading01bold);
|
|
20
15
|
}
|
|
21
16
|
|
|
22
17
|
@include ds-hover(true) {
|
|
23
|
-
.ds-teaser__title {
|
|
18
|
+
> .ds-teaser__content > .ds-teaser__title {
|
|
24
19
|
@include ds-underline(2px, 1px);
|
|
25
20
|
}
|
|
26
21
|
}
|
|
27
|
-
|
|
28
|
-
.ds-teaser__right-now-sticker {
|
|
29
|
-
$flag-height: ds-spacing-component($ds-sc-x8);
|
|
30
|
-
$flag-height-half: math.div($flag-height, 2);
|
|
31
|
-
$flag-color: $ds-color-static-yellow;
|
|
32
|
-
|
|
33
|
-
position: relative;
|
|
34
|
-
display: flex;
|
|
35
|
-
justify-content: center;
|
|
36
|
-
align-items: center;
|
|
37
|
-
|
|
38
|
-
@include ds-typography($ds-typography-detailarticle-label);
|
|
39
|
-
|
|
40
|
-
height: $flag-height;
|
|
41
|
-
padding: ds-spacing-component(0 $ds-sc-x1 0 $ds-sc-x2);
|
|
42
|
-
margin-right: $flag-height-half;
|
|
43
|
-
|
|
44
|
-
background-color: $flag-color;
|
|
45
|
-
color: $ds-color-static-black;
|
|
46
|
-
|
|
47
|
-
&::after {
|
|
48
|
-
display: block;
|
|
49
|
-
content: "";
|
|
50
|
-
position: absolute;
|
|
51
|
-
right: -#{$flag-height-half};
|
|
52
|
-
top: 0;
|
|
53
|
-
|
|
54
|
-
border-left: $flag-height-half solid $flag-color;
|
|
55
|
-
border-top: $flag-height-half solid transparent;
|
|
56
|
-
border-bottom: $flag-height-half solid transparent;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
22
|
}
|
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
flex-wrap: wrap;
|
|
11
11
|
position: relative;
|
|
12
12
|
box-sizing: border-box;
|
|
13
|
+
background: $ds-color-background-primary;
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
@at-root .ds-teaser-package > & + & {
|
|
15
16
|
&:before {
|
|
16
17
|
content: "";
|
|
17
18
|
height: ds-metrics-border-width(x1);
|
package/package.json
CHANGED