@amsterdam/design-system-css 3.0.0 → 3.2.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 +26 -0
- package/dist/accordion/accordion.css +1 -1
- package/dist/accordion/accordion.css.map +1 -1
- package/dist/badge/badge.css +1 -1
- package/dist/badge/badge.css.map +1 -1
- package/dist/blockquote/blockquote.css +1 -1
- package/dist/blockquote/blockquote.css.map +1 -1
- package/dist/breadcrumb/breadcrumb.css +1 -1
- package/dist/breadcrumb/breadcrumb.css.map +1 -1
- package/dist/button/button.css +1 -1
- package/dist/button/button.css.map +1 -1
- package/dist/date-input/date-input.css +1 -1
- package/dist/date-input/date-input.css.map +1 -1
- package/dist/description-list/description-list.css +1 -1
- package/dist/description-list/description-list.css.map +1 -1
- package/dist/dialog/dialog.css +1 -1
- package/dist/dialog/dialog.css.map +1 -1
- package/dist/document/document.css.map +1 -1
- package/dist/error-message/error-message.css +1 -1
- package/dist/error-message/error-message.css.map +1 -1
- package/dist/field-set/field-set.css +1 -1
- package/dist/field-set/field-set.css.map +1 -1
- package/dist/figure/figure.css +1 -1
- package/dist/figure/figure.css.map +1 -1
- package/dist/file-input/file-input.css +1 -1
- package/dist/file-input/file-input.css.map +1 -1
- package/dist/file-list/file-list.css +1 -1
- package/dist/file-list/file-list.css.map +1 -1
- package/dist/heading/heading.css +1 -1
- package/dist/heading/heading.css.map +1 -1
- package/dist/icon-button/icon-button.css +1 -1
- package/dist/icon-button/icon-button.css.map +1 -1
- package/dist/image-slider/image-slider.css +1 -1
- package/dist/image-slider/image-slider.css.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/link-list/link-list.css +1 -1
- package/dist/link-list/link-list.css.map +1 -1
- package/dist/menu/menu.css +1 -1
- package/dist/menu/menu.css.map +1 -1
- package/dist/ordered-list/ordered-list.css +1 -1
- package/dist/ordered-list/ordered-list.css.map +1 -1
- package/dist/page-footer/page-footer.css +1 -1
- package/dist/page-footer/page-footer.css.map +1 -1
- package/dist/page-header/page-header.css +1 -1
- package/dist/page-header/page-header.css.map +1 -1
- package/dist/page-heading/page-heading.deprecated.css +1 -1
- package/dist/page-heading/page-heading.deprecated.css.map +1 -1
- package/dist/pagination/pagination.css +1 -1
- package/dist/pagination/pagination.css.map +1 -1
- package/dist/paragraph/paragraph.css +1 -1
- package/dist/paragraph/paragraph.css.map +1 -1
- package/dist/password-input/password-input.css +1 -1
- package/dist/password-input/password-input.css.map +1 -1
- package/dist/progress-list/progress-list.css +1 -0
- package/dist/progress-list/progress-list.css.map +1 -0
- package/dist/search-field/search-field.css +1 -1
- package/dist/search-field/search-field.css.map +1 -1
- package/dist/select/select.css +1 -1
- package/dist/select/select.css.map +1 -1
- package/dist/table-of-contents/table-of-contents.css +1 -1
- package/dist/table-of-contents/table-of-contents.css.map +1 -1
- package/dist/tabs/tabs.css +1 -1
- package/dist/tabs/tabs.css.map +1 -1
- package/dist/text-area/text-area.css +1 -1
- package/dist/text-area/text-area.css.map +1 -1
- package/dist/text-input/text-input.css +1 -1
- package/dist/text-input/text-input.css.map +1 -1
- package/dist/time-input/time-input.css +1 -1
- package/dist/time-input/time-input.css.map +1 -1
- package/dist/unordered-list/unordered-list.css +1 -1
- package/dist/unordered-list/unordered-list.css.map +1 -1
- package/documentation/coding-conventions.md +6 -3
- package/package.json +4 -4
- package/src/common/resets.scss +106 -0
- package/src/components/accordion/accordion.scss +3 -10
- package/src/components/aspect-ratio/README.md +10 -8
- package/src/components/badge/badge.scss +2 -1
- package/src/components/blockquote/blockquote.scss +3 -6
- package/src/components/breadcrumb/breadcrumb.scss +3 -6
- package/src/components/button/button.scss +3 -8
- package/src/components/date-input/date-input.scss +18 -27
- package/src/components/description-list/README.md +1 -1
- package/src/components/description-list/description-list.scss +39 -17
- package/src/components/dialog/dialog.scss +5 -8
- package/src/components/document/document.scss +1 -4
- package/src/components/error-message/error-message.scss +4 -6
- package/src/components/field-set/field-set.scss +14 -34
- package/src/components/figure/figure.scss +3 -7
- package/src/components/file-input/file-input.scss +4 -8
- package/src/components/file-list/file-list.scss +3 -7
- package/src/components/heading/heading.scss +3 -5
- package/src/components/icon-button/icon-button.scss +3 -11
- package/src/components/image-slider/image-slider.scss +8 -19
- package/src/components/index.scss +1 -0
- package/src/components/link-list/link-list.scss +3 -7
- package/src/components/logo/README.md +0 -2
- package/src/components/menu/menu.scss +3 -7
- package/src/components/ordered-list/ordered-list.scss +4 -8
- package/src/components/page-footer/page-footer.scss +3 -7
- package/src/components/page-header/README.md +2 -1
- package/src/components/page-header/page-header.scss +30 -38
- package/src/components/page-heading/page-heading.deprecated.scss +3 -5
- package/src/components/pagination/pagination.scss +3 -8
- package/src/components/paragraph/paragraph.scss +4 -6
- package/src/components/password-input/password-input.scss +5 -14
- package/src/components/progress-list/README.md +14 -0
- package/src/components/progress-list/progress-list.scss +243 -0
- package/src/components/search-field/search-field.scss +5 -12
- package/src/components/select/select.scss +3 -6
- package/src/components/spotlight/README.md +7 -3
- package/src/components/table-of-contents/table-of-contents.scss +3 -7
- package/src/components/tabs/tabs.scss +4 -11
- package/src/components/text-area/text-area.scss +5 -14
- package/src/components/text-input/text-input.scss +5 -14
- package/src/components/time-input/time-input.scss +17 -24
- package/src/components/unordered-list/unordered-list.scss +3 -7
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2+
|
|
3
|
+
* Copyright Gemeente Amsterdam
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@use "../../common/breakpoint" as *;
|
|
7
|
+
@use "../../common/resets" as *;
|
|
8
|
+
|
|
9
|
+
@mixin indicator {
|
|
10
|
+
display: grid;
|
|
11
|
+
flex: none;
|
|
12
|
+
place-items: start center;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin marker-shape {
|
|
16
|
+
aspect-ratio: 1;
|
|
17
|
+
border-radius: 50%;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
display: grid;
|
|
20
|
+
place-content: center;
|
|
21
|
+
z-index: 1;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@mixin connector {
|
|
25
|
+
block-size: 100%;
|
|
26
|
+
grid-area: 1 / 1;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.ams-progress-list {
|
|
30
|
+
@include reset-ol;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Step */
|
|
34
|
+
|
|
35
|
+
.ams-progress-list__step {
|
|
36
|
+
display: flex;
|
|
37
|
+
gap: var(--ams-progress-list-step-gap);
|
|
38
|
+
|
|
39
|
+
@media screen and (min-width: $ams-breakpoint-medium) {
|
|
40
|
+
gap: var(--ams-progress-list-step-medium-gap);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* Indicator: layout container for marker and connector */
|
|
45
|
+
|
|
46
|
+
.ams-progress-list__indicator {
|
|
47
|
+
@include indicator;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Marker: layout container for shape */
|
|
51
|
+
|
|
52
|
+
.ams-progress-list__marker {
|
|
53
|
+
display: flex;
|
|
54
|
+
grid-area: 1 / 1; /* Overlaps marker and connector */
|
|
55
|
+
place-items: center;
|
|
56
|
+
|
|
57
|
+
.ams-progress-list--heading-2 & {
|
|
58
|
+
block-size: var(--ams-progress-list-heading-2-step-marker-block-size);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.ams-progress-list--heading-3 & {
|
|
62
|
+
block-size: var(--ams-progress-list-heading-3-step-marker-block-size);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.ams-progress-list--heading-4 & {
|
|
66
|
+
block-size: var(--ams-progress-list-heading-4-step-marker-block-size);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Shape: visual circle in marker */
|
|
71
|
+
|
|
72
|
+
.ams-progress-list__marker-shape {
|
|
73
|
+
background-color: var(--ams-progress-list-step-marker-shape-background-color);
|
|
74
|
+
block-size: var(--ams-progress-list-step-marker-shape-block-size);
|
|
75
|
+
border: var(--ams-progress-list-step-marker-shape-border-width)
|
|
76
|
+
var(--ams-progress-list-step-marker-shape-border-style) var(--ams-progress-list-step-marker-shape-border-color);
|
|
77
|
+
|
|
78
|
+
/* Outline adds space between shape and connector */
|
|
79
|
+
outline: var(--ams-progress-list-step-marker-shape-outline-width)
|
|
80
|
+
var(--ams-progress-list-step-marker-shape-outline-style) var(--ams-progress-list-step-marker-shape-outline-color);
|
|
81
|
+
|
|
82
|
+
@include marker-shape;
|
|
83
|
+
|
|
84
|
+
.ams-progress-list__step--completed & {
|
|
85
|
+
background-color: var(--ams-progress-list-step-completed-marker-shape-background-color);
|
|
86
|
+
border-color: var(--ams-progress-list-step-completed-marker-shape-border-color);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.ams-progress-list__step--current & {
|
|
90
|
+
background-color: var(--ams-progress-list-step-current-marker-shape-background-color);
|
|
91
|
+
border-color: var(--ams-progress-list-step-current-marker-shape-border-color);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Connector */
|
|
96
|
+
|
|
97
|
+
.ams-progress-list__connector {
|
|
98
|
+
border-inline: var(--ams-progress-list-step-connector-border-inline-width)
|
|
99
|
+
var(--ams-progress-list-step-connector-border-inline-style)
|
|
100
|
+
var(--ams-progress-list-step-connector-border-inline-color);
|
|
101
|
+
|
|
102
|
+
@include connector;
|
|
103
|
+
|
|
104
|
+
.ams-progress-list--heading-2 & {
|
|
105
|
+
margin-block-start: var(--ams-progress-list-heading-2-step-marker-margin-block-start);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.ams-progress-list--heading-3 & {
|
|
109
|
+
margin-block-start: var(--ams-progress-list-heading-3-step-marker-margin-block-start);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.ams-progress-list--heading-4 & {
|
|
113
|
+
margin-block-start: var(--ams-progress-list-heading-4-step-marker-margin-block-start);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.ams-progress-list__step--completed & {
|
|
117
|
+
border-inline-color: var(--ams-progress-list-step-completed-connector-border-inline-color);
|
|
118
|
+
border-inline-style: var(--ams-progress-list-step-completed-connector-border-inline-style);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.ams-progress-list__step--current.ams-progress-list__step--has-substeps & {
|
|
122
|
+
border-inline-color: var(--ams-progress-list-step-current-connector-border-inline-color);
|
|
123
|
+
border-inline-style: solid;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* Hide connector for last step, unless it has substeps. */
|
|
127
|
+
.ams-progress-list > :last-child:not(.ams-progress-list__step--has-substeps) & {
|
|
128
|
+
display: none;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* Content */
|
|
133
|
+
|
|
134
|
+
.ams-progress-list__content {
|
|
135
|
+
flex: auto;
|
|
136
|
+
min-inline-size: 0; /* Ensure content can shrink to fit container */
|
|
137
|
+
|
|
138
|
+
/* Add white space below all but the last step and steps with substeps. */
|
|
139
|
+
.ams-progress-list__step:not(:last-child, .ams-progress-list__step--has-substeps) & {
|
|
140
|
+
margin-block-end: var(--ams-progress-list-step-content-margin-block-end);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/* Heading */
|
|
145
|
+
|
|
146
|
+
.ams-progress-list__heading {
|
|
147
|
+
margin-block-end: var(--ams-progress-list-step-heading-margin-block-end);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* Substeps is its own block in BEM and has the same elements as above */
|
|
151
|
+
|
|
152
|
+
.ams-progress-list-substeps {
|
|
153
|
+
@include reset-ol;
|
|
154
|
+
|
|
155
|
+
* + & {
|
|
156
|
+
/* Add white space if there is content preceding substeps */
|
|
157
|
+
padding-block-start: var(--ams-progress-list-substeps-padding-block-start);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.ams-progress-list-substeps__step {
|
|
162
|
+
display: flex;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.ams-progress-list-substeps__indicator {
|
|
166
|
+
margin-inline-end: var(--ams-progress-list-substeps-step-indicator-margin-inline-end);
|
|
167
|
+
margin-inline-start: calc(
|
|
168
|
+
-1 * var(--ams-progress-list-step-gap) - var(--ams-progress-list-step-marker-shape-block-size)
|
|
169
|
+
);
|
|
170
|
+
|
|
171
|
+
@include indicator;
|
|
172
|
+
|
|
173
|
+
@media screen and (min-width: $ams-breakpoint-medium) {
|
|
174
|
+
margin-inline-end: var(--ams-progress-list-substeps-step-indicator-medium-margin-inline-end);
|
|
175
|
+
margin-inline-start: calc(
|
|
176
|
+
-1 * var(--ams-progress-list-step-medium-gap) - var(--ams-progress-list-step-marker-shape-block-size)
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.ams-progress-list-substeps__marker {
|
|
182
|
+
block-size: var(--ams-progress-list-substeps-step-marker-block-size);
|
|
183
|
+
display: grid;
|
|
184
|
+
grid-area: 1/1;
|
|
185
|
+
inline-size: var(--ams-progress-list-substeps-step-marker-inline-size);
|
|
186
|
+
place-items: center;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.ams-progress-list-substeps__marker-shape {
|
|
190
|
+
background-color: var(--ams-progress-list-substeps-step-marker-shape-background-color);
|
|
191
|
+
block-size: var(--ams-progress-list-substeps-step-marker-shape-block-size);
|
|
192
|
+
border: var(--ams-progress-list-substeps-step-marker-shape-border-width)
|
|
193
|
+
var(--ams-progress-list-substeps-step-marker-shape-border-style)
|
|
194
|
+
var(--ams-progress-list-substeps-step-marker-shape-border-color);
|
|
195
|
+
|
|
196
|
+
/* Outline is used to create space between shape and connector */
|
|
197
|
+
outline: var(--ams-progress-list-substeps-step-marker-shape-outline-width)
|
|
198
|
+
var(--ams-progress-list-substeps-step-marker-shape-outline-style)
|
|
199
|
+
var(--ams-progress-list-substeps-step-marker-shape-outline-color);
|
|
200
|
+
|
|
201
|
+
@include marker-shape;
|
|
202
|
+
|
|
203
|
+
.ams-progress-list-substeps__step--completed & {
|
|
204
|
+
background-color: var(--ams-progress-list-substeps-step-completed-marker-shape-background-color);
|
|
205
|
+
border-color: var(--ams-progress-list-substeps-step-completed-marker-shape-border-color);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.ams-progress-list-substeps__step--current & {
|
|
209
|
+
background-color: var(--ams-progress-list-substeps-step-current-marker-shape-background-color);
|
|
210
|
+
border-color: var(--ams-progress-list-substeps-step-current-marker-shape-border-color);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.ams-progress-list-substeps__connector {
|
|
215
|
+
/* Cover underlying connector of parent step to prevent it from shining through. Our value for this token is white. */
|
|
216
|
+
background-color: var(--ams-progress-list-substeps-step-connector-background-color);
|
|
217
|
+
border: var(--ams-progress-list-substeps-step-connector-border-inline-width)
|
|
218
|
+
var(--ams-progress-list-substeps-step-connector-border-inline-style)
|
|
219
|
+
var(--ams-progress-list-substeps-step-connector-border-inline-color);
|
|
220
|
+
margin-block-start: var(--ams-progress-list-substeps-step-connector-margin-block-start);
|
|
221
|
+
|
|
222
|
+
@include connector;
|
|
223
|
+
|
|
224
|
+
.ams-progress-list-substeps__step--completed & {
|
|
225
|
+
border-inline-color: var(--ams-progress-list-substeps-step-completed-connector-border-inline-color);
|
|
226
|
+
border-inline-style: var(--ams-progress-list-substeps-step-completed-connector-border-inline-style);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/* Hide connector when it belongs to the last substep of last main step. Our value for this token is white. */
|
|
230
|
+
.ams-progress-list__step:last-child .ams-progress-list-substeps__step:last-child & {
|
|
231
|
+
border-inline-color: var(--ams-progress-list-substeps-step-connector-last-child-border-inline-color);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.ams-progress-list-substeps__content {
|
|
236
|
+
/* Add white space below all substeps except for the last. Our value for this token is medium space. */
|
|
237
|
+
margin-block-end: var(--ams-progress-list-substeps-step-content-margin-block-end);
|
|
238
|
+
|
|
239
|
+
/* Add white space below the last substep. Our value for this token is large space. */
|
|
240
|
+
.ams-progress-list-substeps__step:last-child & {
|
|
241
|
+
margin-block-end: var(--ams-progress-list-substeps-last-child-content-margin-block-end);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Copyright Gemeente Amsterdam
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
@use "../../common/resets" as *;
|
|
6
7
|
@use "../../common/text-rendering" as *;
|
|
7
8
|
|
|
8
9
|
.ams-search-field {
|
|
@@ -10,14 +11,9 @@
|
|
|
10
11
|
isolation: isolate; // create new stacking context, so the input’s z-index doesn’t escape the component
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
@mixin reset-input {
|
|
14
|
-
-webkit-appearance: none; // Reset appearance for Safari < 15.4
|
|
15
|
-
appearance: none; // Reset native appearance, this causes issues on iOS and Android devices
|
|
16
|
-
border-radius: 0; // Reset rounded borders on iOS devices
|
|
17
|
-
margin-block: 0;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
14
|
.ams-search-field__input {
|
|
15
|
+
@include reset-input;
|
|
16
|
+
|
|
21
17
|
background-color: var(--ams-search-field-input-background-color);
|
|
22
18
|
border-color: var(--ams-search-field-input-border-color);
|
|
23
19
|
border-style: var(--ams-search-field-input-border-style);
|
|
@@ -35,18 +31,15 @@
|
|
|
35
31
|
touch-action: manipulation;
|
|
36
32
|
|
|
37
33
|
@include text-rendering;
|
|
38
|
-
@include reset-input;
|
|
39
34
|
|
|
40
35
|
&:focus {
|
|
41
36
|
z-index: 1; // Make sure the focus outline isn’t cut off by the adjacent button
|
|
42
37
|
}
|
|
43
38
|
}
|
|
44
39
|
|
|
45
|
-
@mixin reset-placeholder {
|
|
46
|
-
opacity: 100%; // Reset lower opacity set by Firefox
|
|
47
|
-
}
|
|
48
|
-
|
|
49
40
|
.ams-search-field__input::placeholder {
|
|
41
|
+
@include reset-placeholder;
|
|
42
|
+
|
|
50
43
|
color: var(--ams-search-field-input-placeholder-color);
|
|
51
44
|
}
|
|
52
45
|
|
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
* Copyright Gemeente Amsterdam
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
@
|
|
7
|
-
appearance: none; // Reset native appearance to hide default chevron
|
|
8
|
-
border-radius: 0; // Reset rounded borders for Safari on MacOS
|
|
9
|
-
}
|
|
6
|
+
@use "../../common/resets" as *;
|
|
10
7
|
|
|
11
8
|
.ams-select {
|
|
9
|
+
@include reset-select;
|
|
10
|
+
|
|
12
11
|
background-color: var(--ams-select-background-color);
|
|
13
12
|
border-color: var(--ams-select-border-color);
|
|
14
13
|
border-style: var(--ams-select-border-style);
|
|
@@ -24,8 +23,6 @@
|
|
|
24
23
|
padding-inline: var(--ams-select-padding-inline);
|
|
25
24
|
touch-action: manipulation;
|
|
26
25
|
|
|
27
|
-
@include reset-select;
|
|
28
|
-
|
|
29
26
|
&:not([multiple]) {
|
|
30
27
|
background-image: var(--ams-select-background-image);
|
|
31
28
|
background-position: var(--ams-select-background-position);
|
|
@@ -6,12 +6,16 @@ Emphasizes a section on a page through a distinctive background colour.
|
|
|
6
6
|
|
|
7
7
|
## Guidelines
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
|
|
9
|
+
- Use the entire width of the [Page](/docs/components-containers-page--docs) container.
|
|
10
|
+
Do not position a Spotlight on the [Grid](/docs/components-layout-grid--docs).
|
|
11
|
+
Wrap its content in a Grid with extra large vertical padding.
|
|
11
12
|
- Use any of the [highlight colours](/docs/brand-design-tokens-colour--docs) for the background.
|
|
12
13
|
The design system does not prescribe a meaning to any of these colours.
|
|
13
14
|
The default is purple.
|
|
14
|
-
|
|
15
|
+
Select [the correct colour](?path=/docs/brand-design-tokens-colour--docs#pairing-foreground-with-background-colours) for text and links against the background you choose.
|
|
16
|
+
- Find a fitting setup for the [amount and width of columns](/docs/pages-public-introduction--docs#how-to-size-the-grid-cells).
|
|
17
|
+
- By default, a Spotlight renders a `<div>` element in HTML.
|
|
18
|
+
Use the `as` prop to make your markup more semantic.
|
|
15
19
|
|
|
16
20
|
## Relevant WCAG requirements
|
|
17
21
|
|
|
@@ -4,13 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
@use "../../common/hyphenation" as *;
|
|
7
|
+
@use "../../common/resets" as *;
|
|
7
8
|
@use "../../common/text-rendering" as *;
|
|
8
9
|
|
|
9
|
-
@mixin reset-ul {
|
|
10
|
-
margin-block: 0;
|
|
11
|
-
padding-inline: 0;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
10
|
.ams-table-of-contents {
|
|
15
11
|
display: flex;
|
|
16
12
|
flex-direction: column;
|
|
@@ -22,15 +18,15 @@
|
|
|
22
18
|
}
|
|
23
19
|
|
|
24
20
|
.ams-table-of-contents__list {
|
|
21
|
+
@include reset-ul;
|
|
22
|
+
|
|
25
23
|
box-sizing: border-box;
|
|
26
24
|
display: flex;
|
|
27
25
|
flex-direction: column;
|
|
28
26
|
gap: var(--ams-table-of-contents-list-gap);
|
|
29
|
-
list-style: none;
|
|
30
27
|
|
|
31
28
|
@include hyphenation;
|
|
32
29
|
@include text-rendering;
|
|
33
|
-
@include reset-ul;
|
|
34
30
|
|
|
35
31
|
.ams-table-of-contents__list {
|
|
36
32
|
padding-block-start: var(--ams-table-of-contents-list-list-padding-block-start);
|
|
@@ -4,15 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
@use "../../common/breakpoint" as *;
|
|
7
|
-
|
|
8
|
-
@mixin reset-button {
|
|
9
|
-
background-color: transparent;
|
|
10
|
-
border: none;
|
|
11
|
-
margin-block: 0; // [1]
|
|
12
|
-
margin-inline: 0; // [1]
|
|
13
|
-
|
|
14
|
-
// [1] Remove the margin in older Safari.
|
|
15
|
-
}
|
|
7
|
+
@use "../../common/resets" as *;
|
|
16
8
|
|
|
17
9
|
.ams-tabs {
|
|
18
10
|
display: grid;
|
|
@@ -26,6 +18,9 @@
|
|
|
26
18
|
}
|
|
27
19
|
|
|
28
20
|
.ams-tabs__button {
|
|
21
|
+
@include reset-button;
|
|
22
|
+
|
|
23
|
+
background-color: transparent;
|
|
29
24
|
color: var(--ams-tabs-button-color);
|
|
30
25
|
cursor: var(--ams-tabs-button-cursor);
|
|
31
26
|
display: grid;
|
|
@@ -38,8 +33,6 @@
|
|
|
38
33
|
padding-block: var(--ams-tabs-button-padding-block);
|
|
39
34
|
padding-inline: var(--ams-tabs-button-padding-inline);
|
|
40
35
|
|
|
41
|
-
@include reset-button;
|
|
42
|
-
|
|
43
36
|
&:disabled {
|
|
44
37
|
color: var(--ams-tabs-button-disabled-color);
|
|
45
38
|
cursor: var(--ams-tabs-button-disabled-cursor);
|
|
@@ -3,16 +3,12 @@
|
|
|
3
3
|
* Copyright Gemeente Amsterdam
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
@use "../../common/resets" as *;
|
|
6
7
|
@use "../../common/text-rendering" as *;
|
|
7
8
|
|
|
8
|
-
@mixin reset-textarea {
|
|
9
|
-
-webkit-appearance: none; // Reset appearance for Safari < 15.4
|
|
10
|
-
appearance: none; // Reset native appearance, this causes issues on iOS and Android devices
|
|
11
|
-
border-radius: 0; // Reset rounded borders on iOS devices
|
|
12
|
-
margin-block: 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
9
|
.ams-text-area {
|
|
10
|
+
@include reset-textarea;
|
|
11
|
+
|
|
16
12
|
background-color: var(--ams-text-area-background-color);
|
|
17
13
|
border-color: var(--ams-text-area-border-color);
|
|
18
14
|
border-style: var(--ams-text-area-border-style);
|
|
@@ -32,17 +28,12 @@
|
|
|
32
28
|
touch-action: manipulation;
|
|
33
29
|
|
|
34
30
|
@include text-rendering;
|
|
35
|
-
@include reset-textarea;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@mixin reset-placeholder {
|
|
39
|
-
opacity: 100%; // Reset lower opacity set by Firefox
|
|
40
31
|
}
|
|
41
32
|
|
|
42
33
|
.ams-text-area::placeholder {
|
|
43
|
-
color: var(--ams-text-area-placeholder-color);
|
|
44
|
-
|
|
45
34
|
@include reset-placeholder;
|
|
35
|
+
|
|
36
|
+
color: var(--ams-text-area-placeholder-color);
|
|
46
37
|
}
|
|
47
38
|
|
|
48
39
|
.ams-text-area:disabled {
|
|
@@ -3,16 +3,12 @@
|
|
|
3
3
|
* Copyright Gemeente Amsterdam
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
@use "../../common/resets" as *;
|
|
6
7
|
@use "../../common/text-rendering" as *;
|
|
7
8
|
|
|
8
|
-
@mixin reset-input {
|
|
9
|
-
-webkit-appearance: none; // Reset appearance for Safari < 15.4
|
|
10
|
-
appearance: none; // Reset native appearance, this causes issues on iOS and Android devices
|
|
11
|
-
border-radius: 0; // Reset rounded borders on iOS devices
|
|
12
|
-
margin-block: 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
9
|
.ams-text-input {
|
|
10
|
+
@include reset-input;
|
|
11
|
+
|
|
16
12
|
background-color: var(--ams-text-input-background-color);
|
|
17
13
|
border-color: var(--ams-text-input-border-color);
|
|
18
14
|
border-style: var(--ams-text-input-border-style);
|
|
@@ -30,21 +26,16 @@
|
|
|
30
26
|
touch-action: manipulation;
|
|
31
27
|
|
|
32
28
|
@include text-rendering;
|
|
33
|
-
@include reset-input;
|
|
34
29
|
}
|
|
35
30
|
|
|
36
31
|
.ams-text-input:not([size]) {
|
|
37
32
|
inline-size: 100%;
|
|
38
33
|
}
|
|
39
34
|
|
|
40
|
-
@mixin reset-placeholder {
|
|
41
|
-
opacity: 100%; // Reset lower opacity set by Firefox
|
|
42
|
-
}
|
|
43
|
-
|
|
44
35
|
.ams-text-input::placeholder {
|
|
45
|
-
color: var(--ams-text-input-placeholder-color);
|
|
46
|
-
|
|
47
36
|
@include reset-placeholder;
|
|
37
|
+
|
|
38
|
+
color: var(--ams-text-input-placeholder-color);
|
|
48
39
|
}
|
|
49
40
|
|
|
50
41
|
.ams-text-input:disabled {
|
|
@@ -3,27 +3,12 @@
|
|
|
3
3
|
* Copyright Gemeente Amsterdam
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
@use "../../common/resets" as *;
|
|
6
7
|
@use "../../common/text-rendering" as *;
|
|
7
8
|
|
|
8
|
-
@mixin reset-input {
|
|
9
|
-
-webkit-appearance: none; // Reset appearance for Safari < 15.4
|
|
10
|
-
appearance: none; // Reset native appearance, this causes issues on iOS and Android devices
|
|
11
|
-
border-radius: 0; // Reset rounded borders on iOS devices
|
|
12
|
-
inline-size: auto; // Reset inline size of 10em set by Android devices
|
|
13
|
-
margin-block: 0;
|
|
14
|
-
|
|
15
|
-
&::-webkit-datetime-edit,
|
|
16
|
-
&::-webkit-datetime-edit-ampm-field,
|
|
17
|
-
&::-webkit-datetime-edit-fields-wrapper,
|
|
18
|
-
&::-webkit-datetime-edit-hour-field,
|
|
19
|
-
&::-webkit-datetime-edit-millisecond-field,
|
|
20
|
-
&::-webkit-datetime-edit-minute-field,
|
|
21
|
-
&::-webkit-datetime-edit-second-field {
|
|
22
|
-
padding-block: 0; // Override value of 1px in UA stylesheet
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
9
|
.ams-time-input {
|
|
10
|
+
@include reset-input;
|
|
11
|
+
|
|
27
12
|
background-color: var(--ams-time-input-background-color);
|
|
28
13
|
border-color: var(--ams-time-input-border-color);
|
|
29
14
|
border-style: var(--ams-time-input-border-style);
|
|
@@ -33,6 +18,9 @@
|
|
|
33
18
|
font-family: var(--ams-time-input-font-family);
|
|
34
19
|
font-size: var(--ams-time-input-font-size);
|
|
35
20
|
font-weight: var(--ams-time-input-font-weight);
|
|
21
|
+
|
|
22
|
+
// Reset inline size of 10em set by Android devices.
|
|
23
|
+
inline-size: auto;
|
|
36
24
|
line-height: var(--ams-time-input-line-height);
|
|
37
25
|
|
|
38
26
|
// Set min block size for iOS, otherwise an empty box is a lot smaller than a filled one.
|
|
@@ -48,7 +36,17 @@
|
|
|
48
36
|
touch-action: manipulation;
|
|
49
37
|
|
|
50
38
|
@include text-rendering;
|
|
51
|
-
|
|
39
|
+
|
|
40
|
+
// Reset padding on webkit time edit fields to override the value of 1px in the UA stylesheet.
|
|
41
|
+
&::-webkit-datetime-edit,
|
|
42
|
+
&::-webkit-datetime-edit-ampm-field,
|
|
43
|
+
&::-webkit-datetime-edit-fields-wrapper,
|
|
44
|
+
&::-webkit-datetime-edit-hour-field,
|
|
45
|
+
&::-webkit-datetime-edit-millisecond-field,
|
|
46
|
+
&::-webkit-datetime-edit-minute-field,
|
|
47
|
+
&::-webkit-datetime-edit-second-field {
|
|
48
|
+
padding-block: 0;
|
|
49
|
+
}
|
|
52
50
|
}
|
|
53
51
|
|
|
54
52
|
// This changes the default calendar icon on Chromium browsers only
|
|
@@ -67,11 +65,6 @@
|
|
|
67
65
|
cursor: var(--ams-time-input-disabled-cursor);
|
|
68
66
|
}
|
|
69
67
|
|
|
70
|
-
.ams-time-input:disabled::-webkit-calendar-picker-indicator {
|
|
71
|
-
background-image: var(--ams-time-input-disabled-calendar-picker-indicator-background-image);
|
|
72
|
-
visibility: visible;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
68
|
.ams-time-input:not(:disabled):invalid,
|
|
76
69
|
.ams-time-input:not(:disabled)[aria-invalid="true"] {
|
|
77
70
|
border-color: var(--ams-time-input-invalid-border-color);
|
|
@@ -4,22 +4,18 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
@use "../../common/hyphenation" as *;
|
|
7
|
+
@use "../../common/resets" as *;
|
|
7
8
|
@use "../../common/text-rendering" as *;
|
|
8
9
|
|
|
9
|
-
@mixin reset-ul {
|
|
10
|
-
list-style: none;
|
|
11
|
-
margin-block: 0;
|
|
12
|
-
padding-inline-start: 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
10
|
.ams-unordered-list {
|
|
11
|
+
@include reset-ul;
|
|
12
|
+
|
|
16
13
|
box-sizing: border-box;
|
|
17
14
|
display: grid;
|
|
18
15
|
gap: var(--ams-unordered-list-gap);
|
|
19
16
|
|
|
20
17
|
@include hyphenation;
|
|
21
18
|
@include text-rendering;
|
|
22
|
-
@include reset-ul;
|
|
23
19
|
}
|
|
24
20
|
|
|
25
21
|
.ams-unordered-list:not(.ams-unordered-list--no-markers) {
|