dso-toolkit 97.1.1 → 98.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 +17 -0
- package/dist/dso.css +98 -458
- 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 +12 -12
- 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 +4 -4
- package/src/components/button/button.scss +2 -2
- 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/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/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/heading/heading.mixins.scss +18 -18
- package/src/components/heading/heading.scss +7 -7
- package/src/components/highlight-box/readme.md +1 -0
- 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/readme.md +5 -0
- 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 +1 -1
- 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/dso.scss +0 -2
- 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/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,40 @@
|
|
|
1
|
+
# `.form, form, .dso-section-body`
|
|
2
|
+
|
|
3
|
+
## `.form-group`
|
|
4
|
+
|
|
5
|
+
Een formulier bestaat uit Form Group. Elke veld/werkvorm heeft z'n eigen `.form-group`.
|
|
6
|
+
|
|
7
|
+
Als de gebruiker een ongeldige waarde invoert moet er `.dso-invalid` op `.form-group` worden geplaatst:
|
|
8
|
+
|
|
9
|
+
```html
|
|
10
|
+
<div class="form-group dso-*** dso-invalid">[...]</div>
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Als het formulier daarna weer geldig wordt gemaakt moet de `.dso-invalid` class vervangen worden door `.dso-valid`:
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<div class="form-group dso-*** dso-valid">[...]</div>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### `.form-group.dso-input`
|
|
20
|
+
|
|
21
|
+
Dit is een standaard invoerveld (`<input>`). Dit veld wordt gekoppeld aan een `<label>`.
|
|
22
|
+
|
|
23
|
+
- Gebruik `type="email"` voor het automatisch valideren van een e-mailadres.
|
|
24
|
+
- Gebruik `type="password"` voor wachtwoorden.
|
|
25
|
+
- Gebruik `type="url"` voor het invoeren van URLs.
|
|
26
|
+
- Gebruik `type="tel"` voor het invoeren van een telefoonnummer.
|
|
27
|
+
- Gebruik **niet** `type="date"` maar het Web Component "Date Picker".
|
|
28
|
+
|
|
29
|
+
### `.form-group.dso-checkboxes`
|
|
30
|
+
|
|
31
|
+
Een Form Group "checkboxes" is een `fieldset` element in plaats van een `div`:
|
|
32
|
+
|
|
33
|
+
```html
|
|
34
|
+
<fieldset class="form-group dso-checkboxes"></fieldset>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### `.form-group.dso-files`
|
|
38
|
+
|
|
39
|
+
Als er geen bestanden zijn geüpload in een Form Group "files" dan wordt er geen "lege" unordered list `dso-filelist` in het formulier geplaatst.
|
|
40
|
+
Pas na de eerste upload is er een `ul` met 1 `li`st-item in het formulier aanwezig.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `.dso-button-row`
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# `.form, form, .dso-section-body`
|
|
2
|
+
|
|
3
|
+
## `.form-group`
|
|
4
|
+
|
|
5
|
+
Een formulier bestaat uit Form Group. Elke veld/werkvorm heeft z'n eigen `.form-group`.
|
|
6
|
+
|
|
7
|
+
Als de gebruiker een ongeldige waarde invoert moet er `.dso-invalid` op `.form-group` worden geplaatst:
|
|
8
|
+
|
|
9
|
+
```html
|
|
10
|
+
<div class="form-group dso-*** dso-invalid">[...]</div>
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Als het formulier daarna weer geldig wordt gemaakt moet de `.dso-invalid` class vervangen worden door `.dso-valid`:
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<div class="form-group dso-*** dso-valid">[...]</div>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### `.form-group.dso-input`
|
|
20
|
+
|
|
21
|
+
Dit is een standaard invoerveld (`<input>`). Dit veld wordt gekoppeld aan een `<label>`.
|
|
22
|
+
|
|
23
|
+
- Gebruik `type="email"` voor het automatisch valideren van een e-mailadres.
|
|
24
|
+
- Gebruik `type="password"` voor wachtwoorden.
|
|
25
|
+
- Gebruik `type="url"` voor het invoeren van URLs.
|
|
26
|
+
- Gebruik `type="tel"` voor het invoeren van een telefoonnummer.
|
|
27
|
+
- Gebruik **niet** `type="date"` maar het Web Component "Date Picker".
|
|
28
|
+
|
|
29
|
+
### `.form-group.dso-checkboxes`
|
|
30
|
+
|
|
31
|
+
Een Form Group "checkboxes" is een `fieldset` element in plaats van een `div`:
|
|
32
|
+
|
|
33
|
+
```html
|
|
34
|
+
<fieldset class="form-group dso-checkboxes"></fieldset>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### `.form-group.dso-files`
|
|
38
|
+
|
|
39
|
+
Als er geen bestanden zijn geüpload in een Form Group "files" dan wordt er geen "lege" unordered list `dso-filelist` in het formulier geplaatst.
|
|
40
|
+
Pas na de eerste upload is er een `ul` met 1 `li`st-item in het formulier aanwezig.
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
@use "../../variables/media-query-breakpoints";
|
|
5
5
|
|
|
6
6
|
@mixin base() {
|
|
7
|
-
color: var(--
|
|
7
|
+
color: var(--_dso-heading-base-color, colors.$bosgroen);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
@mixin margin-large() {
|
|
11
|
-
margin-block-end: var(--
|
|
12
|
-
margin-block-start: var(--
|
|
11
|
+
margin-block-end: var(--_dso-heading-margin-large-margin-block-end, units.$block-spacing-medium);
|
|
12
|
+
margin-block-start: var(--_dso-heading-margin-large-margin-block-start, typography.$line-height-computed);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
@mixin margin-small() {
|
|
16
|
-
margin-block-end: var(--
|
|
17
|
-
margin-block-start: var(--
|
|
16
|
+
margin-block-end: var(--_dso-heading-margin-small-margin-block-end, units.$block-spacing-medium);
|
|
17
|
+
margin-block-start: var(--_dso-heading-margin-small-margin-block-start, (typography.$line-height-computed * 0.5));
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
@mixin no-margin() {
|
|
@@ -22,43 +22,43 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
@mixin h1() {
|
|
25
|
-
font-size: var(--
|
|
25
|
+
font-size: var(--_dso-heading-h1-font-size-xs, units.$font-size-h2);
|
|
26
26
|
font-weight: 700;
|
|
27
27
|
|
|
28
28
|
@media (min-width: media-query-breakpoints.$screen-xs-min) {
|
|
29
|
-
font-size: var(--
|
|
29
|
+
font-size: var(--_dso-heading-h1-font-size, units.$font-size-h1);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
@mixin h2() {
|
|
34
|
-
color: var(--
|
|
35
|
-
float: var(--
|
|
36
|
-
font-size: var(--
|
|
34
|
+
color: var(--_dso-heading-h2-color, colors.$bosgroen);
|
|
35
|
+
float: var(--_dso-heading-h2-first-child-float, none);
|
|
36
|
+
font-size: var(--_dso-heading-h2-font-size-xs, units.$font-size-h3);
|
|
37
37
|
font-weight: 700;
|
|
38
38
|
|
|
39
39
|
@media (min-width: media-query-breakpoints.$screen-xs-min) {
|
|
40
|
-
font-size: var(--
|
|
40
|
+
font-size: var(--_dso-heading-h2-font-size, units.$font-size-h2);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
@mixin h3() {
|
|
45
|
-
color: var(--
|
|
46
|
-
font-size: var(--
|
|
45
|
+
color: var(--_dso-heading-h3-color, colors.$bosgroen);
|
|
46
|
+
font-size: var(--_dso-heading-h3-font-size-xs, units.$font-size-h3s);
|
|
47
47
|
font-weight: 600;
|
|
48
48
|
|
|
49
49
|
@media (min-width: media-query-breakpoints.$screen-xs-min) {
|
|
50
|
-
font-size: var(--
|
|
50
|
+
font-size: var(--_dso-heading-h3-font-size, units.$font-size-h3);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
@mixin h4() {
|
|
55
|
-
color: var(--
|
|
56
|
-
font-size: var(--
|
|
55
|
+
color: var(--_dso-heading-h4-color, colors.$bosgroen);
|
|
56
|
+
font-size: var(--_dso-heading-h4-font-size, units.$font-size-h4);
|
|
57
57
|
font-weight: 600;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
@mixin h5() {
|
|
61
|
-
color: var(--
|
|
62
|
-
font-size: var(--
|
|
61
|
+
color: var(--_dso-heading-h5-color, colors.$grijs-90);
|
|
62
|
+
font-size: var(--_dso-heading-h5-font-size, units.$font-size-h5);
|
|
63
63
|
font-weight: 600;
|
|
64
64
|
}
|
|
@@ -29,7 +29,7 @@ h3,
|
|
|
29
29
|
|
|
30
30
|
h1,
|
|
31
31
|
.h1 {
|
|
32
|
-
line-height: var(--
|
|
32
|
+
line-height: var(--_dso-heading-h1-line-height, units.$font-line-height-h1);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
h1 {
|
|
@@ -38,7 +38,7 @@ h1 {
|
|
|
38
38
|
|
|
39
39
|
h2,
|
|
40
40
|
.h2 {
|
|
41
|
-
line-height: var(--
|
|
41
|
+
line-height: var(--_dso-heading-h2-line-height, units.$font-line-height-h2);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
h2 {
|
|
@@ -47,7 +47,7 @@ h2 {
|
|
|
47
47
|
|
|
48
48
|
h3,
|
|
49
49
|
.h3 {
|
|
50
|
-
line-height: var(--
|
|
50
|
+
line-height: var(--_dso-heading-h3-line-height, units.$font-line-height-h3);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
h3 {
|
|
@@ -65,7 +65,7 @@ h6,
|
|
|
65
65
|
|
|
66
66
|
h4,
|
|
67
67
|
.h4 {
|
|
68
|
-
line-height: var(--
|
|
68
|
+
line-height: var(--_dso-heading-h4-line-height, units.$font-line-height-h4);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
h4 {
|
|
@@ -74,7 +74,7 @@ h4 {
|
|
|
74
74
|
|
|
75
75
|
h5,
|
|
76
76
|
.h5 {
|
|
77
|
-
line-height: var(--
|
|
77
|
+
line-height: var(--_dso-heading-h5-line-height, units.$font-line-height-h5);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
h5 {
|
|
@@ -83,6 +83,6 @@ h5 {
|
|
|
83
83
|
|
|
84
84
|
h6,
|
|
85
85
|
.h6 {
|
|
86
|
-
font-size: var(--
|
|
87
|
-
line-height: var(--
|
|
86
|
+
font-size: var(--_dso-heading-h6-font-size, inherit);
|
|
87
|
+
line-height: var(--_dso-heading-h6-line-height, units.$font-line-height-h6);
|
|
88
88
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `.dso-highlight-box`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `.img-responsive`, `.img-circle`
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# `.dso-justify-form-groups`
|
|
2
|
+
|
|
3
|
+
## **Let op!**
|
|
4
|
+
|
|
5
|
+
Bij justify-form-groups moet het aantal velden opgegeven worden als extra classname: `.form-groups-n`, waarbij `n` moet worden vervangen met het aantal `.form-group` velden er in het `.dso-justify-form-groups` staan. Maximaal kan dit **3** zijn, `.dso-form-buttons` wordt hierbij niet meegeteld.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# `.dso-label`
|
|
2
|
+
|
|
3
|
+
**Let op**: In de `.sr-only` moet _na_ de dubbele punt (:) een whitespace staan.
|
|
4
|
+
|
|
5
|
+
Deze staat nu niet in de markup voorschriften maar wordt wel gerendered in het DOM. Dit is een bug in een Storybook plugin. Zie #1163 voor meer informatie.
|
|
6
|
+
|
|
7
|
+
De hover state voor het Web Component is onderdeel van de werkvorm, voor de CSS versie moet deze door developers worden geimplementeerd dmv. class `.dso-label-hover` op de `<span class="dso-label">`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `.dso-label-group`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `.dso-link-list`
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# `ul`, `ol`, `.list-group`, `ul.dso-columns-list`, `ol.dso-columns-list`, `ol.dso-list-ordered-action`, `ol.dso-action-list`, `ul.dso-action-list`
|
|
2
|
+
|
|
3
|
+
## Status
|
|
4
|
+
|
|
5
|
+
Een List Item (`<li>`) kan een status hebben. Een status bestaat uit een icon en een toelichting. De status wordt met een modifier class op het List Item gezet.
|
|
6
|
+
|
|
7
|
+
- Forbidden (`dso-forbidden`)
|
|
8
|
+
- Status Warning (`dso-status-warning`)
|
|
@@ -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`
|
|
@@ -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`
|
package/src/dso.scss
CHANGED
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
@use "components/body/body";
|
|
12
12
|
|
|
13
13
|
@use "components/action-list/action-list";
|
|
14
|
-
@use "components/alert/alert";
|
|
15
14
|
@use "components/application-heading/application-heading";
|
|
16
15
|
@use "components/blockquote/blockquote";
|
|
17
16
|
@use "components/breadcrumbs/breadcrumbs";
|
|
@@ -41,7 +40,6 @@
|
|
|
41
40
|
@use "components/icon";
|
|
42
41
|
@use "components/image/image";
|
|
43
42
|
@use "components/info/info";
|
|
44
|
-
@use "components/info-button/info-button";
|
|
45
43
|
@use "components/input/input";
|
|
46
44
|
@use "components/insert/insert";
|
|
47
45
|
@use "components/justify-form-groups/justify-form-groups";
|
|
@@ -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
|
-
}
|