@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
|
@@ -4,15 +4,12 @@
|
|
|
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: 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
10
|
.ams-file-list {
|
|
11
|
+
@include reset-ul;
|
|
12
|
+
|
|
16
13
|
display: flex;
|
|
17
14
|
flex-direction: column;
|
|
18
15
|
gap: var(--ams-file-list-gap);
|
|
@@ -20,7 +17,6 @@
|
|
|
20
17
|
|
|
21
18
|
@include hyphenation;
|
|
22
19
|
@include text-rendering;
|
|
23
|
-
@include reset-ul;
|
|
24
20
|
}
|
|
25
21
|
|
|
26
22
|
.ams-file-list__item {
|
|
@@ -4,13 +4,12 @@
|
|
|
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-hx {
|
|
10
|
-
margin-block: 0;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
10
|
.ams-heading {
|
|
11
|
+
@include reset-hx;
|
|
12
|
+
|
|
14
13
|
box-sizing: border-box;
|
|
15
14
|
|
|
16
15
|
/*
|
|
@@ -33,7 +32,6 @@
|
|
|
33
32
|
|
|
34
33
|
@include hyphenation;
|
|
35
34
|
@include text-rendering;
|
|
36
|
-
@include reset-hx;
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
.ams-heading--1 {
|
|
@@ -3,17 +3,11 @@
|
|
|
3
3
|
* Copyright Gemeente Amsterdam
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
@
|
|
7
|
-
border: none;
|
|
8
|
-
margin-block: 0; // [1]
|
|
9
|
-
margin-inline: 0; // [1]
|
|
10
|
-
padding-block: 0;
|
|
11
|
-
padding-inline: 0;
|
|
12
|
-
|
|
13
|
-
// [1] Remove the margin in older Safari.
|
|
14
|
-
}
|
|
6
|
+
@use "../../common/resets" as *;
|
|
15
7
|
|
|
16
8
|
.ams-icon-button {
|
|
9
|
+
@include reset-button;
|
|
10
|
+
|
|
17
11
|
background-color: transparent;
|
|
18
12
|
color: var(--ams-icon-button-color);
|
|
19
13
|
cursor: var(--ams-icon-button-cursor);
|
|
@@ -21,8 +15,6 @@
|
|
|
21
15
|
outline-offset: var(--ams-icon-button-outline-offset);
|
|
22
16
|
touch-action: manipulation;
|
|
23
17
|
|
|
24
|
-
@include reset-button;
|
|
25
|
-
|
|
26
18
|
&:hover {
|
|
27
19
|
background-color: var(--ams-icon-button-hover-background-color);
|
|
28
20
|
color: var(--ams-icon-button-hover-color);
|
|
@@ -4,21 +4,16 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
@use "../../common/breakpoint" as *;
|
|
7
|
+
@use "../../common/resets" as *;
|
|
7
8
|
|
|
8
9
|
.ams-image-slider {
|
|
9
10
|
display: grid;
|
|
10
11
|
gap: var(--ams-image-slider-gap);
|
|
11
|
-
grid-template-rows: 1fr auto;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.ams-image-
|
|
14
|
+
.ams-image-slider__slide {
|
|
15
15
|
scroll-snap-align: center;
|
|
16
16
|
scroll-snap-stop: always;
|
|
17
|
-
|
|
18
|
-
/** temporary fix for covering the entire gallery */
|
|
19
|
-
.ams-image {
|
|
20
|
-
inline-size: 100%;
|
|
21
|
-
}
|
|
22
17
|
}
|
|
23
18
|
|
|
24
19
|
.ams-image-slider__scroller {
|
|
@@ -76,17 +71,11 @@
|
|
|
76
71
|
display: grid;
|
|
77
72
|
gap: var(--ams-image-slider-thumbnails-gap);
|
|
78
73
|
grid-template-columns: repeat(5, 1fr);
|
|
79
|
-
max-inline-size: 100%;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
@mixin reset-button {
|
|
83
|
-
border: none;
|
|
84
|
-
border-radius: 0; // Reset rounded borders on iOS devices
|
|
85
|
-
padding-block: 0;
|
|
86
|
-
padding-inline: 0;
|
|
87
74
|
}
|
|
88
75
|
|
|
89
76
|
.ams-image-slider__thumbnail {
|
|
77
|
+
@include reset-button;
|
|
78
|
+
|
|
90
79
|
aspect-ratio: var(--ams-image-aspect-ratio); // Use the same default aspect ratio as the Image component
|
|
91
80
|
background-color: var(--ams-image-slider-thumbnails-thumbnail-background-color);
|
|
92
81
|
background-position: center;
|
|
@@ -94,10 +83,6 @@
|
|
|
94
83
|
cursor: var(--ams-image-slider-thumbnails-thumbnail-cursor);
|
|
95
84
|
opacity: var(--ams-image-slider-thumbnails-thumbnail-opacity);
|
|
96
85
|
outline-offset: var(--ams-button-outline-offset);
|
|
97
|
-
position: relative;
|
|
98
|
-
scroll-snap-align: start;
|
|
99
|
-
|
|
100
|
-
@include reset-button;
|
|
101
86
|
|
|
102
87
|
&:hover {
|
|
103
88
|
opacity: var(--ams-image-slider-thumbnails-thumbnail-hover-opacity);
|
|
@@ -107,3 +92,7 @@
|
|
|
107
92
|
.ams-image-slider__thumbnail--in-view {
|
|
108
93
|
opacity: var(--ams-image-slider-thumbnails-thumbnail-in-view-opacity);
|
|
109
94
|
}
|
|
95
|
+
|
|
96
|
+
.ams-image-slider__figure {
|
|
97
|
+
margin-block-end: var(--ams-image-slider-figure-margin-block-end);
|
|
98
|
+
}
|
|
@@ -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-link-list {
|
|
11
|
+
@include reset-ul;
|
|
12
|
+
|
|
16
13
|
box-sizing: border-box;
|
|
17
14
|
display: grid;
|
|
18
15
|
gap: var(--ams-link-list-gap);
|
|
19
16
|
|
|
20
17
|
@include hyphenation;
|
|
21
18
|
@include text-rendering;
|
|
22
|
-
@include reset-ul;
|
|
23
19
|
}
|
|
24
20
|
|
|
25
21
|
.ams-link-list__link {
|
|
@@ -11,8 +11,6 @@ The design system provides the correct logo for online use.
|
|
|
11
11
|
Other logo variations exist, but they cannot be used on our websites.
|
|
12
12
|
The Dutch logo is for websites in the Dutch language and any language other than English.
|
|
13
13
|
The English logo is used for websites in the English language.
|
|
14
|
-
(We will add this logo to the design system later.)
|
|
15
|
-
In the meantime, you can download an image of this logo from [Stijlweb](https://amsterdam.nl/stijlweb/basiselementen/logo-gemeente-amsterdam/#hba498e5c-2388-464f-b769-7622a5d32bd1).
|
|
16
14
|
|
|
17
15
|
## Exception
|
|
18
16
|
|
|
@@ -5,14 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
@use "../../common/breakpoint" as *;
|
|
7
7
|
@use "../../common/hyphenation" as *;
|
|
8
|
+
@use "../../common/resets" as *;
|
|
8
9
|
@use "../../common/text-rendering" as *;
|
|
9
10
|
|
|
10
|
-
@mixin reset-ul {
|
|
11
|
-
list-style: none;
|
|
12
|
-
margin-block: 0;
|
|
13
|
-
padding-inline-start: 0;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
11
|
.ams-menu {
|
|
17
12
|
background-color: var(--ams-menu-background-color);
|
|
18
13
|
font-family: var(--ams-menu-font-family);
|
|
@@ -51,11 +46,12 @@
|
|
|
51
46
|
}
|
|
52
47
|
|
|
53
48
|
.ams-menu__list {
|
|
49
|
+
@include reset-ul;
|
|
50
|
+
|
|
54
51
|
display: grid;
|
|
55
52
|
|
|
56
53
|
@include hyphenation;
|
|
57
54
|
@include text-rendering;
|
|
58
|
-
@include reset-ul;
|
|
59
55
|
|
|
60
56
|
@media screen and (min-width: $ams-breakpoint-wide) {
|
|
61
57
|
gap: var(--ams-menu-list-gap);
|
|
@@ -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-ol {
|
|
10
|
-
list-style-type: none;
|
|
11
|
-
margin-block: 0;
|
|
12
|
-
padding-inline-start: 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
10
|
.ams-ordered-list {
|
|
11
|
+
@include reset-ol;
|
|
12
|
+
|
|
16
13
|
box-sizing: border-box;
|
|
17
14
|
display: grid;
|
|
18
15
|
gap: var(--ams-ordered-list-gap);
|
|
19
16
|
|
|
20
|
-
@include text-rendering;
|
|
21
17
|
@include hyphenation;
|
|
22
|
-
@include
|
|
18
|
+
@include text-rendering;
|
|
23
19
|
}
|
|
24
20
|
|
|
25
21
|
.ams-ordered-list:not(.ams-ordered-list--no-markers) {
|
|
@@ -5,18 +5,16 @@
|
|
|
5
5
|
|
|
6
6
|
@use "../../common/breakpoint" as *;
|
|
7
7
|
@use "../../common/hyphenation" as *;
|
|
8
|
+
@use "../../common/resets" as *;
|
|
8
9
|
@use "../../common/text-rendering" as *;
|
|
9
10
|
|
|
10
|
-
@mixin reset-ul {
|
|
11
|
-
list-style: none;
|
|
12
|
-
margin-block: 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
11
|
.ams-page-footer__spotlight {
|
|
16
12
|
background-color: var(--ams-page-footer-spotlight-background-color);
|
|
17
13
|
}
|
|
18
14
|
|
|
19
15
|
.ams-page-footer__menu {
|
|
16
|
+
@include reset-ul;
|
|
17
|
+
|
|
20
18
|
column-gap: var(--ams-page-footer-menu-column-gap);
|
|
21
19
|
display: flex;
|
|
22
20
|
flex-wrap: wrap;
|
|
@@ -24,8 +22,6 @@
|
|
|
24
22
|
padding-inline: var(--ams-page-footer-menu-padding-inline);
|
|
25
23
|
row-gap: var(--ams-page-footer-menu-row-gap);
|
|
26
24
|
|
|
27
|
-
@include reset-ul;
|
|
28
|
-
|
|
29
25
|
@media screen and (min-width: $ams-breakpoint-medium) {
|
|
30
26
|
padding-inline: var(--ams-page-footer-menu-medium-padding-inline);
|
|
31
27
|
}
|
|
@@ -19,7 +19,8 @@ Includes the name of the website if it is not the general one.
|
|
|
19
19
|
- On narrow windows, links can move from the inline menu to the collapsible one.
|
|
20
20
|
- Labels should be short to help the inline menu fit on a single line whenever possible.
|
|
21
21
|
- An icon can be added to the end of a link to make its destination easier to guess.
|
|
22
|
-
- For websites with a brand name that feature the standard Amsterdam logo, only the emblem is shown
|
|
22
|
+
- For websites with a brand name that feature the standard Amsterdam logo, only the emblem is shown in narrow windows.
|
|
23
|
+
- An abbreviated brand name can be shown in narrow or medium-wide windows if the full name does not fit.
|
|
23
24
|
- If the collapsible menu contains [Headings](https://designsystem.amsterdam/?path=/docs/components-text-heading--docs), give them level 2 and a size of ‘level-3’.
|
|
24
25
|
- There’s no need to add whitespace to the Grid in the collapsible menu.
|
|
25
26
|
Its container already does this.
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
@use "../../common/breakpoint" as *;
|
|
7
|
+
@use "../../common/resets" as *;
|
|
7
8
|
@use "../../common/text-rendering" as *;
|
|
8
9
|
|
|
9
10
|
.ams-page-header {
|
|
@@ -64,7 +65,8 @@
|
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
67
|
|
|
67
|
-
.ams-page-header__brand-name
|
|
68
|
+
.ams-page-header__brand-name,
|
|
69
|
+
.ams-page-header__brand-name-short {
|
|
68
70
|
color: var(--ams-page-header-brand-name-color);
|
|
69
71
|
font-size: var(--ams-page-header-brand-name-font-size);
|
|
70
72
|
font-weight: var(--ams-page-header-brand-name-font-weight);
|
|
@@ -78,6 +80,20 @@
|
|
|
78
80
|
text-wrap: var(--ams-page-header-brand-name-text-wrap);
|
|
79
81
|
}
|
|
80
82
|
|
|
83
|
+
.ams-page-header__brand-name-short {
|
|
84
|
+
@media screen and (min-width: $ams-breakpoint-wide) {
|
|
85
|
+
display: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
& + .ams-page-header__brand-name {
|
|
89
|
+
display: none;
|
|
90
|
+
|
|
91
|
+
@media screen and (min-width: $ams-breakpoint-wide) {
|
|
92
|
+
display: initial;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
81
97
|
.ams-page-header__navigation {
|
|
82
98
|
column-gap: var(--ams-page-header-navigation-column-gap);
|
|
83
99
|
display: flex;
|
|
@@ -89,13 +105,9 @@
|
|
|
89
105
|
row-gap: var(--ams-page-header-navigation-row-gap);
|
|
90
106
|
}
|
|
91
107
|
|
|
92
|
-
@mixin reset-list {
|
|
93
|
-
list-style: none;
|
|
94
|
-
margin-block: 0;
|
|
95
|
-
padding-inline-start: 0;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
108
|
.ams-page-header__menu {
|
|
109
|
+
@include reset-ul;
|
|
110
|
+
|
|
99
111
|
align-items: center;
|
|
100
112
|
column-gap: var(--ams-page-header-menu-column-gap);
|
|
101
113
|
display: flex;
|
|
@@ -104,8 +116,6 @@
|
|
|
104
116
|
margin-inline-start: auto;
|
|
105
117
|
pointer-events: auto; // Set pointer events back to auto to allow the menu to be activated
|
|
106
118
|
row-gap: var(--ams-page-header-menu-row-gap);
|
|
107
|
-
|
|
108
|
-
@include reset-list;
|
|
109
119
|
}
|
|
110
120
|
|
|
111
121
|
// Do not show menu items below the wide breakpoint...
|
|
@@ -121,7 +131,6 @@
|
|
|
121
131
|
}
|
|
122
132
|
|
|
123
133
|
@mixin page-header-menu-action {
|
|
124
|
-
color: var(--ams-page-header-menu-item-color);
|
|
125
134
|
font-size: var(--ams-page-header-menu-item-font-size);
|
|
126
135
|
font-weight: var(--ams-page-header-menu-item-font-weight);
|
|
127
136
|
line-height: var(--ams-page-header-menu-item-line-height);
|
|
@@ -138,6 +147,7 @@
|
|
|
138
147
|
}
|
|
139
148
|
|
|
140
149
|
.ams-page-header__menu-link {
|
|
150
|
+
color: var(--ams-page-header-menu-link-color);
|
|
141
151
|
display: inline-flex;
|
|
142
152
|
gap: var(--ams-page-header-menu-link-gap);
|
|
143
153
|
text-decoration-line: var(--ams-page-header-menu-link-text-decoration-line);
|
|
@@ -161,47 +171,29 @@
|
|
|
161
171
|
}
|
|
162
172
|
}
|
|
163
173
|
|
|
164
|
-
@mixin reset-button {
|
|
165
|
-
background: none;
|
|
166
|
-
border: none;
|
|
167
|
-
margin-block: 0; // [1]
|
|
168
|
-
margin-inline: 0; // [1]
|
|
169
|
-
padding-inline: 0;
|
|
170
|
-
|
|
171
|
-
// [1] Remove the margin in older Safari.
|
|
172
|
-
}
|
|
173
|
-
|
|
174
174
|
.ams-page-header__mega-menu-button {
|
|
175
|
+
@include reset-button;
|
|
176
|
+
|
|
177
|
+
background-color: var(--ams-page-header-mega-menu-button-background-color);
|
|
178
|
+
color: var(--ams-page-header-mega-menu-button-color);
|
|
175
179
|
column-gap: var(--ams-page-header-menu-item-column-gap);
|
|
176
180
|
cursor: var(--ams-page-header-mega-menu-button-cursor);
|
|
177
181
|
display: grid;
|
|
178
182
|
font-family: inherit;
|
|
179
183
|
grid-auto-flow: column;
|
|
184
|
+
padding-inline: var(--ams-page-header-mega-menu-button-padding-inline);
|
|
180
185
|
|
|
181
186
|
@include page-header-menu-action;
|
|
182
|
-
@include reset-button;
|
|
183
|
-
}
|
|
184
187
|
|
|
185
|
-
|
|
186
|
-
|
|
188
|
+
&:hover {
|
|
189
|
+
background-color: var(--ams-page-header-mega-menu-button-hover-background-color);
|
|
190
|
+
color: var(--ams-page-header-mega-menu-button-hover-color);
|
|
191
|
+
}
|
|
187
192
|
}
|
|
188
193
|
|
|
189
194
|
.ams-page-header__mega-menu-button-label,
|
|
190
195
|
.ams-page-header__mega-menu-button-hidden-label {
|
|
191
|
-
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
// This hidden label is used to prevent a layout shift when the mega menu is opened
|
|
195
|
-
// and the button text becomes bold.
|
|
196
|
-
.ams-page-header__mega-menu-button-hidden-label {
|
|
197
|
-
font-weight: var(--ams-page-header-mega-menu-button-label-open-font-weight);
|
|
198
|
-
pointer-events: none;
|
|
199
|
-
-webkit-user-select: none;
|
|
200
|
-
|
|
201
|
-
/* Safari support is added with the prefixed property. */
|
|
202
|
-
/* stylelint-disable-next-line plugin/use-baseline */
|
|
203
|
-
user-select: none;
|
|
204
|
-
visibility: hidden;
|
|
196
|
+
/* @deprecated These class names will be removed in 6.0.0. */
|
|
205
197
|
}
|
|
206
198
|
|
|
207
199
|
.ams-page-header__menu-icon-top,
|
|
@@ -4,14 +4,13 @@
|
|
|
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-h1 {
|
|
10
|
-
margin-block: 0;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
10
|
/* @deprecated We no longer use this size of headings. Use `.ams-heading.ams-heading--1` instead. */
|
|
14
11
|
.ams-page-heading {
|
|
12
|
+
@include reset-hx;
|
|
13
|
+
|
|
15
14
|
box-sizing: border-box;
|
|
16
15
|
/* stylelint-disable-next-line plugin/use-baseline */
|
|
17
16
|
break-after: avoid;
|
|
@@ -26,7 +25,6 @@
|
|
|
26
25
|
|
|
27
26
|
@include hyphenation;
|
|
28
27
|
@include text-rendering;
|
|
29
|
-
@include reset-h1;
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
.ams-page-heading--inverse {
|
|
@@ -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-pagination {
|
|
@@ -15,17 +16,11 @@
|
|
|
15
16
|
line-height: var(--ams-pagination-line-height);
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
@mixin reset-ol {
|
|
19
|
-
list-style-type: none;
|
|
20
|
-
margin-block: 0;
|
|
21
|
-
padding-inline-start: 0;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
19
|
.ams-pagination__list {
|
|
20
|
+
@include reset-ol;
|
|
21
|
+
|
|
25
22
|
display: flex;
|
|
26
23
|
flex-wrap: wrap;
|
|
27
|
-
|
|
28
|
-
@include reset-ol;
|
|
29
24
|
}
|
|
30
25
|
|
|
31
26
|
.ams-pagination__link {
|
|
@@ -4,13 +4,12 @@
|
|
|
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-p {
|
|
10
|
-
margin-block: 0;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
10
|
.ams-paragraph {
|
|
11
|
+
@include reset-p;
|
|
12
|
+
|
|
14
13
|
box-sizing: border-box;
|
|
15
14
|
color: var(--ams-paragraph-color);
|
|
16
15
|
font-family: var(--ams-paragraph-font-family);
|
|
@@ -18,9 +17,8 @@
|
|
|
18
17
|
font-weight: var(--ams-paragraph-font-weight);
|
|
19
18
|
line-height: var(--ams-paragraph-line-height);
|
|
20
19
|
|
|
21
|
-
@include text-rendering;
|
|
22
20
|
@include hyphenation;
|
|
23
|
-
@include
|
|
21
|
+
@include text-rendering;
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
.ams-paragraph--large {
|
|
@@ -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-password-input {
|
|
10
|
+
@include reset-input;
|
|
11
|
+
|
|
16
12
|
background-color: var(--ams-password-input-background-color);
|
|
17
13
|
border-color: var(--ams-password-input-border-color);
|
|
18
14
|
border-style: var(--ams-password-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-password-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-password-input::placeholder {
|
|
45
|
-
color: var(--ams-password-input-placeholder-color);
|
|
46
|
-
|
|
47
36
|
@include reset-placeholder;
|
|
37
|
+
|
|
38
|
+
color: var(--ams-password-input-placeholder-color);
|
|
48
39
|
}
|
|
49
40
|
|
|
50
41
|
.ams-password-input:disabled {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- @license CC0-1.0 -->
|
|
2
|
+
|
|
3
|
+
# Progress List
|
|
4
|
+
|
|
5
|
+
Displays the progress of a sequence of steps, with optional additional details per step.
|
|
6
|
+
|
|
7
|
+
## Guidelines
|
|
8
|
+
|
|
9
|
+
- Choose the correct level for the steps’ headings.
|
|
10
|
+
- Assign a status to each step: _completed_ or _current_.
|
|
11
|
+
Steps without a status are considered _upcoming_.
|
|
12
|
+
- Maintain a correct chronological order.
|
|
13
|
+
Only one step may be _current_; preceding steps must be _completed_.
|
|
14
|
+
- Progress List must only be used on a white background.
|