@bonniernews/dn-design-system-web 3.0.0-alpha.80 → 3.0.0-alpha.82
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/teaser-onsite/README.md +2 -10
- package/components/teaser-onsite/teaser-onsite.scss +6 -8
- package/components/teaser-package/teaser-package.scss +0 -4
- package/foundations/variables/typographyTokensList.scss +4 -0
- package/foundations/variables/typographyTokensScreenLarge.scss +25 -0
- package/foundations/variables/typographyTokensScreenSmall.scss +25 -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.82](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.81...@bonniernews/dn-design-system-web@3.0.0-alpha.82) (2023-06-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **web:** remove world map from teaser-onsite ([#852](https://github.com/BonnierNews/dn-design-system/issues/852)) ([ba0df65](https://github.com/BonnierNews/dn-design-system/commit/ba0df650d5f80aca6ca4ea5fff6b04477243a177))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [3.0.0-alpha.81](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.80...@bonniernews/dn-design-system-web@3.0.0-alpha.81) (2023-06-01)
|
|
16
|
+
|
|
17
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
## [3.0.0-alpha.80](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.79...@bonniernews/dn-design-system-web@3.0.0-alpha.80) (2023-06-01)
|
|
7
24
|
|
|
8
25
|
|
|
@@ -10,14 +10,6 @@ Also known as "På Plats-puffen".
|
|
|
10
10
|
|
|
11
11
|
In the CMS title will be set to a location like "Kiev, Ukraina" or "USA" and text is usually set to some author names like "Jan Banan och Kalle Kula"
|
|
12
12
|
|
|
13
|
-
The worldMap has to be set by the parent page as a CSS variable. This is done in the StoryBook and will have to be done from the production website codebase.
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
:root {
|
|
17
|
-
--ds-onsite-background-image-url: url("https://i.imgur.com/GJh7Fbl.png");
|
|
18
|
-
}
|
|
19
|
-
```
|
|
20
|
-
|
|
21
13
|
## Parameters
|
|
22
14
|
|
|
23
15
|
|parameter | type | required | options | default | description |
|
|
@@ -36,7 +28,7 @@ The worldMap has to be set by the parent page as a CSS variable. This is done in
|
|
|
36
28
|
|
|
37
29
|
### Nunjucks
|
|
38
30
|
|
|
39
|
-
These are copy paste friendly examples to
|
|
31
|
+
These are copy paste friendly examples to quickly get started using a component.
|
|
40
32
|
|
|
41
33
|
```html
|
|
42
34
|
{% from '@bonniernews/dn-design-system-web/components/teaser-onsite/teaser-onsite.njk' import TeaserOnSite %}
|
|
@@ -49,5 +41,5 @@ These are copy paste friendly examples to quickliy get started using a component
|
|
|
49
41
|
|
|
50
42
|
### SCSS
|
|
51
43
|
```scss
|
|
52
|
-
@use "@bonniernews/dn-design-system-web/components/teaser-onsite/teaser-onsite"
|
|
44
|
+
@use "@bonniernews/dn-design-system-web/components/teaser-onsite/teaser-onsite";
|
|
53
45
|
```
|
|
@@ -3,12 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
.ds-teaser.ds-teaser--onsite {
|
|
5
5
|
@include ds-spacing-layout($ds-sl-teaser-vertical $ds-sl-teaser-horizontal);
|
|
6
|
-
|
|
7
|
-
--ds-onsite-background-image-url
|
|
8
|
-
); //Set by parent context (like Storybook or Bang)
|
|
9
|
-
background-position: 100%;
|
|
10
|
-
background-repeat: no-repeat;
|
|
11
|
-
overflow: hidden;
|
|
6
|
+
display: flex;
|
|
12
7
|
|
|
13
8
|
.ds-teaser__title {
|
|
14
9
|
color: $ds-theme-color;
|
|
@@ -17,7 +12,11 @@
|
|
|
17
12
|
|
|
18
13
|
@include ds-hover(true) {
|
|
19
14
|
.ds-teaser__title {
|
|
20
|
-
|
|
15
|
+
text-decoration: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ds-teaser__text {
|
|
19
|
+
@include ds-underline();
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
22
|
|
|
@@ -27,7 +26,6 @@
|
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
.ds-teaser__media {
|
|
30
|
-
float: left;
|
|
31
29
|
margin-right: ds-spacing-component($ds-sc-x4);
|
|
32
30
|
width: 56px;
|
|
33
31
|
height: 56px;
|
|
@@ -83,3 +83,7 @@ $ds-typography-detailstandard-button-small: 'detailstandard-button-small';
|
|
|
83
83
|
$ds-typography-detailarticle-label: 'detailarticle-label';
|
|
84
84
|
$ds-typography-detailmedryckare: 'detailmedryckare';
|
|
85
85
|
$ds-typography-detailbaota-xl-label: 'detailbaota-xl-label';
|
|
86
|
+
$ds-typography-detailarticle-standard: 'detailarticle-standard';
|
|
87
|
+
$ds-typography-detailarticle-opinion: 'detailarticle-opinion';
|
|
88
|
+
$ds-typography-detailarticle-longread: 'detailarticle-longread';
|
|
89
|
+
$ds-typography-detailarticle-longread-premium: 'detailarticle-longread-premium';
|
|
@@ -502,6 +502,31 @@ $typographyTokensScreenLarge: (
|
|
|
502
502
|
lineHeight: 78,
|
|
503
503
|
fontSize: 92
|
|
504
504
|
),
|
|
505
|
+
detailarticle-standard: (
|
|
506
|
+
fontFamily: "DN Serif",
|
|
507
|
+
fontWeight: Bold,
|
|
508
|
+
lineHeight: 52,
|
|
509
|
+
fontSize: 48
|
|
510
|
+
),
|
|
511
|
+
detailarticle-opinion: (
|
|
512
|
+
fontFamily: "DN Serif",
|
|
513
|
+
fontWeight: Regular,
|
|
514
|
+
lineHeight: 52,
|
|
515
|
+
fontSize: 48,
|
|
516
|
+
fontStyle: italic
|
|
517
|
+
),
|
|
518
|
+
detailarticle-longread: (
|
|
519
|
+
fontFamily: "DN Serif",
|
|
520
|
+
fontWeight: Regular,
|
|
521
|
+
lineHeight: 64,
|
|
522
|
+
fontSize: 56
|
|
523
|
+
),
|
|
524
|
+
detailarticle-longread-premium: (
|
|
525
|
+
fontFamily: "DN Serif",
|
|
526
|
+
fontWeight: Bold,
|
|
527
|
+
lineHeight: 64,
|
|
528
|
+
fontSize: 56
|
|
529
|
+
),
|
|
505
530
|
detailstandard-button: (
|
|
506
531
|
fontFamily: "DN Sans",
|
|
507
532
|
fontWeight: SemiBold,
|
|
@@ -547,5 +547,30 @@ $typographyTokensScreenSmall: (
|
|
|
547
547
|
fontSize: 16,
|
|
548
548
|
textCase: upperCase,
|
|
549
549
|
letterSpacing: 0.7
|
|
550
|
+
),
|
|
551
|
+
detailarticle-standard: (
|
|
552
|
+
fontFamily: "DN Serif",
|
|
553
|
+
fontWeight: Bold,
|
|
554
|
+
lineHeight: 32,
|
|
555
|
+
fontSize: 26
|
|
556
|
+
),
|
|
557
|
+
detailarticle-opinion: (
|
|
558
|
+
fontFamily: "DN Serif",
|
|
559
|
+
fontWeight: Regular,
|
|
560
|
+
lineHeight: 32,
|
|
561
|
+
fontSize: 26,
|
|
562
|
+
fontStyle: italic
|
|
563
|
+
),
|
|
564
|
+
detailarticle-longread: (
|
|
565
|
+
fontFamily: "DN Serif",
|
|
566
|
+
fontWeight: Regular,
|
|
567
|
+
lineHeight: 36,
|
|
568
|
+
fontSize: 32
|
|
569
|
+
),
|
|
570
|
+
detailarticle-longread-premium: (
|
|
571
|
+
fontFamily: "DN Serif",
|
|
572
|
+
fontWeight: Bold,
|
|
573
|
+
lineHeight: 36,
|
|
574
|
+
fontSize: 32
|
|
550
575
|
)
|
|
551
576
|
);
|
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.82",
|
|
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",
|