dso-toolkit 97.1.1 → 99.0.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 +36 -0
- package/README.md +2 -2
- package/dist/dso.css +480 -1807
- 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 +14 -16
- package/src/components/action-list/readme.md +1 -0
- package/src/components/alert/readme.md +5 -0
- package/src/components/application-heading/readme.md +5 -0
- package/src/components/attachments-counter/readme.md +5 -0
- package/src/components/badge/readme.md +5 -0
- package/src/components/banner/readme.md +1 -0
- package/src/components/breadcrumbs/readme.md +1 -0
- package/src/components/button/button.mixins.scss +5 -6
- package/src/components/button/button.scss +28 -35
- package/src/components/button/readme.md +10 -0
- package/src/components/button-row/readme.md +1 -0
- package/src/components/card/readme.md +3 -0
- package/src/components/context/context.scss +1 -1
- package/src/components/context/readme.md +1 -0
- package/src/components/definition-list/definition-list.scss +10 -10
- package/src/components/definition-list/readme.md +1 -0
- package/src/components/delete/delete.mixins.scss +2 -2
- package/src/components/description/readme.md +1 -0
- package/src/components/document-header/document-header.scss +1 -1
- package/src/components/document-header/readme.md +10 -0
- package/src/components/dropdown-menu/readme.md +45 -0
- package/src/components/expandable/readme.md +1 -0
- package/src/components/footer/readme.md +1 -0
- package/src/components/footnotes/readme.md +1 -0
- package/src/components/form/readme.md +40 -0
- package/src/components/form-buttons/readme.md +1 -0
- package/src/components/form-group/form-group.scss +0 -4
- package/src/components/form-group/readme.md +40 -0
- package/src/components/form-group/select/form-group-select.scss +1 -1
- package/src/components/grid/grid.scss +7 -7
- package/src/components/heading/heading.mixins.scss +18 -18
- package/src/components/heading/heading.scss +7 -7
- package/src/components/image/readme.md +1 -0
- package/src/components/info/readme.md +3 -0
- package/src/components/insert/insert.mixins.scss +1 -1
- package/src/components/justify-form-groups/readme.md +5 -0
- package/src/components/label/readme.md +7 -0
- package/src/components/label-group/readme.md +1 -0
- package/src/components/link/link.mixins.scss +24 -31
- package/src/components/link/readme.md +5 -0
- package/src/components/link-list/link-list.mixins.scss +2 -0
- package/src/components/link-list/link-list.scss +3 -3
- package/src/components/link-list/readme.md +1 -0
- package/src/components/list/readme.md +8 -0
- package/src/components/list-button/readme.md +1 -0
- package/src/components/mark/mark.scss +4 -4
- package/src/components/modal/readme.md +3 -0
- package/src/components/navbar/readme.md +1 -0
- package/src/components/paragraph/readme.md +1 -0
- package/src/components/progress-indicator/readme.md +6 -0
- package/src/components/rich-content/readme.md +1 -0
- package/src/components/rich-content/rich-content.mixins.scss +2 -3
- package/src/components/rich-content/rich-content.scss +4 -4
- package/src/components/row-equal-heights/readme.md +1 -0
- package/src/components/scrollable/readme.md +0 -0
- package/src/components/search-bar/readme.md +1 -0
- package/src/components/shopping-cart/readme.md +1 -0
- package/src/components/tabs/readme.md +17 -0
- package/src/components/tile/readme.md +1 -0
- package/src/components/tile-grid/readme.md +1 -0
- package/src/di-inline.scss +89 -0
- package/src/di.scss +1 -1
- package/src/dso.scss +3 -5
- 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/components/alert/_index.scss +0 -2
- package/src/components/alert/alert.mixins.scss +0 -172
- package/src/components/alert/alert.scss +0 -67
- 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/icon/_index.scss +0 -1
- package/src/components/info-button/_index.scss +0 -2
- package/src/components/info-button/info-button.mixins.scss +0 -28
- package/src/components/info-button/info-button.scss +0 -20
- package/src/components/info-button/info-button.variables.scss +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `.dso-list-button`
|
|
@@ -4,10 +4,10 @@ $mark-color: #f8f5ce;
|
|
|
4
4
|
$highlight-color: #dbd136;
|
|
5
5
|
|
|
6
6
|
mark {
|
|
7
|
-
background-color: var(--
|
|
8
|
-
color: var(--
|
|
9
|
-
padding-block: var(--
|
|
10
|
-
font-weight: var(--
|
|
7
|
+
background-color: var(--_dso-mark-bg-color, $mark-color);
|
|
8
|
+
color: var(--_dso-mark-color, colors.$zwart);
|
|
9
|
+
padding-block: var(--_dso-mark-padding-block, 0.2rem);
|
|
10
|
+
font-weight: var(--_dso-mark-font-weight, normal);
|
|
11
11
|
|
|
12
12
|
&.dso-highlight {
|
|
13
13
|
background-color: $highlight-color;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `.dso-navbar`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `<p>`
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# `.dso-progress-indicator`
|
|
2
|
+
|
|
3
|
+
- toevoeging class `dso-block` zorgt voor horizontaal en verticaal gecentreerde progress-indicator;
|
|
4
|
+
- icm. class `dso-small` zorgt dit voor een (afhankelijk van de inhoud) minimaal 48px hoge progress indicator;
|
|
5
|
+
- icm. class `dso-medium` zorgt dit voor een (afhankelijk van de inhoud) minimaal 64px hoge progress indicator;
|
|
6
|
+
- icm. class `dso-large` zorgt dit voor een (afhankelijk van de inhoud) minimaal 96px hoge progress indicator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `.dso-rich-content`
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
@mixin children() {
|
|
6
6
|
p {
|
|
7
|
-
margin-block: 0 var(--
|
|
7
|
+
margin-block: 0 var(--_dso-rich-content-margin-block, rich-content-variables.$margin-block-end);
|
|
8
8
|
margin-inline: 0;
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -32,8 +32,7 @@
|
|
|
32
32
|
padding-inline: typography.$line-height-computed;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
dso-highlight-box
|
|
36
|
-
.dso-highlight-box {
|
|
35
|
+
dso-highlight-box {
|
|
37
36
|
margin-block-end: typography.$line-height-computed;
|
|
38
37
|
}
|
|
39
38
|
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
.dso-rich-content {
|
|
4
4
|
@include rich-content.children();
|
|
5
5
|
|
|
6
|
-
padding-inline-end: var(--
|
|
6
|
+
padding-inline-end: var(--_dso-rich-content-padding-inline-end, 0);
|
|
7
7
|
|
|
8
8
|
> :first-child:not(hr, .dso-button-row) {
|
|
9
|
-
margin-block-start: var(--
|
|
10
|
-
margin-inline-end: var(--
|
|
9
|
+
margin-block-start: var(--_dso-rich-content-margin-block-start, rich-content.$margin-block-start * 0.5);
|
|
10
|
+
margin-inline-end: var(--_dso-rich-content-margin-inline-end, 0);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
> :last-child:not(hr, .dso-button-row) {
|
|
14
|
-
margin-block-end: var(--
|
|
14
|
+
margin-block-end: var(--_dso-rich-content-margin-block-end, rich-content.$margin-block-end * 0.5);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `.row.dso-equal-heights`
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `.dso-search-bar`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `.dso-shopping-cart`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# `ul.nav.nav-tabs`
|
|
2
|
+
|
|
3
|
+
De rollen `tablist`, `tab` en `tabpanel` tonen de elementen `<ul>`, `<a>` en `<div>` als een verzameling tabbladen en bijbehorende tabbladen in de toegankelijkheidsboom.
|
|
4
|
+
|
|
5
|
+
De rol `presentation` voorkomt dat de `<li>`-elementen in kaart worden gebracht in de toegankelijkheidsboom.
|
|
6
|
+
|
|
7
|
+
Het `aria-selected` kenmerk geeft aan welk tabblad momenteel is geselecteerd.
|
|
8
|
+
|
|
9
|
+
Het `tabindex`-attribuut zorgt ervoor dat alleen het momenteel geselecteerde tabblad in de tabvolgorde wordt opgenomen.
|
|
10
|
+
|
|
11
|
+
Het `hidden` attribuut verbergt alles behalve het momenteel weergegeven tabpaneel voor weergave.
|
|
12
|
+
|
|
13
|
+
Het kenmerk `aria-controls` legt een relatie tussen elk tabblad en het bijbehorende tabblad.
|
|
14
|
+
|
|
15
|
+
Het kenmerk `aria-labelledby` hergebruikt de naam van het tabblad als de toegankelijke naam van het bijbehorende tabblad.
|
|
16
|
+
|
|
17
|
+
De `click`- en `keydown`- event listeners leggen de verwachte muis- en toetsenbordgebeurtenissen vast voor het activeren van de tabbladen. Scriptend moet ervoor gezorgd worden dat de a daarin niet meer reageert.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `.dso-tile`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `.dso-tile-grid`
|
|
@@ -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";
|
|
@@ -11,7 +12,6 @@
|
|
|
11
12
|
@use "components/body/body";
|
|
12
13
|
|
|
13
14
|
@use "components/action-list/action-list";
|
|
14
|
-
@use "components/alert/alert";
|
|
15
15
|
@use "components/application-heading/application-heading";
|
|
16
16
|
@use "components/blockquote/blockquote";
|
|
17
17
|
@use "components/breadcrumbs/breadcrumbs";
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
@use "components/document-component-list/document-component-list";
|
|
26
26
|
@use "components/document-component/document-component";
|
|
27
27
|
@use "components/document-header/document-header";
|
|
28
|
-
@use "components/dropdown-menu/dropdown-menu";
|
|
29
28
|
@use "components/field-label/field-label";
|
|
30
29
|
@use "components/fieldset/fieldset";
|
|
31
30
|
@use "components/footer/footer";
|
|
@@ -36,12 +35,9 @@
|
|
|
36
35
|
@use "components/form-group/form-group";
|
|
37
36
|
@use "components/grid/grid";
|
|
38
37
|
@use "components/heading/heading";
|
|
39
|
-
@use "components/highlight-box/highlight-box";
|
|
40
38
|
@use "components/horizontal-rule/horizontal-rule";
|
|
41
|
-
@use "components/icon";
|
|
42
39
|
@use "components/image/image";
|
|
43
40
|
@use "components/info/info";
|
|
44
|
-
@use "components/info-button/info-button";
|
|
45
41
|
@use "components/input/input";
|
|
46
42
|
@use "components/insert/insert";
|
|
47
43
|
@use "components/justify-form-groups/justify-form-groups";
|
|
@@ -73,4 +69,6 @@
|
|
|
73
69
|
// Very global and generic styling
|
|
74
70
|
@use "utilities" as utilities-mixins;
|
|
75
71
|
|
|
72
|
+
@include di-inline.inline-icons();
|
|
73
|
+
|
|
76
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",
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
@use "../../variables/units";
|
|
2
|
-
@use "../../variables/colors";
|
|
3
|
-
@use "../../variables/typography";
|
|
4
|
-
@use "../../variables/media-query-breakpoints";
|
|
5
|
-
|
|
6
|
-
@use "../button";
|
|
7
|
-
@use "alert.variables" as alert-variables;
|
|
8
|
-
@use "../../global/mixins/set-colors.mixin" as set-colors;
|
|
9
|
-
|
|
10
|
-
@mixin icon-position() {
|
|
11
|
-
inset-block-start: alert-variables.$inline-padding - alert-variables.$border-size;
|
|
12
|
-
inset-inline-start: alert-variables.$inline-padding - alert-variables.$border-size;
|
|
13
|
-
position: absolute;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@mixin children() {
|
|
17
|
-
> .dso-rich-content {
|
|
18
|
-
*:first-child {
|
|
19
|
-
margin-block-start: 0 !important;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
*:last-child {
|
|
23
|
-
margin-block-end: 0 !important;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
#{typography.$headings} {
|
|
27
|
-
color: colors.$zwart;
|
|
28
|
-
font-size: 1em;
|
|
29
|
-
line-height: typography.$line-height-base;
|
|
30
|
-
margin-block-end: units.$u1;
|
|
31
|
-
margin-block-start: units.$u1;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.dso-alert-button {
|
|
35
|
-
background-color: rgba(25, 25, 25, 0.05);
|
|
36
|
-
border-radius: button.$border-radius;
|
|
37
|
-
border: 1px solid transparent;
|
|
38
|
-
padding-block: 6px;
|
|
39
|
-
padding-inline: 12px;
|
|
40
|
-
|
|
41
|
-
&:hover,
|
|
42
|
-
&:active {
|
|
43
|
-
background-color: rgba(25, 25, 25, 0.2);
|
|
44
|
-
color: colors.$zwart;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
a {
|
|
50
|
-
&:active {
|
|
51
|
-
text-decoration: none;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@mixin status-success() {
|
|
57
|
-
@include set-colors.apply(alert-variables.$success-bg, "alert");
|
|
58
|
-
|
|
59
|
-
border-color: var(--_dso-alert-success-border-color, alert-variables.$success-bg);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@mixin status-error() {
|
|
63
|
-
@include set-colors.apply(alert-variables.$danger-bg, "alert");
|
|
64
|
-
|
|
65
|
-
border-color: var(--_dso-alert-error-border-color, alert-variables.$danger-bg);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
@mixin status-warning() {
|
|
69
|
-
@include set-colors.apply(alert-variables.$warning-bg, "alert");
|
|
70
|
-
|
|
71
|
-
border-color: var(--_dso-alert-warning-border-color, alert-variables.$warning-bg);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
@mixin status-info() {
|
|
75
|
-
@include set-colors.apply(alert-variables.$info-bg, "alert");
|
|
76
|
-
|
|
77
|
-
border-color: var(--_dso-alert-info-border-color, alert-variables.$info-bg);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
@mixin root() {
|
|
81
|
-
line-height: typography.$line-height-base;
|
|
82
|
-
margin-block-end: var(--_dso-alert-margin-block-end, typography.$line-height-computed);
|
|
83
|
-
min-block-size: 2 * alert-variables.$inline-padding + alert-variables.$icon-size;
|
|
84
|
-
position: relative;
|
|
85
|
-
border: 1px solid transparent;
|
|
86
|
-
|
|
87
|
-
@media screen and (min-width: #{media-query-breakpoints.$screen-xs-min + 1}) {
|
|
88
|
-
padding-block: (alert-variables.$block-padding - alert-variables.$border-size);
|
|
89
|
-
padding-inline: (alert-variables.$inline-start-padding - alert-variables.$border-size)
|
|
90
|
-
(units.$u5 - alert-variables.$border-size);
|
|
91
|
-
|
|
92
|
-
&.dso-compact {
|
|
93
|
-
padding-block: alert-variables.$block-padding * 0.5 - alert-variables.$border-size;
|
|
94
|
-
padding-inline: (alert-variables.$inline-padding - alert-variables.$border-size)
|
|
95
|
-
(units.$u5 - alert-variables.$border-size);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
@media screen and (max-width: media-query-breakpoints.$screen-xs-min) {
|
|
100
|
-
padding-block: (alert-variables.$small-padding-block-start - alert-variables.$border-size)
|
|
101
|
-
(alert-variables.$small-padding - alert-variables.$border-size);
|
|
102
|
-
padding-inline: alert-variables.$small-padding - alert-variables.$border-size;
|
|
103
|
-
|
|
104
|
-
&.dso-compact {
|
|
105
|
-
padding-block: alert-variables.$block-padding * 0.5 - alert-variables.$border-size;
|
|
106
|
-
padding-inline: alert-variables.$inline-padding - alert-variables.$border-size;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&:not(:first-child) {
|
|
111
|
-
margin-block-start: units.$u3;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.icon-status {
|
|
115
|
-
@include icon-position();
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&.dso-compact {
|
|
119
|
-
@include compact();
|
|
120
|
-
|
|
121
|
-
min-block-size: alert-variables.$inline-padding;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&.alert-success {
|
|
125
|
-
@include status-success();
|
|
126
|
-
|
|
127
|
-
&.dso-compact::before {
|
|
128
|
-
background-color: alert-variables.$success-compact-accent-bg;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
&.alert-error {
|
|
133
|
-
@include status-error();
|
|
134
|
-
|
|
135
|
-
&.dso-compact::before {
|
|
136
|
-
background-color: alert-variables.$danger-compact-accent-bg;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
&.alert-warning {
|
|
141
|
-
@include status-warning();
|
|
142
|
-
|
|
143
|
-
&.dso-compact::before {
|
|
144
|
-
background-color: alert-variables.$warning-compact-accent-bg;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
&.alert-info {
|
|
149
|
-
@include status-info();
|
|
150
|
-
|
|
151
|
-
&.dso-compact::before {
|
|
152
|
-
background-color: alert-variables.$info-compact-accent-bg;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
@mixin compact() {
|
|
158
|
-
border-end-end-radius: units.$u1;
|
|
159
|
-
border-start-end-radius: units.$u1;
|
|
160
|
-
margin-inline-start: units.$u1;
|
|
161
|
-
|
|
162
|
-
&::before {
|
|
163
|
-
content: "";
|
|
164
|
-
position: absolute;
|
|
165
|
-
inset-block-start: alert-variables.$border-size * -1;
|
|
166
|
-
inset-block-end: alert-variables.$border-size * -1;
|
|
167
|
-
inset-inline-start: (units.$u1 + alert-variables.$border-size) * -1;
|
|
168
|
-
border-start-start-radius: units.$u1;
|
|
169
|
-
border-end-start-radius: units.$u1;
|
|
170
|
-
inline-size: units.$u1;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
@use "../alert";
|
|
2
|
-
@use "../button";
|
|
3
|
-
@use "../icon";
|
|
4
|
-
@use "../../di";
|
|
5
|
-
@use "../../variables/units";
|
|
6
|
-
|
|
7
|
-
.alert {
|
|
8
|
-
@include alert.root();
|
|
9
|
-
@include alert.children();
|
|
10
|
-
|
|
11
|
-
.dso-close {
|
|
12
|
-
@include button.element();
|
|
13
|
-
|
|
14
|
-
$inset-unit: units.$u1 * 0.5 - alert.$border-size;
|
|
15
|
-
|
|
16
|
-
position: absolute;
|
|
17
|
-
inset-block-start: $inset-unit;
|
|
18
|
-
inset-inline-end: $inset-unit;
|
|
19
|
-
|
|
20
|
-
block-size: units.$u4;
|
|
21
|
-
inline-size: units.$u4;
|
|
22
|
-
|
|
23
|
-
padding: 0;
|
|
24
|
-
|
|
25
|
-
background-color: transparent;
|
|
26
|
-
|
|
27
|
-
border: 0;
|
|
28
|
-
text-align: center;
|
|
29
|
-
|
|
30
|
-
&::before {
|
|
31
|
-
@include di.base("cross-zwart", icon.$size, middle);
|
|
32
|
-
|
|
33
|
-
content: "";
|
|
34
|
-
display: inline-block;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&:not(.dso-compact)::before {
|
|
39
|
-
@include alert.icon-position();
|
|
40
|
-
|
|
41
|
-
content: "";
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&.alert-success {
|
|
45
|
-
&:not(.dso-compact)::before {
|
|
46
|
-
@include di.base("status-success", alert.$icon-size);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&.alert-error {
|
|
51
|
-
&:not(.dso-compact)::before {
|
|
52
|
-
@include di.base("status-error", alert.$icon-size);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&.alert-warning {
|
|
57
|
-
&:not(.dso-compact)::before {
|
|
58
|
-
@include di.base("status-warning", alert.$icon-size);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&.alert-info {
|
|
63
|
-
&:not(.dso-compact)::before {
|
|
64
|
-
@include di.base("status-info-solid", alert.$icon-size);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|