@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.
Files changed (177) hide show
  1. package/CHANGELOG.md +51 -2
  2. package/LICENSE.txt +287 -0
  3. package/README.md +11 -0
  4. package/dist/accordion/accordion.css +1 -1
  5. package/dist/accordion/accordion.css.map +1 -1
  6. package/dist/alert/alert.css +1 -1
  7. package/dist/alert/alert.css.map +1 -1
  8. package/dist/badge/badge.css +1 -1
  9. package/dist/badge/badge.css.map +1 -1
  10. package/dist/blockquote/blockquote.css +1 -1
  11. package/dist/blockquote/blockquote.css.map +1 -1
  12. package/dist/breadcrumb/breadcrumb.css +1 -1
  13. package/dist/breadcrumb/breadcrumb.css.map +1 -1
  14. package/dist/button/button.css +1 -1
  15. package/dist/button/button.css.map +1 -1
  16. package/dist/checkbox/checkbox.css +1 -1
  17. package/dist/checkbox/checkbox.css.map +1 -1
  18. package/dist/column/column.css +1 -0
  19. package/dist/column/column.css.map +1 -0
  20. package/dist/dialog/dialog.css +1 -1
  21. package/dist/dialog/dialog.css.map +1 -1
  22. package/dist/fieldset/fieldset.css +1 -0
  23. package/dist/fieldset/fieldset.css.map +1 -0
  24. package/dist/form-label/form-label.css +1 -1
  25. package/dist/form-label/form-label.css.map +1 -1
  26. package/dist/gap/gap.css +1 -0
  27. package/dist/gap/gap.css.map +1 -0
  28. package/dist/grid/grid.css +1 -1
  29. package/dist/grid/grid.css.map +1 -1
  30. package/dist/header/header.css +1 -1
  31. package/dist/header/header.css.map +1 -1
  32. package/dist/heading/heading.css +1 -1
  33. package/dist/heading/heading.css.map +1 -1
  34. package/dist/icon/icon.css +1 -1
  35. package/dist/icon/icon.css.map +1 -1
  36. package/dist/index.css +1 -1
  37. package/dist/index.css.map +1 -1
  38. package/dist/link/link.css +1 -1
  39. package/dist/link/link.css.map +1 -1
  40. package/dist/link-list/link-list.css +1 -1
  41. package/dist/link-list/link-list.css.map +1 -1
  42. package/dist/margin/margin.css +1 -0
  43. package/dist/margin/margin.css.map +1 -0
  44. package/dist/mega-menu/mega-menu.css.map +1 -1
  45. package/dist/ordered-list/ordered-list.css +1 -1
  46. package/dist/ordered-list/ordered-list.css.map +1 -1
  47. package/dist/page-heading/page-heading.css +1 -1
  48. package/dist/page-heading/page-heading.css.map +1 -1
  49. package/dist/page-menu/page-menu.css +1 -1
  50. package/dist/page-menu/page-menu.css.map +1 -1
  51. package/dist/pagination/pagination.css +1 -1
  52. package/dist/pagination/pagination.css.map +1 -1
  53. package/dist/paragraph/paragraph.css +1 -1
  54. package/dist/paragraph/paragraph.css.map +1 -1
  55. package/dist/radio/radio.css +1 -0
  56. package/dist/radio/radio.css.map +1 -0
  57. package/dist/row/row.css +1 -0
  58. package/dist/row/row.css.map +1 -0
  59. package/dist/search-field/search-field.css +1 -1
  60. package/dist/search-field/search-field.css.map +1 -1
  61. package/dist/skip-link/skip-link.css +1 -1
  62. package/dist/skip-link/skip-link.css.map +1 -1
  63. package/dist/switch/switch.css +1 -1
  64. package/dist/switch/switch.css.map +1 -1
  65. package/dist/table/table.css +1 -1
  66. package/dist/table/table.css.map +1 -1
  67. package/dist/tabs/tabs.css +1 -0
  68. package/dist/tabs/tabs.css.map +1 -0
  69. package/dist/text-area/text-area.css +1 -0
  70. package/dist/text-area/text-area.css.map +1 -0
  71. package/dist/text-input/text-input.css +1 -1
  72. package/dist/text-input/text-input.css.map +1 -1
  73. package/dist/top-task-link/top-task-link.css +1 -1
  74. package/dist/top-task-link/top-task-link.css.map +1 -1
  75. package/dist/unordered-list/unordered-list.css +1 -1
  76. package/dist/unordered-list/unordered-list.css.map +1 -1
  77. package/package.json +9 -10
  78. package/src/common/breakpoint.scss +1 -1
  79. package/src/common/calculate-fluid-style.scss +1 -1
  80. package/src/common/hide-input.scss +11 -0
  81. package/src/common/hyphenation.scss +10 -0
  82. package/src/common/input-label-focus.scss +21 -0
  83. package/src/common/size.scss +13 -0
  84. package/src/components/accordion/README.md +2 -0
  85. package/src/components/accordion/accordion.scss +7 -12
  86. package/src/components/alert/README.md +4 -2
  87. package/src/components/alert/alert.scss +3 -5
  88. package/src/components/aspect-ratio/README.md +2 -0
  89. package/src/components/aspect-ratio/aspect-ratio.scss +1 -1
  90. package/src/components/badge/README.md +2 -0
  91. package/src/components/badge/badge.scss +3 -8
  92. package/src/components/blockquote/README.md +2 -0
  93. package/src/components/blockquote/blockquote.scss +6 -8
  94. package/src/components/breadcrumb/README.md +2 -0
  95. package/src/components/breadcrumb/breadcrumb.scss +3 -8
  96. package/src/components/button/README.md +3 -1
  97. package/src/components/button/button.scss +60 -15
  98. package/src/components/card/README.md +5 -3
  99. package/src/components/card/card.scss +1 -1
  100. package/src/components/checkbox/README.md +3 -1
  101. package/src/components/checkbox/checkbox.scss +19 -31
  102. package/src/components/column/README.md +5 -0
  103. package/src/components/column/column.scss +16 -0
  104. package/src/components/dialog/README.md +2 -0
  105. package/src/components/dialog/dialog.scss +7 -9
  106. package/src/components/fieldset/README.md +18 -0
  107. package/src/components/fieldset/fieldset.scss +34 -0
  108. package/src/components/footer/README.md +2 -0
  109. package/src/components/form-label/README.md +2 -0
  110. package/src/components/form-label/form-label.scss +6 -8
  111. package/src/components/gap/README.md +5 -0
  112. package/src/components/gap/gap.scss +16 -0
  113. package/src/components/grid/README.md +5 -3
  114. package/src/components/grid/grid.scss +14 -21
  115. package/src/components/header/README.md +2 -0
  116. package/src/components/header/header.scss +7 -7
  117. package/src/components/heading/README.md +2 -0
  118. package/src/components/heading/heading.scss +16 -43
  119. package/src/components/icon/README.md +3 -1
  120. package/src/components/icon/icon.scss +13 -51
  121. package/src/components/icon-button/README.md +3 -1
  122. package/src/components/icon-button/icon-button.scss +1 -1
  123. package/src/components/image/README.md +3 -1
  124. package/src/components/image/image.scss +2 -2
  125. package/src/components/index.scss +9 -1
  126. package/src/components/link/README.md +2 -0
  127. package/src/components/link/link.scss +3 -36
  128. package/src/components/link-list/README.md +3 -1
  129. package/src/components/link-list/link-list.scss +10 -21
  130. package/src/components/logo/README.md +4 -1
  131. package/src/components/logo/logo.scss +1 -1
  132. package/src/components/margin/README.md +5 -0
  133. package/src/components/margin/margin.scss +12 -0
  134. package/src/components/mark/README.md +2 -0
  135. package/src/components/mark/mark.scss +1 -1
  136. package/src/components/mega-menu/README.md +2 -0
  137. package/src/components/mega-menu/mega-menu.scss +3 -1
  138. package/src/components/ordered-list/README.md +2 -0
  139. package/src/components/ordered-list/ordered-list.scss +8 -9
  140. package/src/components/overlap/README.md +2 -0
  141. package/src/components/overlap/overlap.scss +1 -1
  142. package/src/components/page-heading/README.md +3 -1
  143. package/src/components/page-heading/page-heading.scss +6 -8
  144. package/src/components/page-menu/README.md +3 -1
  145. package/src/components/page-menu/page-menu.scss +3 -8
  146. package/src/components/pagination/README.md +3 -1
  147. package/src/components/pagination/pagination.scss +4 -9
  148. package/src/components/paragraph/README.md +2 -0
  149. package/src/components/paragraph/paragraph.scss +7 -22
  150. package/src/components/radio/README.md +18 -0
  151. package/src/components/radio/radio.scss +157 -0
  152. package/src/components/row/README.md +3 -0
  153. package/src/components/row/row.scss +17 -0
  154. package/src/components/screen/README.md +6 -4
  155. package/src/components/screen/screen.scss +1 -1
  156. package/src/components/search-field/README.md +3 -1
  157. package/src/components/search-field/search-field.scss +9 -12
  158. package/src/components/skip-link/README.md +2 -0
  159. package/src/components/skip-link/skip-link.scss +3 -8
  160. package/src/components/spotlight/README.md +2 -0
  161. package/src/components/spotlight/spotlight.scss +1 -1
  162. package/src/components/switch/README.md +3 -1
  163. package/src/components/switch/switch.scss +11 -10
  164. package/src/components/table/README.md +3 -1
  165. package/src/components/table/table.scss +3 -3
  166. package/src/components/tabs/README.md +32 -0
  167. package/src/components/tabs/tabs.scss +41 -0
  168. package/src/components/text-area/README.md +17 -0
  169. package/src/components/text-area/text-area.scss +70 -0
  170. package/src/components/text-input/README.md +2 -0
  171. package/src/components/text-input/text-input.scss +5 -10
  172. package/src/components/top-task-link/README.md +5 -3
  173. package/src/components/top-task-link/top-task-link.scss +7 -14
  174. package/src/components/unordered-list/README.md +2 -0
  175. package/src/components/unordered-list/unordered-list.scss +8 -9
  176. package/src/components/visually-hidden/README.md +2 -0
  177. package/src/components/visually-hidden/visually-hidden.scss +1 -1
@@ -1,8 +1,10 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
+ @import "../../common/hyphenation";
7
+
6
8
  @mixin reset {
7
9
  box-sizing: border-box;
8
10
  margin-block: 0;
@@ -16,67 +18,38 @@
16
18
  font-family: var(--amsterdam-heading-font-family);
17
19
  font-weight: var(--amsterdam-heading-font-weight);
18
20
 
21
+ @include hyphenation;
19
22
  @include reset;
20
23
  }
21
24
 
22
25
  .amsterdam-heading--1 {
23
- font-size: var(--amsterdam-heading-spacious-level-1-font-size);
24
- line-height: var(--amsterdam-heading-spacious-level-1-line-height);
25
-
26
- .amsterdam-theme--compact & {
27
- font-size: var(--amsterdam-heading-compact-level-1-font-size);
28
- line-height: var(--amsterdam-heading-compact-level-1-line-height);
29
- }
26
+ font-size: var(--amsterdam-heading-level-1-font-size);
27
+ line-height: var(--amsterdam-heading-level-1-line-height);
30
28
  }
31
29
 
32
30
  .amsterdam-heading--2 {
33
- font-size: var(--amsterdam-heading-spacious-level-2-font-size);
34
- line-height: var(--amsterdam-heading-spacious-level-2-line-height);
35
-
36
- .amsterdam-theme--compact & {
37
- font-size: var(--amsterdam-heading-compact-level-2-font-size);
38
- line-height: var(--amsterdam-heading-compact-level-2-line-height);
39
- }
31
+ font-size: var(--amsterdam-heading-level-2-font-size);
32
+ line-height: var(--amsterdam-heading-level-2-line-height);
40
33
  }
41
34
 
42
35
  .amsterdam-heading--3 {
43
- font-size: var(--amsterdam-heading-spacious-level-3-font-size);
44
- line-height: var(--amsterdam-heading-spacious-level-3-line-height);
45
-
46
- .amsterdam-theme--compact & {
47
- font-size: var(--amsterdam-heading-compact-level-3-font-size);
48
- line-height: var(--amsterdam-heading-compact-level-3-line-height);
49
- }
36
+ font-size: var(--amsterdam-heading-level-3-font-size);
37
+ line-height: var(--amsterdam-heading-level-3-line-height);
50
38
  }
51
39
 
52
40
  .amsterdam-heading--4 {
53
- font-size: var(--amsterdam-heading-spacious-level-4-font-size);
54
- line-height: var(--amsterdam-heading-spacious-level-4-line-height);
55
-
56
- .amsterdam-theme--compact & {
57
- font-size: var(--amsterdam-heading-compact-level-4-font-size);
58
- line-height: var(--amsterdam-heading-compact-level-4-line-height);
59
- }
41
+ font-size: var(--amsterdam-heading-level-4-font-size);
42
+ line-height: var(--amsterdam-heading-level-4-line-height);
60
43
  }
61
44
 
62
45
  .amsterdam-heading--5 {
63
- font-size: var(--amsterdam-heading-spacious-level-5-font-size);
64
- line-height: var(--amsterdam-heading-spacious-level-5-line-height);
65
-
66
- .amsterdam-theme--compact & {
67
- font-size: var(--amsterdam-heading-compact-level-5-font-size);
68
- line-height: var(--amsterdam-heading-compact-level-5-line-height);
69
- }
46
+ font-size: var(--amsterdam-heading-level-5-font-size);
47
+ line-height: var(--amsterdam-heading-level-5-line-height);
70
48
  }
71
49
 
72
50
  .amsterdam-heading--6 {
73
- font-size: var(--amsterdam-heading-spacious-level-6-font-size);
74
- line-height: var(--amsterdam-heading-spacious-level-6-line-height);
75
-
76
- .amsterdam-theme--compact & {
77
- font-size: var(--amsterdam-heading-compact-level-6-font-size);
78
- line-height: var(--amsterdam-heading-compact-level-6-line-height);
79
- }
51
+ font-size: var(--amsterdam-heading-level-6-font-size);
52
+ line-height: var(--amsterdam-heading-level-6-line-height);
80
53
  }
81
54
 
82
55
  .amsterdam-heading--inverse-color {
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Icon
2
4
 
3
5
  Icons are visual symbols used to represent ideas, themes, or actions.
@@ -26,4 +28,4 @@ Icons are aligned to the left of the text by default and vertically centred to t
26
28
 
27
29
  Icons use the same text levels as all typographic components to determine their size.
28
30
  This ensures easy alignment between icons and text.
29
- [Refer to the typography documentation for more information](/docs/docs-designrichtlijnen-typografie--docs#tekstniveaus).
31
+ [Refer to the typography documentation for more information](/docs/docs-design-guidelines-typography--docs).
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  .amsterdam-icon {
@@ -18,75 +18,37 @@
18
18
  }
19
19
 
20
20
  .amsterdam-icon--size-3 {
21
- height: calc(var(--amsterdam-icon-spacious-size-3-font-size) * var(--amsterdam-icon-spacious-size-3-line-height));
21
+ height: calc(var(--amsterdam-icon-size-3-font-size) * var(--amsterdam-icon-size-3-line-height));
22
22
  }
23
23
 
24
24
  .amsterdam-icon--size-3 svg {
25
- height: var(--amsterdam-icon-spacious-size-3-font-size);
26
- width: var(--amsterdam-icon-spacious-size-3-font-size);
25
+ height: var(--amsterdam-icon-size-3-font-size);
26
+ width: var(--amsterdam-icon-size-3-font-size);
27
27
  }
28
28
 
29
29
  .amsterdam-icon--size-4 {
30
- height: calc(var(--amsterdam-icon-spacious-size-4-font-size) * var(--amsterdam-icon-spacious-size-4-line-height));
30
+ height: calc(var(--amsterdam-icon-size-4-font-size) * var(--amsterdam-icon-size-4-line-height));
31
31
  }
32
32
 
33
33
  .amsterdam-icon--size-4 svg {
34
- height: var(--amsterdam-icon-spacious-size-4-font-size);
35
- width: var(--amsterdam-icon-spacious-size-4-font-size);
34
+ height: var(--amsterdam-icon-size-4-font-size);
35
+ width: var(--amsterdam-icon-size-4-font-size);
36
36
  }
37
37
 
38
38
  .amsterdam-icon--size-5 {
39
- height: calc(var(--amsterdam-icon-spacious-size-5-font-size) * var(--amsterdam-icon-spacious-size-5-line-height));
39
+ height: calc(var(--amsterdam-icon-size-5-font-size) * var(--amsterdam-icon-size-5-line-height));
40
40
  }
41
41
 
42
42
  .amsterdam-icon--size-5 svg {
43
- height: var(--amsterdam-icon-spacious-size-5-font-size);
44
- width: var(--amsterdam-icon-spacious-size-5-font-size);
43
+ height: var(--amsterdam-icon-size-5-font-size);
44
+ width: var(--amsterdam-icon-size-5-font-size);
45
45
  }
46
46
 
47
47
  .amsterdam-icon--size-6 {
48
- height: calc(var(--amsterdam-icon-spacious-size-6-font-size) * var(--amsterdam-icon-spacious-size-6-line-height));
48
+ height: calc(var(--amsterdam-icon-size-6-font-size) * var(--amsterdam-icon-size-6-line-height));
49
49
  }
50
50
 
51
51
  .amsterdam-icon--size-6 svg {
52
- height: var(--amsterdam-icon-spacious-size-6-font-size);
53
- width: var(--amsterdam-icon-spacious-size-6-font-size);
54
- }
55
-
56
- .amsterdam-theme--compact {
57
- .amsterdam-icon--size-3 {
58
- height: calc(var(--amsterdam-icon-compact-size-3-font-size) * var(--amsterdam-icon-compact-size-3-line-height));
59
- }
60
-
61
- .amsterdam-icon--size-3 svg {
62
- height: var(--amsterdam-icon-compact-size-3-font-size);
63
- width: var(--amsterdam-icon-compact-size-3-font-size);
64
- }
65
-
66
- .amsterdam-icon--size-4 {
67
- height: calc(var(--amsterdam-icon-compact-size-4-font-size) * var(--amsterdam-icon-compact-size-4-line-height));
68
- }
69
-
70
- .amsterdam-icon--size-4 svg {
71
- height: var(--amsterdam-icon-compact-size-4-font-size);
72
- width: var(--amsterdam-icon-compact-size-4-font-size);
73
- }
74
-
75
- .amsterdam-icon--size-5 {
76
- height: calc(var(--amsterdam-icon-compact-size-5-font-size) * var(--amsterdam-icon-compact-size-5-line-height));
77
- }
78
-
79
- .amsterdam-icon--size-5 svg {
80
- height: var(--amsterdam-icon-compact-size-5-font-size);
81
- width: var(--amsterdam-icon-compact-size-5-font-size);
82
- }
83
-
84
- .amsterdam-icon--size-6 {
85
- height: calc(var(--amsterdam-icon-compact-size-6-font-size) * var(--amsterdam-icon-compact-size-6-line-height));
86
- }
87
-
88
- .amsterdam-icon--size-6 svg {
89
- height: var(--amsterdam-icon-compact-size-6-font-size);
90
- width: var(--amsterdam-icon-compact-size-6-font-size);
91
- }
52
+ height: var(--amsterdam-icon-size-6-font-size);
53
+ width: var(--amsterdam-icon-size-6-font-size);
92
54
  }
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Icon Button
2
4
 
3
5
  A button containing only an icon.
@@ -11,4 +13,4 @@ A button containing only an icon.
11
13
 
12
14
  ## Relevant WCAG Requirements
13
15
 
14
- The Icon Button follows [the same requirements and guidelines as a regular button](https://amsterdam.github.io/design-system/?path=/docs/react_buttons-button--docs).
16
+ The Icon Button follows [the same requirements and guidelines as a regular button](/docs/components-buttons-button--docs).
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  @mixin reset {
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Image
2
4
 
3
5
  Displays an image.
@@ -13,7 +15,7 @@ Displays an image.
13
15
  For example, provide small, medium, and large variants for various screen sizes.
14
16
  This prevents unnecessary downloading of large files.
15
17
  Do this especially for the main image of a page, where the difference between sizes on a narrow and wide screen is most significant.
16
- - Ensure that the aspect ratio of the image is supported by the [Aspect Ratio](?path=/docs/layout-aspect-ratio--docs) component.
18
+ - Ensure that the aspect ratio of the image is supported by the [Aspect Ratio](/docs/components-layout-aspect-ratio--docs) component.
17
19
 
18
20
  ## Relevant WCAG Requirements
19
21
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  .amsterdam-image {
@@ -15,6 +15,6 @@
15
15
  }
16
16
 
17
17
  // [1] Allow for fluid image sizing while maintaining aspect ratio governed by width/height attributes
18
- // [2] Remove ‘phantom’ whitespace
18
+ // [2] Remove ‘phantom’ white space
19
19
  // [3] Italicise alt text to visually offset it from surrounding copy
20
20
  // Source: https://x.com/csswizardry/status/1717841334462005661
@@ -1,9 +1,17 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  /* Append here */
7
+ @import "./row/row";
8
+ @import "./radio/radio";
9
+ @import "./tabs/tabs";
10
+ @import "./text-area/text-area";
11
+ @import "./column/column";
12
+ @import "./margin/margin";
13
+ @import "./gap/gap";
14
+ @import "./fieldset/fieldset";
7
15
  @import "./link-list/link-list";
8
16
  @import "./badge/badge";
9
17
  @import "./table/table";
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Link
2
4
 
3
5
  A link is a navigation element and can be used independently or inline with text.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  @mixin reset {
@@ -22,8 +22,8 @@
22
22
 
23
23
  .amsterdam-link--standalone {
24
24
  display: inline-block;
25
- font-size: var(--amsterdam-link-standalone-spacious-font-size);
26
- line-height: var(--amsterdam-link-standalone-spacious-line-height);
25
+ font-size: var(--amsterdam-link-standalone-font-size);
26
+ line-height: var(--amsterdam-link-standalone-line-height);
27
27
  text-decoration-line: var(--amsterdam-link-standalone-text-decoration-line);
28
28
  text-decoration-thickness: var(--amsterdam-link-standalone-text-decoration-thickness);
29
29
  text-underline-offset: var(--amsterdam-link-standalone-text-underline-offset);
@@ -32,11 +32,6 @@
32
32
  text-decoration-thickness: var(--amsterdam-link-standalone-hover-text-decoration-thickness);
33
33
  text-underline-offset: var(--amsterdam-link-standalone-hover-text-underline-offset);
34
34
  }
35
-
36
- .amsterdam-theme--compact & {
37
- font-size: var(--amsterdam-link-standalone-compact-font-size);
38
- line-height: var(--amsterdam-link-standalone-compact-line-height);
39
- }
40
35
  }
41
36
 
42
37
  .amsterdam-link--inline {
@@ -57,34 +52,6 @@
57
52
  }
58
53
  }
59
54
 
60
- .amsterdam-link--in-list {
61
- align-items: flex-start;
62
- display: inline-flex;
63
- font-size: var(--amsterdam-link-in-list-spacious-font-size);
64
- gap: var(--amsterdam-link-in-list-gap);
65
- line-height: var(--amsterdam-link-in-list-spacious-line-height);
66
- text-decoration-line: var(--amsterdam-link-in-list-text-decoration-line);
67
- text-decoration-thickness: var(--amsterdam-link-in-list-text-decoration-thickness);
68
- text-underline-offset: var(--amsterdam-link-in-list-text-underline-offset);
69
-
70
- &:hover {
71
- text-decoration-line: var(--amsterdam-link-in-list-hover-text-decoration-line);
72
- }
73
-
74
- .amsterdam-theme--compact & {
75
- font-size: var(--amsterdam-link-in-list-compact-font-size);
76
- line-height: var(--amsterdam-link-in-list-compact-line-height);
77
- }
78
- }
79
-
80
- // Override for icon size
81
- .amsterdam-link--in-list__chevron {
82
- span.amsterdam-icon svg {
83
- height: 1rem;
84
- width: 1rem;
85
- }
86
- }
87
-
88
55
  .amsterdam-link--on-background-dark {
89
56
  color: var(--amsterdam-link-on-background-dark-color);
90
57
 
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Link List
2
4
 
3
5
  A collection of related links.
@@ -13,4 +15,4 @@ Therefore, it is blue and clickable.
13
15
 
14
16
  Use a Link List to present multiple links within a theme.
15
17
 
16
- For additional guidelines, refer to the [Link](?path=/docs/navigation-link--docs) component.
18
+ For additional guidelines, refer to the [Link](/docs/components-navigation-link--docs) component.
@@ -1,8 +1,10 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2024 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
+ @import "../../common/hyphenation";
7
+
6
8
  @mixin reset-list {
7
9
  box-sizing: border-box;
8
10
  list-style: none;
@@ -23,20 +25,15 @@
23
25
  color: var(--amsterdam-link-list-link-color);
24
26
  display: inline-flex;
25
27
  font-family: var(--amsterdam-link-list-link-font-family);
26
- font-size: var(--amsterdam-link-list-link-spacious-medium-font-size);
28
+ font-size: var(--amsterdam-link-list-link-medium-font-size);
27
29
  font-weight: var(--amsterdam-link-list-link-font-weight);
28
30
  gap: var(--amsterdam-link-list-link-gap);
29
- line-height: var(--amsterdam-link-list-link-spacious-medium-line-height);
31
+ line-height: var(--amsterdam-link-list-link-medium-line-height);
30
32
  outline-offset: var(--amsterdam-link-list-link-outline-offset);
31
33
  text-decoration-line: var(--amsterdam-link-list-link-text-decoration-line);
32
34
  text-decoration-thickness: var(--amsterdam-link-list-link-text-decoration-thickness);
33
35
  text-underline-offset: var(--amsterdam-link-list-link-text-underline-offset);
34
36
 
35
- .amsterdam-theme--compact & {
36
- font-size: var(--amsterdam-link-list-link-compact-medium-font-size);
37
- line-height: var(--amsterdam-link-list-link-compact-medium-line-height);
38
- }
39
-
40
37
  &:hover {
41
38
  color: var(--amsterdam-link-list-link-hover-color);
42
39
  text-decoration-line: var(--amsterdam-link-list-link-hover-text-decoration-line);
@@ -44,23 +41,15 @@
44
41
  }
45
42
 
46
43
  .amsterdam-link-list__link--small {
47
- font-size: var(--amsterdam-link-list-link-spacious-small-font-size);
48
- line-height: var(--amsterdam-link-list-link-spacious-small-line-height);
49
-
50
- .amsterdam-theme--compact & {
51
- font-size: var(--amsterdam-link-list-link-compact-small-font-size);
52
- line-height: var(--amsterdam-link-list-link-compact-small-line-height);
53
- }
44
+ font-size: var(--amsterdam-link-list-link-small-font-size);
45
+ line-height: var(--amsterdam-link-list-link-small-line-height);
54
46
  }
55
47
 
56
48
  .amsterdam-link-list__link--large {
57
- font-size: var(--amsterdam-link-list-link-spacious-large-font-size);
58
- line-height: var(--amsterdam-link-list-link-spacious-large-line-height);
49
+ font-size: var(--amsterdam-link-list-link-large-font-size);
50
+ line-height: var(--amsterdam-link-list-link-large-line-height);
59
51
 
60
- .amsterdam-theme--compact & {
61
- font-size: var(--amsterdam-link-list-link-compact-large-font-size);
62
- line-height: var(--amsterdam-link-list-link-compact-large-line-height);
63
- }
52
+ @include hyphenation;
64
53
  }
65
54
 
66
55
  .amsterdam-link-list__link--on-background-dark {
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Logo
2
4
 
3
5
  The City’s logo includes an icon (3 Saint Andrew’s crosses) and a wordmark (Gemeente Amsterdam).
@@ -14,12 +16,13 @@ In the meantime, you can download an image of this logo from [Stijlweb](https://
14
16
 
15
17
  ## Exception
16
18
 
17
- Use a sub-brand logo if the website is owned by one of the 4 sub-brands.
19
+ Use a sub-brand logo if the website is owned by one of the 5 sub-brands.
18
20
  They have a separate status because of their unique service provision not directly associated with the City.
19
21
 
20
22
  The sub-brands are:
21
23
 
22
24
  - GGD Amsterdam
25
+ - Museum Weesp
23
26
  - Stadsarchief
24
27
  - Stadsbank van Lening
25
28
  - VGA Verzekeringen
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  .amsterdam-logo {
@@ -0,0 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
3
+ # Margin
4
+
5
+ Use these utility classes to add white space below a single element.
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license EUPL-1.2+
3
+ * Copyright Gemeente Amsterdam
4
+ */
5
+
6
+ @import "../../common/size";
7
+
8
+ @each $size in map-keys($amsterdam-sizes) {
9
+ .amsterdam-mb--#{$size} {
10
+ margin-block-end: var(--amsterdam-margin-#{$size}) !important;
11
+ }
12
+ }
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Mark
2
4
 
3
5
  Highlights a text fragment using a yellow background.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  .amsterdam-mark {
@@ -1 +1,3 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Mega Menu
@@ -1,11 +1,13 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  .amsterdam-mega-menu__list-category {
7
7
  column-gap: var(--amsterdam-mega-menu-list-category-column-gap);
8
8
  column-width: var(--amsterdam-mega-menu-list-category-column-width);
9
+
10
+ // TODO Move to bottom margin of heading
9
11
  padding-block-start: var(--amsterdam-mega-menu-list-category-padding-block-start);
10
12
 
11
13
  &:not(:last-child) {
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Ordered List
2
4
 
3
5
  An ordered list is a vertical group of related content with an order.
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
- /** Apply border box sizing, reset whitespace and list styles. */
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-type: none;
@@ -24,9 +24,9 @@
24
24
  .amsterdam-ordered-list:not(.amsterdam-ordered-list--no-markers) {
25
25
  color: var(--amsterdam-ordered-list-color);
26
26
  font-family: var(--amsterdam-ordered-list-font-family);
27
- font-size: var(--amsterdam-ordered-list-spacious-font-size);
27
+ font-size: var(--amsterdam-ordered-list-font-size);
28
28
  font-weight: var(--amsterdam-ordered-list-font-weight);
29
- line-height: var(--amsterdam-ordered-list-spacious-line-height);
29
+ line-height: var(--amsterdam-ordered-list-line-height);
30
30
  list-style-type: var(--amsterdam-ordered-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-ordered-list--inverse-color:not(.amsterdam-ordered-list--no-markers) {
40
+ color: var(--amsterdam-ordered-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-ordered-list {
41
45
  list-style-type: var(--amsterdam-ordered-list-ordered-list-list-style-type);
@@ -45,8 +49,3 @@
45
49
  padding-inline-start: var(--amsterdam-ordered-list-ordered-list-item-padding-inline-start);
46
50
  }
47
51
  }
48
-
49
- .amsterdam-theme--compact .amsterdam-ordered-list:not(.amsterdam-ordered-list--no-markers) {
50
- font-size: var(--amsterdam-ordered-list-compact-font-size);
51
- line-height: var(--amsterdam-ordered-list-compact-line-height);
52
- }
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Overlap
2
4
 
3
5
  Displays two or more components on top of each other.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  .amsterdam-overlap {
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Page Heading
2
4
 
3
5
  The page heading component is a prominent text at the beginning of a page, immediately after the header.
@@ -14,4 +16,4 @@ Use this component for a name, title, or motto.
14
16
  The page heading component is a variant of a heading level 1 with a distinct style.
15
17
  When using this component, ensure that the heading hierarchy of the page remains logical.
16
18
 
17
- For this component, the same WCAG requirements apply as for [the heading component](https://amsterdam.github.io/design-system/?path=/docs/react_text-heading--docs).
19
+ For this component, the same WCAG requirements apply as for [the heading component](/docs/components-text-heading--docs).
@@ -1,8 +1,10 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
+ @import "../../common/hyphenation";
7
+
6
8
  @mixin reset {
7
9
  box-sizing: border-box;
8
10
  margin-block: 0;
@@ -14,16 +16,12 @@
14
16
  break-inside: avoid;
15
17
  color: var(--amsterdam-page-heading-color);
16
18
  font-family: var(--amsterdam-page-heading-font-family);
17
- font-size: var(--amsterdam-page-heading-spacious-font-size);
19
+ font-size: var(--amsterdam-page-heading-font-size);
18
20
  font-weight: var(--amsterdam-page-heading-font-weight);
19
- line-height: var(--amsterdam-page-heading-spacious-line-height);
21
+ line-height: var(--amsterdam-page-heading-line-height);
20
22
 
23
+ @include hyphenation;
21
24
  @include reset;
22
-
23
- .amsterdam-theme--compact & {
24
- font-size: var(--amsterdam-page-heading-compact-font-size);
25
- line-height: var(--amsterdam-page-heading-compact-line-height);
26
- }
27
25
  }
28
26
 
29
27
  .amsterdam-page-heading--inverse-color {
@@ -1,3 +1,5 @@
1
+ <!-- @license CC0-1.0 -->
2
+
1
3
  # Page Menu
2
4
 
3
5
  A small set of links for use in the Header and Footer.
@@ -15,4 +17,4 @@ A small set of links for use in the Header and Footer.
15
17
 
16
18
  - [Consistent Navigation (Level AA)](https://www.w3.org/WAI/WCAG21/Understanding/consistent-navigation.html)
17
19
 
18
- PageMenu is an interactive element, and the [general requirements and guidelines for interactive elements](https://amsterdam.github.io/design-system/?path=/docs/docs-designrichtlijnen-interactieve-elementen--docs) apply.
20
+ PageMenu is an interactive element, and the [general requirements and guidelines for interactive elements](/docs/docs-design-guidelines-interactive-elements--docs) apply.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license EUPL-1.2+
3
- * Copyright (c) 2023 Gemeente Amsterdam
3
+ * Copyright Gemeente Amsterdam
4
4
  */
5
5
 
6
6
  @mixin reset-list {
@@ -34,10 +34,10 @@
34
34
  display: inline-flex;
35
35
  flex-direction: row;
36
36
  font-family: var(--amsterdam-page-menu-item-font-family);
37
- font-size: var(--amsterdam-page-menu-item-spacious-font-size);
37
+ font-size: var(--amsterdam-page-menu-item-font-size);
38
38
  font-weight: var(--amsterdam-page-menu-item-font-weight);
39
39
  gap: var(--amsterdam-page-menu-item-gap);
40
- line-height: var(--amsterdam-page-menu-item-spacious-line-height);
40
+ line-height: var(--amsterdam-page-menu-item-line-height);
41
41
  outline-offset: var(--amsterdam-page-menu-item-outline-offset);
42
42
  text-align: center;
43
43
  text-decoration-line: var(--amsterdam-page-menu-item-text-decoration-line);
@@ -45,11 +45,6 @@
45
45
  text-underline-offset: var(--amsterdam-page-menu-item-text-underline-offset);
46
46
  touch-action: manipulation;
47
47
  white-space: nowrap;
48
-
49
- .amsterdam-theme--compact & {
50
- font-size: var(--amsterdam-page-menu-item-compact-font-size);
51
- line-height: var(--amsterdam-page-menu-item-compact-line-height);
52
- }
53
48
  }
54
49
 
55
50
  .amsterdam-page-menu__link {