@amsterdam/design-system-css 0.3.0 → 0.5.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 +38 -0
- package/LICENSE.md +1 -1
- package/LICENSE.txt +287 -0
- package/README.md +13 -1
- 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 -0
- package/dist/badge/badge.css.map +1 -0
- 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/dialog/dialog.css +1 -1
- package/dist/dialog/dialog.css.map +1 -1
- package/dist/form-label/form-label.css +1 -1
- package/dist/form-label/form-label.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 -0
- package/dist/icon-button/icon-button.css.map +1 -0
- 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 -0
- package/dist/link-list/link-list.css.map +1 -0
- package/dist/mega-menu/mega-menu.css +1 -0
- package/dist/mega-menu/mega-menu.css.map +1 -0
- 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/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/spotlight/spotlight.css +1 -1
- package/dist/spotlight/spotlight.css.map +1 -1
- package/dist/table/table.css +1 -0
- package/dist/table/table.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/documentation/coding-conventions.md +4 -2
- package/package.json +9 -10
- package/src/common/hyphenation.scss +5 -0
- package/src/components/accordion/README.md +45 -38
- package/src/components/accordion/accordion.scss +2 -7
- package/src/components/alert/README.md +15 -11
- package/src/components/alert/alert.scss +8 -38
- package/src/components/aspect-ratio/README.md +12 -12
- package/src/components/badge/README.md +10 -0
- package/src/components/badge/badge.scss +53 -0
- package/src/components/blockquote/README.md +8 -8
- package/src/components/blockquote/blockquote.scss +5 -7
- package/src/components/breadcrumb/README.md +10 -7
- package/src/components/breadcrumb/breadcrumb.scss +2 -7
- package/src/components/button/README.md +17 -14
- package/src/components/button/button.scss +2 -7
- package/src/components/card/README.md +18 -19
- package/src/components/checkbox/README.md +19 -18
- package/src/components/checkbox/checkbox.scss +3 -12
- package/src/components/dialog/README.md +9 -8
- package/src/components/dialog/dialog.scss +4 -23
- package/src/components/footer/README.md +11 -7
- package/src/components/form-label/README.md +5 -1
- package/src/components/form-label/form-label.scss +5 -7
- package/src/components/grid/README.md +12 -13
- package/src/components/grid/grid.scss +2 -6
- package/src/components/header/README.md +2 -2
- package/src/components/header/header.scss +2 -2
- package/src/components/heading/README.md +14 -11
- package/src/components/heading/heading.scss +15 -42
- package/src/components/icon/README.md +19 -9
- package/src/components/icon/icon.scss +17 -50
- package/src/components/icon-button/README.md +14 -0
- package/src/components/icon-button/icon-button.scss +60 -0
- package/src/components/image/README.md +16 -17
- package/src/components/index.scss +5 -0
- package/src/components/link/README.md +26 -24
- package/src/components/link/link.scss +2 -35
- package/src/components/link-list/README.md +16 -0
- package/src/components/link-list/link-list.scss +69 -0
- package/src/components/logo/README.md +21 -20
- package/src/components/mark/README.md +10 -11
- package/src/components/mega-menu/README.md +1 -0
- package/src/components/mega-menu/mega-menu.scss +14 -0
- package/src/components/ordered-list/README.md +5 -5
- package/src/components/ordered-list/ordered-list.scss +2 -7
- package/src/components/overlap/README.md +1 -1
- package/src/components/page-heading/README.md +10 -9
- package/src/components/page-heading/page-heading.scss +5 -7
- package/src/components/page-menu/README.md +10 -9
- package/src/components/page-menu/page-menu.scss +2 -7
- package/src/components/pagination/README.md +13 -10
- package/src/components/pagination/pagination.scss +2 -7
- package/src/components/paragraph/README.md +16 -14
- package/src/components/paragraph/paragraph.scss +6 -21
- package/src/components/screen/README.md +12 -12
- package/src/components/search-field/README.md +18 -18
- package/src/components/search-field/search-field.scss +4 -17
- package/src/components/skip-link/README.md +18 -25
- package/src/components/skip-link/skip-link.scss +0 -5
- package/src/components/spotlight/README.md +5 -5
- package/src/components/spotlight/spotlight.scss +4 -4
- package/src/components/switch/README.md +11 -9
- package/src/components/table/README.md +11 -0
- package/src/components/table/table.scss +36 -0
- package/src/components/text-input/README.md +10 -8
- package/src/components/text-input/text-input.scss +2 -7
- package/src/components/top-task-link/README.md +15 -14
- package/src/components/top-task-link/top-task-link.scss +6 -13
- package/src/components/unordered-list/README.md +5 -5
- package/src/components/unordered-list/unordered-list.scss +2 -7
- package/src/components/visually-hidden/README.md +3 -2
- package/src/components/button/button-css.md +0 -12
- package/src/components/checkbox/checkbox-css.md +0 -3
- package/src/components/footer/footer-css.md +0 -11
- package/src/components/heading/heading-css.md +0 -3
- package/src/components/paragraph/paragraph-css.md +0 -3
|
@@ -1,33 +1,26 @@
|
|
|
1
1
|
# Skip Link
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Use a Skip Link to navigate to the main content quickly with the keyboard.
|
|
4
|
+
A Skip Link allows skipping recurring navigation blocks, such as the main menu or breadcrumb trail.
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
The Skip Link is placed above the header.
|
|
7
|
+
The link is hidden until activated with the tab key.
|
|
8
|
+
When the link is shown, it pushes the entire page down.
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## Guidelines
|
|
11
11
|
|
|
12
|
-
###
|
|
12
|
+
### How to Use
|
|
13
13
|
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
-
|
|
19
|
-
|
|
14
|
+
- Place the Skip Link as the first element in `<body>` unless you have a cookie banner.
|
|
15
|
+
In that case, place the Skip Link immediately after the cookie banner.
|
|
16
|
+
- Use the Skip Link to navigate to the main content.
|
|
17
|
+
On an article page, for example, it could be the title of the article; on a search page, it could be the search field.
|
|
18
|
+
- Set `id="example-id"` on the container of that element and then use `href="#example-id"` on the Skip Link.
|
|
19
|
+
- You can use more than one Skip Link for complex pages with multiple sections.
|
|
20
|
+
In most cases, this is not necessary.
|
|
20
21
|
|
|
21
|
-
###
|
|
22
|
+
### Avoid
|
|
22
23
|
|
|
23
|
-
- Skip Links
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
- Plaats de Skip Link niet in een `nav` regio, of in de Header.
|
|
27
|
-
|
|
28
|
-
## Relevante WCAG eisen
|
|
29
|
-
|
|
30
|
-
- Voor dit component gelden dezelfde WCAG eisen als voor [het link component](https://amsterdam.github.io/design-system/?path=/docs/react_navigation-link--docs).
|
|
31
|
-
- [WCAG 2.4.1](https://www.w3.org/TR/WCAG22/#bypass-blocks): gebruik een Skip Link op elke pagina die begint met een terugkerend navigatieblok.
|
|
32
|
-
- [WCAG 3.2.3](https://www.w3.org/TR/WCAG22/#consistent-navigation): een Skip Link staat op elke pagina op dezelfde plek.
|
|
33
|
-
- [WCAG 3.2.4](https://www.w3.org/TR/WCAG22/#consistent-identification): een Skip Link heeft dezelfde labels op alle pagina's. Bijvoorbeeld niet: "Navigatie overslaan" op een gedeelte van de site, en "Naar de inhoud" op andere pagina's.
|
|
24
|
+
- Skip Links are unnecessary on a simple page with only text and minimal navigation.
|
|
25
|
+
The purpose of a Skip Link is to bypass recurring navigation blocks.
|
|
26
|
+
If those blocks are not present, a Skip Link is not needed.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# Spotlight
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Emphasizes a section on a page through a distinctive background colour.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Guidelines
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Refer to [this overview on Stijlweb](https://amsterdam.nl/stijlweb/basiselementen/kleuren/#PagCls_15671872) to determine whether you can use black or white text on the background colour of your choice.
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Relevant WCAG Requirements
|
|
10
10
|
|
|
11
11
|
- [WCAG 1.4.3](https://www.w3.org/TR/WCAG21/#contrast-minimum): Large-scale text and images of large-scale text have a contrast ratio of at least 3:1;
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## References
|
|
14
14
|
|
|
15
15
|
- [Color and contrast accessibility](https://web.dev/articles/color-and-contrast-accessibility)
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
background-color: var(--amsterdam-spotlight-blue-background-color);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
.amsterdam-spotlight--dark-blue {
|
|
11
|
+
background-color: var(--amsterdam-spotlight-dark-blue-background-color);
|
|
12
|
+
}
|
|
13
|
+
|
|
10
14
|
.amsterdam-spotlight--dark-green {
|
|
11
15
|
background-color: var(--amsterdam-spotlight-dark-green-background-color);
|
|
12
16
|
}
|
|
@@ -15,10 +19,6 @@
|
|
|
15
19
|
background-color: var(--amsterdam-spotlight-green-background-color);
|
|
16
20
|
}
|
|
17
21
|
|
|
18
|
-
.amsterdam-spotlight--light-blue {
|
|
19
|
-
background-color: var(--amsterdam-spotlight-light-blue-background-color);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
22
|
.amsterdam-spotlight--magenta {
|
|
23
23
|
background-color: var(--amsterdam-spotlight-magenta-background-color);
|
|
24
24
|
}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
# Switch
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A switch is a control element to toggle between two different states quickly.
|
|
4
|
+
A switch applies to a page or the entire system, such as an on/off switch.
|
|
4
5
|
|
|
5
|
-
##
|
|
6
|
+
## Guidelines
|
|
6
7
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
-
|
|
8
|
+
- Switch only between two different states.
|
|
9
|
+
It is a binary action.
|
|
10
|
+
- Use labels with a switch to make the action clear.
|
|
11
|
+
- The action takes place immediately when the user operates the switch.
|
|
10
12
|
|
|
11
|
-
##
|
|
13
|
+
## Relevant WCAG Requirements
|
|
12
14
|
|
|
13
|
-
- [WCAG 1.3.5](https://www.w3.org/WAI/WCAG21/Understanding/identify-input-purpose.html):
|
|
15
|
+
- [WCAG 1.3.5](https://www.w3.org/WAI/WCAG21/Understanding/identify-input-purpose.html): it is both clear for a user and programmatically what the purpose of a form field is.
|
|
14
16
|
|
|
15
|
-
Switch is
|
|
17
|
+
The Switch is an interactive element; general requirements and guidelines for interactive elements apply [here](https://amsterdam.github.io/design-system/?path=/docs/docs-designrichtlijnen-interactieve-elementen--docs).
|
|
16
18
|
|
|
17
|
-
##
|
|
19
|
+
## References
|
|
18
20
|
|
|
19
21
|
- [Switch Pattern](https://www.w3.org/WAI/ARIA/apg/patterns/switch/)
|
|
20
22
|
- [Role switch](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/switch_role)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Table
|
|
2
|
+
|
|
3
|
+
Use the table component to let users compare information in rows and columns.
|
|
4
|
+
Table is used to display simple information that does not need to be filtered or edited.
|
|
5
|
+
|
|
6
|
+
## Guidelines
|
|
7
|
+
|
|
8
|
+
- Use `<Table.Caption>` to describe a table in the same way you would use a heading.
|
|
9
|
+
A caption helps users find, navigate and understand tables.
|
|
10
|
+
- Never use the table component to layout content on a page.
|
|
11
|
+
Instead, use [Grid](https://amsterdam.github.io/design-system/?path=/docs/react_layout-grid--docs).
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2+
|
|
3
|
+
* Copyright (c) 2023 Gemeente Amsterdam
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
.amsterdam-table {
|
|
7
|
+
overflow-x: auto;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.amsterdam-table__table {
|
|
11
|
+
border-spacing: 0;
|
|
12
|
+
break-inside: avoid;
|
|
13
|
+
color: var(--amsterdam-table-color);
|
|
14
|
+
font-family: var(--amsterdam-table-font-family);
|
|
15
|
+
font-size: var(--amsterdam-table-font-size);
|
|
16
|
+
font-weight: var(--amsterdam-table-font-weight);
|
|
17
|
+
line-height: var(--amsterdam-table-line-height);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.amsterdam-table__caption {
|
|
21
|
+
font-weight: var(--amsterdam-table-caption-font-weight);
|
|
22
|
+
text-align: start;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.amsterdam-table__cell,
|
|
26
|
+
.amsterdam-table__header-cell {
|
|
27
|
+
border-bottom: var(--amsterdam-table-cell-border-bottom);
|
|
28
|
+
padding-block: 1rem;
|
|
29
|
+
padding-inline: 1rem;
|
|
30
|
+
text-align: start;
|
|
31
|
+
vertical-align: top;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.amsterdam-table__header-cell {
|
|
35
|
+
font-weight: var(--amsterdam-table-header-cell-font-weight);
|
|
36
|
+
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
# Text Input
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A form field in which a user can enter text.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Guidelines
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
|
|
7
|
+
- Use a Text Input when users need to enter a single line of text, such as their name or phone number.
|
|
8
|
+
- Do not use a Text Input when users could provide more than 1 sentence of text.
|
|
9
|
+
- The width of the Text Input should be appropriate for the information to be entered.
|
|
10
|
+
- A Text Input must have a label, and in most cases, this label should be visible.
|
|
11
|
+
- Use `spellcheck="false"` for fields that may contain sensitive information, such as passwords and personal data.
|
|
12
|
+
Some browser extensions for spell-checking send this information to external servers.
|
|
13
|
+
- Apply automatic assistance where possible.
|
|
14
|
+
For example, in logged-in systems, pre-filling input can prevent errors and save time.
|
|
@@ -14,9 +14,9 @@
|
|
|
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
21
|
padding-block: 0.5rem;
|
|
22
22
|
padding-inline: 1rem;
|
|
@@ -25,11 +25,6 @@
|
|
|
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,20 +1,21 @@
|
|
|
1
1
|
# Top Task Link
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A prominent navigation element to quickly start a task.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Guidelines
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
|
|
10
|
-
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
- A Top Task Link has both a title and a description.
|
|
8
|
+
- The title describes the essence of the page being referred to, attracting attention when scanning the page.
|
|
9
|
+
- The description provides more context, helping the user confirm that they can indeed achieve their goal on the linked page.
|
|
10
|
+
- Keep both texts concise.
|
|
11
|
+
A title consists of a few words, and the description consists of 1 or 2 short sentences.
|
|
12
|
+
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](?path=/docs/react_layout-grid--docs).
|
|
14
|
+
If you have more Top Task Links, place them in the next row.
|
|
15
|
+
Try to distribute the amount of links on wide windows over rows of 3 or 4 links.
|
|
16
|
+
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](?path=/docs/react_navigation-link--docs).
|
|
17
18
|
|
|
18
|
-
##
|
|
19
|
+
## Relevant WCAG requirements
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
The Top Task Link is subject to the same requirements as [regular links](https://amsterdam.github.io/design-system/?path=/docs/react_navigation-link--docs).
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
* Copyright (c) 2023 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,7 +1,7 @@
|
|
|
1
1
|
# Unordered List
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
A list is a vertical group of related content.
|
|
4
|
+
This list can have 2 levels.
|
|
5
|
+
The first level consists of squares.
|
|
6
|
+
The second level consists of en dashes (–).
|
|
7
|
+
Text in the list items is indented by a fixed distance.
|
|
@@ -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. */
|
|
@@ -45,8 +45,3 @@
|
|
|
45
45
|
padding-inline-start: var(--amsterdam-unordered-list-unordered-list-item-padding-inline-start);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
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
|
-
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# Visually Hidden
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Hides content from sighted users but keeps it accessible to non-visual user agents, such as screen readers.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Note: in most cases, visually available content should be accessible to non-visual user agents and vice versa.
|
|
6
|
+
Elaborate instructions or guidance read only by non-visual user agents can do more harm than good.
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# CSS Button
|
|
2
|
-
|
|
3
|
-
Het button component maakt gebruik van de CSS library van de gemeente Utrecht. Daarop is het Amsterdam Design toegepast. Concreet betekent dit dat de Utrecht class names worden gebruikt met de Amsterdamse css attribuut waarden.
|
|
4
|
-
Een voorbeeld van een HTML button met de Amsterdamse styling is:
|
|
5
|
-
|
|
6
|
-
```html
|
|
7
|
-
<button class="utrecht-button">Amsterdam Button</button>
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
Deze button wordt getoond met de Amsterdamse button styling.
|
|
11
|
-
|
|
12
|
-
Vedere documentatie van de Utrecht button is terug te vinden in hun [github](https://github.com/nl-design-system/utrecht/tree/main/components/button) repository.
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# CSS Footer
|
|
2
|
-
|
|
3
|
-
Gebruik het `footer` element als buitenste container van de footer.
|
|
4
|
-
|
|
5
|
-
De voettekst is blauw met witte tekst en iconen, met onderaan een witte balk. Op desktop heeft het blauwe deel van de voettekst 3 kolommen. Op mobiel heeft het blauwe deel van de voettekst 1 kolom. Kolom 1, 2 en 3 van de desktop staan dan onder elkaar.
|
|
6
|
-
|
|
7
|
-
De functionaliteit op desktop en mobiel is gelijk.
|
|
8
|
-
|
|
9
|
-
De hoogte wordt bepaald door de content. De breedte van de voettekst op desktop is niet schermvullend.
|
|
10
|
-
|
|
11
|
-
De voettekst wordt nooit ingeklapt. Ook niet in mobiele weergave.
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
# CSS Heading
|
|
2
|
-
|
|
3
|
-
Gebruik de juiste heading HTML-elementen als je van deze classes gebruik maakt. De beschikbare elementen zijn: `h1`, `h2`, `h3`, `h4`, `h5` en `h6`. Let bij het kiezen van een heading niveau op de structuur van de pagina. Heading niveaus worden gebruikt om informatie te groeperen. De titel van de pagina krijgt een `h1`. De eerste subtitel een `h2`. De daarna volgende titels van secties die horen bij die subtitel krijgen een `h3`, enzovoort. Als je een nieuwe sectie begint, gebruik je weer een `h2`. Het is toegestaan om stijl en semantiek los van elkaar te trekken. Een `h1` kan bijvoorbeeld de class `amsterdam-heading-2` krijgen.
|