dso-toolkit 98.0.0 → 99.1.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 +30 -0
- package/README.md +2 -2
- package/dist/dso.css +245 -1212
- package/dist/dso.css.map +1 -1
- package/dist/dso.min.css +1 -1
- package/dist/dso.min.css.map +1 -1
- package/package.json +11 -13
- package/src/components/application-heading/application-heading.mixins.scss +2 -1
- package/src/components/blockquote/blockquote.variables.scss +1 -1
- package/src/components/body/body.scss +1 -1
- package/src/components/button/button.mixins.scss +2 -3
- package/src/components/button/button.scss +26 -33
- package/src/components/context/context.scss +1 -1
- package/src/components/document-header/document-header.scss +1 -1
- package/src/components/fieldset/fieldset.scss +1 -1
- package/src/components/form-control/form-control.mixins.scss +1 -1
- package/src/components/form-group/files/form-group-files.scss +1 -1
- package/src/components/form-group/form-group.scss +1 -1
- package/src/components/form-group/form-group.variables.scss +1 -1
- package/src/components/form-group/select/form-group-select.scss +1 -1
- package/src/components/form-group/static/form-group-static.scss +1 -1
- package/src/components/grid/grid.scss +7 -7
- package/src/components/html/html.scss +1 -1
- package/src/components/link/link.mixins.scss +24 -31
- package/src/components/link-list/link-list.mixins.scss +2 -0
- package/src/components/link-list/link-list.scss +3 -3
- package/src/components/navbar/navbar.mixins.scss +1 -1
- package/src/components/preformatted-text/preformatted-text.scss +2 -2
- package/src/components/rich-content/rich-content.mixins.scss +1 -2
- package/src/components/search-bar/search-bar.scss +3 -3
- package/src/components/step-counter/step-counter.mixins.scss +2 -1
- package/src/components/table/table.scss +1 -1
- package/src/di-inline.scss +89 -0
- package/src/di.scss +1 -1
- package/src/dso.scss +3 -3
- package/src/global/custom-properties.scss +3 -3
- package/src/global/mixins/set-colors.mixin.scss +19 -25
- package/src/global/spacing.scss +2 -5
- package/src/{components/icon/icon.variables.scss → variables/icon.scss} +1 -1
- package/src/variables/typography.scss +4 -8
- package/src/components/dropdown-menu/_index.scss +0 -2
- package/src/components/dropdown-menu/dropdown-menu.mixins.scss +0 -135
- package/src/components/dropdown-menu/dropdown-menu.scss +0 -150
- package/src/components/dropdown-menu/dropdown-menu.variables.scss +0 -6
- package/src/components/highlight-box/_index.scss +0 -2
- package/src/components/highlight-box/highlight-box.mixins.scss +0 -132
- package/src/components/highlight-box/highlight-box.scss +0 -108
- package/src/components/highlight-box/highlight-box.variables.scss +0 -4
- package/src/components/highlight-box/readme.md +0 -1
- package/src/components/icon/_index.scss +0 -1
|
@@ -62,22 +62,22 @@ form {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
&.dso-equal-heights {
|
|
65
|
-
&:has(
|
|
66
|
-
--highlight-box-block-size: 100%;
|
|
67
|
-
--highlight-box-min-block-size: auto;
|
|
68
|
-
--highlight-box-counter-block-size: calc(100% - #{units.$shared-equal-heights-highlight-box-block-size});
|
|
69
|
-
--highlight-box-nocounter-block-size: calc(100% - #{units.$u2});
|
|
65
|
+
&:has(dso-highlight-box) {
|
|
66
|
+
--_dso-highlight-box-block-size: 100%;
|
|
67
|
+
--_dso-highlight-box-min-block-size: auto;
|
|
68
|
+
--_dso-highlight-box-counter-block-size: calc(100% - #{units.$shared-equal-heights-highlight-box-block-size});
|
|
69
|
+
--_dso-highlight-box-nocounter-block-size: calc(100% - #{units.$u2});
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
> [class*="col-"] {
|
|
73
73
|
display: flex;
|
|
74
74
|
flex-direction: column;
|
|
75
75
|
|
|
76
|
-
>
|
|
76
|
+
> dso-highlight-box {
|
|
77
77
|
block-size: 100%;
|
|
78
78
|
min-block-size: auto;
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
&[has-counter] {
|
|
81
81
|
block-size: calc(100% - #{units.$shared-equal-heights-highlight-box-block-size});
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
2
|
|
|
3
|
-
@use "../../di";
|
|
3
|
+
@use "../../di-inline";
|
|
4
4
|
@use "../../variables/units";
|
|
5
5
|
@use "link.variables" as link-variables;
|
|
6
6
|
|
|
7
7
|
@mixin hideIcons() {
|
|
8
|
-
--_dso-
|
|
8
|
+
--_dso-link-icon-visibility: none;
|
|
9
|
+
|
|
9
10
|
--_dso-link-icon-padding-inline-start: 0;
|
|
10
11
|
--_dso-link-icon-padding-inline-end: 0;
|
|
11
12
|
}
|
|
@@ -13,7 +14,7 @@
|
|
|
13
14
|
@mixin pseudo() {
|
|
14
15
|
&:hover,
|
|
15
16
|
&:focus-visible {
|
|
16
|
-
color: var(--link-hover-color);
|
|
17
|
+
color: var(--_dso-link-hover-color);
|
|
17
18
|
text-decoration: underline;
|
|
18
19
|
}
|
|
19
20
|
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
@mixin root($is-html-a-element: true) {
|
|
26
27
|
overflow-wrap: anywhere;
|
|
27
28
|
background-color: transparent;
|
|
28
|
-
color: var(--link-color);
|
|
29
|
+
color: var(--_dso-link-color);
|
|
29
30
|
text-decoration: underline;
|
|
30
31
|
text-underline-offset: link-variables.$link-underline-offset;
|
|
31
32
|
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
|
|
38
39
|
@if ($is-html-a-element) {
|
|
39
40
|
&:visited {
|
|
40
|
-
color: var(--link-visited-color);
|
|
41
|
+
color: var(--_dso-link-visited-color);
|
|
41
42
|
}
|
|
42
43
|
} @else {
|
|
43
44
|
cursor: pointer;
|
|
@@ -70,12 +71,12 @@
|
|
|
70
71
|
@mixin linkIcons() {
|
|
71
72
|
@each $mode, $value in link-variables.$linkIcons {
|
|
72
73
|
&#{map.get($value, "selector")} {
|
|
73
|
-
@include _mode-base($value);
|
|
74
|
+
@include _mode-base($value, $mode);
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
77
|
}
|
|
77
78
|
|
|
78
|
-
@mixin _mode-base($link-map) {
|
|
79
|
+
@mixin _mode-base($link-map, $mode) {
|
|
79
80
|
$icon-placement: map.get($link-map, "icon-placement");
|
|
80
81
|
|
|
81
82
|
@if $icon-placement != "after" and $icon-placement != "before" {
|
|
@@ -95,52 +96,44 @@
|
|
|
95
96
|
background-position: bottom -3px right 0;
|
|
96
97
|
}
|
|
97
98
|
|
|
98
|
-
$
|
|
99
|
-
|
|
100
|
-
@if map.has-key($link-map, "icon-color") {
|
|
101
|
-
$icon: $icon + "-" + map.get($link-map, "icon-color");
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
$icon-hover: map.get($link-map, "icon");
|
|
99
|
+
$key: map.get($link-map, "icon");
|
|
105
100
|
|
|
106
|
-
|
|
107
|
-
$icon-hover: $icon-hover + "-" + map.get($link-map, "icon-hover-color");
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
$icon: map.get($link-map, "icon");
|
|
101
|
+
$icon-color: "grasgroen";
|
|
111
102
|
|
|
112
103
|
@if map.has-key($link-map, "icon-color") {
|
|
113
|
-
$icon:
|
|
104
|
+
$icon-color: map.get($link-map, "icon-color");
|
|
114
105
|
}
|
|
115
106
|
|
|
116
|
-
|
|
107
|
+
background-image: var(
|
|
108
|
+
--_dso-link-icon-visibility,
|
|
109
|
+
var(--_dso-link-#{$mode}-icon, var(#{di-inline.custom-property($key, $icon-color)}))
|
|
110
|
+
);
|
|
117
111
|
|
|
118
112
|
@if map.has-key($link-map, "icon-hover-color") {
|
|
119
|
-
$icon-hover:
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
@include di.variant($icon);
|
|
113
|
+
$icon-hover-color: map.get($link-map, "icon-hover-color");
|
|
123
114
|
|
|
124
|
-
@if ($icon != $icon-hover) {
|
|
125
115
|
&:hover,
|
|
126
116
|
&:focus-visible {
|
|
127
|
-
|
|
117
|
+
background-image: var(
|
|
118
|
+
--_dso-link-icon-visibility,
|
|
119
|
+
var(--_dso-link-#{$mode}-icon, var(#{di-inline.custom-property($key, $icon-hover-color)}))
|
|
120
|
+
);
|
|
128
121
|
}
|
|
129
122
|
}
|
|
130
123
|
}
|
|
131
124
|
|
|
132
125
|
@mixin mode-download() {
|
|
133
|
-
@include _mode-base(map.get(link-variables.$linkIcons, "download"));
|
|
126
|
+
@include _mode-base(map.get(link-variables.$linkIcons, "download"), "download");
|
|
134
127
|
}
|
|
135
128
|
|
|
136
129
|
@mixin mode-extern() {
|
|
137
|
-
@include _mode-base(map.get(link-variables.$linkIcons, "extern"));
|
|
130
|
+
@include _mode-base(map.get(link-variables.$linkIcons, "extern"), "extern");
|
|
138
131
|
}
|
|
139
132
|
|
|
140
133
|
@mixin mode-phone() {
|
|
141
|
-
@include _mode-base(map.get(link-variables.$linkIcons, "phone"));
|
|
134
|
+
@include _mode-base(map.get(link-variables.$linkIcons, "phone"), "phone");
|
|
142
135
|
}
|
|
143
136
|
|
|
144
137
|
@mixin mode-email() {
|
|
145
|
-
@include _mode-base(map.get(link-variables.$linkIcons, "mail"));
|
|
138
|
+
@include _mode-base(map.get(link-variables.$linkIcons, "mail"), "mail");
|
|
146
139
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
@use "../../variables/units";
|
|
2
2
|
@use "../link-list";
|
|
3
3
|
|
|
4
|
-
@use "../../di";
|
|
4
|
+
@use "../../di-inline";
|
|
5
5
|
|
|
6
6
|
.dso-link-list {
|
|
7
7
|
@include link-list.root();
|
|
8
8
|
|
|
9
9
|
a {
|
|
10
10
|
&::before {
|
|
11
|
-
@include di.base("chevron-right");
|
|
11
|
+
@include di-inline.base("chevron-right", "grasgroen", $override-property: --_dso-link-list-chevron-icon);
|
|
12
12
|
|
|
13
13
|
content: "";
|
|
14
14
|
display: inline-block;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
&:focus,
|
|
20
20
|
&:hover {
|
|
21
21
|
&::before {
|
|
22
|
-
@include di.variant("chevron-right
|
|
22
|
+
@include di-inline.variant("chevron-right", "scampi", $override-property: --_dso-link-list-chevron-icon);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
> button {
|
|
98
98
|
@include link.reverse();
|
|
99
99
|
|
|
100
|
-
font-size: typography.$
|
|
100
|
+
font-size: typography.$font-size-base;
|
|
101
101
|
margin-block-start: (units.$u1 * 0.5);
|
|
102
102
|
padding-block: (units.$u1 * 0.5) #{units.$u1 * 0.5 - 1px};
|
|
103
103
|
padding-inline: units.$u1;
|
|
@@ -10,12 +10,12 @@ pre {
|
|
|
10
10
|
color: css-preformatted-text-variables.$color;
|
|
11
11
|
display: block;
|
|
12
12
|
font-family: typography.$font-family-monospace;
|
|
13
|
-
font-size: (typography.$font-size-base -
|
|
13
|
+
font-size: calc(typography.$font-size-base - 1px);
|
|
14
14
|
overflow: auto;
|
|
15
15
|
line-height: typography.$line-height-base;
|
|
16
16
|
margin-block: 0 (typography.$line-height-computed * 0.5);
|
|
17
17
|
margin-inline: 0;
|
|
18
|
-
padding: ((typography.$line-height-computed -
|
|
18
|
+
padding: calc((typography.$line-height-computed - 1px) * 0.5);
|
|
19
19
|
word-break: break-all;
|
|
20
20
|
overflow-wrap: break-word;
|
|
21
21
|
}
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
|
|
36
36
|
content: "";
|
|
37
37
|
display: inline-block;
|
|
38
|
-
font-size:
|
|
38
|
+
font-size: typography.$font-size-base;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
+ input,
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
border-radius: 4px;
|
|
54
54
|
box-shadow: none;
|
|
55
55
|
display: block;
|
|
56
|
-
font-size: typography.$
|
|
56
|
+
font-size: typography.$font-size-base;
|
|
57
57
|
block-size: css-search-bar-variables.$block-size;
|
|
58
58
|
line-height: css-search-bar-variables.$block-size;
|
|
59
59
|
padding-block: 6px;
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
|
|
94
94
|
content: "";
|
|
95
95
|
display: inline-block;
|
|
96
|
-
font-size: typography.$
|
|
96
|
+
font-size: typography.$font-size-base;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use "../../variables/units";
|
|
2
2
|
@use "../../variables/colors";
|
|
3
|
+
@use "../../variables/typography";
|
|
3
4
|
|
|
4
5
|
@use "step-counter.variables" as step-counter-variables;
|
|
5
6
|
|
|
@@ -10,7 +11,7 @@
|
|
|
10
11
|
|
|
11
12
|
@mixin _step-counter-font-styling() {
|
|
12
13
|
color: colors.$wit;
|
|
13
|
-
font-size:
|
|
14
|
+
font-size: typography.$font-size-large;
|
|
14
15
|
font-weight: 500;
|
|
15
16
|
line-height: step-counter-variables.$size;
|
|
16
17
|
text-align: center;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sass:string";
|
|
3
|
+
|
|
4
|
+
@use "variables/colors";
|
|
5
|
+
@use "variables/icon" as icon-variables;
|
|
6
|
+
|
|
7
|
+
@forward "variables/icon";
|
|
8
|
+
|
|
9
|
+
$colors: (
|
|
10
|
+
"grasgroen": colors.$grasgroen,
|
|
11
|
+
"scampi": colors.$scampi,
|
|
12
|
+
"zwart": colors.$zwart,
|
|
13
|
+
"wit": colors.$wit,
|
|
14
|
+
"bosgroen": colors.$bosgroen,
|
|
15
|
+
"grasgroen-40": colors.$grasgroen-40,
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
$icons: (
|
|
19
|
+
"download": (
|
|
20
|
+
"grasgroen",
|
|
21
|
+
"scampi",
|
|
22
|
+
"zwart",
|
|
23
|
+
"wit",
|
|
24
|
+
"bosgroen",
|
|
25
|
+
"grasgroen-40",
|
|
26
|
+
),
|
|
27
|
+
"external-link": (
|
|
28
|
+
"grasgroen",
|
|
29
|
+
"scampi",
|
|
30
|
+
"zwart",
|
|
31
|
+
"wit",
|
|
32
|
+
"bosgroen",
|
|
33
|
+
"grasgroen-40",
|
|
34
|
+
),
|
|
35
|
+
"call": (
|
|
36
|
+
"grasgroen",
|
|
37
|
+
"scampi",
|
|
38
|
+
"zwart",
|
|
39
|
+
"wit",
|
|
40
|
+
),
|
|
41
|
+
"mail-outline": (
|
|
42
|
+
"grasgroen",
|
|
43
|
+
"scampi",
|
|
44
|
+
"zwart",
|
|
45
|
+
"wit",
|
|
46
|
+
),
|
|
47
|
+
"chevron-right": (
|
|
48
|
+
"grasgroen",
|
|
49
|
+
"scampi",
|
|
50
|
+
"zwart",
|
|
51
|
+
),
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
@function custom-property($icon, $color) {
|
|
55
|
+
@return string.unquote("--_dso-di-#{$icon}-#{$color}");
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@mixin variant($icon, $color, $override-property: null) {
|
|
59
|
+
@if $override-property {
|
|
60
|
+
background-image: var(#{$override-property}, var(#{custom-property($icon, $color)}));
|
|
61
|
+
} @else {
|
|
62
|
+
background-image: var(#{custom-property($icon, $color)});
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@mixin base($icon, $color, $override-property: null) {
|
|
67
|
+
@include variant($icon, $color, $override-property);
|
|
68
|
+
|
|
69
|
+
background-repeat: no-repeat;
|
|
70
|
+
background-position: center;
|
|
71
|
+
background-size: cover;
|
|
72
|
+
block-size: icon-variables.$size;
|
|
73
|
+
inline-size: icon-variables.$size;
|
|
74
|
+
vertical-align: icon-variables.$vertical-align;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@mixin inline-icons() {
|
|
78
|
+
:root {
|
|
79
|
+
@each $icon, $color-names in $icons {
|
|
80
|
+
@each $color-name in $color-names {
|
|
81
|
+
@if not map.has-key($colors, $color-name) {
|
|
82
|
+
@error "di-inline: kleur '#{$color-name}' voor icoon '#{$icon}' ontbreekt in $colors.";
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
#{custom-property($icon, $color-name)}: #{inline-icon-DI-ONLY($icon, "#{map.get($colors, $color-name)}")};
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
package/src/di.scss
CHANGED
package/src/dso.scss
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use "toolkit-version";
|
|
2
|
+
@use "di-inline";
|
|
2
3
|
|
|
3
4
|
// Global
|
|
4
5
|
@use "global/font-faces";
|
|
@@ -24,7 +25,6 @@
|
|
|
24
25
|
@use "components/document-component-list/document-component-list";
|
|
25
26
|
@use "components/document-component/document-component";
|
|
26
27
|
@use "components/document-header/document-header";
|
|
27
|
-
@use "components/dropdown-menu/dropdown-menu";
|
|
28
28
|
@use "components/field-label/field-label";
|
|
29
29
|
@use "components/fieldset/fieldset";
|
|
30
30
|
@use "components/footer/footer";
|
|
@@ -35,9 +35,7 @@
|
|
|
35
35
|
@use "components/form-group/form-group";
|
|
36
36
|
@use "components/grid/grid";
|
|
37
37
|
@use "components/heading/heading";
|
|
38
|
-
@use "components/highlight-box/highlight-box";
|
|
39
38
|
@use "components/horizontal-rule/horizontal-rule";
|
|
40
|
-
@use "components/icon";
|
|
41
39
|
@use "components/image/image";
|
|
42
40
|
@use "components/info/info";
|
|
43
41
|
@use "components/input/input";
|
|
@@ -71,4 +69,6 @@
|
|
|
71
69
|
// Very global and generic styling
|
|
72
70
|
@use "utilities" as utilities-mixins;
|
|
73
71
|
|
|
72
|
+
@include di-inline.inline-icons();
|
|
73
|
+
|
|
74
74
|
@include utilities-mixins.box-sizing();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use "../components/link/link.variables.scss" as link-variables;
|
|
2
2
|
|
|
3
3
|
:root {
|
|
4
|
-
--link-color: #{link-variables.$link-color};
|
|
5
|
-
--link-hover-color: #{link-variables.$link-hover-color};
|
|
6
|
-
--link-visited-color: #{link-variables.$link-visited-color};
|
|
4
|
+
--_dso-link-color: #{link-variables.$link-color};
|
|
5
|
+
--_dso-link-hover-color: #{link-variables.$link-hover-color};
|
|
6
|
+
--_dso-link-visited-color: #{link-variables.$link-visited-color};
|
|
7
7
|
}
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
@use "../../variables/colors";
|
|
5
5
|
@use "../../variables/states";
|
|
6
|
+
@use "../../di-inline";
|
|
6
7
|
@use "../../components/link/link.variables" as link-variables;
|
|
7
|
-
@use "../../components/button/button.variables" as button-variables;
|
|
8
|
-
@use "../../di";
|
|
9
8
|
|
|
10
9
|
@use "../functions/contrast-color.functions" as contrast-color-functions;
|
|
11
10
|
|
|
@@ -31,6 +30,12 @@
|
|
|
31
30
|
$is-white-bg: contrast-color-functions.is-white($background-color);
|
|
32
31
|
$is-dark-contrast: $contrast-color == colors.$contrast-dark;
|
|
33
32
|
|
|
33
|
+
$icon-color: "wit";
|
|
34
|
+
|
|
35
|
+
@if $is-dark-contrast {
|
|
36
|
+
$icon-color: "zwart";
|
|
37
|
+
}
|
|
38
|
+
|
|
34
39
|
@if $self != "alert" {
|
|
35
40
|
@if $is-white-bg {
|
|
36
41
|
--_dso-alert-success-border-color: initial;
|
|
@@ -46,18 +51,17 @@
|
|
|
46
51
|
}
|
|
47
52
|
|
|
48
53
|
@if $self != "link" and not $is-white-bg {
|
|
49
|
-
--link-color: currentColor;
|
|
50
|
-
--link-hover-color: currentColor;
|
|
51
|
-
--link-visited-color: currentColor;
|
|
54
|
+
--_dso-link-color: currentColor;
|
|
55
|
+
--_dso-link-hover-color: currentColor;
|
|
56
|
+
--_dso-link-visited-color: currentColor;
|
|
52
57
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
@if $contrast-color == colors.$contrast-dark {
|
|
57
|
-
$icon-color: "zwart";
|
|
58
|
+
@each $mode, $cfg in link-variables.$linkIcons {
|
|
59
|
+
--_dso-link-#{$mode}-icon: var(#{di-inline.custom-property(map.get($cfg, "icon"), $icon-color)});
|
|
58
60
|
}
|
|
61
|
+
}
|
|
59
62
|
|
|
60
|
-
|
|
63
|
+
@if $self != "link-list" and not $is-white-bg {
|
|
64
|
+
--_dso-link-list-chevron-icon: var(#{di-inline.custom-property("chevron-right", $icon-color)});
|
|
61
65
|
}
|
|
62
66
|
|
|
63
67
|
@if $self != "icon-button" and not $is-white-bg {
|
|
@@ -88,7 +92,10 @@
|
|
|
88
92
|
}
|
|
89
93
|
}
|
|
90
94
|
|
|
91
|
-
@if self != "button" and not $is-white-bg {
|
|
95
|
+
@if $self != "button" and not $is-white-bg {
|
|
96
|
+
--_dso-button-tertiary-download-icon: var(#{di-inline.custom-property("download", $icon-color)});
|
|
97
|
+
--_dso-button-tertiary-external-link-icon: var(#{di-inline.custom-property("external-link", $icon-color)});
|
|
98
|
+
|
|
92
99
|
@if $is-dark-contrast {
|
|
93
100
|
--_dso-button-tertiary-color: #{colors.$grijs-90};
|
|
94
101
|
--_dso-button-tertiary-hover-color: #{colors.$grijs-70};
|
|
@@ -130,16 +137,3 @@
|
|
|
130
137
|
background-color: $background-color;
|
|
131
138
|
color: $contrast-color;
|
|
132
139
|
}
|
|
133
|
-
|
|
134
|
-
@mixin _linkIconColors($icon-color) {
|
|
135
|
-
// loop through map to set icon mode
|
|
136
|
-
@each $mode, $value in link-variables.$linkIcons {
|
|
137
|
-
$selector: map.get($value, "selector");
|
|
138
|
-
$icon: map.get($value, "icon") + "-" + $icon-color;
|
|
139
|
-
|
|
140
|
-
a:not(#{button-variables.$buttons}):is(#{$selector}, #{$selector}:hover, #{$selector}:focus-visible) {
|
|
141
|
-
// set icon color
|
|
142
|
-
@include di.variant($icon);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
package/src/global/spacing.scss
CHANGED
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
// within dso-highlight-box, create space for dso-button-row when preceded and/or followed by other elements
|
|
16
16
|
// ---------------------------------------------------------------------------------------------------------
|
|
17
17
|
// To Do: integrate this with things to come within this file, and remove the wildcard!
|
|
18
|
-
:where(dso-highlight-box)
|
|
19
|
-
:where(.dso-highlight-box) {
|
|
18
|
+
:where(dso-highlight-box) {
|
|
20
19
|
:where(.dso-button-row) {
|
|
21
20
|
margin-block: 0;
|
|
22
21
|
}
|
|
@@ -104,9 +103,7 @@ $spacers: (
|
|
|
104
103
|
),
|
|
105
104
|
(
|
|
106
105
|
space: units.$block-spacing-medium,
|
|
107
|
-
predecessors: (
|
|
108
|
-
".dso-app-heading",
|
|
109
|
-
),
|
|
106
|
+
predecessors: (".dso-app-heading"),
|
|
110
107
|
successors: (
|
|
111
108
|
".dso-context-wrapper",
|
|
112
109
|
"dso-tabs",
|
|
@@ -4,16 +4,12 @@ $font-family-sans-serif: Asap, sans-serif;
|
|
|
4
4
|
$font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace;
|
|
5
5
|
$font-family-base: $font-family-sans-serif;
|
|
6
6
|
|
|
7
|
-
$font-size-base: 16px
|
|
8
|
-
$font-size-
|
|
9
|
-
$font-size-
|
|
10
|
-
|
|
11
|
-
$root-font-size-base: 1rem;
|
|
12
|
-
$root-font-size-small: $font-size-base * 0.875;
|
|
7
|
+
$font-size-base: 1rem; // 16px
|
|
8
|
+
$font-size-small: 0.875rem; // 14px
|
|
9
|
+
$font-size-large: 1.25rem; // 20px
|
|
13
10
|
|
|
14
11
|
$line-height-base: 1.5;
|
|
15
|
-
$line-height-computed:
|
|
16
|
-
$root-line-height-computed: $root-font-size-base * $line-height-base;
|
|
12
|
+
$line-height-computed: $font-size-base * $line-height-base;
|
|
17
13
|
$line-height-small: 1.5;
|
|
18
14
|
$line-height-large: 1.3333333;
|
|
19
15
|
|