@amsterdam/design-system-css 0.1.9 → 0.3.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 (156) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/LICENSE.md +1 -1
  3. package/dist/accordion/accordion.css +1 -1
  4. package/dist/accordion/accordion.css.map +1 -1
  5. package/dist/alert/alert.css +1 -1
  6. package/dist/alert/alert.css.map +1 -1
  7. package/dist/aspect-ratio/aspect-ratio.css.map +1 -1
  8. package/dist/blockquote/blockquote.css +1 -1
  9. package/dist/blockquote/blockquote.css.map +1 -1
  10. package/dist/breadcrumb/breadcrumb.css +1 -1
  11. package/dist/breadcrumb/breadcrumb.css.map +1 -1
  12. package/dist/button/button.css +1 -1
  13. package/dist/button/button.css.map +1 -1
  14. package/dist/card/card.css +1 -1
  15. package/dist/card/card.css.map +1 -1
  16. package/dist/checkbox/checkbox.css +1 -1
  17. package/dist/checkbox/checkbox.css.map +1 -1
  18. package/dist/dialog/dialog.css +1 -1
  19. package/dist/dialog/dialog.css.map +1 -1
  20. package/dist/form-label/form-label.css +1 -1
  21. package/dist/form-label/form-label.css.map +1 -1
  22. package/dist/grid/grid.css +1 -1
  23. package/dist/grid/grid.css.map +1 -1
  24. package/dist/header/header.css +1 -0
  25. package/dist/header/header.css.map +1 -0
  26. package/dist/heading/heading.css +1 -1
  27. package/dist/heading/heading.css.map +1 -1
  28. package/dist/icon/icon.css +1 -1
  29. package/dist/icon/icon.css.map +1 -1
  30. package/dist/image/image.css +1 -1
  31. package/dist/image/image.css.map +1 -1
  32. package/dist/index.css +1 -1
  33. package/dist/index.css.map +1 -1
  34. package/dist/link/link.css +1 -1
  35. package/dist/link/link.css.map +1 -1
  36. package/dist/logo/logo.css +1 -1
  37. package/dist/logo/logo.css.map +1 -1
  38. package/dist/mark/mark.css +1 -0
  39. package/dist/mark/mark.css.map +1 -0
  40. package/dist/ordered-list/ordered-list.css +1 -1
  41. package/dist/ordered-list/ordered-list.css.map +1 -1
  42. package/dist/overlap/overlap.css +1 -0
  43. package/dist/overlap/overlap.css.map +1 -0
  44. package/dist/page-heading/page-heading.css +1 -1
  45. package/dist/page-heading/page-heading.css.map +1 -1
  46. package/dist/page-menu/page-menu.css +1 -1
  47. package/dist/page-menu/page-menu.css.map +1 -1
  48. package/dist/pagination/pagination.css +1 -1
  49. package/dist/pagination/pagination.css.map +1 -1
  50. package/dist/paragraph/paragraph.css +1 -1
  51. package/dist/paragraph/paragraph.css.map +1 -1
  52. package/dist/screen/screen.css.map +1 -1
  53. package/dist/search-field/search-field.css +1 -0
  54. package/dist/search-field/search-field.css.map +1 -0
  55. package/dist/skip-link/skip-link.css +1 -0
  56. package/dist/skip-link/skip-link.css.map +1 -0
  57. package/dist/spotlight/spotlight.css +1 -0
  58. package/dist/spotlight/spotlight.css.map +1 -0
  59. package/dist/switch/switch.css.map +1 -1
  60. package/dist/text-input/text-input.css +1 -0
  61. package/dist/text-input/text-input.css.map +1 -0
  62. package/dist/top-task-link/top-task-link.css +1 -1
  63. package/dist/top-task-link/top-task-link.css.map +1 -1
  64. package/dist/unordered-list/unordered-list.css +1 -1
  65. package/dist/unordered-list/unordered-list.css.map +1 -1
  66. package/dist/visually-hidden/visually-hidden.css +1 -1
  67. package/dist/visually-hidden/visually-hidden.css.map +1 -1
  68. package/package.json +6 -6
  69. package/{utils → src/common}/breakpoint.scss +0 -6
  70. package/src/{accordion → components/accordion}/accordion.scss +5 -6
  71. package/src/{alert → components/alert}/alert.scss +5 -6
  72. package/src/{blockquote → components/blockquote}/blockquote.scss +5 -6
  73. package/src/components/breadcrumb/breadcrumb.scss +57 -0
  74. package/src/{button → components/button}/button.scss +8 -7
  75. package/src/components/card/README.md +25 -0
  76. package/src/{card → components/card}/card.scss +4 -4
  77. package/src/{checkbox → components/checkbox}/checkbox.scss +11 -12
  78. package/src/{dialog → components/dialog}/dialog.scss +6 -6
  79. package/src/{form-label → components/form-label}/form-label.scss +7 -8
  80. package/src/components/grid/README.md +21 -0
  81. package/src/{grid → components/grid}/grid.scss +54 -6
  82. package/src/components/header/README.md +14 -0
  83. package/src/components/header/header.scss +85 -0
  84. package/src/components/heading/heading.scss +84 -0
  85. package/src/components/icon/icon.scss +87 -0
  86. package/src/{image → components/image}/README.md +6 -1
  87. package/src/{image → components/image}/image.scss +4 -0
  88. package/src/{index.scss → components/index.scss} +7 -2
  89. package/src/{link → components/link}/link.scss +18 -26
  90. package/src/{logo → components/logo}/logo.scss +1 -0
  91. package/src/components/mark/README.md +18 -0
  92. package/src/components/mark/mark.scss +8 -0
  93. package/src/{ordered-list → components/ordered-list}/ordered-list.scss +7 -8
  94. package/src/components/overlap/README.md +3 -0
  95. package/src/components/overlap/overlap.scss +12 -0
  96. package/src/{page-heading → components/page-heading}/page-heading.scss +7 -8
  97. package/src/{page-menu → components/page-menu}/README.md +2 -0
  98. package/src/{page-menu → components/page-menu}/page-menu.scss +16 -27
  99. package/src/{pagination → components/pagination}/pagination.scss +9 -9
  100. package/src/components/paragraph/paragraph.scss +49 -0
  101. package/src/{screen → components/screen}/README.md +1 -1
  102. package/src/components/search-field/README.md +33 -0
  103. package/src/components/search-field/search-field.scss +81 -0
  104. package/src/components/skip-link/README.md +33 -0
  105. package/src/components/skip-link/skip-link.scss +28 -0
  106. package/src/{highlight → components/spotlight}/README.md +1 -1
  107. package/src/components/spotlight/spotlight.scss +36 -0
  108. package/src/components/text-input/README.md +12 -0
  109. package/src/components/text-input/text-input.scss +57 -0
  110. package/src/{top-task-link → components/top-task-link}/top-task-link.scss +13 -12
  111. package/src/{unordered-list → components/unordered-list}/unordered-list.scss +7 -8
  112. package/src/{visually-hidden → components/visually-hidden}/visually-hidden.scss +4 -6
  113. package/dist/grid/grid-cell.css +0 -1
  114. package/dist/grid/grid-cell.css.map +0 -1
  115. package/dist/highlight/highlight.css +0 -1
  116. package/dist/highlight/highlight.css.map +0 -1
  117. package/src/breadcrumb/breadcrumb.scss +0 -68
  118. package/src/card/README.md +0 -12
  119. package/src/grid/README.grid-cell.md +0 -14
  120. package/src/grid/README.grid.md +0 -17
  121. package/src/grid/grid-cell.scss +0 -46
  122. package/src/heading/heading.scss +0 -62
  123. package/src/highlight/highlight.scss +0 -36
  124. package/src/icon/icon.scss +0 -104
  125. package/src/paragraph/paragraph.scss +0 -48
  126. /package/{utils → src/common}/calculate-fluid-style.scss +0 -0
  127. /package/src/{accordion → components/accordion}/README.md +0 -0
  128. /package/src/{alert → components/alert}/README.md +0 -0
  129. /package/src/{aspect-ratio → components/aspect-ratio}/README.md +0 -0
  130. /package/src/{aspect-ratio → components/aspect-ratio}/aspect-ratio.scss +0 -0
  131. /package/src/{blockquote → components/blockquote}/README.md +0 -0
  132. /package/src/{breadcrumb → components/breadcrumb}/README.md +0 -0
  133. /package/src/{button → components/button}/README.md +0 -0
  134. /package/src/{button → components/button}/button-css.md +0 -0
  135. /package/src/{checkbox → components/checkbox}/README.md +0 -0
  136. /package/src/{checkbox → components/checkbox}/checkbox-css.md +0 -0
  137. /package/src/{dialog → components/dialog}/README.md +0 -0
  138. /package/src/{footer → components/footer}/README.md +0 -0
  139. /package/src/{footer → components/footer}/footer-css.md +0 -0
  140. /package/src/{form-label → components/form-label}/README.md +0 -0
  141. /package/src/{heading → components/heading}/README.md +0 -0
  142. /package/src/{heading → components/heading}/heading-css.md +0 -0
  143. /package/src/{icon → components/icon}/README.md +0 -0
  144. /package/src/{link → components/link}/README.md +0 -0
  145. /package/src/{logo → components/logo}/README.md +0 -0
  146. /package/src/{ordered-list → components/ordered-list}/README.md +0 -0
  147. /package/src/{page-heading → components/page-heading}/README.md +0 -0
  148. /package/src/{pagination → components/pagination}/README.md +0 -0
  149. /package/src/{paragraph → components/paragraph}/README.md +0 -0
  150. /package/src/{paragraph → components/paragraph}/paragraph-css.md +0 -0
  151. /package/src/{screen → components/screen}/screen.scss +0 -0
  152. /package/src/{switch → components/switch}/README.md +0 -0
  153. /package/src/{switch → components/switch}/switch.scss +0 -0
  154. /package/src/{top-task-link → components/top-task-link}/README.md +0 -0
  155. /package/src/{unordered-list → components/unordered-list}/README.md +0 -0
  156. /package/src/{visually-hidden → components/visually-hidden}/README.md +0 -0
@@ -0,0 +1,85 @@
1
+ /**
2
+ * @license EUPL-1.2+
3
+ * Copyright (c) 2023 Gemeente Amsterdam
4
+ */
5
+
6
+ @import "../../common/breakpoint";
7
+
8
+ .amsterdam-header {
9
+ align-items: center;
10
+ display: flex;
11
+ flex-wrap: wrap;
12
+ padding-block: 1rem;
13
+ row-gap: 1.5rem;
14
+
15
+ @media screen and (min-width: $amsterdam-breakpoint-wide) {
16
+ column-gap: var(--amsterdam-header-column-gap);
17
+ flex-wrap: nowrap;
18
+ }
19
+ }
20
+
21
+ .amsterdam-header__logo {
22
+ flex: none;
23
+ outline-offset: var(--amsterdam-link-outline-offset);
24
+ }
25
+
26
+ .amsterdam-header__links {
27
+ display: none;
28
+
29
+ @media screen and (min-width: $amsterdam-breakpoint-medium) {
30
+ display: block;
31
+ flex: 10 0 auto;
32
+ }
33
+
34
+ @media screen and (min-width: $amsterdam-breakpoint-wide) {
35
+ order: 3;
36
+ }
37
+ }
38
+
39
+ .amsterdam-header__menu {
40
+ flex: 1;
41
+ padding-inline-start: var(--amsterdam-page-menu-column-gap);
42
+ text-align: end;
43
+
44
+ @media screen and (min-width: $amsterdam-breakpoint-wide) {
45
+ order: 4;
46
+ padding-inline-start: 0;
47
+ }
48
+ }
49
+
50
+ .amsterdam-header__title {
51
+ flex: 1 1 100%;
52
+
53
+ @media screen and (min-width: $amsterdam-breakpoint-wide) {
54
+ min-width: 0;
55
+ order: 2;
56
+
57
+ .amsterdam-header__title-heading {
58
+ display: block;
59
+ line-height: 1;
60
+ overflow: hidden;
61
+ text-overflow: ellipsis;
62
+ white-space: nowrap;
63
+ width: 100%;
64
+ }
65
+ }
66
+ }
67
+
68
+ // Temporary, will move to megamenu (and/or iconButton)
69
+ .amsterdam-header__menu-button {
70
+ background-color: transparent;
71
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path fill='%23004699' fill-rule='evenodd' d='M0 3.238h32V7.81H0V3.238zm0 10.476h32v4.572H0v-4.572zM0 24.19h32v4.572H0V24.19z'/></svg>");
72
+ background-position: center right;
73
+ background-repeat: no-repeat;
74
+ background-size: 19px 19px;
75
+ border: 0;
76
+ color: var(--amsterdam-page-menu-item-color);
77
+ font-family: var(--amsterdam-page-menu-item-font-family);
78
+ font-size: var(--amsterdam-page-menu-item-spacious-font-size);
79
+ font-weight: var(--amsterdam-page-menu-item-font-weight);
80
+ line-height: var(--amsterdam-page-menu-item-spacious-line-height);
81
+ margin-block: 0;
82
+ padding-inline: 0 30px;
83
+ text-align: center;
84
+ touch-action: manipulation;
85
+ }
@@ -0,0 +1,84 @@
1
+ /**
2
+ * @license EUPL-1.2+
3
+ * Copyright (c) 2023 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-heading {
13
+ break-after: avoid;
14
+ break-inside: avoid;
15
+ color: var(--amsterdam-heading-color);
16
+ font-family: var(--amsterdam-heading-font-family);
17
+ font-weight: var(--amsterdam-heading-font-weight);
18
+
19
+ @include reset;
20
+ }
21
+
22
+ .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
+ }
30
+ }
31
+
32
+ .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
+ }
40
+ }
41
+
42
+ .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
+ }
50
+ }
51
+
52
+ .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
+ }
60
+ }
61
+
62
+ .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
+ }
70
+ }
71
+
72
+ .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
+ }
80
+ }
81
+
82
+ .amsterdam-heading--inverse-color {
83
+ color: var(--amsterdam-heading-inverse-color);
84
+ }
@@ -0,0 +1,87 @@
1
+ /**
2
+ * @license EUPL-1.2+
3
+ * Copyright (c) 2023 Gemeente Amsterdam
4
+ */
5
+
6
+ .amsterdam-icon {
7
+ align-items: center;
8
+ display: inline-flex;
9
+ }
10
+
11
+ .amsterdam-icon svg {
12
+ fill: currentColor;
13
+ }
14
+
15
+ .amsterdam-icon--size-3 {
16
+ height: calc(var(--amsterdam-icon-spacious-size-3-font-size) * var(--amsterdam-icon-spacious-size-3-line-height));
17
+ }
18
+
19
+ .amsterdam-icon--size-3 svg {
20
+ height: var(--amsterdam-icon-spacious-size-3-font-size);
21
+ width: var(--amsterdam-icon-spacious-size-3-font-size);
22
+ }
23
+
24
+ .amsterdam-icon--size-4 {
25
+ height: calc(var(--amsterdam-icon-spacious-size-4-font-size) * var(--amsterdam-icon-spacious-size-4-line-height));
26
+ }
27
+
28
+ .amsterdam-icon--size-4 svg {
29
+ height: var(--amsterdam-icon-spacious-size-4-font-size);
30
+ width: var(--amsterdam-icon-spacious-size-4-font-size);
31
+ }
32
+
33
+ .amsterdam-icon--size-5 {
34
+ height: calc(var(--amsterdam-icon-spacious-size-5-font-size) * var(--amsterdam-icon-spacious-size-5-line-height));
35
+ }
36
+
37
+ .amsterdam-icon--size-5 svg {
38
+ height: var(--amsterdam-icon-spacious-size-5-font-size);
39
+ width: var(--amsterdam-icon-spacious-size-5-font-size);
40
+ }
41
+
42
+ .amsterdam-icon--size-6 {
43
+ height: calc(var(--amsterdam-icon-spacious-size-6-font-size) * var(--amsterdam-icon-spacious-size-6-line-height));
44
+ }
45
+
46
+ .amsterdam-icon--size-6 svg {
47
+ height: var(--amsterdam-icon-spacious-size-6-font-size);
48
+ width: var(--amsterdam-icon-spacious-size-6-font-size);
49
+ }
50
+
51
+ .amsterdam-theme--compact {
52
+ .amsterdam-icon--size-3 {
53
+ height: calc(var(--amsterdam-icon-compact-size-3-font-size) * var(--amsterdam-icon-compact-size-3-line-height));
54
+ }
55
+
56
+ .amsterdam-icon--size-3 svg {
57
+ height: var(--amsterdam-icon-compact-size-3-font-size);
58
+ width: var(--amsterdam-icon-compact-size-3-font-size);
59
+ }
60
+
61
+ .amsterdam-icon--size-4 {
62
+ height: calc(var(--amsterdam-icon-compact-size-4-font-size) * var(--amsterdam-icon-compact-size-4-line-height));
63
+ }
64
+
65
+ .amsterdam-icon--size-4 svg {
66
+ height: var(--amsterdam-icon-compact-size-4-font-size);
67
+ width: var(--amsterdam-icon-compact-size-4-font-size);
68
+ }
69
+
70
+ .amsterdam-icon--size-5 {
71
+ height: calc(var(--amsterdam-icon-compact-size-5-font-size) * var(--amsterdam-icon-compact-size-5-line-height));
72
+ }
73
+
74
+ .amsterdam-icon--size-5 svg {
75
+ height: var(--amsterdam-icon-compact-size-5-font-size);
76
+ width: var(--amsterdam-icon-compact-size-5-font-size);
77
+ }
78
+
79
+ .amsterdam-icon--size-6 {
80
+ height: calc(var(--amsterdam-icon-compact-size-6-font-size) * var(--amsterdam-icon-compact-size-6-line-height));
81
+ }
82
+
83
+ .amsterdam-icon--size-6 svg {
84
+ height: var(--amsterdam-icon-compact-size-6-font-size);
85
+ width: var(--amsterdam-icon-compact-size-6-font-size);
86
+ }
87
+ }
@@ -7,8 +7,13 @@ Toont een afbeelding.
7
7
  - Vergeet niet om een beschrijving van de afbeelding op te nemen in het `alt`-attribuut.
8
8
  Dit zorgt ervoor dat gebruikers van schermlezers deze informatie ook tot zich kunnen nemen.
9
9
  Daarnaast kan het helpen bij zoekmachineoptimalisatie.
10
- - Alleen voor decoratieve afbeeldingen is zo’n beschrijving niet nodig. Gebruik in dit geval `alt=""`.
10
+ Alleen voor decoratieve afbeeldingen is zo’n beschrijving niet nodig. Gebruik in dit geval `alt=""`.
11
11
  Denk aan afbeeldingen die weinig toevoegen aan de nabije tekst of afbeeldingen die louter bijdragen aan het ontwerp of de sfeer van de pagina (bron: [W3C Web Accessibility Initiative](https://www.w3.org/WAI/tutorials/images/decorative/)).
12
+ - Specificeer eventueel meerdere kandidaten voor de afbeelding via het `srcSet`-attribuut.
13
+ Bijvoorbeeld een kleine, middelgrote en grote variant voor de diverse schermformaten.
14
+ Zo voorkom je het onnodige downloaden van grote bestanden.
15
+ Doe dit vooral voor de hoofdafbeelding van een pagina,
16
+ daar is het verschil tussen de formaten op een smal en breed scherm het grootst.
12
17
  - Zorg ervoor dat de afbeelding een beeldverhouding heeft die ondersteund wordt door het [Aspect Ratio](?path=/docs/layout-aspect-ratio--docs) component.
13
18
 
14
19
  ## Relevante WCAG-eisen
@@ -8,6 +8,10 @@
8
8
  height: auto; /* [1] */
9
9
  max-width: 100%; /* [1] */
10
10
  vertical-align: middle; /* [2] */
11
+
12
+ &--cover {
13
+ object-fit: cover;
14
+ }
11
15
  }
12
16
 
13
17
  // [1] Allow for fluid image sizing while maintaining aspect ratio governed by width/height attributes
@@ -4,6 +4,12 @@
4
4
  */
5
5
 
6
6
  /* Append here */
7
+ @import "./skip-link/skip-link";
8
+ @import "./overlap/overlap";
9
+ @import "./header/header";
10
+ @import "./mark/mark";
11
+ @import "./text-input/text-input";
12
+ @import "./search-field/search-field";
7
13
  @import "./logo/logo";
8
14
  @import "./dialog/dialog";
9
15
  @import "./image/image";
@@ -18,9 +24,8 @@
18
24
  @import "./checkbox/checkbox";
19
25
  @import "./form-label/form-label";
20
26
  @import "./grid/grid";
21
- @import "./grid/grid-cell";
22
27
  @import "./heading/heading";
23
- @import "./highlight/highlight";
28
+ @import "./spotlight/spotlight";
24
29
  @import "./icon/icon";
25
30
  @import "./link/link";
26
31
  @import "./ordered-list/ordered-list";
@@ -3,8 +3,6 @@
3
3
  * Copyright (c) 2023 Gemeente Amsterdam
4
4
  */
5
5
 
6
- @import "../../utils/breakpoint";
7
-
8
6
  @mixin reset {
9
7
  -webkit-text-size-adjust: 100%;
10
8
  }
@@ -24,8 +22,9 @@
24
22
 
25
23
  .amsterdam-link--standalone {
26
24
  display: inline-block;
27
- font-size: var(--amsterdam-link-standalone-narrow-font-size);
28
- line-height: var(--amsterdam-link-standalone-line-height);
25
+ font-size: var(--amsterdam-link-standalone-spacious-font-size);
26
+ line-height: var(--amsterdam-link-standalone-spacious-line-height);
27
+ text-decoration-line: var(--amsterdam-link-standalone-text-decoration-line);
29
28
  text-decoration-thickness: var(--amsterdam-link-standalone-text-decoration-thickness);
30
29
  text-underline-offset: var(--amsterdam-link-standalone-text-underline-offset);
31
30
 
@@ -34,8 +33,9 @@
34
33
  text-underline-offset: var(--amsterdam-link-standalone-hover-text-underline-offset);
35
34
  }
36
35
 
37
- @media screen and (min-width: $amsterdam-breakpoint-typography) {
38
- font-size: var(--amsterdam-link-standalone-wide-font-size);
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
39
  }
40
40
  }
41
41
 
@@ -43,11 +43,12 @@
43
43
  font-family: var(--amsterdam-link-inline-font-family);
44
44
  font-size: var(--amsterdam-link-inline-font-size);
45
45
  line-height: var(--amsterdam-link-inline-line-height);
46
- text-decoration: var(--amsterdam-link-inline-text-decoration);
46
+ text-decoration-line: var(--amsterdam-link-inline-text-decoration-line);
47
47
  text-decoration-thickness: var(--amsterdam-link-inline-text-decoration-thickness);
48
+ text-underline-offset: var(--amsterdam-link-inline-text-underline-offset);
48
49
 
49
50
  &:hover {
50
- text-decoration: var(--amsterdam-link-inline-hover-text-decoration);
51
+ text-decoration-thickness: var(--amsterdam-link-inline-hover-text-decoration-thickness);
51
52
  text-underline-offset: var(--amsterdam-link-inline-hover-text-underline-offset);
52
53
  }
53
54
 
@@ -59,19 +60,20 @@
59
60
  .amsterdam-link--in-list {
60
61
  align-items: flex-start;
61
62
  display: inline-flex;
62
- font-size: var(--amsterdam-link-in-list-narrow-font-size);
63
+ font-size: var(--amsterdam-link-in-list-spacious-font-size);
63
64
  gap: var(--amsterdam-link-in-list-gap);
64
- line-height: var(--amsterdam-link-in-list-line-height);
65
- text-decoration: var(--amsterdam-link-in-list-text-decoration);
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);
66
69
 
67
70
  &:hover {
68
- text-decoration: var(--amsterdam-link-in-list-hover-text-decoration);
69
- text-decoration-thickness: var(--amsterdam-link-in-list-hover-text-decoration-thickness);
70
- text-underline-offset: var(--amsterdam-link-in-list-hover-text-underline-offset);
71
+ text-decoration-line: var(--amsterdam-link-in-list-hover-text-decoration-line);
71
72
  }
72
73
 
73
- @media screen and (min-width: $amsterdam-breakpoint-typography) {
74
- font-size: var(--amsterdam-link-in-list-wide-font-size);
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);
75
77
  }
76
78
  }
77
79
 
@@ -106,13 +108,3 @@
106
108
  color: var(--amsterdam-link-on-background-light-visited-color);
107
109
  }
108
110
  }
109
-
110
- .amsterdam-link--inline.amsterdam-link--on-background-dark,
111
- .amsterdam-link--inline.amsterdam-link--on-background-light {
112
- text-decoration: var(--amsterdam-link-inline-hover-text-decoration);
113
- text-underline-offset: var(--amsterdam-link-inline-hover-text-underline-offset);
114
-
115
- &:hover {
116
- text-decoration: var(--amsterdam-link-inline-text-decoration);
117
- }
118
- }
@@ -4,6 +4,7 @@
4
4
  */
5
5
 
6
6
  .amsterdam-logo {
7
+ display: block;
7
8
  height: var(--amsterdam-logo-height);
8
9
  }
9
10
 
@@ -0,0 +1,18 @@
1
+ # Mark
2
+
3
+ Markeert een fragment tekst met een gele achtergrond.
4
+ Het zorgt voor sterke nadruk op de tekst en leidt de aandacht ernaartoe.
5
+
6
+ ## Richtlijnen
7
+
8
+ ### Zo gebruiken
9
+
10
+ - Maximaal 1 markering per pagina.
11
+ De voorkeur is geen markering.
12
+ - Maximaal 1 zin.
13
+
14
+ ### Dit vermijden
15
+
16
+ - Niet in de titel en subtitels gebruiken.
17
+ Zorg voor een belangrijke, pakkende titel als de hele paragraaf belangrijk is.
18
+ - Mag niet voor een hele paragraaf gebruikt worden.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license EUPL-1.2+
3
+ * Copyright (c) 2023 Gemeente Amsterdam
4
+ */
5
+
6
+ .amsterdam-mark {
7
+ background-color: var(--amsterdam-mark-background-color);
8
+ }
@@ -3,8 +3,6 @@
3
3
  * Copyright (c) 2023 Gemeente Amsterdam
4
4
  */
5
5
 
6
- @import "../../utils/breakpoint";
7
-
8
6
  /** Apply border box sizing, reset whitespace and list styles. */
9
7
  @mixin reset {
10
8
  box-sizing: border-box;
@@ -26,15 +24,11 @@
26
24
  .amsterdam-ordered-list:not(.amsterdam-ordered-list--no-markers) {
27
25
  color: var(--amsterdam-ordered-list-color);
28
26
  font-family: var(--amsterdam-ordered-list-font-family);
29
- font-size: var(--amsterdam-ordered-list-narrow-font-size);
27
+ font-size: var(--amsterdam-ordered-list-spacious-font-size);
30
28
  font-weight: var(--amsterdam-ordered-list-font-weight);
31
- line-height: var(--amsterdam-ordered-list-line-height);
29
+ line-height: var(--amsterdam-ordered-list-spacious-line-height);
32
30
  list-style-type: var(--amsterdam-ordered-list-list-style-type);
33
31
 
34
- @media screen and (min-width: $amsterdam-breakpoint-typography) {
35
- font-size: var(--amsterdam-ordered-list-wide-font-size);
36
- }
37
-
38
32
  /** List items are responsible for indentation and marker positioning. */
39
33
  .amsterdam-ordered-list__item {
40
34
  margin-inline-start: var(--amsterdam-ordered-list-item-margin-inline-start);
@@ -51,3 +45,8 @@
51
45
  padding-inline-start: var(--amsterdam-ordered-list-ordered-list-item-padding-inline-start);
52
46
  }
53
47
  }
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
+ }
@@ -0,0 +1,3 @@
1
+ # Overlap
2
+
3
+ Toont twee of meer componenten over elkaar heen.
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license EUPL-1.2+
3
+ * Copyright (c) 2023 Gemeente Amsterdam
4
+ */
5
+
6
+ .amsterdam-overlap {
7
+ display: grid;
8
+
9
+ > * {
10
+ grid-area: 1 / -1;
11
+ }
12
+ }
@@ -3,8 +3,6 @@
3
3
  * Copyright (c) 2023 Gemeente Amsterdam
4
4
  */
5
5
 
6
- @import "../../utils/breakpoint";
7
-
8
6
  @mixin reset {
9
7
  box-sizing: border-box;
10
8
  margin-block: 0;
@@ -16,15 +14,16 @@
16
14
  break-inside: avoid;
17
15
  color: var(--amsterdam-page-heading-color);
18
16
  font-family: var(--amsterdam-page-heading-font-family);
19
- font-size: var(--amsterdam-page-heading-narrow-font-size);
17
+ font-size: var(--amsterdam-page-heading-spacious-font-size);
20
18
  font-weight: var(--amsterdam-page-heading-font-weight);
21
- line-height: var(--amsterdam-page-heading-line-height);
22
-
23
- @media screen and (min-width: $amsterdam-breakpoint-typography) {
24
- font-size: var(--amsterdam-page-heading-wide-font-size);
25
- }
19
+ line-height: var(--amsterdam-page-heading-spacious-line-height);
26
20
 
27
21
  @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
+ }
28
27
  }
29
28
 
30
29
  .amsterdam-page-heading--inverse-color {
@@ -13,3 +13,5 @@ Het Page Menu wordt alleen gebruikt in het Header en Footer component en is uits
13
13
  ## Relevante WCAG eisen
14
14
 
15
15
  - [Consistent Navigation (Level AA)](https://www.w3.org/WAI/WCAG21/Understanding/consistent-navigation.html)
16
+
17
+ PageMenu is een interactief element, hier gelden [de algemene eisen en richtlijnen voor interactieve elementen](https://amsterdam.github.io/design-system/?path=/docs/docs-designrichtlijnen-interactieve-elementen--docs) voor.
@@ -3,8 +3,6 @@
3
3
  * Copyright (c) 2023 Gemeente Amsterdam
4
4
  */
5
5
 
6
- @import "../../utils/breakpoint";
7
-
8
6
  @mixin reset-list {
9
7
  box-sizing: border-box;
10
8
  margin-block: 0;
@@ -16,41 +14,41 @@
16
14
  -webkit-text-size-adjust: 100%;
17
15
  }
18
16
 
19
- @mixin reset-button {
20
- background-color: transparent;
21
- border: 0;
22
- margin-block: 0;
23
- padding-inline: 0;
24
- }
25
-
26
17
  .amsterdam-page-menu {
27
18
  align-items: center;
28
19
  column-gap: var(--amsterdam-page-menu-column-gap);
29
20
  display: flex;
30
21
  flex-direction: row;
31
- flex-wrap: wrap;
32
22
  list-style: none;
33
23
  row-gap: var(--amsterdam-page-menu-row-gap);
34
24
 
35
25
  @include reset-list;
36
26
  }
37
27
 
28
+ .amsterdam-page-menu--align-end {
29
+ justify-content: end;
30
+ }
31
+
38
32
  @mixin page-menu-item {
39
33
  color: var(--amsterdam-page-menu-item-color);
40
34
  display: inline-flex;
41
35
  flex-direction: row;
42
36
  font-family: var(--amsterdam-page-menu-item-font-family);
43
- font-size: var(--amsterdam-page-menu-item-narrow-font-size);
37
+ font-size: var(--amsterdam-page-menu-item-spacious-font-size);
44
38
  font-weight: var(--amsterdam-page-menu-item-font-weight);
45
39
  gap: var(--amsterdam-page-menu-item-gap);
46
- line-height: var(--amsterdam-page-menu-item-line-height);
47
- outline-offset: var(--amsterdam-focus-outline-offset);
40
+ line-height: var(--amsterdam-page-menu-item-spacious-line-height);
41
+ outline-offset: var(--amsterdam-page-menu-item-outline-offset);
48
42
  text-align: center;
49
- text-decoration: var(--amsterdam-page-menu-item-text-decoration);
43
+ text-decoration-line: var(--amsterdam-page-menu-item-text-decoration-line);
44
+ text-decoration-thickness: var(--amsterdam-page-menu-item-text-decoration-thickness);
45
+ text-underline-offset: var(--amsterdam-page-menu-item-text-underline-offset);
50
46
  touch-action: manipulation;
47
+ white-space: nowrap;
51
48
 
52
- @media screen and (min-width: $amsterdam-breakpoint-typography) {
53
- font-size: var(--amsterdam-page-menu-item-wide-font-size);
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);
54
52
  }
55
53
  }
56
54
 
@@ -59,21 +57,12 @@
59
57
  @include reset-item;
60
58
  }
61
59
 
62
- .amsterdam-page-menu__button {
63
- cursor: pointer;
64
-
65
- @include reset-item;
66
- @include reset-button;
67
- @include page-menu-item;
68
- }
69
-
70
60
  .amsterdam-page-menu__link:hover,
71
61
  .amsterdam-page-menu__button:hover {
72
62
  color: var(--amsterdam-page-menu-item-hover-color);
73
- text-decoration: var(--amsterdam-page-menu-item-hover-text-decoration);
63
+ text-decoration-line: var(--amsterdam-page-menu-item-hover-text-decoration-line);
74
64
  }
75
65
 
76
- .amsterdam-page-menu__link svg,
77
- .amsterdam-page-menu__button svg {
66
+ .amsterdam-page-menu__link svg {
78
67
  color: currentColor;
79
68
  }
@@ -3,8 +3,6 @@
3
3
  * Copyright (c) 2023 Gemeente Amsterdam
4
4
  */
5
5
 
6
- @import "../../utils/breakpoint";
7
-
8
6
  @mixin list-reset {
9
7
  list-style-type: none;
10
8
  margin-block: 0;
@@ -16,15 +14,16 @@
16
14
  display: flex;
17
15
  flex-wrap: wrap;
18
16
  font-family: var(--amsterdam-pagination-font-family);
19
- font-size: var(--amsterdam-pagination-narrow-font-size);
17
+ font-size: var(--amsterdam-pagination-spacious-font-size);
20
18
  font-weight: var(--amsterdam-pagination-font-weight);
21
19
  justify-content: center;
22
- line-height: var(--amsterdam-pagination-line-height);
20
+ line-height: var(--amsterdam-pagination-spacious-line-height);
23
21
 
24
22
  @include list-reset;
25
23
 
26
- @media screen and (width > $amsterdam-breakpoint-typography) {
27
- font-size: var(--amsterdam-pagination-wide-font-size);
24
+ .amsterdam-theme--compact & {
25
+ font-size: var(--amsterdam-pagination-compact-font-size);
26
+ line-height: var(--amsterdam-pagination-compact-line-height);
28
27
  }
29
28
  }
30
29
 
@@ -45,13 +44,14 @@
45
44
  gap: 0.5rem;
46
45
  outline-offset: var(--amsterdam-pagination-button-outline-offset);
47
46
  padding-inline: 0.75rem;
48
- text-decoration-thickness: 2px;
49
- text-underline-offset: 3px;
47
+ text-decoration-line: var(--amsterdam-pagination-button-text-decoration-line);
48
+ text-decoration-thickness: var(--amsterdam-pagination-button-text-decoration-thickness);
49
+ text-underline-offset: var(--amsterdam-pagination-button-text-underline-offset);
50
50
  touch-action: manipulation;
51
51
 
52
52
  &:hover {
53
53
  color: var(--amsterdam-pagination-button-hover-color);
54
- text-decoration: underline;
54
+ text-decoration-line: var(--amsterdam-pagination-button-hover-text-decoration-line);
55
55
  }
56
56
 
57
57
  &:disabled {