dso-toolkit 49.1.0 → 50.0.1
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/dist/dso-icons.svg +261 -303
- package/dist/dso.css +108 -34
- package/package.json +6 -1
- package/src/components/blockquote/blockquote.variables.scss +1 -1
- package/src/components/button/button.variables.scss +1 -1
- package/src/components/document-list/document-list.scss +15 -0
- package/src/components/dropdown-menu/dropdown-menu.variables.scss +1 -1
- package/src/components/grid/grid.scss +33 -12
- package/src/components/header/header.scss +26 -0
- package/src/components/list/list.variables.scss +3 -2
- package/src/components/list-button/list-button.mixins.scss +44 -3
- package/src/components/list-button/list-button.scss +8 -0
- package/src/components/mark/mark.scss +2 -1
- package/src/components/preformatted-text/preformatted-text.variables.scss +3 -3
- package/src/components/selectable/selectable.mixins.scss +148 -132
- package/src/components/tabs/tabs.variables.scss +5 -5
- package/src/legacy/legacy-panel.scss +1 -1
- package/src/variables/colors.scss +19 -27
|
@@ -44,175 +44,191 @@
|
|
|
44
44
|
|
|
45
45
|
input[type="checkbox"][disabled],
|
|
46
46
|
input[type="radio"][disabled] {
|
|
47
|
-
|
|
48
|
-
&:active,
|
|
49
|
-
&:focus {
|
|
50
|
-
+ label {
|
|
51
|
-
&::before {
|
|
52
|
-
background-color: colors.$wit;
|
|
53
|
-
box-shadow: 0 0 0 selectable-variables.$border-width selectable-variables.$disabled-color;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
47
|
+
@include selectableFunctionalStylingDisabled();
|
|
57
48
|
}
|
|
58
49
|
|
|
59
50
|
input[type="checkbox"],
|
|
60
51
|
input[type="radio"] {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
margin: 0;
|
|
64
|
-
opacity: 0;
|
|
65
|
-
position: absolute;
|
|
66
|
-
top: 0;
|
|
67
|
-
width: selectable-variables.$size;
|
|
68
|
-
z-index: zindex.$selectable;
|
|
69
|
-
zoom: 1;
|
|
70
|
-
|
|
71
|
-
@media (prefers-contrast: more) {
|
|
72
|
-
opacity: 1;
|
|
73
|
-
}
|
|
52
|
+
@include selectableFunctionalStyling();
|
|
53
|
+
}
|
|
74
54
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
55
|
+
input[type="checkbox"] {
|
|
56
|
+
@include selectableFunctionalStylingCheckbox();
|
|
57
|
+
}
|
|
78
58
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
59
|
+
input[type="radio"] {
|
|
60
|
+
@include selectableFunctionalStylingRadio();
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
> #{$info-selector} {
|
|
64
|
+
float: none;
|
|
65
|
+
margin: units.$u1 units.$u2 0 #{units.$u4 * -1};
|
|
66
|
+
width: calc(100% + #{units.$u4});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
83
69
|
|
|
70
|
+
@mixin selectableBoxShadow($border-width, $color) {
|
|
71
|
+
box-shadow: 0 0 0 $border-width $color;
|
|
72
|
+
height: selectable-variables.$size - 2 * $border-width;
|
|
73
|
+
left: $border-width;
|
|
74
|
+
top: $border-width;
|
|
75
|
+
width: selectable-variables.$size - 2 * $border-width;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@mixin selectableFunctionalStylingDisabled() {
|
|
79
|
+
&,
|
|
80
|
+
&:active,
|
|
81
|
+
&:focus {
|
|
82
|
+
+ label {
|
|
84
83
|
&::before {
|
|
85
|
-
background: colors.$wit;
|
|
86
|
-
|
|
87
|
-
box-shadow: 0 0 0 selectable-variables.$border-width
|
|
88
|
-
var(--dso-selectable-color, selectable-variables.$valid-color);
|
|
89
|
-
content: "";
|
|
90
|
-
height: selectable-variables.$size - 2 * selectable-variables.$border-width;
|
|
91
|
-
left: selectable-variables.$border-width;
|
|
92
|
-
position: absolute;
|
|
93
|
-
top: selectable-variables.$border-width;
|
|
94
|
-
width: selectable-variables.$size - 2 * selectable-variables.$border-width;
|
|
84
|
+
background-color: colors.$wit;
|
|
85
|
+
box-shadow: 0 0 0 selectable-variables.$border-width selectable-variables.$disabled-color;
|
|
95
86
|
}
|
|
96
87
|
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
97
90
|
|
|
98
|
-
|
|
99
|
-
|
|
91
|
+
@mixin selectableFunctionalStyling() {
|
|
92
|
+
height: selectable-variables.$size;
|
|
93
|
+
left: 0;
|
|
94
|
+
margin: 0;
|
|
95
|
+
opacity: 0;
|
|
96
|
+
position: absolute;
|
|
97
|
+
top: 0;
|
|
98
|
+
width: selectable-variables.$size;
|
|
99
|
+
z-index: zindex.$selectable;
|
|
100
|
+
zoom: 1;
|
|
101
|
+
|
|
102
|
+
@media (prefers-contrast: more) {
|
|
103
|
+
opacity: 1;
|
|
104
|
+
}
|
|
100
105
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
height: selectable-variables.$size - 2 * selectable-variables.$focus-border-width;
|
|
105
|
-
left: selectable-variables.$focus-border-width;
|
|
106
|
-
top: selectable-variables.$focus-border-width;
|
|
107
|
-
width: selectable-variables.$size - 2 * selectable-variables.$focus-border-width;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
106
|
+
&:not([disabled]) {
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
}
|
|
110
109
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
110
|
+
+ label {
|
|
111
|
+
display: inline;
|
|
112
|
+
font-style: normal;
|
|
113
|
+
padding-left: 0;
|
|
114
|
+
|
|
115
|
+
&::before {
|
|
116
|
+
background: colors.$wit;
|
|
117
|
+
border: 0;
|
|
118
|
+
box-shadow: 0 0 0 selectable-variables.$border-width
|
|
119
|
+
var(--dso-selectable-color, selectable-variables.$valid-color);
|
|
120
|
+
content: "";
|
|
121
|
+
height: selectable-variables.$size - 2 * selectable-variables.$border-width;
|
|
122
|
+
left: selectable-variables.$border-width;
|
|
123
|
+
position: absolute;
|
|
124
|
+
top: selectable-variables.$border-width;
|
|
125
|
+
width: selectable-variables.$size - 2 * selectable-variables.$border-width;
|
|
121
126
|
}
|
|
122
127
|
}
|
|
123
128
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
&::before {
|
|
127
|
-
border-radius: 4px;
|
|
128
|
-
}
|
|
129
|
+
&:focus {
|
|
130
|
+
outline: 0;
|
|
129
131
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
zoom: 1;
|
|
138
|
-
}
|
|
132
|
+
+ label::before {
|
|
133
|
+
box-shadow: 0 0 0 selectable-variables.$focus-border-width
|
|
134
|
+
var(--dso-selectable-color, selectable-variables.$valid-color);
|
|
135
|
+
height: selectable-variables.$size - 2 * selectable-variables.$focus-border-width;
|
|
136
|
+
left: selectable-variables.$focus-border-width;
|
|
137
|
+
top: selectable-variables.$focus-border-width;
|
|
138
|
+
width: selectable-variables.$size - 2 * selectable-variables.$focus-border-width;
|
|
139
139
|
}
|
|
140
|
+
}
|
|
140
141
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
142
|
+
&:active,
|
|
143
|
+
&.active {
|
|
144
|
+
+ label::before {
|
|
145
|
+
background-color: selectable-variables.$active-background-color;
|
|
146
|
+
box-shadow: 0 0 0 1px selectable-variables.$valid-color;
|
|
147
|
+
height: selectable-variables.$size - 2px;
|
|
148
|
+
left: 1px;
|
|
149
|
+
top: 1px;
|
|
150
|
+
width: selectable-variables.$size - 2px;
|
|
148
151
|
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
149
154
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
border-color: var(--dso-selectable-color, selectable-variables.$valid-marker-color);
|
|
155
|
-
border-top-color: transparent;
|
|
156
|
-
border-width: 0 0 3px 3px;
|
|
157
|
-
height: 8px;
|
|
158
|
-
transform: rotate(-45deg);
|
|
159
|
-
width: 13px;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
155
|
+
@mixin selectableFunctionalStylingCheckbox() {
|
|
156
|
+
+ label {
|
|
157
|
+
&::before {
|
|
158
|
+
border-radius: 4px;
|
|
162
159
|
}
|
|
163
160
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
161
|
+
&::after {
|
|
162
|
+
background: transparent;
|
|
163
|
+
content: "";
|
|
164
|
+
left: 6px;
|
|
165
|
+
opacity: 0;
|
|
166
|
+
position: absolute;
|
|
167
|
+
top: 6px;
|
|
168
|
+
zoom: 1;
|
|
172
169
|
}
|
|
173
170
|
}
|
|
174
171
|
|
|
175
|
-
|
|
172
|
+
&:checked,
|
|
173
|
+
&:indeterminate {
|
|
176
174
|
+ label {
|
|
177
|
-
&::
|
|
178
|
-
|
|
175
|
+
&::after {
|
|
176
|
+
opacity: 1;
|
|
179
177
|
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
180
|
|
|
181
|
+
&:checked {
|
|
182
|
+
+ label {
|
|
181
183
|
&::after {
|
|
182
|
-
|
|
183
|
-
border-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
top: 6px;
|
|
190
|
-
width: 12px;
|
|
191
|
-
zoom: 1;
|
|
184
|
+
border: solid;
|
|
185
|
+
border-color: var(--dso-selectable-color, selectable-variables.$valid-marker-color);
|
|
186
|
+
border-top-color: transparent;
|
|
187
|
+
border-width: 0 0 3px 3px;
|
|
188
|
+
height: 8px;
|
|
189
|
+
transform: rotate(-45deg);
|
|
190
|
+
width: 13px;
|
|
192
191
|
}
|
|
193
192
|
}
|
|
193
|
+
}
|
|
194
194
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
195
|
+
&:indeterminate {
|
|
196
|
+
+ label {
|
|
197
|
+
&::after {
|
|
198
|
+
background-color: var(--dso-selectable-color, selectable-variables.$valid-marker-color);
|
|
199
|
+
height: selectable-variables.$indeterminate-size;
|
|
200
|
+
width: selectable-variables.$indeterminate-size;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
+
}
|
|
204
205
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
@mixin selectableFunctionalStylingRadio() {
|
|
207
|
+
+ label {
|
|
208
|
+
&::before {
|
|
209
|
+
border-radius: 50%;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
&::after {
|
|
213
|
+
background-color: transparent;
|
|
214
|
+
border-radius: 50%;
|
|
215
|
+
content: "";
|
|
216
|
+
height: 12px;
|
|
217
|
+
left: 6px;
|
|
218
|
+
opacity: 0;
|
|
219
|
+
position: absolute;
|
|
220
|
+
top: 6px;
|
|
221
|
+
width: 12px;
|
|
222
|
+
zoom: 1;
|
|
223
|
+
}
|
|
209
224
|
}
|
|
210
|
-
}
|
|
211
225
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
226
|
+
&:checked {
|
|
227
|
+
+ label {
|
|
228
|
+
&::after {
|
|
229
|
+
background-color: var(--dso-selectable-color, selectable-variables.$valid-marker-color);
|
|
230
|
+
opacity: 1;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
218
234
|
}
|
|
@@ -5,14 +5,14 @@ $color: colors.$grasgroen;
|
|
|
5
5
|
$hover-color: colors.$grijs-5;
|
|
6
6
|
$text-color: colors.$grijs-60;
|
|
7
7
|
$border-radius: 4px;
|
|
8
|
-
$border-color:
|
|
9
|
-
$link-hover-border-color: colors.$
|
|
8
|
+
$border-color: colors.$grijs-10;
|
|
9
|
+
$link-hover-border-color: colors.$grijs-10;
|
|
10
10
|
$height: 56px;
|
|
11
11
|
$horizontal-padding: units.$u2 - 1px;
|
|
12
12
|
$vertical-padding: units.$u3 - 1px;
|
|
13
13
|
$margin-bottom: units.$vertical-spacing-large;
|
|
14
14
|
|
|
15
15
|
$nav-link-padding: 10px 15px;
|
|
16
|
-
$nav-link-hover-bg: colors.$
|
|
17
|
-
$nav-disabled-link-color:
|
|
18
|
-
$nav-disabled-link-hover-color:
|
|
16
|
+
$nav-link-hover-bg: colors.$grijs-10;
|
|
17
|
+
$nav-disabled-link-color: colors.$grijs-40;
|
|
18
|
+
$nav-disabled-link-hover-color: colors.$grijs-40;
|
|
@@ -16,7 +16,7 @@ $panel-border-radius: scaffolding.$border-radius-base !default;
|
|
|
16
16
|
$panel-inner-border: #ddd !default;
|
|
17
17
|
$panel-footer-bg: #f5f5f5 !default;
|
|
18
18
|
|
|
19
|
-
$panel-default-text: colors.$
|
|
19
|
+
$panel-default-text: colors.$grijs-80 !default;
|
|
20
20
|
$panel-default-border: #ddd !default;
|
|
21
21
|
$panel-default-heading-bg: #f5f5f5 !default;
|
|
22
22
|
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
@use "sass:color";
|
|
2
2
|
|
|
3
|
-
$gray-base: #000 !default;
|
|
4
|
-
$gray-dark: color.adjust($gray-base, $lightness: 20%) !default; // #333
|
|
5
|
-
$gray: color.adjust($gray-base, $lightness: 33.5%) !default; // #555
|
|
6
|
-
$gray-light: color.adjust($gray-base, $lightness: 46.7%) !default; // #777
|
|
7
|
-
$gray-lighter: color.adjust($gray-base, $lightness: 93.5%) !default; // #eee
|
|
8
|
-
|
|
9
3
|
// DSO kleuren http://webaim.org/resources/contrastchecker/ (contrast op een witte achtergrond)
|
|
10
4
|
|
|
11
5
|
$grasgroen: #39870c; // 100% tint - Normal text: WCAG AA: OK; WCAG AAA: Fail - Large text: WCAG AA: OK; WCAG AAA: OK;
|
|
@@ -13,20 +7,15 @@ $grasgroen-80: #609f3c; // 80% tint - Normal text: WCAG AA: Fail; WCAG A
|
|
|
13
7
|
$grasgroen-40: #afcf9d; // 40% tint - niet te gebruiken als leestekst
|
|
14
8
|
$grasgroen-10: #ebf3e6; // 10% tint - niet te gebruiken als leestekst
|
|
15
9
|
|
|
16
|
-
$lime: #79b929;
|
|
17
|
-
$lime-20: #e4f1d4;
|
|
18
|
-
|
|
19
|
-
$bosgroen-130: #15301e; // 130% tint
|
|
20
10
|
$bosgroen: #275937; // 100% tint - Normal text: WCAG AA: OK; WCAG AAA: Fail - Large text: WCAG AA: OK; WCAG AAA: OK;
|
|
11
|
+
$bosgroen-140: #173521; // 140% tint
|
|
21
12
|
$bosgroen-80: #527a5e; // 80% tint - Normal text: WCAG AA: OK; WCAG AAA: Fail - Large text: WCAG AA: OK; WCAG AAA: OK;
|
|
22
13
|
$bosgroen-60: #7d9886; // 60% tint - Normal text: WCAG AA: OK; WCAG AAA: Fail - Large text: WCAG AA: OK; WCAG AAA: Fail;
|
|
23
14
|
$bosgroen-40: #a8bcaf; // 40% tint - niet te gebruiken als leestekst
|
|
24
15
|
$bosgroen-10: #e9eeeb; // 10% tint - niet te gebruiken als leestekst
|
|
25
16
|
|
|
26
|
-
$
|
|
27
|
-
$
|
|
28
|
-
$oranje-40: #f3c599;
|
|
29
|
-
$oranje-10: #fcf0e5;
|
|
17
|
+
$mauve: #8b4a6a; // 100% tint
|
|
18
|
+
$mauve-40: #d1b7c4; // 40% tint
|
|
30
19
|
|
|
31
20
|
$zwart: #000; // 100% tint - Normal text: WCAG AA: OK; WCAG AAA: OK - Large text: WCAG AA: OK; WCAG AAA: OK;
|
|
32
21
|
$grijs-90: #191919; // - Normal text: WCAG AA: OK; WCAG AAA: OK - Large text: WCAG AA: OK; WCAG AAA: OK;
|
|
@@ -41,32 +30,35 @@ $grijs-10: #e5e5e5; // - niet te gebruiken als leestekst
|
|
|
41
30
|
$grijs-5: #f2f2f2; // - niet te gebruiken als leestekst
|
|
42
31
|
$wit: #fff;
|
|
43
32
|
|
|
44
|
-
$
|
|
33
|
+
$lime: #79b929; // 100% tint
|
|
34
|
+
$lime-20: #e4f1d4; // 20% tint
|
|
35
|
+
$rood: #ce3f51; // 100% tint
|
|
36
|
+
$rood-110: #b62f41; // 110% tint
|
|
37
|
+
$rood-20: #f5d8dc; // 20% tint
|
|
38
|
+
$geel: #dcd400; // 100% tint
|
|
39
|
+
$geel-20: #f8f6cc; // 20% tint
|
|
40
|
+
$lichtblauw: #6ca4d9; // 100% tint
|
|
41
|
+
$lichtblauw-20: #e1ecf7; // 20% tint
|
|
42
|
+
|
|
45
43
|
$donkerblauw: #2b5780;
|
|
46
44
|
$mintgroen: #3fb498;
|
|
47
45
|
$bruin: #644f49;
|
|
48
|
-
$
|
|
49
|
-
$mauve-40: #d1b7c4;
|
|
50
|
-
$rood: #ce3f51;
|
|
51
|
-
$geel: #dcd400;
|
|
52
|
-
|
|
46
|
+
$oranje: #e17000;
|
|
53
47
|
$scampi: #676cb0;
|
|
54
48
|
|
|
55
|
-
$opac10: rgba(0, 0, 0, 0.1);
|
|
56
|
-
|
|
57
49
|
$success-color: $grasgroen;
|
|
58
50
|
$info-color: $lichtblauw;
|
|
59
51
|
$warning-color: $geel;
|
|
60
52
|
$danger-color: $rood;
|
|
61
|
-
$invalid-color:
|
|
53
|
+
$invalid-color: $rood-110;
|
|
62
54
|
|
|
63
55
|
$success-bg-color: $lime-20;
|
|
64
|
-
$info-bg-color:
|
|
65
|
-
$warning-bg-color:
|
|
66
|
-
$danger-bg-color:
|
|
56
|
+
$info-bg-color: $lichtblauw-20;
|
|
57
|
+
$warning-bg-color: $geel-20;
|
|
58
|
+
$danger-bg-color: $rood-20;
|
|
67
59
|
|
|
68
60
|
$input-color-placeholder: $grijs-60;
|
|
69
|
-
$input-bg:
|
|
61
|
+
$input-bg: $wit;
|
|
70
62
|
$input-color: $grijs-90;
|
|
71
63
|
$input-border: $bosgroen;
|
|
72
64
|
$input-bg-disabled: $wit;
|