@bonniernews/dn-design-system-web 21.1.3 → 21.1.5
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/.release-it-beta.cjs +25 -0
- package/CHANGELOG.md +14 -0
- package/assets/teaser/teaser.scss +6 -4
- package/components/badge/badge.scss +6 -5
- package/components/blocked-content/blocked-content.scss +8 -6
- package/components/buddy-menu/buddy-menu.scss +13 -10
- package/components/button/button.scss +29 -19
- package/components/checkbox/checkbox.scss +1 -1
- package/components/disclaimer/disclaimer.scss +6 -4
- package/components/empty-state/empty-state.scss +6 -4
- package/components/factbox/factbox.scss +6 -4
- package/components/footer/footer.scss +5 -6
- package/components/game-header/game-header.scss +6 -4
- package/components/group-header/group-header.scss +4 -3
- package/components/image-caption/image-caption.scss +3 -2
- package/components/link-box/link-box-item.scss +6 -4
- package/components/list-item/list-item.scss +22 -14
- package/components/modal/modal.scss +6 -4
- package/components/pagination/pagination.scss +3 -2
- package/components/profile-header/profile-header.scss +9 -6
- package/components/quote/quote.scss +3 -2
- package/components/radio-button/radio-button.scss +1 -1
- package/components/tag-header/tag-header.scss +13 -9
- package/components/teaser-footer/teaser-footer.scss +6 -4
- package/components/teaser-image/teaser-image.scss +3 -2
- package/components/teaser-list-vertical/teaser-list-vertical.scss +6 -4
- package/components/teaser-longlife/teaser-longlife.scss +1 -1
- package/components/teaser-native/teaser-native.scss +3 -3
- package/components/teaser-standard/teaser-standard.scss +0 -1
- package/components/teaser-swipe-card/teaser-swipe-card.scss +7 -5
- package/components/teaser-tipsa/teaser-tipsa.scss +1 -1
- package/components/text-button/text-button.scss +14 -13
- package/components/text-button-toggle/text-button-toggle.scss +6 -3
- package/components/text-input/text-input.scss +6 -5
- package/components/tooltip/tooltip.scss +1 -1
- package/components/video-caption/video-caption.scss +4 -3
- package/components/vip-badge/vip-badge.scss +3 -3
- package/foundations/helpers/links.scss +27 -22
- package/foundations/helpers/mediaQueries.scss +0 -2
- package/foundations/helpers/metrics.scss +1 -2
- package/foundations/helpers/shadows.scss +0 -2
- package/foundations/helpers/spacing.scss +4 -3
- package/foundations/helpers/typography.scss +14 -8
- package/foundations/helpers/utilities.scss +2 -1
- package/foundations/shadows.scss +3 -3
- package/foundations/spacing.scss +2 -2
- package/package.json +2 -2
|
@@ -39,10 +39,11 @@
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.ds-profile-header__title {
|
|
42
|
-
@include ds-typography($ds-typography-functionalheading03, $fontWeight: $ds-fontweight-bold);
|
|
43
|
-
color: $ds-color-text-primary;
|
|
44
42
|
margin: 0;
|
|
45
43
|
word-break: break-word;
|
|
44
|
+
@include ds-typography($ds-typography-functionalheading03, $fontWeight: $ds-fontweight-bold) {
|
|
45
|
+
color: $ds-color-text-primary;
|
|
46
|
+
}
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
.ds-profile-header__media {
|
|
@@ -56,15 +57,17 @@
|
|
|
56
57
|
.ds-profile-header__article-count {
|
|
57
58
|
margin: ds-spacing(0 $ds-s-100 0);
|
|
58
59
|
padding-top: ds-spacing($ds-s-050);
|
|
59
|
-
@include ds-typography($ds-typography-functionalbody02)
|
|
60
|
-
|
|
60
|
+
@include ds-typography($ds-typography-functionalbody02) {
|
|
61
|
+
color: $ds-color-text-primary-02;
|
|
62
|
+
}
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
.ds-profile-header__description {
|
|
64
|
-
@include ds-typography($ds-typography-functionalbody02);
|
|
65
|
-
color: $ds-color-text-primary;
|
|
66
66
|
margin: ds-spacing(0 $ds-s-100 0);
|
|
67
67
|
padding-top: ds-spacing($ds-s-100);
|
|
68
|
+
@include ds-typography($ds-typography-functionalbody02) {
|
|
69
|
+
color: $ds-color-text-primary;
|
|
70
|
+
}
|
|
68
71
|
|
|
69
72
|
a {
|
|
70
73
|
@include ds-link($ds-link-article-body);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
@use "../../foundations/helpers/forward.helpers.scss" as *;
|
|
2
2
|
|
|
3
3
|
.ds-quote {
|
|
4
|
-
@include ds-typography($ds-typography-detailarticle-quote);
|
|
5
|
-
color: $ds-color-text-primary;
|
|
6
4
|
margin: 0;
|
|
7
5
|
padding: ds-spacing($ds-s-100 0 $ds-s-200);
|
|
8
6
|
position: relative;
|
|
7
|
+
@include ds-typography($ds-typography-detailarticle-quote) {
|
|
8
|
+
color: $ds-color-text-primary;
|
|
9
|
+
}
|
|
9
10
|
|
|
10
11
|
@at-root .ds-force-px#{&} {
|
|
11
12
|
@include ds-typography($ds-typography-detailarticle-quote, true);
|
|
@@ -40,8 +40,8 @@ $ds-radio-btn__icon-size: 24px;
|
|
|
40
40
|
margin: ds-spacing(0 0 0 $ds-s-050, rem);
|
|
41
41
|
@include ds-typography($ds-typography-functionalbody02);
|
|
42
42
|
@at-root .ds-force-px#{&} {
|
|
43
|
-
@include ds-typography($ds-typography-functionalbody02, true);
|
|
44
43
|
margin: ds-spacing(0 0 0 $ds-s-050);
|
|
44
|
+
@include ds-typography($ds-typography-functionalbody02, true);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -50,21 +50,23 @@
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.ds-tag-header__vignette {
|
|
53
|
-
@include ds-typography($ds-typography-functionallabel01);
|
|
54
|
-
color: $ds-theme-color;
|
|
55
53
|
margin-bottom: ds-spacing($ds-s-025);
|
|
56
54
|
display: block;
|
|
57
55
|
text-decoration: none;
|
|
56
|
+
@include ds-typography($ds-typography-functionallabel01) {
|
|
57
|
+
color: $ds-theme-color;
|
|
58
|
+
}
|
|
58
59
|
&:hover {
|
|
59
60
|
text-decoration: none;
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
.ds-tag-header__title {
|
|
64
|
-
@include ds-typography($ds-typography-functionalheading03, $fontWeight: $ds-fontweight-bold);
|
|
65
|
-
color: $ds-color-text-primary;
|
|
66
|
-
margin: 0;
|
|
67
65
|
word-break: break-word;
|
|
66
|
+
margin: 0;
|
|
67
|
+
@include ds-typography($ds-typography-functionalheading03, $fontWeight: $ds-fontweight-bold) {
|
|
68
|
+
color: $ds-color-text-primary;
|
|
69
|
+
}
|
|
68
70
|
}
|
|
69
71
|
|
|
70
72
|
.ds-tag-header__media {
|
|
@@ -84,15 +86,17 @@
|
|
|
84
86
|
.ds-tag-header__article-count {
|
|
85
87
|
margin: ds-spacing(0 $ds-s-100 0);
|
|
86
88
|
padding-top: ds-spacing($ds-s-050);
|
|
87
|
-
@include ds-typography($ds-typography-functionalbody02)
|
|
88
|
-
|
|
89
|
+
@include ds-typography($ds-typography-functionalbody02) {
|
|
90
|
+
color: $ds-color-text-primary-02;
|
|
91
|
+
}
|
|
89
92
|
}
|
|
90
93
|
|
|
91
94
|
.ds-tag-header__description {
|
|
92
|
-
@include ds-typography($ds-typography-functionalbody02);
|
|
93
|
-
color: $ds-color-text-primary;
|
|
94
95
|
margin: ds-spacing(0 $ds-s-100 0);
|
|
95
96
|
padding-top: ds-spacing($ds-s-100);
|
|
97
|
+
@include ds-typography($ds-typography-functionalbody02) {
|
|
98
|
+
color: $ds-color-text-primary;
|
|
99
|
+
}
|
|
96
100
|
|
|
97
101
|
a {
|
|
98
102
|
@include ds-link($ds-link-article-body);
|
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.ds-teaser-footer__notes {
|
|
12
|
-
@include ds-typography($ds-typography-functionalmeta02);
|
|
13
12
|
display: block;
|
|
14
|
-
|
|
13
|
+
@include ds-typography($ds-typography-functionalmeta02) {
|
|
14
|
+
color: $ds-color-text-primary-02;
|
|
15
|
+
}
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
.ds-teaser-footer--podcast {
|
|
@@ -21,8 +22,9 @@
|
|
|
21
22
|
margin-top: ds-spacing($ds-s-050);
|
|
22
23
|
|
|
23
24
|
.ds-teaser-footer__title {
|
|
24
|
-
@include ds-typography($ds-typography-functionalbody01, $fontWeight: $ds-fontweight-semibold)
|
|
25
|
-
|
|
25
|
+
@include ds-typography($ds-typography-functionalbody01, $fontWeight: $ds-fontweight-semibold) {
|
|
26
|
+
color: $ds-color-text-primary;
|
|
27
|
+
}
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
.ds-teaser-footer__notes {
|
|
@@ -7,15 +7,16 @@
|
|
|
7
7
|
margin: 0;
|
|
8
8
|
|
|
9
9
|
.ds-teaser-image__byline {
|
|
10
|
-
@include ds-typography($ds-typography-functionalmeta01, $lineHeight: $ds-lineheight-l);
|
|
11
10
|
position: absolute;
|
|
12
11
|
bottom: 0;
|
|
13
12
|
right: 0;
|
|
14
13
|
padding: ds-spacing(0 $ds-s-025);
|
|
15
14
|
margin-left: ds-spacing($ds-s-050);
|
|
16
|
-
color: $ds-color-static-white;
|
|
17
15
|
background-color: $ds-color-static-transparent-black;
|
|
18
16
|
z-index: 5;
|
|
17
|
+
@include ds-typography($ds-typography-functionalmeta01, $lineHeight: $ds-lineheight-l) {
|
|
18
|
+
color: $ds-color-static-white;
|
|
19
|
+
}
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
&--mask {
|
|
@@ -63,15 +63,17 @@ $ds-teaser-list-vertical-media-icon-size: 20px;
|
|
|
63
63
|
|
|
64
64
|
.ds-teaser-list-vertical__item-vignette {
|
|
65
65
|
display: block;
|
|
66
|
-
@include ds-typography($ds-typography-functionallabel01);
|
|
67
|
-
color: $ds-theme-color;
|
|
68
66
|
margin-bottom: ds-spacing($ds-s-025);
|
|
67
|
+
@include ds-typography($ds-typography-functionallabel01) {
|
|
68
|
+
color: $ds-theme-color;
|
|
69
|
+
}
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
.ds-teaser-list-vertical__item-title {
|
|
72
|
-
@include ds-typography($ds-typography-expressiveheading01);
|
|
73
|
-
color: $ds-color-text-primary;
|
|
74
73
|
word-break: break-word;
|
|
74
|
+
@include ds-typography($ds-typography-expressiveheading01) {
|
|
75
|
+
color: $ds-color-text-primary;
|
|
76
|
+
}
|
|
75
77
|
|
|
76
78
|
.ds-teaser-list-vertical__item-highlight {
|
|
77
79
|
color: $ds-theme-color;
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
|
|
53
53
|
.ds-teaser__vignette {
|
|
54
54
|
color: currentColor;
|
|
55
|
+
margin: 0;
|
|
55
56
|
@include ds-typography(
|
|
56
57
|
$ds-typography-functionallabel01,
|
|
57
58
|
$lineHeight: $ds-lineheight-l,
|
|
58
59
|
$letterSpacing: $ds-letterspacing-none
|
|
59
60
|
);
|
|
60
|
-
margin: 0;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.ds-teaser__title {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
@use "../../foundations/helpers/forward.helpers.scss" as *;
|
|
2
2
|
@use "../../assets/teaser/teaser.scss" as *;
|
|
3
|
-
@use "sass:math";
|
|
4
3
|
|
|
5
4
|
.ds-teaser.ds-teaser--native {
|
|
6
5
|
overflow: hidden;
|
|
@@ -24,8 +23,9 @@
|
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
.ds-teaser__title {
|
|
27
|
-
@include ds-typography($ds-typography-expressiveheading02)
|
|
28
|
-
|
|
26
|
+
@include ds-typography($ds-typography-expressiveheading02) {
|
|
27
|
+
font-family: $ds-font--arial !important; /* stylelint-disable-line declaration-no-important */
|
|
28
|
+
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
&::after {
|
|
@@ -44,14 +44,15 @@
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.ds-teaser-swipe-card__time {
|
|
47
|
-
@include ds-typography($ds-typography-functionalmeta02, $lineHeight: $ds-lineheight-l)
|
|
48
|
-
|
|
47
|
+
@include ds-typography($ds-typography-functionalmeta02, $lineHeight: $ds-lineheight-l) {
|
|
48
|
+
color: $ds-color-text-primary-02;
|
|
49
|
+
}
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
.ds-teaser__title {
|
|
52
|
-
@include ds-typography($ds-typography-expressiveheading01);
|
|
53
53
|
margin-bottom: ds-spacing($ds-s-050);
|
|
54
54
|
flex: 1;
|
|
55
|
+
@include ds-typography($ds-typography-expressiveheading01);
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
@include ds-hover(true) {
|
|
@@ -89,10 +90,11 @@
|
|
|
89
90
|
|
|
90
91
|
.ds-teaser-swipe-card__time {
|
|
91
92
|
display: flex;
|
|
92
|
-
@include ds-typography($ds-typography-functionalbody01, $fontWeight: $ds-fontweight-semibold);
|
|
93
|
-
color: $ds-theme-color;
|
|
94
93
|
align-items: center;
|
|
95
94
|
margin-bottom: ds-spacing($ds-s-025);
|
|
95
|
+
@include ds-typography($ds-typography-functionalbody01, $fontWeight: $ds-fontweight-semibold) {
|
|
96
|
+
color: $ds-theme-color;
|
|
97
|
+
}
|
|
96
98
|
|
|
97
99
|
&::before {
|
|
98
100
|
content: "";
|
|
@@ -7,6 +7,17 @@ $ds-text-btn__underline-offset: 2px;
|
|
|
7
7
|
.ds-text-btn {
|
|
8
8
|
--ds-text-btn__icon-size: #{ds-px-to-rem(24px)};
|
|
9
9
|
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
background-color: transparent;
|
|
12
|
+
border: 0;
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
border-radius: ds-border-radius(x1);
|
|
17
|
+
padding: 0;
|
|
18
|
+
position: relative;
|
|
19
|
+
text-decoration: none;
|
|
20
|
+
|
|
10
21
|
&.ds-force-px {
|
|
11
22
|
--ds-text-btn__icon-size: 24px;
|
|
12
23
|
}
|
|
@@ -47,17 +58,6 @@ $ds-text-btn__underline-offset: 2px;
|
|
|
47
58
|
}
|
|
48
59
|
}
|
|
49
60
|
|
|
50
|
-
cursor: pointer;
|
|
51
|
-
background-color: transparent;
|
|
52
|
-
border: 0;
|
|
53
|
-
display: inline-flex;
|
|
54
|
-
align-items: center;
|
|
55
|
-
justify-content: center;
|
|
56
|
-
border-radius: ds-border-radius(x1);
|
|
57
|
-
padding: 0;
|
|
58
|
-
position: relative;
|
|
59
|
-
text-decoration: none;
|
|
60
|
-
|
|
61
61
|
&::before {
|
|
62
62
|
content: "";
|
|
63
63
|
border-radius: inherit;
|
|
@@ -86,9 +86,10 @@ $ds-text-btn__underline-offset: 2px;
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.ds-text-btn__text {
|
|
89
|
-
@include ds-typography-with-force-px($ds-typography-functionalbody02);
|
|
90
89
|
text-underline-offset: $ds-text-btn__underline-offset;
|
|
91
|
-
|
|
90
|
+
@include ds-typography-with-force-px($ds-typography-functionalbody02) {
|
|
91
|
+
color: $ds-color-text-primary;
|
|
92
|
+
}
|
|
92
93
|
}
|
|
93
94
|
|
|
94
95
|
&:not(:disabled) .ds-text-btn__text {
|
|
@@ -69,11 +69,14 @@ $ds-text-btn-toggle__icon-size: 24px;
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.ds-text-btn-toggle__text {
|
|
72
|
-
@include ds-typography($ds-typography-functionalbody02)
|
|
72
|
+
@include ds-typography($ds-typography-functionalbody02) {
|
|
73
|
+
color: $ds-color-text-primary;
|
|
74
|
+
}
|
|
73
75
|
@at-root .ds-force-px#{&} {
|
|
74
|
-
@include ds-typography($ds-typography-functionalbody02, true)
|
|
76
|
+
@include ds-typography($ds-typography-functionalbody02, true) {
|
|
77
|
+
color: $ds-color-text-primary;
|
|
78
|
+
}
|
|
75
79
|
}
|
|
76
|
-
color: $ds-color-text-primary;
|
|
77
80
|
}
|
|
78
81
|
|
|
79
82
|
.ds-text-btn-toggle__off {
|
|
@@ -21,13 +21,14 @@ $ds-text-input-toggle-btn__area: ($ds-text-input-toggle-btn__width + ds-spacing(
|
|
|
21
21
|
.ds-text-input__input {
|
|
22
22
|
box-sizing: border-box;
|
|
23
23
|
width: 100%;
|
|
24
|
-
color: $ds-color-text-primary;
|
|
25
24
|
background-color: $ds-color-component-secondary;
|
|
26
|
-
@include ds-typography($ds-typography-functionalbody02);
|
|
27
25
|
padding: ds-px-to-rem(ds-spacing($ds-s-100) - ds-border-width(x1)) ds-spacing($ds-s-100) - ds-border-width(x1);
|
|
28
26
|
border: solid ds-border-width(x1) $ds-color-border-primary-02;
|
|
29
27
|
border-radius: ds-border-radius(x1);
|
|
30
28
|
margin: 0;
|
|
29
|
+
@include ds-typography($ds-typography-functionalbody02) {
|
|
30
|
+
color: $ds-color-text-primary;
|
|
31
|
+
}
|
|
31
32
|
|
|
32
33
|
&.password-toggle {
|
|
33
34
|
padding-right: ds-px-to-rem($ds-text-input-toggle-btn__area);
|
|
@@ -39,8 +40,8 @@ $ds-text-input-toggle-btn__area: ($ds-text-input-toggle-btn__width + ds-spacing(
|
|
|
39
40
|
&:focus,
|
|
40
41
|
&:not(:placeholder-shown) {
|
|
41
42
|
+ .ds-text-input__label {
|
|
42
|
-
@include ds-typography($ds-typography-functionalmeta02);
|
|
43
43
|
top: 0;
|
|
44
|
+
@include ds-typography($ds-typography-functionalmeta02);
|
|
44
45
|
|
|
45
46
|
&::before {
|
|
46
47
|
background-color: $ds-color-component-secondary;
|
|
@@ -111,8 +112,8 @@ $ds-text-input-toggle-btn__area: ($ds-text-input-toggle-btn__width + ds-spacing(
|
|
|
111
112
|
}
|
|
112
113
|
|
|
113
114
|
.ds-text-input__input {
|
|
114
|
-
@include ds-typography($ds-typography-functionalbody02, true);
|
|
115
115
|
padding: ds-spacing($ds-s-100) - ds-border-width(x1);
|
|
116
|
+
@include ds-typography($ds-typography-functionalbody02, true);
|
|
116
117
|
|
|
117
118
|
&.password-toggle {
|
|
118
119
|
padding-right: $ds-text-input-toggle-btn__area;
|
|
@@ -134,8 +135,8 @@ $ds-text-input-toggle-btn__area: ($ds-text-input-toggle-btn__width + ds-spacing(
|
|
|
134
135
|
}
|
|
135
136
|
|
|
136
137
|
.ds-text-input__label {
|
|
137
|
-
@include ds-typography($ds-typography-functionalbody02, true);
|
|
138
138
|
top: ds-spacing($ds-s-150);
|
|
139
|
+
@include ds-typography($ds-typography-functionalbody02, true);
|
|
139
140
|
&::before {
|
|
140
141
|
top: ds-spacing($ds-s-050);
|
|
141
142
|
}
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
@include ds-typography($ds-typography-functionalbody01);
|
|
49
49
|
|
|
50
50
|
h2 {
|
|
51
|
-
@include ds-typography($ds-typography-functionalbody02, $fontWeight: $ds-fontweight-semibold);
|
|
52
51
|
margin: 0;
|
|
52
|
+
@include ds-typography($ds-typography-functionalbody02, $fontWeight: $ds-fontweight-semibold);
|
|
53
53
|
|
|
54
54
|
+ p {
|
|
55
55
|
margin-top: 0;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
@use "../../foundations/helpers/forward.helpers.scss" as *;
|
|
2
2
|
|
|
3
3
|
.ds-video-caption {
|
|
4
|
-
@include ds-typography($ds-typography-functionalbody01)
|
|
5
|
-
|
|
4
|
+
@include ds-typography($ds-typography-functionalbody01) {
|
|
5
|
+
color: $ds-color-text-primary;
|
|
6
|
+
}
|
|
6
7
|
|
|
7
8
|
.ds-video-caption__duration {
|
|
8
|
-
@include ds-typography($ds-typography-functionalbody01, $fontWeight: $ds-fontweight-bold);
|
|
9
9
|
margin-right: ds-spacing($ds-s-025);
|
|
10
|
+
@include ds-typography($ds-typography-functionalbody01, $fontWeight: $ds-fontweight-bold);
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
@at-root .ds-force-px#{&} {
|
|
@@ -12,22 +12,22 @@ $ds-vip-badge__icon-size: 16px;
|
|
|
12
12
|
background-color: $ds-color-component-business;
|
|
13
13
|
color: $ds-color-static-white;
|
|
14
14
|
fill: $ds-color-static-white;
|
|
15
|
+
padding: ds-spacing($ds-s-025, rem);
|
|
15
16
|
@include ds-typography(
|
|
16
17
|
$ds-typography-functionalmeta01,
|
|
17
18
|
$lineHeight: $ds-lineheight-l,
|
|
18
19
|
$letterSpacing: $ds-letterspacing-none
|
|
19
20
|
);
|
|
20
|
-
padding: ds-spacing($ds-s-025, rem);
|
|
21
21
|
|
|
22
22
|
@at-root .ds-force-px#{&} {
|
|
23
|
+
border-radius: ds-border-radius(x1) 0 ds-border-radius(x1) ds-border-radius(x1);
|
|
24
|
+
padding: ds-spacing($ds-s-025);
|
|
23
25
|
@include ds-typography(
|
|
24
26
|
$ds-typography-functionalmeta01,
|
|
25
27
|
$forcePx: true,
|
|
26
28
|
$lineHeight: $ds-lineheight-l,
|
|
27
29
|
$letterSpacing: $ds-letterspacing-none
|
|
28
30
|
);
|
|
29
|
-
border-radius: ds-border-radius(x1) 0 ds-border-radius(x1) ds-border-radius(x1);
|
|
30
|
-
padding: ds-spacing($ds-s-025);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
// bang class indicating that the user has premium access
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../variables/colorsCssVariables";
|
|
2
|
+
|
|
1
3
|
@use "colors.scss" as *;
|
|
2
4
|
@use "../variables/decorations.scss" as *;
|
|
3
5
|
@use "utilities.scss" as *;
|
|
@@ -7,34 +9,37 @@ $ds-link-paragraph: "paragraph";
|
|
|
7
9
|
$ds-link-article-body: "article-body";
|
|
8
10
|
|
|
9
11
|
@mixin ds-link($type: paragraph) {
|
|
10
|
-
color: inherit;
|
|
11
|
-
@include ds-underline(2px, 1px);
|
|
12
12
|
&:focus-visible {
|
|
13
13
|
outline-color: $ds-color-border-focus-02;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
} @else if ($type == $ds-link-paragraph) {
|
|
22
|
-
text-decoration-line: $ds-text-decoration-link-underline;
|
|
23
|
-
&:hover {
|
|
16
|
+
& {
|
|
17
|
+
color: inherit;
|
|
18
|
+
@include ds-underline(2px, 1px);
|
|
19
|
+
@if ($type == $ds-link-list) {
|
|
24
20
|
text-decoration-line: none;
|
|
21
|
+
&:hover {
|
|
22
|
+
text-decoration-line: $ds-text-decoration-link-underline;
|
|
23
|
+
}
|
|
24
|
+
} @else if ($type == $ds-link-paragraph) {
|
|
25
|
+
text-decoration-line: $ds-text-decoration-link-underline;
|
|
26
|
+
&:hover {
|
|
27
|
+
text-decoration-line: none;
|
|
28
|
+
}
|
|
29
|
+
&:visited {
|
|
30
|
+
color: $ds-color-text-primary-02;
|
|
31
|
+
}
|
|
32
|
+
} @else if ($type == $ds-link-article-body) {
|
|
33
|
+
text-decoration-line: $ds-text-decoration-link-underline;
|
|
34
|
+
color: $ds-color-text-body-link;
|
|
35
|
+
&:hover {
|
|
36
|
+
text-decoration-line: none;
|
|
37
|
+
}
|
|
38
|
+
&:visited {
|
|
39
|
+
color: $ds-color-text-body-link-visited;
|
|
40
|
+
}
|
|
25
41
|
}
|
|
26
|
-
|
|
27
|
-
color: $ds-color-text-primary-02;
|
|
28
|
-
}
|
|
29
|
-
} @else if ($type == $ds-link-article-body) {
|
|
30
|
-
text-decoration-line: $ds-text-decoration-link-underline;
|
|
31
|
-
color: $ds-color-text-body-link;
|
|
32
|
-
&:hover {
|
|
33
|
-
text-decoration-line: none;
|
|
34
|
-
}
|
|
35
|
-
&:visited {
|
|
36
|
-
color: $ds-color-text-body-link-visited;
|
|
37
|
-
}
|
|
42
|
+
@content;
|
|
38
43
|
}
|
|
39
44
|
}
|
|
40
45
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@use "sass:list";
|
|
2
|
-
@use "sass:math";
|
|
3
2
|
@use "sass:map";
|
|
4
3
|
@use "../variables/metrics.scss" as *;
|
|
5
4
|
|
|
@@ -35,7 +34,7 @@ $dsBorderWidth: map.get($metrics, "border-width");
|
|
|
35
34
|
$values: list.append($values, $value);
|
|
36
35
|
}
|
|
37
36
|
|
|
38
|
-
@if length($values) == 1 {
|
|
37
|
+
@if list.length($values) == 1 {
|
|
39
38
|
@return list.nth($values, 1);
|
|
40
39
|
}
|
|
41
40
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:meta";
|
|
1
2
|
@use "sass:list";
|
|
2
3
|
@use "sass:math";
|
|
3
4
|
@use "sass:map";
|
|
@@ -27,7 +28,7 @@
|
|
|
27
28
|
|
|
28
29
|
@if ($value == 0) {
|
|
29
30
|
$value: 0 * 1;
|
|
30
|
-
} @else if ($value and type-of($value) == "number") {
|
|
31
|
+
} @else if ($value and meta.type-of($value) == "number") {
|
|
31
32
|
@if ($sizeUnit == "rem") {
|
|
32
33
|
$value: (math.div($value, 16)) * 1rem;
|
|
33
34
|
} @else {
|
|
@@ -37,13 +38,13 @@
|
|
|
37
38
|
$value: $value * -1;
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
|
-
@if (type-of($value) == "number" or $value == "auto") {
|
|
41
|
+
@if (meta.type-of($value) == "number" or $value == "auto") {
|
|
41
42
|
$values: list.append($values, $value);
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
@if length($values) == 1 {
|
|
47
|
+
@if list.length($values) == 1 {
|
|
47
48
|
@return list.nth($values, 1);
|
|
48
49
|
}
|
|
49
50
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@use "sass:meta";
|
|
2
1
|
@use "sass:map";
|
|
3
2
|
@use "sass:string";
|
|
4
3
|
@use "sass:math";
|
|
@@ -71,7 +70,7 @@ $dsSerifWeights: (
|
|
|
71
70
|
@if $tmpMap {
|
|
72
71
|
@include ds-mq-largest-breakpoint(mobile) {
|
|
73
72
|
@include _ds-normalize-letter-spacing($tmpMap);
|
|
74
|
-
@each $key in map
|
|
73
|
+
@each $key in map.keys($tmpMap) {
|
|
75
74
|
$value: _ds-get-override-value($key, $fontWeight, $letterSpacing, $lineHeight, $fontStyle);
|
|
76
75
|
@include _ds-typography-get-property($tmpMap, $key, $forcePx, "small", $value);
|
|
77
76
|
}
|
|
@@ -81,7 +80,7 @@ $dsSerifWeights: (
|
|
|
81
80
|
@if $tmpMapScreenLarge {
|
|
82
81
|
@include ds-mq-only-breakpoint(tablet) {
|
|
83
82
|
@include _ds-normalize-letter-spacing($tmpMapScreenLarge);
|
|
84
|
-
@each $key in map
|
|
83
|
+
@each $key in map.keys($tmpMapScreenLarge) {
|
|
85
84
|
$value: _ds-get-override-value($key, $fontWeight, $letterSpacing, $lineHeight, $fontStyle);
|
|
86
85
|
@include _ds-typography-get-property($tmpMapScreenLarge, $key, $forcePx, "large", $value);
|
|
87
86
|
}
|
|
@@ -91,12 +90,16 @@ $dsSerifWeights: (
|
|
|
91
90
|
@if $tmpMapScreenExtraLarge {
|
|
92
91
|
@include ds-mq-smallest-breakpoint(desktop) {
|
|
93
92
|
@include _ds-normalize-letter-spacing($tmpMapScreenExtraLarge);
|
|
94
|
-
@each $key in map
|
|
93
|
+
@each $key in map.keys($tmpMapScreenExtraLarge) {
|
|
95
94
|
$value: _ds-get-override-value($key, $fontWeight, $letterSpacing, $lineHeight, $fontStyle);
|
|
96
95
|
@include _ds-typography-get-property($tmpMapScreenExtraLarge, $key, $forcePx, "extraLarge", $value);
|
|
97
96
|
}
|
|
98
97
|
}
|
|
99
98
|
}
|
|
99
|
+
|
|
100
|
+
& {
|
|
101
|
+
@content;
|
|
102
|
+
}
|
|
100
103
|
}
|
|
101
104
|
|
|
102
105
|
@mixin ds-typography-without-mq(
|
|
@@ -130,7 +133,7 @@ $dsSerifWeights: (
|
|
|
130
133
|
|
|
131
134
|
@if $tmpMap {
|
|
132
135
|
@include _ds-normalize-letter-spacing($tmpMap);
|
|
133
|
-
@each $key in map
|
|
136
|
+
@each $key in map.keys($tmpMap) {
|
|
134
137
|
$value: _ds-get-override-value($key, $fontWeight, $letterSpacing, $lineHeight, $fontStyle);
|
|
135
138
|
@include _ds-typography-get-property($tmpMap, $key, $forcePx, $scaling, $value);
|
|
136
139
|
}
|
|
@@ -156,7 +159,7 @@ $dsSerifWeights: (
|
|
|
156
159
|
letterSpacing: $letterSpacing,
|
|
157
160
|
);
|
|
158
161
|
$forcePx: $scaling == false;
|
|
159
|
-
@each $key in map
|
|
162
|
+
@each $key in map.keys($dsTypographyKeys) {
|
|
160
163
|
@include _ds-typography-get-property($dsTypographyKeys, $key, $forcePx, $scaling);
|
|
161
164
|
}
|
|
162
165
|
}
|
|
@@ -178,7 +181,7 @@ $dsSerifWeights: (
|
|
|
178
181
|
}
|
|
179
182
|
} @else if $key == "fontWeight" {
|
|
180
183
|
$value: string.to-lower-case($value);
|
|
181
|
-
@if map
|
|
184
|
+
@if map.has-key($fontWeights, $value) {
|
|
182
185
|
$value: map.get($fontWeights, $value);
|
|
183
186
|
}
|
|
184
187
|
font-weight: #{$value};
|
|
@@ -204,7 +207,7 @@ $dsSerifWeights: (
|
|
|
204
207
|
letter-spacing: ds-px-to-rem($value);
|
|
205
208
|
}
|
|
206
209
|
}
|
|
207
|
-
} @else if index(map
|
|
210
|
+
} @else if list.index(map.keys($dsTypographyKeys), $key) {
|
|
208
211
|
#{map.get($dsTypographyKeys, $key)}: $value;
|
|
209
212
|
}
|
|
210
213
|
}
|
|
@@ -249,6 +252,9 @@ $dsSerifWeights: (
|
|
|
249
252
|
@at-root .ds-force-px#{&} {
|
|
250
253
|
@include ds-typography($token, true);
|
|
251
254
|
}
|
|
255
|
+
& {
|
|
256
|
+
@content;
|
|
257
|
+
}
|
|
252
258
|
}
|
|
253
259
|
|
|
254
260
|
@function _ds-get-override-value($key, $fontWeight, $letterSpacing, $lineHeight, $fontStyle) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:meta";
|
|
1
2
|
@use "sass:math";
|
|
2
3
|
|
|
3
4
|
$ds-btn__min-clickable-area: 48px;
|
|
@@ -7,7 +8,7 @@ $ds-btn__min-clickable-area: 48px;
|
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
@function ds-strip-unit($number) {
|
|
10
|
-
@if type-of($number) == "number" and not unitless($number) {
|
|
11
|
+
@if meta.type-of($number) == "number" and not math.is-unitless($number) {
|
|
11
12
|
@return math.div($number, ($number * 0 + 1));
|
|
12
13
|
}
|
|
13
14
|
|