@amsterdam/design-system-css 0.14.1 → 0.16.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.
Files changed (223) hide show
  1. package/CHANGELOG.md +91 -0
  2. package/README.md +3 -1
  3. package/dist/accordion/accordion.css +1 -1
  4. package/dist/accordion/accordion.css.map +1 -1
  5. package/dist/action-group/action-group.css +1 -1
  6. package/dist/action-group/action-group.css.map +1 -1
  7. package/dist/alert/alert.css +1 -1
  8. package/dist/alert/alert.css.map +1 -1
  9. package/dist/aspect-ratio/aspect-ratio.css +1 -1
  10. package/dist/aspect-ratio/aspect-ratio.css.map +1 -1
  11. package/dist/avatar/avatar.css +1 -1
  12. package/dist/avatar/avatar.css.map +1 -1
  13. package/dist/badge/badge.css +1 -1
  14. package/dist/badge/badge.css.map +1 -1
  15. package/dist/blockquote/blockquote.css +1 -1
  16. package/dist/blockquote/blockquote.css.map +1 -1
  17. package/dist/breadcrumb/breadcrumb.css +1 -1
  18. package/dist/breadcrumb/breadcrumb.css.map +1 -1
  19. package/dist/breakout/breakout.css +1 -1
  20. package/dist/breakout/breakout.css.map +1 -1
  21. package/dist/button/button.css +1 -1
  22. package/dist/button/button.css.map +1 -1
  23. package/dist/card/card.css +1 -1
  24. package/dist/card/card.css.map +1 -1
  25. package/dist/character-count/character-count.css +1 -1
  26. package/dist/character-count/character-count.css.map +1 -1
  27. package/dist/checkbox/checkbox.css +1 -1
  28. package/dist/checkbox/checkbox.css.map +1 -1
  29. package/dist/column/column.css +1 -1
  30. package/dist/column/column.css.map +1 -1
  31. package/dist/date-input/date-input.css +1 -1
  32. package/dist/date-input/date-input.css.map +1 -1
  33. package/dist/description-list/description-list.css +1 -1
  34. package/dist/description-list/description-list.css.map +1 -1
  35. package/dist/dialog/dialog.css +1 -1
  36. package/dist/dialog/dialog.css.map +1 -1
  37. package/dist/error-message/error-message.css +1 -1
  38. package/dist/error-message/error-message.css.map +1 -1
  39. package/dist/field-set/field-set.css +1 -1
  40. package/dist/field-set/field-set.css.map +1 -1
  41. package/dist/figure/figure.css +1 -1
  42. package/dist/figure/figure.css.map +1 -1
  43. package/dist/file-input/file-input.css +1 -1
  44. package/dist/file-input/file-input.css.map +1 -1
  45. package/dist/file-list/file-list.css +1 -1
  46. package/dist/file-list/file-list.css.map +1 -1
  47. package/dist/gap/gap.css +1 -1
  48. package/dist/gap/gap.css.map +1 -1
  49. package/dist/grid/grid.css +1 -1
  50. package/dist/grid/grid.css.map +1 -1
  51. package/dist/heading/heading.css +1 -1
  52. package/dist/heading/heading.css.map +1 -1
  53. package/dist/icon/icon.css +1 -1
  54. package/dist/icon/icon.css.map +1 -1
  55. package/dist/icon-button/icon-button.css +1 -1
  56. package/dist/icon-button/icon-button.css.map +1 -1
  57. package/dist/image-slider/image-slider.css +1 -1
  58. package/dist/image-slider/image-slider.css.map +1 -1
  59. package/dist/index.css +1 -1
  60. package/dist/index.css.map +1 -1
  61. package/dist/invalid-form-alert/invalid-form-alert.css +1 -0
  62. package/dist/invalid-form-alert/invalid-form-alert.css.map +1 -0
  63. package/dist/label/label.css +1 -1
  64. package/dist/label/label.css.map +1 -1
  65. package/dist/link/link.css +1 -1
  66. package/dist/link/link.css.map +1 -1
  67. package/dist/link-list/link-list.css +1 -1
  68. package/dist/link-list/link-list.css.map +1 -1
  69. package/dist/margin/margin.css +1 -1
  70. package/dist/margin/margin.css.map +1 -1
  71. package/dist/ordered-list/ordered-list.css +1 -1
  72. package/dist/ordered-list/ordered-list.css.map +1 -1
  73. package/dist/page/page.css +1 -0
  74. package/dist/page/page.css.map +1 -0
  75. package/dist/page-footer/page-footer.css +1 -0
  76. package/dist/page-footer/page-footer.css.map +1 -0
  77. package/dist/page-header/page-header.css +1 -0
  78. package/dist/page-header/page-header.css.map +1 -0
  79. package/dist/page-heading/page-heading.css +1 -1
  80. package/dist/page-heading/page-heading.css.map +1 -1
  81. package/dist/pagination/pagination.css +1 -1
  82. package/dist/pagination/pagination.css.map +1 -1
  83. package/dist/paragraph/paragraph.css +1 -1
  84. package/dist/paragraph/paragraph.css.map +1 -1
  85. package/dist/password-input/password-input.css +1 -1
  86. package/dist/password-input/password-input.css.map +1 -1
  87. package/dist/radio/radio.css +1 -1
  88. package/dist/radio/radio.css.map +1 -1
  89. package/dist/row/row.css +1 -1
  90. package/dist/row/row.css.map +1 -1
  91. package/dist/search-field/search-field.css +1 -1
  92. package/dist/search-field/search-field.css.map +1 -1
  93. package/dist/select/select.css +1 -1
  94. package/dist/select/select.css.map +1 -1
  95. package/dist/spotlight/spotlight.css +1 -1
  96. package/dist/spotlight/spotlight.css.map +1 -1
  97. package/dist/standalone-link/standalone-link.css +1 -0
  98. package/dist/standalone-link/standalone-link.css.map +1 -0
  99. package/dist/switch/switch.css +1 -1
  100. package/dist/switch/switch.css.map +1 -1
  101. package/dist/table-of-contents/table-of-contents.css +1 -1
  102. package/dist/table-of-contents/table-of-contents.css.map +1 -1
  103. package/dist/tabs/tabs.css +1 -1
  104. package/dist/tabs/tabs.css.map +1 -1
  105. package/dist/text-area/text-area.css +1 -1
  106. package/dist/text-area/text-area.css.map +1 -1
  107. package/dist/text-input/text-input.css +1 -1
  108. package/dist/text-input/text-input.css.map +1 -1
  109. package/dist/time-input/time-input.css +1 -1
  110. package/dist/time-input/time-input.css.map +1 -1
  111. package/dist/unordered-list/unordered-list.css +1 -1
  112. package/dist/unordered-list/unordered-list.css.map +1 -1
  113. package/dist/visually-hidden/visually-hidden.css +1 -1
  114. package/dist/visually-hidden/visually-hidden.css.map +1 -1
  115. package/package.json +4 -4
  116. package/src/common/hyphenation.scss +3 -3
  117. package/src/components/accordion/accordion.scss +6 -6
  118. package/src/components/action-group/README.md +1 -1
  119. package/src/components/action-group/action-group.scss +1 -1
  120. package/src/components/alert/README.md +13 -15
  121. package/src/components/alert/alert.scss +29 -14
  122. package/src/components/aspect-ratio/README.md +8 -8
  123. package/src/components/aspect-ratio/aspect-ratio.scss +6 -3
  124. package/src/components/avatar/README.md +5 -4
  125. package/src/components/avatar/avatar.scss +8 -46
  126. package/src/components/badge/README.md +7 -6
  127. package/src/components/badge/badge.scss +13 -40
  128. package/src/components/blockquote/blockquote.scss +1 -1
  129. package/src/components/breadcrumb/breadcrumb.scss +2 -0
  130. package/src/components/breakout/breakout.scss +23 -23
  131. package/src/components/button/README.md +1 -1
  132. package/src/components/button/button.scss +4 -1
  133. package/src/components/card/README.md +15 -14
  134. package/src/components/card/card.scss +24 -19
  135. package/src/components/character-count/character-count.scss +2 -0
  136. package/src/components/checkbox/checkbox.scss +6 -7
  137. package/src/components/column/column.scss +9 -8
  138. package/src/components/date-input/date-input.scss +3 -4
  139. package/src/components/description-list/description-list.scss +12 -10
  140. package/src/components/dialog/README.md +3 -5
  141. package/src/components/dialog/dialog.scss +38 -5
  142. package/src/components/error-message/error-message.scss +2 -0
  143. package/src/components/field-set/field-set.scss +8 -7
  144. package/src/components/figure/figure.scss +3 -1
  145. package/src/components/file-input/file-input.scss +2 -2
  146. package/src/components/file-list/file-list.scss +2 -1
  147. package/src/components/gap/README.md +13 -9
  148. package/src/components/gap/gap.scss +8 -12
  149. package/src/components/grid/README.md +9 -8
  150. package/src/components/grid/_mixins.scss +27 -25
  151. package/src/components/grid/grid.scss +19 -19
  152. package/src/components/heading/README.md +7 -7
  153. package/src/components/heading/heading.scss +20 -19
  154. package/src/components/icon/README.md +5 -5
  155. package/src/components/icon/icon.scss +41 -27
  156. package/src/components/icon-button/icon-button.scss +16 -15
  157. package/src/components/image-slider/README.md +1 -1
  158. package/src/components/image-slider/image-slider.scss +11 -3
  159. package/src/components/index.scss +5 -7
  160. package/src/components/{form-error-list → invalid-form-alert}/README.md +9 -9
  161. package/src/components/{form-error-list/form-error-list.scss → invalid-form-alert/invalid-form-alert.scss} +4 -4
  162. package/src/components/label/label.scss +1 -0
  163. package/src/components/link/README.md +9 -11
  164. package/src/components/link/link.scss +13 -46
  165. package/src/components/link-list/link-list.scss +7 -8
  166. package/src/components/logo/README.md +1 -1
  167. package/src/components/margin/README.md +16 -10
  168. package/src/components/margin/margin.scss +6 -8
  169. package/src/components/ordered-list/ordered-list.scss +3 -1
  170. package/src/components/page/README.md +23 -0
  171. package/src/components/page/page.scss +12 -0
  172. package/src/components/{footer → page-footer}/README.md +7 -4
  173. package/src/components/page-footer/page-footer.scss +56 -0
  174. package/src/components/{header → page-header}/README.md +6 -5
  175. package/src/components/page-header/page-header.scss +237 -0
  176. package/src/components/page-heading/README.md +1 -1
  177. package/src/components/page-heading/page-heading.scss +2 -1
  178. package/src/components/pagination/pagination.scss +23 -34
  179. package/src/components/paragraph/paragraph.scss +3 -1
  180. package/src/components/password-input/password-input.scss +2 -3
  181. package/src/components/radio/radio.scss +4 -5
  182. package/src/components/row/row.scss +9 -9
  183. package/src/components/search-field/search-field.scss +2 -3
  184. package/src/components/select/select.scss +2 -2
  185. package/src/components/skip-link/README.md +3 -3
  186. package/src/components/spotlight/README.md +5 -3
  187. package/src/components/spotlight/spotlight.scss +6 -10
  188. package/src/components/standalone-link/README.md +11 -0
  189. package/src/components/standalone-link/standalone-link.scss +53 -0
  190. package/src/components/switch/switch.scss +2 -2
  191. package/src/components/table-of-contents/table-of-contents.scss +2 -0
  192. package/src/components/tabs/README.md +1 -1
  193. package/src/components/tabs/tabs.scss +6 -3
  194. package/src/components/text-area/text-area.scss +1 -2
  195. package/src/components/text-input/text-input.scss +2 -3
  196. package/src/components/time-input/time-input.scss +3 -4
  197. package/src/components/unordered-list/unordered-list.scss +3 -1
  198. package/src/components/visually-hidden/visually-hidden.scss +1 -0
  199. package/dist/footer/footer.css +0 -1
  200. package/dist/footer/footer.css.map +0 -1
  201. package/dist/form-error-list/form-error-list.css +0 -1
  202. package/dist/form-error-list/form-error-list.css.map +0 -1
  203. package/dist/header/header.css +0 -1
  204. package/dist/header/header.css.map +0 -1
  205. package/dist/mega-menu/mega-menu.css +0 -1
  206. package/dist/mega-menu/mega-menu.css.map +0 -1
  207. package/dist/page-menu/page-menu.css +0 -1
  208. package/dist/page-menu/page-menu.css.map +0 -1
  209. package/dist/screen/screen.css +0 -1
  210. package/dist/screen/screen.css.map +0 -1
  211. package/dist/top-task-link/top-task-link.css +0 -1
  212. package/dist/top-task-link/top-task-link.css.map +0 -1
  213. package/src/common/size.scss +0 -14
  214. package/src/components/footer/footer.scss +0 -8
  215. package/src/components/header/header.scss +0 -216
  216. package/src/components/mega-menu/README.md +0 -3
  217. package/src/components/mega-menu/mega-menu.scss +0 -16
  218. package/src/components/page-menu/README.md +0 -24
  219. package/src/components/page-menu/page-menu.scss +0 -67
  220. package/src/components/screen/README.md +0 -23
  221. package/src/components/screen/screen.scss +0 -23
  222. package/src/components/top-task-link/README.md +0 -27
  223. package/src/components/top-task-link/top-task-link.scss +0 -45
@@ -1,216 +0,0 @@
1
- /**
2
- * @license EUPL-1.2+
3
- * Copyright Gemeente Amsterdam
4
- */
5
-
6
- @use "../../common/breakpoint" as *;
7
- @use "../../common/text-rendering" as *;
8
-
9
- .ams-header {
10
- /*
11
- * The branding section is created twice: once outside the navigation and once hidden inside it.
12
- * This keeps all navigation in one nav element and lets the menu wrap around the branding section.
13
- * Display grid is used to let both branding sections overlap.
14
- */
15
- display: grid;
16
- padding-block: var(--ams-header-padding-block);
17
- padding-inline: var(--ams-header-padding-inline);
18
- }
19
-
20
- .ams-header__branding {
21
- align-items: center;
22
- align-self: start; // To align the branding section to the top of the header when it wraps
23
- column-gap: var(--ams-header-branding-column-gap);
24
- display: flex;
25
- grid-area: 1 / 1; // To allow this section to overlap with the second branding section
26
- }
27
-
28
- .ams-header__branding--hidden {
29
- opacity: 0%;
30
- user-select: none; // The hidden branding section should not be selectable
31
- }
32
-
33
- .ams-header__logo-link {
34
- outline-offset: var(--ams-header-logo-link-outline-offset);
35
- }
36
-
37
- /* TODO Remove after updating Heading line heights in DES-973. */
38
- .ams-heading.ams-header__brand-name {
39
- line-height: 1.35;
40
- }
41
-
42
- .ams-header__navigation {
43
- column-gap: var(--ams-header-navigation-column-gap);
44
- display: flex;
45
- flex-wrap: wrap;
46
- grid-area: 1 / 1; // To allow this section to overlap with the branding section
47
- // This section blocks pointer events initially, so the hidden branding section can't be activated.
48
- // The menu and collapsible menu set it back to auto, to make sure they can be activated.
49
- pointer-events: none;
50
- row-gap: var(--ams-header-navigation-row-gap);
51
- }
52
-
53
- @mixin reset-list {
54
- list-style: none;
55
- margin-block: 0;
56
- padding-inline-start: 0;
57
- }
58
-
59
- .ams-header__menu {
60
- align-items: center;
61
- column-gap: var(--ams-header-menu-column-gap);
62
- display: flex;
63
- flex-wrap: wrap;
64
- justify-content: flex-end;
65
- margin-inline-start: auto;
66
- pointer-events: auto; // Set pointer events back to auto to allow the menu to be activated
67
- row-gap: var(--ams-header-menu-row-gap);
68
-
69
- @include reset-list;
70
- }
71
-
72
- // Do not show menu items below the wide breakpoint...
73
- .ams-header__menu-item {
74
- @media screen and (not (min-width: $ams-breakpoint-wide)) {
75
- display: none;
76
- }
77
- }
78
-
79
- // ...unless they're fixed.
80
- .ams-header__menu-item--fixed {
81
- display: revert;
82
- }
83
-
84
- @mixin header-menu-action {
85
- color: var(--ams-header-menu-item-color);
86
- font-family: var(--ams-header-menu-item-font-family);
87
- font-size: var(--ams-header-menu-item-font-size);
88
- font-weight: var(--ams-header-menu-item-font-weight);
89
- line-height: var(--ams-header-menu-item-line-height);
90
- outline-offset: var(--ams-header-menu-item-outline-offset);
91
- padding-block: var(--ams-header-menu-item-padding-block);
92
- touch-action: manipulation;
93
- white-space: nowrap;
94
-
95
- @include text-rendering;
96
-
97
- &:hover {
98
- color: var(--ams-header-menu-item-hover-color);
99
- }
100
- }
101
-
102
- .ams-header__menu-link {
103
- display: inline-block;
104
- text-decoration-line: var(--ams-header-menu-link-text-decoration-line);
105
- text-decoration-thickness: var(--ams-header-menu-link-text-decoration-thickness);
106
- text-underline-offset: var(--ams-header-menu-link-text-underline-offset);
107
-
108
- @include header-menu-action;
109
-
110
- &:hover {
111
- text-decoration-line: var(--ams-header-menu-link-hover-text-decoration-line);
112
- }
113
- }
114
-
115
- .ams-header__mega-menu-button-item--hide-on-wide-window {
116
- @media screen and (min-width: $ams-breakpoint-wide) {
117
- display: none;
118
- }
119
- }
120
-
121
- @mixin reset-button {
122
- background: none;
123
- border: 0;
124
- margin-block: 0; // [1]
125
- margin-inline: 0; // [1]
126
- padding-inline: 0;
127
-
128
- // [1] Remove the margin in older Safari.
129
- }
130
-
131
- .ams-header__mega-menu-button {
132
- column-gap: var(--ams-header-menu-item-column-gap);
133
- cursor: pointer;
134
- display: grid;
135
- grid-auto-flow: column;
136
-
137
- @include header-menu-action;
138
- @include reset-button;
139
- }
140
-
141
- .ams-header__mega-menu-button[aria-expanded="true"] {
142
- font-weight: var(--ams-header-mega-menu-button-label-open-font-weight);
143
- }
144
-
145
- .ams-header__mega-menu-button-label,
146
- .ams-header__mega-menu-button-hidden-label {
147
- grid-area: 1 / 1; // To allow the label and the hidden label to overlap
148
- }
149
-
150
- // This hidden label is used to prevent a layout shift when the mega menu is opened
151
- // and the button text becomes bold.
152
- .ams-header__mega-menu-button-hidden-label {
153
- font-weight: var(--ams-header-mega-menu-button-label-open-font-weight);
154
- pointer-events: none;
155
- user-select: none;
156
- visibility: hidden;
157
- }
158
-
159
- .ams-header__menu-icon {
160
- line {
161
- stroke: currentColor;
162
- stroke-width: 3px;
163
- transform-origin: center;
164
- transition:
165
- translate 0.1s ease-in-out,
166
- rotate 0.2s ease-in-out,
167
- opacity 0.1s ease-in-out;
168
-
169
- @media (prefers-reduced-motion) {
170
- transition: none;
171
- }
172
- }
173
-
174
- .ams-header__menu-icon-top {
175
- translate: 0 -7px;
176
- }
177
-
178
- .ams-header__menu-icon-bottom {
179
- translate: 0 7px;
180
- }
181
- }
182
-
183
- .ams-header__menu-icon--open {
184
- .ams-header__menu-icon-top {
185
- rotate: 45deg;
186
- translate: 0;
187
- }
188
- .ams-header__menu-icon-middle {
189
- opacity: 0%;
190
- }
191
- .ams-header__menu-icon-bottom {
192
- rotate: -45deg;
193
- translate: 0;
194
- }
195
- }
196
-
197
- .ams-header__mega-menu {
198
- inline-size: 100%;
199
- pointer-events: auto; // Set pointer events back to auto to allow the mega menu to be activated
200
-
201
- // Remove inline padding from Grids that are used in the mega menu.
202
- // The grid inline padding is set on the header element.
203
- & .ams-grid {
204
- padding-inline: 0;
205
- }
206
- }
207
-
208
- .ams-header__mega-menu--closed.ams-header__mega-menu--closed {
209
- display: none;
210
- }
211
-
212
- .ams-header__grid-cell-narrow-window-only {
213
- @media screen and (min-width: $ams-breakpoint-wide) {
214
- display: none;
215
- }
216
- }
@@ -1,3 +0,0 @@
1
- <!-- @license CC0-1.0 -->
2
-
3
- # Mega Menu
@@ -1,16 +0,0 @@
1
- /**
2
- * @license EUPL-1.2+
3
- * Copyright Gemeente Amsterdam
4
- */
5
-
6
- .ams-mega-menu__list-category {
7
- column-gap: var(--ams-mega-menu-list-category-column-gap);
8
- column-width: var(--ams-mega-menu-list-category-column-width);
9
-
10
- // TODO Move to bottom margin of heading
11
- padding-block-start: var(--ams-mega-menu-list-category-padding-block-start);
12
-
13
- &:not(:last-child) {
14
- padding-block-end: var(--ams-mega-menu-list-category-padding-block-end);
15
- }
16
- }
@@ -1,24 +0,0 @@
1
- <!-- @license CC0-1.0 -->
2
-
3
- # Page Menu
4
-
5
- A small set of links for use in the Header and Footer.
6
-
7
- ## Guidelines
8
-
9
- - Limit the amount of menu items in the Header to 5 items or less, including ‘Search’ and ‘Menu’.
10
- - The menu should fit on a single line and is right-aligned.
11
- - The menu in the footer is left-aligned.
12
- - Submenus are not allowed.
13
- - The ‘Menu’ button opens the Mega Menu.
14
- - On narrow screens, menu items other than ‘Search’ and ‘Menu’ move from the Page Menu to the Mega Menu.
15
-
16
- ### Using links with routing libraries
17
-
18
- Check out the [developer guide](/docs/docs-developer-guide-routing-libraries--docs) on how to integrate links with external routing libraries.
19
-
20
- ## Relevant WCAG requirements
21
-
22
- - [Consistent Navigation (Level AA)](https://www.w3.org/WAI/WCAG21/Understanding/consistent-navigation.html)
23
-
24
- Page Menu is an interactive element, and the [general requirements and guidelines for interactivity](/docs/docs-developer-guide-interactivity--docs) apply.
@@ -1,67 +0,0 @@
1
- /**
2
- * @license EUPL-1.2+
3
- * Copyright Gemeente Amsterdam
4
- */
5
-
6
- @use "../../common/text-rendering" as *;
7
-
8
- @mixin reset-ul {
9
- margin-block: 0;
10
- padding-inline: 0;
11
- }
12
-
13
- .ams-page-menu {
14
- align-items: center;
15
- box-sizing: border-box;
16
- column-gap: var(--ams-page-menu-column-gap);
17
- display: flex;
18
- flex-direction: row;
19
- flex-wrap: wrap;
20
- list-style: none;
21
- row-gap: var(--ams-page-menu-row-gap);
22
-
23
- @include reset-ul;
24
- }
25
-
26
- .ams-page-menu--align-end {
27
- justify-content: end;
28
- }
29
-
30
- .ams-page-menu--no-wrap {
31
- flex-wrap: nowrap;
32
- }
33
-
34
- @mixin page-menu-item {
35
- color: var(--ams-page-menu-item-color);
36
- display: inline-flex;
37
- flex-direction: row;
38
- font-family: var(--ams-page-menu-item-font-family);
39
- font-size: var(--ams-page-menu-item-font-size);
40
- font-weight: var(--ams-page-menu-item-font-weight);
41
- gap: var(--ams-page-menu-item-gap);
42
- line-height: var(--ams-page-menu-item-line-height);
43
- outline-offset: var(--ams-page-menu-item-outline-offset);
44
- text-align: center;
45
- text-decoration-line: var(--ams-page-menu-item-text-decoration-line);
46
- text-decoration-thickness: var(--ams-page-menu-item-text-decoration-thickness);
47
- text-underline-offset: var(--ams-page-menu-item-text-underline-offset);
48
- touch-action: manipulation;
49
- white-space: nowrap;
50
- }
51
-
52
- .ams-page-menu__link {
53
- box-sizing: border-box;
54
-
55
- @include page-menu-item;
56
- @include text-rendering;
57
- }
58
-
59
- .ams-page-menu__link:hover,
60
- .ams-page-menu__button:hover {
61
- color: var(--ams-page-menu-item-hover-color);
62
- text-decoration-line: var(--ams-page-menu-item-hover-text-decoration-line);
63
- }
64
-
65
- .ams-page-menu__link svg {
66
- color: currentColor;
67
- }
@@ -1,23 +0,0 @@
1
- <!-- @license CC0-1.0 -->
2
-
3
- # Screen
4
-
5
- Manages the maximum width and alignment of the entire website or application.
6
-
7
- ## Guidelines
8
-
9
- - This should be the outermost component of your website or application.
10
- - Within it, combine components such as
11
- [Grid](/docs/components-layout-grid--docs),
12
- [Header](/docs/components-containers-header--docs),
13
- [Footer](/docs/components-containers-footer--docs),
14
- [Spotlight](/docs/components-containers-spotlight--docs),
15
- [Image Slider](/docs/components-media-image-slider--docs),
16
- and Figure.
17
-
18
- ## Design
19
-
20
- By default, this component expands to a width of 1600 pixels.
21
- This is the maximum width for a website of the City of Amsterdam.
22
- For applications, you can choose a larger maximum width of 2112 pixels.
23
- The component horizontally centres both itself and its content.
@@ -1,23 +0,0 @@
1
- /**
2
- * @license EUPL-1.2+
3
- * Copyright Gemeente Amsterdam
4
- */
5
-
6
- .ams-screen {
7
- background-color: var(--ams-screen-background-color);
8
- box-sizing: border-box;
9
- margin-inline: auto;
10
- position: relative;
11
- }
12
-
13
- .ams-screen--full-height {
14
- min-block-size: 100vh;
15
- }
16
-
17
- .ams-screen--wide {
18
- max-inline-size: var(--ams-screen-wide-max-inline-size);
19
- }
20
-
21
- .ams-screen--x-wide {
22
- max-inline-size: var(--ams-screen-x-wide-max-inline-size);
23
- }
@@ -1,27 +0,0 @@
1
- <!-- @license CC0-1.0 -->
2
-
3
- # Top Task Link
4
-
5
- A prominent navigation element to quickly start a task.
6
-
7
- ## Guidelines
8
-
9
- - A Top Task Link has both a title and a description.
10
- - The title describes the essence of the page being referred to, attracting attention when scanning the page.
11
- - The description provides more context, helping the user confirm that they can indeed achieve their goal on the linked page.
12
- - Keep both texts concise.
13
- A title consists of a few words, and the description consists of 1 or 2 short sentences.
14
- The description should end with a period or another appropriate punctuation mark.
15
- - For wide windows, place 3 or 4 Top Task Links side by side on the [Grid](/docs/components-layout-grid--docs).
16
- If you have more Top Task Links, place them in the next row.
17
- Try to distribute the amount of links on wide windows over rows of 3 or 4 links.
18
- If this is not possible, leave the last cells of the grid empty.
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).
20
-
21
- ### Using links with routing libraries
22
-
23
- Check out the [developer guide](/docs/docs-developer-guide-routing-libraries--docs) on how to integrate links with external routing libraries.
24
-
25
- ## Relevant WCAG requirements
26
-
27
- The Top Task Link is subject to the same requirements as [regular links](/docs/components-navigation-link--docs).
@@ -1,45 +0,0 @@
1
- /**
2
- * @license EUPL-1.2+
3
- * Copyright Gemeente Amsterdam
4
- */
5
-
6
- @use "../../common/hyphenation" as *;
7
- @use "../../common/text-rendering" as *;
8
-
9
- .ams-top-task-link {
10
- break-inside: avoid;
11
- display: flex;
12
- flex-direction: column;
13
- gap: var(--ams-top-task-link-gap);
14
- outline-offset: var(--ams-top-task-link-outline-offset);
15
- text-decoration: none;
16
- }
17
-
18
- .ams-top-task-link__label {
19
- box-sizing: border-box;
20
- color: var(--ams-top-task-link-label-color);
21
- font-family: var(--ams-top-task-link-label-font-family);
22
- font-size: var(--ams-top-task-link-label-font-size);
23
- font-weight: var(--ams-top-task-link-label-font-weight);
24
- line-height: var(--ams-top-task-link-label-line-height);
25
- text-decoration-line: var(--ams-top-task-link-label-text-decoration-line);
26
- text-decoration-thickness: var(--ams-top-task-link-label-text-decoration-thickness);
27
- text-underline-offset: var(--ams-top-task-link-label-text-underline-offset);
28
-
29
- @include hyphenation;
30
- @include text-rendering;
31
- }
32
-
33
- .ams-top-task-link:hover .ams-top-task-link__label {
34
- color: var(--ams-top-task-link-label-hover-color);
35
- text-decoration-line: var(--ams-top-task-link-label-hover-text-decoration-line);
36
- }
37
-
38
- .ams-top-task-link__description {
39
- box-sizing: border-box;
40
- color: var(--ams-top-task-link-description-color);
41
- font-family: var(--ams-top-task-link-description-font-family);
42
- font-size: var(--ams-top-task-link-description-font-size);
43
- font-weight: var(--ams-top-task-link-description-font-weight);
44
- line-height: var(--ams-top-task-link-description-line-height);
45
- }