@amsterdam/design-system-css 0.14.1 → 0.15.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 +51 -0
- package/README.md +2 -0
- package/dist/accordion/accordion.css +1 -1
- package/dist/accordion/accordion.css.map +1 -1
- package/dist/action-group/action-group.css +1 -1
- package/dist/action-group/action-group.css.map +1 -1
- package/dist/alert/alert.css +1 -1
- package/dist/alert/alert.css.map +1 -1
- package/dist/aspect-ratio/aspect-ratio.css +1 -1
- package/dist/aspect-ratio/aspect-ratio.css.map +1 -1
- package/dist/avatar/avatar.css +1 -1
- package/dist/avatar/avatar.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/breakout/breakout.css +1 -1
- package/dist/breakout/breakout.css.map +1 -1
- package/dist/button/button.css +1 -1
- package/dist/button/button.css.map +1 -1
- package/dist/card/card.css +1 -1
- package/dist/card/card.css.map +1 -1
- package/dist/character-count/character-count.css +1 -1
- package/dist/character-count/character-count.css.map +1 -1
- package/dist/checkbox/checkbox.css +1 -1
- package/dist/checkbox/checkbox.css.map +1 -1
- package/dist/column/column.css +1 -1
- package/dist/column/column.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/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/footer/footer.css +1 -1
- package/dist/footer/footer.css.map +1 -1
- package/dist/gap/gap.css +1 -1
- package/dist/gap/gap.css.map +1 -1
- package/dist/grid/grid.css +1 -1
- package/dist/grid/grid.css.map +1 -1
- package/dist/header/header.css +1 -1
- package/dist/header/header.css.map +1 -1
- package/dist/heading/heading.css +1 -1
- package/dist/heading/heading.css.map +1 -1
- package/dist/icon/icon.css +1 -1
- package/dist/icon/icon.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/invalid-form-alert/invalid-form-alert.css +1 -0
- package/dist/invalid-form-alert/invalid-form-alert.css.map +1 -0
- package/dist/label/label.css +1 -1
- package/dist/label/label.css.map +1 -1
- package/dist/link/link.css +1 -1
- package/dist/link/link.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/margin/margin.css +1 -1
- package/dist/margin/margin.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-heading/page-heading.css +1 -1
- package/dist/page-heading/page-heading.css.map +1 -1
- package/dist/page-menu/page-menu.css +1 -1
- package/dist/page-menu/page-menu.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/radio/radio.css +1 -1
- package/dist/radio/radio.css.map +1 -1
- package/dist/row/row.css +1 -1
- package/dist/row/row.css.map +1 -1
- 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/spotlight/spotlight.css +1 -1
- package/dist/spotlight/spotlight.css.map +1 -1
- package/dist/switch/switch.css +1 -1
- package/dist/switch/switch.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/top-task-link/top-task-link.css +1 -1
- package/dist/top-task-link/top-task-link.css.map +1 -1
- package/dist/unordered-list/unordered-list.css +1 -1
- package/dist/unordered-list/unordered-list.css.map +1 -1
- package/package.json +4 -4
- package/src/common/hyphenation.scss +3 -3
- package/src/components/accordion/accordion.scss +5 -6
- package/src/components/action-group/README.md +1 -1
- package/src/components/action-group/action-group.scss +1 -1
- package/src/components/alert/README.md +13 -15
- package/src/components/alert/alert.scss +29 -14
- package/src/components/aspect-ratio/README.md +8 -8
- package/src/components/aspect-ratio/aspect-ratio.scss +6 -3
- package/src/components/avatar/README.md +5 -4
- package/src/components/avatar/avatar.scss +8 -46
- package/src/components/badge/README.md +7 -6
- package/src/components/badge/badge.scss +13 -40
- package/src/components/blockquote/blockquote.scss +1 -1
- package/src/components/breadcrumb/breadcrumb.scss +2 -0
- package/src/components/breakout/breakout.scss +4 -4
- package/src/components/button/README.md +1 -1
- package/src/components/button/button.scss +4 -1
- package/src/components/card/card.scss +19 -22
- package/src/components/character-count/character-count.scss +2 -0
- package/src/components/checkbox/checkbox.scss +6 -7
- package/src/components/column/column.scss +9 -8
- package/src/components/date-input/date-input.scss +3 -4
- package/src/components/description-list/description-list.scss +12 -10
- package/src/components/dialog/dialog.scss +17 -5
- package/src/components/error-message/error-message.scss +2 -0
- package/src/components/field-set/field-set.scss +1 -1
- package/src/components/figure/figure.scss +3 -1
- package/src/components/file-input/file-input.scss +2 -2
- package/src/components/file-list/file-list.scss +2 -1
- package/src/components/footer/README.md +3 -2
- package/src/components/footer/footer.scss +41 -2
- package/src/components/gap/README.md +13 -9
- package/src/components/gap/gap.scss +8 -12
- package/src/components/grid/_mixins.scss +14 -12
- package/src/components/header/README.md +1 -0
- package/src/components/header/header.scss +30 -18
- package/src/components/heading/README.md +7 -7
- package/src/components/heading/heading.scss +19 -19
- package/src/components/icon/README.md +5 -5
- package/src/components/icon/icon.scss +42 -29
- package/src/components/icon-button/icon-button.scss +16 -15
- package/src/components/image-slider/image-slider.scss +11 -3
- package/src/components/index.scss +1 -1
- package/src/components/{form-error-list → invalid-form-alert}/README.md +9 -9
- package/src/components/{form-error-list/form-error-list.scss → invalid-form-alert/invalid-form-alert.scss} +4 -4
- package/src/components/link/README.md +1 -2
- package/src/components/link/link.scss +9 -20
- package/src/components/link-list/link-list.scss +7 -8
- package/src/components/margin/README.md +16 -10
- package/src/components/margin/margin.scss +6 -8
- package/src/components/ordered-list/ordered-list.scss +3 -1
- package/src/components/page-heading/page-heading.scss +1 -1
- package/src/components/page-menu/page-menu.scss +0 -2
- package/src/components/pagination/pagination.scss +23 -34
- package/src/components/paragraph/paragraph.scss +3 -1
- package/src/components/password-input/password-input.scss +2 -3
- package/src/components/radio/radio.scss +4 -5
- package/src/components/row/row.scss +9 -9
- package/src/components/screen/README.md +6 -6
- package/src/components/search-field/search-field.scss +2 -3
- package/src/components/select/select.scss +2 -2
- package/src/components/spotlight/README.md +5 -2
- package/src/components/spotlight/spotlight.scss +6 -10
- package/src/components/switch/switch.scss +2 -2
- package/src/components/table-of-contents/table-of-contents.scss +2 -0
- package/src/components/tabs/tabs.scss +6 -3
- package/src/components/text-area/text-area.scss +1 -2
- package/src/components/text-input/text-input.scss +2 -3
- package/src/components/time-input/time-input.scss +3 -4
- package/src/components/top-task-link/top-task-link.scss +3 -3
- package/src/components/unordered-list/unordered-list.scss +3 -1
- package/dist/form-error-list/form-error-list.css +0 -1
- package/dist/form-error-list/form-error-list.css.map +0 -1
- package/src/common/size.scss +0 -14
|
@@ -7,22 +7,18 @@
|
|
|
7
7
|
background-color: var(--ams-spotlight-background-color);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.ams-spotlight--
|
|
11
|
-
background-color: var(--ams-spotlight-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.ams-spotlight--dark-blue {
|
|
15
|
-
background-color: var(--ams-spotlight-dark-blue-background-color);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.ams-spotlight--dark-green {
|
|
19
|
-
background-color: var(--ams-spotlight-dark-green-background-color);
|
|
10
|
+
.ams-spotlight--azure {
|
|
11
|
+
background-color: var(--ams-spotlight-azure-background-color);
|
|
20
12
|
}
|
|
21
13
|
|
|
22
14
|
.ams-spotlight--green {
|
|
23
15
|
background-color: var(--ams-spotlight-green-background-color);
|
|
24
16
|
}
|
|
25
17
|
|
|
18
|
+
.ams-spotlight--lime {
|
|
19
|
+
background-color: var(--ams-spotlight-lime-background-color);
|
|
20
|
+
}
|
|
21
|
+
|
|
26
22
|
.ams-spotlight--magenta {
|
|
27
23
|
background-color: var(--ams-spotlight-magenta-background-color);
|
|
28
24
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
border: var(--ams-switch-track-border-width) solid transparent;
|
|
21
21
|
border-radius: calc(var(--ams-switch-thumb-inline-size) * 2);
|
|
22
22
|
box-sizing: border-box;
|
|
23
|
-
cursor:
|
|
23
|
+
cursor: var(--ams-switch-cursor);
|
|
24
24
|
display: inline-block;
|
|
25
25
|
inline-size: var(--ams-switch-inline-size);
|
|
26
26
|
outline-offset: var(--ams-switch-outline-offset);
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
|
|
50
50
|
.ams-switch__input:disabled + .ams-switch__label {
|
|
51
51
|
background-color: var(--ams-switch-disabled-background-color);
|
|
52
|
-
cursor:
|
|
52
|
+
cursor: var(--ams-switch-disabled-cursor);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.ams-switch__input:checked + .ams-switch__label::before {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Copyright Gemeente Amsterdam
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
@use "../../common/hyphenation" as *;
|
|
6
7
|
@use "../../common/text-rendering" as *;
|
|
7
8
|
|
|
8
9
|
@mixin reset-ul {
|
|
@@ -27,6 +28,7 @@
|
|
|
27
28
|
gap: var(--ams-table-of-contents-list-gap);
|
|
28
29
|
list-style: none;
|
|
29
30
|
|
|
31
|
+
@include hyphenation;
|
|
30
32
|
@include text-rendering;
|
|
31
33
|
@include reset-ul;
|
|
32
34
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
@mixin reset-button {
|
|
9
9
|
background-color: transparent;
|
|
10
|
-
border:
|
|
10
|
+
border: none;
|
|
11
11
|
margin-block: 0; // [1]
|
|
12
12
|
margin-inline: 0; // [1]
|
|
13
13
|
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
color: var(--ams-tabs-button-color);
|
|
30
30
|
cursor: var(--ams-tabs-button-cursor);
|
|
31
31
|
display: grid;
|
|
32
|
+
flex-shrink: 0;
|
|
32
33
|
font-family: var(--ams-tabs-button-font-family);
|
|
33
34
|
font-size: var(--ams-tabs-button-font-size);
|
|
34
35
|
font-weight: var(--ams-tabs-button-font-weight);
|
|
@@ -48,14 +49,16 @@
|
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
51
|
|
|
52
|
+
&:hover:not([disabled]) {
|
|
53
|
+
color: var(--ams-tabs-button-hover-color);
|
|
54
|
+
}
|
|
55
|
+
|
|
51
56
|
&:hover:not([aria-selected="true"], [disabled]) {
|
|
52
57
|
box-shadow: var(--ams-tabs-button-hover-box-shadow);
|
|
53
|
-
color: var(--ams-tabs-button-hover-color);
|
|
54
58
|
}
|
|
55
59
|
|
|
56
60
|
&[aria-selected="true"] {
|
|
57
61
|
box-shadow: var(--ams-tabs-button-selected-box-shadow);
|
|
58
|
-
color: var(--ams-tabs-button-selected-color);
|
|
59
62
|
font-weight: var(--ams-tabs-button-selected-font-weight);
|
|
60
63
|
|
|
61
64
|
@media (forced-colors: active) {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
@mixin reset-textarea {
|
|
9
9
|
-webkit-appearance: none; // Reset appearance for Safari < 15.4
|
|
10
10
|
appearance: none; // Reset native appearance, this causes issues on iOS and Android devices
|
|
11
|
-
border:
|
|
11
|
+
border: none;
|
|
12
12
|
border-radius: 0; // Reset rounded borders on iOS devices
|
|
13
13
|
margin-block: 0;
|
|
14
14
|
}
|
|
@@ -55,7 +55,6 @@
|
|
|
55
55
|
box-shadow: var(--ams-text-area-invalid-box-shadow);
|
|
56
56
|
|
|
57
57
|
&:hover {
|
|
58
|
-
// TODO: this should be the (currently non-existent) dark red hover color
|
|
59
58
|
box-shadow: var(--ams-text-area-invalid-hover-box-shadow);
|
|
60
59
|
}
|
|
61
60
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
@mixin reset-input {
|
|
9
9
|
-webkit-appearance: none; // Reset appearance for Safari < 15.4
|
|
10
10
|
appearance: none; // Reset native appearance, this causes issues on iOS and Android devices
|
|
11
|
-
border:
|
|
11
|
+
border: none;
|
|
12
12
|
border-radius: 0; // Reset rounded borders on iOS devices
|
|
13
13
|
margin-block: 0;
|
|
14
14
|
}
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
background-color: var(--ams-text-input-disabled-background-color);
|
|
46
46
|
box-shadow: var(--ams-text-input-disabled-box-shadow);
|
|
47
47
|
color: var(--ams-text-input-disabled-color);
|
|
48
|
-
cursor:
|
|
48
|
+
cursor: var(--ams-text-input-disabled-cursor);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.ams-text-input:invalid,
|
|
@@ -53,7 +53,6 @@
|
|
|
53
53
|
box-shadow: var(--ams-text-input-invalid-box-shadow);
|
|
54
54
|
|
|
55
55
|
&:hover {
|
|
56
|
-
// TODO: this should be the (currently non-existent) dark red hover color
|
|
57
56
|
box-shadow: var(--ams-text-input-invalid-hover-box-shadow);
|
|
58
57
|
}
|
|
59
58
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
@mixin reset-input {
|
|
9
9
|
-webkit-appearance: none; // Reset appearance for Safari < 15.4
|
|
10
10
|
appearance: none; // Reset native appearance, this causes issues on iOS and Android devices
|
|
11
|
-
border:
|
|
11
|
+
border: none;
|
|
12
12
|
border-radius: 0; // Reset rounded borders on iOS devices
|
|
13
13
|
inline-size: auto; // Reset inline size of 10em set by Android devices
|
|
14
14
|
margin-block: 0;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
.ams-time-input::-webkit-calendar-picker-indicator {
|
|
49
49
|
appearance: none;
|
|
50
50
|
background-image: var(--ams-time-input-calender-picker-indicator-background-image);
|
|
51
|
-
cursor:
|
|
51
|
+
cursor: var(--ams-time-input-calender-picker-indicator-cursor);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.ams-time-input:hover::-webkit-calendar-picker-indicator {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
background-color: var(--ams-time-input-disabled-background-color);
|
|
60
60
|
box-shadow: var(--ams-time-input-disabled-box-shadow);
|
|
61
61
|
color: var(--ams-time-input-disabled-color);
|
|
62
|
-
cursor:
|
|
62
|
+
cursor: var(--ams-time-input-disabled-cursor);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.ams-time-input:disabled::-webkit-calendar-picker-indicator {
|
|
@@ -72,7 +72,6 @@
|
|
|
72
72
|
box-shadow: var(--ams-time-input-invalid-box-shadow);
|
|
73
73
|
|
|
74
74
|
&:hover {
|
|
75
|
-
// TODO: this should be the (currently non-existent) dark red hover color
|
|
76
75
|
box-shadow: var(--ams-time-input-invalid-hover-box-shadow);
|
|
77
76
|
}
|
|
78
77
|
}
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
gap: var(--ams-top-task-link-gap);
|
|
14
14
|
outline-offset: var(--ams-top-task-link-outline-offset);
|
|
15
15
|
text-decoration: none;
|
|
16
|
+
|
|
17
|
+
@include hyphenation;
|
|
18
|
+
@include text-rendering;
|
|
16
19
|
}
|
|
17
20
|
|
|
18
21
|
.ams-top-task-link__label {
|
|
@@ -25,9 +28,6 @@
|
|
|
25
28
|
text-decoration-line: var(--ams-top-task-link-label-text-decoration-line);
|
|
26
29
|
text-decoration-thickness: var(--ams-top-task-link-label-text-decoration-thickness);
|
|
27
30
|
text-underline-offset: var(--ams-top-task-link-label-text-underline-offset);
|
|
28
|
-
|
|
29
|
-
@include hyphenation;
|
|
30
|
-
@include text-rendering;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.ams-top-task-link:hover .ams-top-task-link__label {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Copyright Gemeente Amsterdam
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
@use "../../common/hyphenation" as *;
|
|
6
7
|
@use "../../common/text-rendering" as *;
|
|
7
8
|
|
|
8
9
|
@mixin reset-ul {
|
|
@@ -16,6 +17,7 @@
|
|
|
16
17
|
display: grid;
|
|
17
18
|
gap: var(--ams-unordered-list-gap);
|
|
18
19
|
|
|
20
|
+
@include hyphenation;
|
|
19
21
|
@include text-rendering;
|
|
20
22
|
@include reset-ul;
|
|
21
23
|
}
|
|
@@ -34,7 +36,7 @@
|
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
38
|
|
|
37
|
-
.ams-unordered-list--inverse
|
|
39
|
+
.ams-unordered-list--inverse:not(.ams-unordered-list--no-markers) {
|
|
38
40
|
color: var(--ams-unordered-list-inverse-color);
|
|
39
41
|
}
|
|
40
42
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ams-form-error-list{outline-offset:var(--ams-form-error-list-outline-offset)}@supports(contain: paint) and (not (-moz-appearance: none)){.ams-form-error-list{outline-offset:calc(var(--ams-form-error-list-outline-offset)*2)}@supports(font: -apple-system-body){.ams-form-error-list{outline-offset:var(--ams-form-error-list-outline-offset)}}}/*# sourceMappingURL=form-error-list.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../src/components/form-error-list/form-error-list.scss"],"names":[],"mappings":"AAAA,qBACE,yDAIA,4DALF,qBAMI,iEAGA,oCATJ,qBAUM","file":"form-error-list.css"}
|
package/src/common/size.scss
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license EUPL-1.2+
|
|
3
|
-
* Copyright Gemeente Amsterdam
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/** The set of available widths for gaps and margins. */
|
|
7
|
-
$ams-sizes: (
|
|
8
|
-
"no": "none",
|
|
9
|
-
"xs": "extra-small",
|
|
10
|
-
"sm": "small",
|
|
11
|
-
"md": "medium",
|
|
12
|
-
"lg": "large",
|
|
13
|
-
"xl": "extra-large",
|
|
14
|
-
);
|