@amsterdam/design-system-css 0.4.0 → 0.6.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 -2
- package/LICENSE.txt +287 -0
- package/README.md +11 -0
- package/dist/accordion/accordion.css +1 -1
- package/dist/accordion/accordion.css.map +1 -1
- package/dist/alert/alert.css +1 -1
- package/dist/alert/alert.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/checkbox/checkbox.css +1 -1
- package/dist/checkbox/checkbox.css.map +1 -1
- package/dist/column/column.css +1 -0
- package/dist/column/column.css.map +1 -0
- package/dist/dialog/dialog.css +1 -1
- package/dist/dialog/dialog.css.map +1 -1
- package/dist/fieldset/fieldset.css +1 -0
- package/dist/fieldset/fieldset.css.map +1 -0
- package/dist/form-label/form-label.css +1 -1
- package/dist/form-label/form-label.css.map +1 -1
- package/dist/gap/gap.css +1 -0
- package/dist/gap/gap.css.map +1 -0
- 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/index.css +1 -1
- package/dist/index.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 -0
- package/dist/margin/margin.css.map +1 -0
- package/dist/mega-menu/mega-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-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/radio/radio.css +1 -0
- package/dist/radio/radio.css.map +1 -0
- package/dist/row/row.css +1 -0
- package/dist/row/row.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/skip-link/skip-link.css +1 -1
- package/dist/skip-link/skip-link.css.map +1 -1
- package/dist/switch/switch.css +1 -1
- package/dist/switch/switch.css.map +1 -1
- package/dist/table/table.css +1 -1
- package/dist/table/table.css.map +1 -1
- package/dist/tabs/tabs.css +1 -0
- package/dist/tabs/tabs.css.map +1 -0
- package/dist/text-area/text-area.css +1 -0
- package/dist/text-area/text-area.css.map +1 -0
- package/dist/text-input/text-input.css +1 -1
- package/dist/text-input/text-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 +9 -10
- package/src/common/breakpoint.scss +1 -1
- package/src/common/calculate-fluid-style.scss +1 -1
- package/src/common/hide-input.scss +11 -0
- package/src/common/hyphenation.scss +10 -0
- package/src/common/input-label-focus.scss +21 -0
- package/src/common/size.scss +13 -0
- package/src/components/accordion/README.md +2 -0
- package/src/components/accordion/accordion.scss +7 -12
- package/src/components/alert/README.md +4 -2
- package/src/components/alert/alert.scss +3 -5
- package/src/components/aspect-ratio/README.md +2 -0
- package/src/components/aspect-ratio/aspect-ratio.scss +1 -1
- package/src/components/badge/README.md +2 -0
- package/src/components/badge/badge.scss +3 -8
- package/src/components/blockquote/README.md +2 -0
- package/src/components/blockquote/blockquote.scss +6 -8
- package/src/components/breadcrumb/README.md +2 -0
- package/src/components/breadcrumb/breadcrumb.scss +3 -8
- package/src/components/button/README.md +3 -1
- package/src/components/button/button.scss +60 -15
- package/src/components/card/README.md +5 -3
- package/src/components/card/card.scss +1 -1
- package/src/components/checkbox/README.md +3 -1
- package/src/components/checkbox/checkbox.scss +19 -31
- package/src/components/column/README.md +5 -0
- package/src/components/column/column.scss +16 -0
- package/src/components/dialog/README.md +2 -0
- package/src/components/dialog/dialog.scss +7 -9
- package/src/components/fieldset/README.md +18 -0
- package/src/components/fieldset/fieldset.scss +34 -0
- package/src/components/footer/README.md +2 -0
- package/src/components/form-label/README.md +2 -0
- package/src/components/form-label/form-label.scss +6 -8
- package/src/components/gap/README.md +5 -0
- package/src/components/gap/gap.scss +16 -0
- package/src/components/grid/README.md +5 -3
- package/src/components/grid/grid.scss +14 -21
- package/src/components/header/README.md +2 -0
- package/src/components/header/header.scss +7 -7
- package/src/components/heading/README.md +2 -0
- package/src/components/heading/heading.scss +16 -43
- package/src/components/icon/README.md +3 -1
- package/src/components/icon/icon.scss +13 -51
- package/src/components/icon-button/README.md +3 -1
- package/src/components/icon-button/icon-button.scss +1 -1
- package/src/components/image/README.md +3 -1
- package/src/components/image/image.scss +2 -2
- package/src/components/index.scss +9 -1
- package/src/components/link/README.md +2 -0
- package/src/components/link/link.scss +3 -36
- package/src/components/link-list/README.md +3 -1
- package/src/components/link-list/link-list.scss +10 -21
- package/src/components/logo/README.md +4 -1
- package/src/components/logo/logo.scss +1 -1
- package/src/components/margin/README.md +5 -0
- package/src/components/margin/margin.scss +12 -0
- package/src/components/mark/README.md +2 -0
- package/src/components/mark/mark.scss +1 -1
- package/src/components/mega-menu/README.md +2 -0
- package/src/components/mega-menu/mega-menu.scss +3 -1
- package/src/components/ordered-list/README.md +2 -0
- package/src/components/ordered-list/ordered-list.scss +8 -9
- package/src/components/overlap/README.md +2 -0
- package/src/components/overlap/overlap.scss +1 -1
- package/src/components/page-heading/README.md +3 -1
- package/src/components/page-heading/page-heading.scss +6 -8
- package/src/components/page-menu/README.md +3 -1
- package/src/components/page-menu/page-menu.scss +3 -8
- package/src/components/pagination/README.md +3 -1
- package/src/components/pagination/pagination.scss +4 -9
- package/src/components/paragraph/README.md +2 -0
- package/src/components/paragraph/paragraph.scss +7 -22
- package/src/components/radio/README.md +18 -0
- package/src/components/radio/radio.scss +157 -0
- package/src/components/row/README.md +3 -0
- package/src/components/row/row.scss +17 -0
- package/src/components/screen/README.md +6 -4
- package/src/components/screen/screen.scss +1 -1
- package/src/components/search-field/README.md +3 -1
- package/src/components/search-field/search-field.scss +9 -12
- package/src/components/skip-link/README.md +2 -0
- package/src/components/skip-link/skip-link.scss +3 -8
- package/src/components/spotlight/README.md +2 -0
- package/src/components/spotlight/spotlight.scss +1 -1
- package/src/components/switch/README.md +3 -1
- package/src/components/switch/switch.scss +11 -10
- package/src/components/table/README.md +3 -1
- package/src/components/table/table.scss +3 -3
- package/src/components/tabs/README.md +32 -0
- package/src/components/tabs/tabs.scss +41 -0
- package/src/components/text-area/README.md +17 -0
- package/src/components/text-area/text-area.scss +70 -0
- package/src/components/text-input/README.md +2 -0
- package/src/components/text-input/text-input.scss +5 -10
- package/src/components/top-task-link/README.md +5 -3
- package/src/components/top-task-link/top-task-link.scss +7 -14
- package/src/components/unordered-list/README.md +2 -0
- package/src/components/unordered-list/unordered-list.scss +8 -9
- package/src/components/visually-hidden/README.md +2 -0
- package/src/components/visually-hidden/visually-hidden.scss +1 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2+
|
|
3
|
+
* Copyright Gemeente Amsterdam
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@mixin reset {
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
margin-block: 0;
|
|
9
|
+
-webkit-text-size-adjust: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.amsterdam-text-area {
|
|
13
|
+
border: none;
|
|
14
|
+
box-shadow: var(--amsterdam-text-area-box-shadow);
|
|
15
|
+
color: var(--amsterdam-text-area-color);
|
|
16
|
+
font-family: var(--amsterdam-text-area-font-family);
|
|
17
|
+
font-size: var(--amsterdam-text-area-font-size);
|
|
18
|
+
font-weight: var(--amsterdam-text-area-font-weight);
|
|
19
|
+
line-height: var(--amsterdam-text-area-line-height);
|
|
20
|
+
max-width: 100%;
|
|
21
|
+
min-height: var(--amsterdam-text-area-min-height);
|
|
22
|
+
outline-offset: var(--amsterdam-text-area-outline-offset);
|
|
23
|
+
padding-block: var(--amsterdam-text-area-padding-block);
|
|
24
|
+
padding-inline: var(--amsterdam-text-area-padding-inline);
|
|
25
|
+
touch-action: manipulation;
|
|
26
|
+
width: 100%;
|
|
27
|
+
|
|
28
|
+
@include reset;
|
|
29
|
+
|
|
30
|
+
&:hover {
|
|
31
|
+
box-shadow: var(--amsterdam-text-area-hover-box-shadow);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.amsterdam-text-area::placeholder {
|
|
36
|
+
color: var(--amsterdam-text-area-placeholder-color);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.amsterdam-text-area:disabled {
|
|
40
|
+
background-color: var(--amsterdam-text-area-disabled-background-color);
|
|
41
|
+
box-shadow: var(--amsterdam-text-area-disabled-box-shadow);
|
|
42
|
+
color: var(--amsterdam-text-area-disabled-color);
|
|
43
|
+
cursor: var(--amsterdam-text-area-disabled-cursor);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.amsterdam-text-area:invalid,
|
|
47
|
+
.amsterdam-text-area[aria-invalid="true"] {
|
|
48
|
+
box-shadow: var(--amsterdam-text-area-invalid-box-shadow);
|
|
49
|
+
|
|
50
|
+
&:hover {
|
|
51
|
+
// TODO: this should be the (currently non-existent) dark red hover color
|
|
52
|
+
box-shadow: var(--amsterdam-text-area-invalid-hover-box-shadow);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.amsterdam-text-area--resize-none {
|
|
57
|
+
resize: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.amsterdam-text-area--resize-horizontal {
|
|
61
|
+
resize: inline;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.amsterdam-text-area--resize-vertical {
|
|
65
|
+
resize: block;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.amsterdam-text-area--cols {
|
|
69
|
+
width: auto;
|
|
70
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license EUPL-1.2+
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright Gemeente Amsterdam
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
@mixin reset {
|
|
@@ -14,22 +14,17 @@
|
|
|
14
14
|
box-shadow: var(--amsterdam-text-input-box-shadow);
|
|
15
15
|
color: var(--amsterdam-text-input-color);
|
|
16
16
|
font-family: var(--amsterdam-text-input-font-family);
|
|
17
|
-
font-size: var(--amsterdam-text-input-
|
|
17
|
+
font-size: var(--amsterdam-text-input-font-size);
|
|
18
18
|
font-weight: var(--amsterdam-text-input-font-weight);
|
|
19
|
-
line-height: var(--amsterdam-text-input-
|
|
19
|
+
line-height: var(--amsterdam-text-input-line-height);
|
|
20
20
|
outline-offset: var(--amsterdam-text-input-outline-offset);
|
|
21
|
-
padding-block:
|
|
22
|
-
padding-inline:
|
|
21
|
+
padding-block: var(--amsterdam-text-input-padding-block);
|
|
22
|
+
padding-inline: var(--amsterdam-text-input-padding-inline);
|
|
23
23
|
touch-action: manipulation;
|
|
24
24
|
width: 100%;
|
|
25
25
|
|
|
26
26
|
@include reset;
|
|
27
27
|
|
|
28
|
-
.amsterdam-theme--compact & {
|
|
29
|
-
font-size: var(--amsterdam-text-input-compact-font-size);
|
|
30
|
-
line-height: var(--amsterdam-text-input-compact-line-height);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
28
|
&:hover {
|
|
34
29
|
box-shadow: var(--amsterdam-text-input-hover-box-shadow);
|
|
35
30
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
<!-- @license CC0-1.0 -->
|
|
2
|
+
|
|
1
3
|
# Top Task Link
|
|
2
4
|
|
|
3
5
|
A prominent navigation element to quickly start a task.
|
|
@@ -10,12 +12,12 @@ A prominent navigation element to quickly start a task.
|
|
|
10
12
|
- Keep both texts concise.
|
|
11
13
|
A title consists of a few words, and the description consists of 1 or 2 short sentences.
|
|
12
14
|
The description should end with a period or another appropriate punctuation mark.
|
|
13
|
-
- For wide windows, place 3 or 4 Top Task Links side by side on the [Grid](
|
|
15
|
+
- For wide windows, place 3 or 4 Top Task Links side by side on the [Grid](/docs/components-layout-grid--docs).
|
|
14
16
|
If you have more Top Task Links, place them in the next row.
|
|
15
17
|
Try to distribute the amount of links on wide windows over rows of 3 or 4 links.
|
|
16
18
|
If this is not possible, leave the last cells of the grid empty.
|
|
17
|
-
- If you have a group of links for which a description is unnecessary or illogical, use a [Link List](
|
|
19
|
+
- If you have a group of links for which a description is unnecessary or illogical, use a [Link List](/docs/components-navigation-link--docs).
|
|
18
20
|
|
|
19
21
|
## Relevant WCAG requirements
|
|
20
22
|
|
|
21
|
-
The Top Task Link is subject to the same requirements as [regular links](
|
|
23
|
+
The Top Task Link is subject to the same requirements as [regular links](/docs/components-navigation-link--docs).
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license EUPL-1.2+
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright Gemeente Amsterdam
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
@import "../../common/hyphenation";
|
|
7
|
+
|
|
6
8
|
.amsterdam-top-task-link {
|
|
7
9
|
break-inside: avoid;
|
|
8
10
|
display: flex;
|
|
@@ -20,18 +22,14 @@
|
|
|
20
22
|
.amsterdam-top-task-link__label {
|
|
21
23
|
color: var(--amsterdam-top-task-link-label-color);
|
|
22
24
|
font-family: var(--amsterdam-top-task-link-label-font-family);
|
|
23
|
-
font-size: var(--amsterdam-top-task-link-label-
|
|
25
|
+
font-size: var(--amsterdam-top-task-link-label-font-size);
|
|
24
26
|
font-weight: var(--amsterdam-top-task-link-label-font-weight);
|
|
25
27
|
line-height: var(--amsterdam-top-task-link-label-line-height);
|
|
26
28
|
text-decoration-line: var(--amsterdam-top-task-link-label-text-decoration-line);
|
|
27
29
|
text-decoration-thickness: var(--amsterdam-top-task-link-label-text-decoration-thickness);
|
|
28
30
|
text-underline-offset: var(--amsterdam-top-task-link-label-text-underline-offset);
|
|
29
31
|
|
|
30
|
-
|
|
31
|
-
font-size: var(--amsterdam-top-task-link-label-compact-font-size);
|
|
32
|
-
line-height: var(--amsterdam-top-task-link-label-compact-line-height);
|
|
33
|
-
}
|
|
34
|
-
|
|
32
|
+
@include hyphenation;
|
|
35
33
|
@include reset;
|
|
36
34
|
}
|
|
37
35
|
|
|
@@ -43,14 +41,9 @@
|
|
|
43
41
|
.amsterdam-top-task-link__description {
|
|
44
42
|
color: var(--amsterdam-top-task-link-description-color);
|
|
45
43
|
font-family: var(--amsterdam-top-task-link-description-font-family);
|
|
46
|
-
font-size: var(--amsterdam-top-task-link-description-
|
|
44
|
+
font-size: var(--amsterdam-top-task-link-description-font-size);
|
|
47
45
|
font-weight: var(--amsterdam-top-task-link-description-font-weight);
|
|
48
|
-
line-height: var(--amsterdam-top-task-link-description-
|
|
49
|
-
|
|
50
|
-
.amsterdam-theme--compact & {
|
|
51
|
-
font-size: var(--amsterdam-top-task-link-description-compact-font-size);
|
|
52
|
-
line-height: var(--amsterdam-top-task-link-description-compact-line-height);
|
|
53
|
-
}
|
|
46
|
+
line-height: var(--amsterdam-top-task-link-description-line-height);
|
|
54
47
|
|
|
55
48
|
@include reset;
|
|
56
49
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license EUPL-1.2+
|
|
3
|
-
* Copyright
|
|
3
|
+
* Copyright Gemeente Amsterdam
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
/** Apply border box sizing, reset
|
|
6
|
+
/** Apply border box sizing, reset white space and list styles. */
|
|
7
7
|
@mixin reset {
|
|
8
8
|
box-sizing: border-box;
|
|
9
9
|
list-style: none;
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
.amsterdam-unordered-list:not(.amsterdam-unordered-list--no-markers) {
|
|
25
25
|
color: var(--amsterdam-unordered-list-color);
|
|
26
26
|
font-family: var(--amsterdam-unordered-list-font-family);
|
|
27
|
-
font-size: var(--amsterdam-unordered-list-
|
|
27
|
+
font-size: var(--amsterdam-unordered-list-font-size);
|
|
28
28
|
font-weight: var(--amsterdam-unordered-list-font-weight);
|
|
29
|
-
line-height: var(--amsterdam-unordered-list-
|
|
29
|
+
line-height: var(--amsterdam-unordered-list-line-height);
|
|
30
30
|
list-style-type: var(--amsterdam-unordered-list-list-style-type);
|
|
31
31
|
|
|
32
32
|
/** List items are responsible for indentation and marker positioning. */
|
|
@@ -36,6 +36,10 @@
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
.amsterdam-unordered-list--inverse-color:not(.amsterdam-unordered-list--no-markers) {
|
|
40
|
+
color: var(--amsterdam-unordered-list-inverse-color);
|
|
41
|
+
}
|
|
42
|
+
|
|
39
43
|
/** A nested list has a different marker and less indentation for correct alignment. */
|
|
40
44
|
:is(.amsterdam-ordered-list, .amsterdam-unordered-list) .amsterdam-unordered-list {
|
|
41
45
|
list-style-type: var(--amsterdam-unordered-list-unordered-list-list-style-type);
|
|
@@ -45,8 +49,3 @@
|
|
|
45
49
|
padding-inline-start: var(--amsterdam-unordered-list-unordered-list-item-padding-inline-start);
|
|
46
50
|
}
|
|
47
51
|
}
|
|
48
|
-
|
|
49
|
-
.amsterdam-theme--compact .amsterdam-unordered-list:not(.amsterdam-unordered-list--no-markers) {
|
|
50
|
-
font-size: var(--amsterdam-unordered-list-compact-font-size);
|
|
51
|
-
line-height: var(--amsterdam-unordered-list-compact-line-height);
|
|
52
|
-
}
|