dso-toolkit 49.0.2 → 50.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.
@@ -6,11 +6,6 @@
6
6
  @mixin root() {
7
7
  margin-bottom: units.$u1;
8
8
 
9
- #progress-bar-label {
10
- font-size: typography.$root-font-size-small;
11
- margin-top: units.$u1;
12
- }
13
-
14
9
  .progress-bar {
15
10
  background-color: progress-bar-variables.$background-color;
16
11
  border: 1px solid progress-bar-variables.$color;
@@ -23,5 +18,10 @@
23
18
  height: 100%;
24
19
  width: 0%;
25
20
  }
21
+
22
+ + span {
23
+ font-size: typography.$root-font-size-small;
24
+ margin-top: units.$u1;
25
+ }
26
26
  }
27
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
- height: selectable-variables.$size;
62
- left: 0;
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
- &:not([disabled]) {
76
- cursor: pointer;
77
- }
55
+ input[type="checkbox"] {
56
+ @include selectableFunctionalStylingCheckbox();
57
+ }
78
58
 
79
- + label {
80
- display: inline;
81
- font-style: normal;
82
- padding-left: 0;
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
- border: 0;
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
- &:focus {
99
- outline: 0;
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
- + label::before {
102
- box-shadow: 0 0 0 selectable-variables.$focus-border-width
103
- var(--dso-selectable-color, selectable-variables.$valid-color);
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
- &:active,
112
- &.active {
113
- + label::before {
114
- background-color: selectable-variables.$active-background-color;
115
- box-shadow: 0 0 0 1px selectable-variables.$valid-color;
116
- height: selectable-variables.$size - 2px;
117
- left: 1px;
118
- top: 1px;
119
- width: selectable-variables.$size - 2px;
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
- input[type="checkbox"] {
125
- + label {
126
- &::before {
127
- border-radius: 4px;
128
- }
129
+ &:focus {
130
+ outline: 0;
129
131
 
130
- &::after {
131
- background: transparent;
132
- content: "";
133
- left: 6px;
134
- opacity: 0;
135
- position: absolute;
136
- top: 6px;
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
- &:checked,
142
- &:indeterminate {
143
- + label {
144
- &::after {
145
- opacity: 1;
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
- &:checked {
151
- + label {
152
- &::after {
153
- border: solid;
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
- &:indeterminate {
165
- + label {
166
- &::after {
167
- background-color: var(--dso-selectable-color, selectable-variables.$valid-marker-color);
168
- height: selectable-variables.$indeterminate-size;
169
- width: selectable-variables.$indeterminate-size;
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
- input[type="radio"] {
172
+ &:checked,
173
+ &:indeterminate {
176
174
  + label {
177
- &::before {
178
- border-radius: 50%;
175
+ &::after {
176
+ opacity: 1;
179
177
  }
178
+ }
179
+ }
180
180
 
181
+ &:checked {
182
+ + label {
181
183
  &::after {
182
- background-color: transparent;
183
- border-radius: 50%;
184
- content: "";
185
- height: 12px;
186
- left: 6px;
187
- opacity: 0;
188
- position: absolute;
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
- &:checked {
196
- + label {
197
- &::after {
198
- background-color: var(--dso-selectable-color, selectable-variables.$valid-marker-color);
199
- opacity: 1;
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
- > #{$info-selector} {
206
- float: none;
207
- margin: units.$u1 units.$u2 0 #{units.$u4 * -1};
208
- width: calc(100% + #{units.$u4});
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
- @mixin selectableBoxShadow($border-width, $color) {
213
- box-shadow: 0 0 0 $border-width $color;
214
- height: selectable-variables.$size - 2 * $border-width;
215
- left: $border-width;
216
- top: $border-width;
217
- width: selectable-variables.$size - 2 * $border-width;
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: #ddd;
9
- $link-hover-border-color: colors.$gray-lighter;
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.$gray-lighter;
17
- $nav-disabled-link-color: #a3a3a3;
18
- $nav-disabled-link-hover-color: #a3a3a3;
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.$gray-dark !default;
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
- $oranje: #e17000; // 100% tint - Normal text: WCAG AA: Fail; WCAG AAA: Fail - Large text: WCAG AA: OK; WCAG AAA: Fail;
27
- $oranje-80: #e78c32;
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
- $lichtblauw: #6ca4d9;
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
- $mauve: #8b4a6a;
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: #b62f41;
53
+ $invalid-color: $rood-110;
62
54
 
63
55
  $success-bg-color: $lime-20;
64
- $info-bg-color: #e1ecf7;
65
- $warning-bg-color: #f8f6cc;
66
- $danger-bg-color: #f5d8dc;
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: #fff;
61
+ $input-bg: $wit;
70
62
  $input-color: $grijs-90;
71
63
  $input-border: $bosgroen;
72
64
  $input-bg-disabled: $wit;