@bonniernews/dn-design-system-web 27.0.1 → 28.0.1-beta.0
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 +12 -0
- package/components/blocked-content/blocked-content.js +1 -1
- package/components/blocked-content/blocked-content.njk +2 -2
- package/components/buddy-menu/buddy-menu.njk +5 -5
- package/components/buddy-menu/buddy-menu.scss +0 -1
- package/components/button/README.md +6 -8
- package/components/button/button-types.ts +34 -25
- package/components/button/button.njk +8 -15
- package/components/button/button.scss +58 -85
- package/components/button-toggle/README.md +8 -5
- package/components/button-toggle/button-toggle.njk +3 -0
- package/components/divider/README.md +1 -1
- package/components/empty-state/empty-state.njk +2 -3
- package/components/factbox/factbox.njk +4 -4
- package/components/group-header/group-header.njk +10 -10
- package/components/group-header/group-header.scss +1 -2
- package/components/list-item/list-item-types.ts +3 -3
- package/components/list-item/list-item.njk +4 -4
- package/components/modal/modal.njk +10 -8
- package/components/modal/modal.scss +3 -4
- package/components/pagination/pagination.njk +0 -1
- package/components/profile-header/profile-header.njk +2 -2
- package/components/tag-header/tag-header.njk +2 -2
- package/components/teaser-list-swipe/teaser-list-swipe.njk +9 -9
- package/components/teaser-list-swipe/teaser-list-swipe.scss +3 -3
- package/components/teaser-list-vertical/teaser-list-vertical.njk +1 -1
- package/components/text-input/text-input.njk +5 -3
- package/components/text-input/text-input.scss +2 -3
- package/components/tooltip/tooltip.njk +4 -4
- package/components/tooltip/tooltip.scss +0 -1
- package/foundations/variables/colorsCssVariables.scss +4 -2
- package/foundations/variables/colorsDnDark.scss +4 -2
- package/foundations/variables/colorsDnLight.scss +4 -2
- package/foundations/variables/gradientsDnDark.scss +8 -8
- package/foundations/variables/typographyList.scss +1 -1
- package/foundations/variables/typographyScreenExtraLarge.scss +1 -1
- package/foundations/variables/typographyScreenLarge.scss +1 -1
- package/foundations/variables/typographyScreenSmall.scss +1 -1
- package/package.json +1 -1
- package/preact/components/buddy-menu/buddy-menu.js +24 -69
- package/preact/components/buddy-menu/buddy-menu.js.map +4 -4
- package/preact/components/button/button-base.d.ts +1 -1
- package/preact/components/button/button-base.js +4 -12
- package/preact/components/button/button-base.js.map +2 -2
- package/preact/components/button/button-types.d.ts +24 -19
- package/preact/components/button/button.d.ts +1 -1
- package/preact/components/button/button.js +7 -17
- package/preact/components/button/button.js.map +2 -2
- package/preact/components/button-toggle/button-toggle.d.ts +1 -1
- package/preact/components/button-toggle/button-toggle.js +11 -14
- package/preact/components/button-toggle/button-toggle.js.map +2 -2
- package/preact/components/icon-with-wrapper/icon-with-wrapper.js +4 -2
- package/preact/components/icon-with-wrapper/icon-with-wrapper.js.map +2 -2
- package/preact/components/list-item/list-item-types.d.ts +3 -3
- package/preact/components/list-item/list-item.js +13 -16
- package/preact/components/list-item/list-item.js.map +2 -2
- package/preact/components/text-input/text-input.js +28 -29
- package/preact/components/text-input/text-input.js.map +3 -3
- package/types-lib/ds-color.d.ts +4 -2
- package/variables/colors-css-variables.json +4 -2
- package/variables/colors-dark-mode.json +4 -2
- package/variables/colors-light-mode.json +4 -2
- package/variables/gradients-dark-mode.json +8 -8
- package/variables/typography-list.json +1 -1
- package/components/icon-button/README-NJK.md +0 -47
- package/components/icon-button/README-UXD.md +0 -44
- package/components/icon-button/README.md +0 -31
- package/components/icon-button/icon-button.njk +0 -22
- package/components/icon-button/icon-button.scss +0 -32
- package/components/icon-button-toggle/README-NJK.md +0 -53
- package/components/icon-button-toggle/README-UXD.md +0 -0
- package/components/icon-button-toggle/README.md +0 -38
- package/components/icon-button-toggle/icon-button-toggle.njk +0 -18
- package/components/icon-button-toggle/icon-button-toggle.scss +0 -1
- package/preact/components/icon-button/icon-button.d.ts +0 -10
- package/preact/components/icon-button/icon-button.js +0 -198
- package/preact/components/icon-button/icon-button.js.map +0 -7
- package/preact/components/icon-button-toggle/icon-button-toggle.d.ts +0 -18
- package/preact/components/icon-button-toggle/icon-button-toggle.js +0 -200
- package/preact/components/icon-button-toggle/icon-button-toggle.js.map +0 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{% from '@bonniernews/dn-design-system-web/njk-helpers/attributes.njk' import getAttributes %}
|
|
2
2
|
{% from '@bonniernews/dn-design-system-web/components/icon-sprite/icon-sprite.njk' import IconUse %}
|
|
3
3
|
{% from '@bonniernews/dn-design-system-web/components/button-toggle/button-toggle.njk' import ButtonToggle %}
|
|
4
|
-
{% from '@bonniernews/dn-design-system-web/components/
|
|
4
|
+
{% from '@bonniernews/dn-design-system-web/components/button/button.njk' import Button %}
|
|
5
5
|
|
|
6
6
|
{% macro GroupHeader(params) %}
|
|
7
7
|
{% set componentClassName = "ds-group-header" %}
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
{# there is no static-white toggle btn so it is disabled for bauta for now #}
|
|
50
50
|
{% if params.type == 'toggle' and not params.variant %}
|
|
51
51
|
{{ ButtonToggle({
|
|
52
|
-
variant: "
|
|
53
|
-
size: '
|
|
52
|
+
variant: "primary",
|
|
53
|
+
size: 'sm',
|
|
54
54
|
text: params.toggleText,
|
|
55
55
|
selectedText: params.toggleSelectedText,
|
|
56
56
|
selected: params.toggleSelected,
|
|
@@ -59,20 +59,20 @@
|
|
|
59
59
|
attributes: params.toggleAttributes
|
|
60
60
|
}) }}
|
|
61
61
|
{% elif (params.type == 'arrows') %}
|
|
62
|
-
{% set buttonVariant = "staticWhite" if params.variant else "
|
|
62
|
+
{% set buttonVariant = "staticWhite" if params.variant else "secondaryOutline" %}
|
|
63
63
|
<div class="{{ componentClassName + '__arrows' }} hidden-mobile hidden-tablet">
|
|
64
|
-
{{
|
|
64
|
+
{{ Button({
|
|
65
65
|
variant: buttonVariant,
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
size: "sm",
|
|
67
|
+
isIconButton: true,
|
|
68
68
|
iconName: "arrow_back",
|
|
69
69
|
classNames: "ds-group-header__arrow ds-group-header__arrow--left",
|
|
70
70
|
attributes: {"aria-label": "Föregående"}
|
|
71
71
|
}) }}
|
|
72
|
-
{{
|
|
72
|
+
{{ Button({
|
|
73
73
|
variant: buttonVariant,
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
size: "sm",
|
|
75
|
+
isIconButton: true,
|
|
76
76
|
iconName: "arrow_forward",
|
|
77
77
|
classNames: "ds-group-header__arrow ds-group-header__arrow--right",
|
|
78
78
|
attributes: {"aria-label": "Nästa"}
|
|
@@ -3,7 +3,7 @@ import { ComponentChildren } from "preact";
|
|
|
3
3
|
import { ButtonProps } from '../radio-button/radio-button'
|
|
4
4
|
import type { DsIcon } from '@bonniernews/dn-design-system-web/types-lib/ds-icon.d.ts'
|
|
5
5
|
import { SwitchInnerProps } from '../switch/switch'
|
|
6
|
-
import {
|
|
6
|
+
import { ButtonToggleStandardProps } from '../button/button-types'
|
|
7
7
|
|
|
8
8
|
export interface ListItemSharedProps {
|
|
9
9
|
title?: string
|
|
@@ -67,7 +67,7 @@ export interface SwitchListItemProps
|
|
|
67
67
|
|
|
68
68
|
export interface ToggleListItemProps
|
|
69
69
|
extends ListItemSharedProps,
|
|
70
|
-
|
|
70
|
+
ButtonToggleStandardProps,
|
|
71
71
|
Pick<ListItemBaseProps, 'title' | 'subtitle' | 'disabled' | 'selected'> {
|
|
72
72
|
name: string
|
|
73
73
|
titleHref?: string
|
|
@@ -104,7 +104,7 @@ export interface InnerListItemProps
|
|
|
104
104
|
| 'toggleSelectedText'
|
|
105
105
|
| 'disabled'
|
|
106
106
|
>,
|
|
107
|
-
Pick<
|
|
107
|
+
Pick<ButtonToggleStandardProps, 'variant'> {
|
|
108
108
|
componentClassName: string
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -147,10 +147,10 @@
|
|
|
147
147
|
text: params.toggleText,
|
|
148
148
|
selected: params.selected,
|
|
149
149
|
selectedText: params.toggleSelectedText,
|
|
150
|
-
variant: params.variant | default("
|
|
150
|
+
variant: params.variant | default("secondaryFilled"),
|
|
151
151
|
disabled: params.disabled,
|
|
152
152
|
forcePx: params.forcePx,
|
|
153
|
-
size: "
|
|
153
|
+
size: "sm",
|
|
154
154
|
attributes: params.elementAttributes,
|
|
155
155
|
classNames: params.elementClassNames
|
|
156
156
|
})}}
|
|
@@ -164,10 +164,10 @@
|
|
|
164
164
|
text: params.toggleText,
|
|
165
165
|
selected: params.selected,
|
|
166
166
|
selectedText: params.toggleSelectedText,
|
|
167
|
-
variant: params.variant | default("
|
|
167
|
+
variant: params.variant | default("secondaryFilled"),
|
|
168
168
|
disabled: params.disabled,
|
|
169
169
|
forcePx: params.forcePx,
|
|
170
|
-
size: "
|
|
170
|
+
size: "sm",
|
|
171
171
|
attributes: params.elementAttributes,
|
|
172
172
|
classNames: params.elementClassNames
|
|
173
173
|
})}}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{% from '@bonniernews/dn-design-system-web/components/icon-sprite/icon-sprite.njk' import IconUse %}
|
|
2
2
|
{% from '@bonniernews/dn-design-system-web/components/button/button.njk' import Button %}
|
|
3
|
-
{% from '@bonniernews/dn-design-system-web/components/icon-button/icon-button.njk' import IconButton %}
|
|
4
3
|
{% from '@bonniernews/dn-design-system-web/njk-helpers/attributes.njk' import getAttributes %}
|
|
5
4
|
|
|
6
5
|
{% macro Modal(params) %}
|
|
@@ -16,10 +15,11 @@
|
|
|
16
15
|
<div class="{{ classes }}">
|
|
17
16
|
<dialog class="{{ componentClassName + '__inner' }}" {{- attributes | safe }}>
|
|
18
17
|
<div class="{{ componentClassName + '__content' }}">
|
|
19
|
-
{{
|
|
18
|
+
{{ Button({
|
|
20
19
|
variant: "transparent",
|
|
21
|
-
size: "
|
|
20
|
+
size: "sm",
|
|
22
21
|
iconName: "close",
|
|
22
|
+
isIconButton: true,
|
|
23
23
|
classNames: "ds-modal__close ds-modal__close--icon"
|
|
24
24
|
})}}
|
|
25
25
|
|
|
@@ -32,14 +32,13 @@
|
|
|
32
32
|
{% if params.primaryButton or params.secondaryButton %}
|
|
33
33
|
<div class="ds-modal__buttons">
|
|
34
34
|
{% if params.secondaryButton %}
|
|
35
|
-
{%- set secondaryButtonClasses = [
|
|
35
|
+
{%- set secondaryButtonClasses = ["ds-modal__secondary-button",
|
|
36
36
|
"ds-modal__close" if params.secondaryButton.isCloseButton,
|
|
37
37
|
params.secondaryButton.classNames if params.secondaryButton.classNames
|
|
38
38
|
] | join(" ") %}
|
|
39
39
|
{{ Button({
|
|
40
40
|
text: params.secondaryButton.text,
|
|
41
|
-
variant: "
|
|
42
|
-
emphasis: "outline",
|
|
41
|
+
variant: "secondaryOutline",
|
|
43
42
|
href: params.secondaryButton.href,
|
|
44
43
|
classNames: secondaryButtonClasses,
|
|
45
44
|
attributes: params.secondaryButton.attributes,
|
|
@@ -51,11 +50,14 @@
|
|
|
51
50
|
{% endif %}
|
|
52
51
|
|
|
53
52
|
{% if params.primaryButton %}
|
|
53
|
+
{%- set primaryButtonClasses = ["ds-modal__primary-button",
|
|
54
|
+
params.primaryButton.classNames if params.primaryButton.classNames
|
|
55
|
+
] | join(" ") %}
|
|
54
56
|
{{ Button({
|
|
55
57
|
text: params.primaryButton.text,
|
|
56
|
-
variant: "
|
|
58
|
+
variant: "primaryBlack",
|
|
57
59
|
href: params.primaryButton.href,
|
|
58
|
-
classNames:
|
|
60
|
+
classNames: primaryButtonClasses,
|
|
59
61
|
attributes: params.primaryButton.attributes,
|
|
60
62
|
forcePx: params.forcePx,
|
|
61
63
|
mobile: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@use "../../foundations/helpers/forward.helpers.scss" as *;
|
|
2
2
|
@use "../../components/icon-sprite/icon-sprite.scss";
|
|
3
3
|
@use "../../components/button/button.scss";
|
|
4
|
-
@use "../../components/icon-button/icon-button.scss";
|
|
5
4
|
|
|
6
5
|
body:has(dialog[open]),
|
|
7
6
|
body.no-scroll {
|
|
@@ -107,12 +106,12 @@ body.no-scroll {
|
|
|
107
106
|
display: flex;
|
|
108
107
|
flex-wrap: wrap;
|
|
109
108
|
|
|
110
|
-
.ds-
|
|
109
|
+
.ds-modal__primary-button:not(:only-child) {
|
|
111
110
|
order: 1;
|
|
112
111
|
margin-bottom: ds-spacing($ds-s-100);
|
|
113
112
|
}
|
|
114
113
|
|
|
115
|
-
.ds-
|
|
114
|
+
.ds-modal__secondary-button:not(:only-child) {
|
|
116
115
|
order: 2;
|
|
117
116
|
}
|
|
118
117
|
}
|
|
@@ -121,7 +120,7 @@ body.no-scroll {
|
|
|
121
120
|
display: flex;
|
|
122
121
|
justify-content: center;
|
|
123
122
|
|
|
124
|
-
.ds-
|
|
123
|
+
.ds-modal__secondary-button:not(:only-child) {
|
|
125
124
|
margin-right: ds-spacing($ds-s-100);
|
|
126
125
|
}
|
|
127
126
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{% from '@bonniernews/dn-design-system-web/njk-helpers/attributes.njk' import getAttributes %}
|
|
2
2
|
{% from '@bonniernews/dn-design-system-web/components/text-button/text-button.njk' import TextButton %}
|
|
3
|
-
{% from '@bonniernews/dn-design-system-web/components/icon-button/icon-button.njk' import IconButton %}
|
|
4
3
|
|
|
5
4
|
{% macro Pagination(params) %}
|
|
6
5
|
{%- set componentClassName = "ds-pagination" %}
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
<h1 class="{{ componentClassName }}__title">{{ params.title}}</h1>
|
|
19
19
|
{% if params.toggle %}
|
|
20
20
|
{{ ButtonToggle({
|
|
21
|
-
variant: '
|
|
22
|
-
size: '
|
|
21
|
+
variant: 'primary',
|
|
22
|
+
size: 'md',
|
|
23
23
|
text: params.toggleText,
|
|
24
24
|
selectedText: params.toggleSelectedText,
|
|
25
25
|
selected: params.toggleSelected,
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
<h1 class="{{ componentClassName }}__title">{{ params.title}}</h1>
|
|
27
27
|
{% if params.toggle %}
|
|
28
28
|
{{ ButtonToggle({
|
|
29
|
-
variant: '
|
|
30
|
-
size: '
|
|
29
|
+
variant: 'primary',
|
|
30
|
+
size: 'md',
|
|
31
31
|
text: params.toggleText,
|
|
32
32
|
selectedText: params.toggleSelectedText,
|
|
33
33
|
selected: params.toggleSelected,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{% from '@bonniernews/dn-design-system-web/njk-helpers/attributes.njk' import getAttributes %}
|
|
2
2
|
{% from '@bonniernews/dn-design-system-web/components/teaser-card/teaser-card.njk' import TeaserCard %}
|
|
3
|
-
{% from '@bonniernews/dn-design-system-web/components/icon-button/icon-button.njk' import IconButton %}
|
|
4
3
|
{% from '@bonniernews/dn-design-system-web/components/group-header/group-header.njk' import GroupHeader %}
|
|
5
4
|
{% from '@bonniernews/dn-design-system-web/components/teaser-swipe-card/teaser-swipe-card.njk' import TeaserSwipeCard %}
|
|
5
|
+
{% from '@bonniernews/dn-design-system-web/components/button/button.njk' import Button %}
|
|
6
6
|
|
|
7
7
|
{% macro TeaserListSwipe(params) %}
|
|
8
8
|
{% set componentClassName = "ds-teaser" %}
|
|
@@ -45,20 +45,20 @@
|
|
|
45
45
|
</div>
|
|
46
46
|
|
|
47
47
|
{% if arrowPosition === 'floating' %}
|
|
48
|
-
{{
|
|
48
|
+
{{ Button({
|
|
49
49
|
iconName: 'arrow_back',
|
|
50
|
-
variant: '
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
variant: 'staticWhite',
|
|
51
|
+
size: 'sm',
|
|
52
|
+
isIconButton: true,
|
|
53
53
|
attributes: { 'aria-label': 'Föregående' },
|
|
54
54
|
classNames: componentClassName + '__swipe-arrow ' + componentClassName + '__swipe-arrow--back hidden-mobile hidden-tablet',
|
|
55
55
|
forcePx: true
|
|
56
56
|
}) }}
|
|
57
|
-
{{
|
|
57
|
+
{{ Button({
|
|
58
58
|
iconName: 'arrow_forward',
|
|
59
|
-
variant: '
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
variant: 'staticWhite',
|
|
60
|
+
size: 'sm',
|
|
61
|
+
isIconButton: true,
|
|
62
62
|
attributes: { 'aria-label': 'Nästa' },
|
|
63
63
|
classNames: componentClassName + '__swipe-arrow ' + componentClassName + '__swipe-arrow--forward hidden-mobile hidden-tablet',
|
|
64
64
|
forcePx: true
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use "../../foundations/helpers/forward.helpers.scss" as *;
|
|
2
2
|
@use "../../assets/teaser/teaser.scss" as *;
|
|
3
|
-
@use "../../components/
|
|
3
|
+
@use "../../components/button/button.scss";
|
|
4
4
|
@use "../../components/group-header/group-header";
|
|
5
5
|
@use "../../components/teaser-swipe-card/teaser-swipe-card";
|
|
6
6
|
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
z-index: 5;
|
|
48
48
|
|
|
49
49
|
&--back {
|
|
50
|
-
left:
|
|
50
|
+
left: ds-spacing($ds-s-125);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
&--forward {
|
|
54
|
-
right:
|
|
54
|
+
right: ds-spacing($ds-s-125);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{% from '@bonniernews/dn-design-system-web/components/icon-button/icon-button.njk' import IconButton %} {# TODO switch to on-off button #}
|
|
2
1
|
{% from '@bonniernews/dn-design-system-web/assets/form-field/form-field.njk' import FormField %}
|
|
2
|
+
{% from '@bonniernews/dn-design-system-web/components/button-toggle/button-toggle.njk' import ButtonToggle %}
|
|
3
3
|
|
|
4
4
|
{% macro TextInput(params) %}
|
|
5
5
|
{% set componentClassName = "ds-text-input" %}
|
|
@@ -23,10 +23,12 @@
|
|
|
23
23
|
<label class="{{ componentClassName + '__label'}}" for="{{ params.name }}">{{ params.label }}</label>
|
|
24
24
|
{% endif %}
|
|
25
25
|
{% if password %}
|
|
26
|
-
{{
|
|
26
|
+
{{ ButtonToggle({
|
|
27
27
|
variant: "transparent",
|
|
28
|
-
size: "
|
|
28
|
+
size: "sm",
|
|
29
29
|
iconName: "visibility",
|
|
30
|
+
selectedIconName: "visibility_off",
|
|
31
|
+
isIconButton: true,
|
|
30
32
|
classNames: componentClassName + "__password-toggle",
|
|
31
33
|
attributes: {
|
|
32
34
|
id: params.name + "-password-toggle"
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
@use "../../foundations/helpers/forward.helpers.scss" as *;
|
|
2
2
|
@use "../../assets/form-field/form-field.scss";
|
|
3
|
-
@use "
|
|
4
|
-
@use "../icon-button/icon-button.scss"; // TODO remove when njk is removed
|
|
3
|
+
@use "../../components/button/button.scss";
|
|
5
4
|
|
|
6
5
|
$ds-text-input-toggle-btn__width: 28px;
|
|
7
|
-
$ds-text-input-toggle-btn__top:
|
|
6
|
+
$ds-text-input-toggle-btn__top: 20px;
|
|
8
7
|
$ds-text-input-toggle-btn__area: ($ds-text-input-toggle-btn__width + ds-spacing($ds-s-050));
|
|
9
8
|
|
|
10
9
|
.ds-form-field__error {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{% from '@bonniernews/dn-design-system-web/components/icon-sprite/icon-sprite.njk' import IconUse %}
|
|
2
2
|
{% from '@bonniernews/dn-design-system-web/components/button/button.njk' import Button %}
|
|
3
|
-
{% from '@bonniernews/dn-design-system-web/components/icon-button/icon-button.njk' import IconButton %}
|
|
4
3
|
{% from '@bonniernews/dn-design-system-web/njk-helpers/attributes.njk' import getAttributes %}
|
|
5
4
|
|
|
6
5
|
{% macro Tooltip(params) %}
|
|
@@ -24,12 +23,13 @@
|
|
|
24
23
|
|
|
25
24
|
{{ caller() if caller }}
|
|
26
25
|
</div>
|
|
27
|
-
|
|
26
|
+
|
|
28
27
|
{% if params.closeButton %}
|
|
29
|
-
{{
|
|
28
|
+
{{ Button({
|
|
30
29
|
variant: "transparent",
|
|
31
|
-
size: "
|
|
30
|
+
size: "sm",
|
|
32
31
|
iconName: "close",
|
|
32
|
+
isIconButton: true,
|
|
33
33
|
classNames: "ds-tooltip__close",
|
|
34
34
|
attributes: { "aria-label": "Stäng" }
|
|
35
35
|
})}}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
@use "../../foundations/variables/typographyFontWeight.scss";
|
|
3
3
|
@use "../../components/icon-sprite/icon-sprite.scss";
|
|
4
4
|
@use "../../components/button/button.scss";
|
|
5
|
-
@use "../../components/icon-button/icon-button.scss";
|
|
6
5
|
|
|
7
6
|
.ds-tooltip {
|
|
8
7
|
background-color: $ds-color-surface-primary-raised-strong;
|
|
@@ -35,8 +35,10 @@ $ds-color-text-success: var(--ds-color-text-success);
|
|
|
35
35
|
$ds-color-text-on-brand: var(--ds-color-text-on-brand);
|
|
36
36
|
$ds-color-text-body-link: var(--ds-color-text-body-link);
|
|
37
37
|
$ds-color-text-body-link-visited: var(--ds-color-text-body-link-visited);
|
|
38
|
-
$ds-color-gradients-primary-
|
|
39
|
-
$ds-color-gradients-primary-
|
|
38
|
+
$ds-color-gradients-primary-start: var(--ds-color-gradients-primary-start);
|
|
39
|
+
$ds-color-gradients-primary-end: var(--ds-color-gradients-primary-end);
|
|
40
|
+
$ds-color-gradients-overlay-start: var(--ds-color-gradients-overlay-start);
|
|
41
|
+
$ds-color-gradients-overlay-end: var(--ds-color-gradients-overlay-end);
|
|
40
42
|
$ds-color-brand-0: var(--ds-color-brand-0);
|
|
41
43
|
$ds-color-brand-100: var(--ds-color-brand-100);
|
|
42
44
|
$ds-color-brand-200: var(--ds-color-brand-200);
|
|
@@ -35,8 +35,10 @@ $ds-hex-dark-text-success: #3a8352;
|
|
|
35
35
|
$ds-hex-dark-text-on-brand: #ffffff;
|
|
36
36
|
$ds-hex-dark-text-body-link: #65a0fc;
|
|
37
37
|
$ds-hex-dark-text-body-link-visited: #65a0fc;
|
|
38
|
-
$ds-hex-dark-gradients-primary-
|
|
39
|
-
$ds-hex-dark-gradients-primary-
|
|
38
|
+
$ds-hex-dark-gradients-primary-start: #171717;
|
|
39
|
+
$ds-hex-dark-gradients-primary-end: rgba(23, 23, 23, 0);
|
|
40
|
+
$ds-hex-dark-gradients-overlay-start: rgba(36, 36, 36, 0.5);
|
|
41
|
+
$ds-hex-dark-gradients-overlay-end: rgba(36, 36, 36, 0);
|
|
40
42
|
$ds-hex-dark-brand-0: #fbf4f4;
|
|
41
43
|
$ds-hex-dark-brand-100: #f9eced;
|
|
42
44
|
$ds-hex-dark-brand-200: #f2d9da;
|
|
@@ -35,8 +35,10 @@ $ds-hex-text-success: #3a8352;
|
|
|
35
35
|
$ds-hex-text-on-brand: #ffffff;
|
|
36
36
|
$ds-hex-text-body-link: #4373ce;
|
|
37
37
|
$ds-hex-text-body-link-visited: #4373ce;
|
|
38
|
-
$ds-hex-gradients-primary-
|
|
39
|
-
$ds-hex-gradients-primary-
|
|
38
|
+
$ds-hex-gradients-primary-start: #ffffff;
|
|
39
|
+
$ds-hex-gradients-primary-end: #ffffff00;
|
|
40
|
+
$ds-hex-gradients-overlay-start: #24242480;
|
|
41
|
+
$ds-hex-gradients-overlay-end: #24242400;
|
|
40
42
|
$ds-hex-brand-0: #fbf4f4;
|
|
41
43
|
$ds-hex-brand-100: #f9eced;
|
|
42
44
|
$ds-hex-brand-200: #f2d9da;
|
|
@@ -3,10 +3,10 @@ $gradientsDnDark: (
|
|
|
3
3
|
type: linear,
|
|
4
4
|
angle: 270,
|
|
5
5
|
stops: ((
|
|
6
|
-
color: #
|
|
6
|
+
color: #171717,
|
|
7
7
|
position: 0
|
|
8
8
|
), (
|
|
9
|
-
color: rgba(
|
|
9
|
+
color: rgba(23, 23, 23, 0),
|
|
10
10
|
position: 1
|
|
11
11
|
))
|
|
12
12
|
),
|
|
@@ -14,10 +14,10 @@ $gradientsDnDark: (
|
|
|
14
14
|
type: linear,
|
|
15
15
|
angle: 270,
|
|
16
16
|
stops: ((
|
|
17
|
-
color: rgba(
|
|
17
|
+
color: rgba(23, 23, 23, 0),
|
|
18
18
|
position: 0
|
|
19
19
|
), (
|
|
20
|
-
color: #
|
|
20
|
+
color: #171717,
|
|
21
21
|
position: 1
|
|
22
22
|
))
|
|
23
23
|
),
|
|
@@ -25,10 +25,10 @@ $gradientsDnDark: (
|
|
|
25
25
|
type: linear,
|
|
26
26
|
angle: 180,
|
|
27
27
|
stops: ((
|
|
28
|
-
color: rgba(
|
|
28
|
+
color: rgba(23, 23, 23, 0),
|
|
29
29
|
position: 0
|
|
30
30
|
), (
|
|
31
|
-
color: #
|
|
31
|
+
color: #171717,
|
|
32
32
|
position: 1
|
|
33
33
|
))
|
|
34
34
|
),
|
|
@@ -36,10 +36,10 @@ $gradientsDnDark: (
|
|
|
36
36
|
type: linear,
|
|
37
37
|
angle: 180,
|
|
38
38
|
stops: ((
|
|
39
|
-
color: #
|
|
39
|
+
color: #171717,
|
|
40
40
|
position: 0
|
|
41
41
|
), (
|
|
42
|
-
color: rgba(
|
|
42
|
+
color: rgba(23, 23, 23, 0),
|
|
43
43
|
position: 1
|
|
44
44
|
))
|
|
45
45
|
)
|
|
@@ -43,7 +43,7 @@ $ds-typography-detail-teaser-baotaxl: 'detail-teaser-baotaxl';
|
|
|
43
43
|
$ds-typography-detail-teaser-longlife: 'detail-teaser-longlife';
|
|
44
44
|
$ds-typography-detail-teaser-centrerad: 'detail-teaser-centrerad';
|
|
45
45
|
$ds-typography-detail-teaser-large-opinion: 'detail-teaser-large-opinion';
|
|
46
|
-
$ds-typography-detail-teaser-
|
|
46
|
+
$ds-typography-detail-teaser-text-i-bild: 'detail-teaser-text-i-bild';
|
|
47
47
|
$ds-typography-detail-teaser-large-rightcol: 'detail-teaser-large-rightcol';
|
|
48
48
|
$ds-typography-detail-article-standard: 'detail-article-standard';
|
|
49
49
|
$ds-typography-detail-article-opinion: 'detail-article-opinion';
|
package/package.json
CHANGED