@amsterdam/design-system-css 0.15.0 → 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 (91) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +1 -1
  3. package/dist/accordion/accordion.css +1 -1
  4. package/dist/accordion/accordion.css.map +1 -1
  5. package/dist/breakout/breakout.css +1 -1
  6. package/dist/breakout/breakout.css.map +1 -1
  7. package/dist/card/card.css +1 -1
  8. package/dist/card/card.css.map +1 -1
  9. package/dist/dialog/dialog.css +1 -1
  10. package/dist/dialog/dialog.css.map +1 -1
  11. package/dist/field-set/field-set.css +1 -1
  12. package/dist/field-set/field-set.css.map +1 -1
  13. package/dist/grid/grid.css +1 -1
  14. package/dist/grid/grid.css.map +1 -1
  15. package/dist/heading/heading.css +1 -1
  16. package/dist/heading/heading.css.map +1 -1
  17. package/dist/icon/icon.css +1 -1
  18. package/dist/icon/icon.css.map +1 -1
  19. package/dist/index.css +1 -1
  20. package/dist/index.css.map +1 -1
  21. package/dist/label/label.css +1 -1
  22. package/dist/label/label.css.map +1 -1
  23. package/dist/link/link.css +1 -1
  24. package/dist/link/link.css.map +1 -1
  25. package/dist/page/page.css +1 -0
  26. package/dist/page/page.css.map +1 -0
  27. package/dist/page-footer/page-footer.css +1 -0
  28. package/dist/page-footer/page-footer.css.map +1 -0
  29. package/dist/page-header/page-header.css +1 -0
  30. package/dist/page-header/page-header.css.map +1 -0
  31. package/dist/page-heading/page-heading.css +1 -1
  32. package/dist/page-heading/page-heading.css.map +1 -1
  33. package/dist/standalone-link/standalone-link.css +1 -0
  34. package/dist/standalone-link/standalone-link.css.map +1 -0
  35. package/dist/visually-hidden/visually-hidden.css +1 -1
  36. package/dist/visually-hidden/visually-hidden.css.map +1 -1
  37. package/package.json +3 -3
  38. package/src/components/accordion/accordion.scss +1 -0
  39. package/src/components/alert/README.md +1 -1
  40. package/src/components/breakout/breakout.scss +19 -19
  41. package/src/components/card/README.md +15 -14
  42. package/src/components/card/card.scss +9 -1
  43. package/src/components/dialog/README.md +3 -5
  44. package/src/components/dialog/dialog.scss +21 -0
  45. package/src/components/field-set/field-set.scss +7 -6
  46. package/src/components/grid/README.md +9 -8
  47. package/src/components/grid/_mixins.scss +22 -22
  48. package/src/components/grid/grid.scss +19 -19
  49. package/src/components/heading/heading.scss +1 -0
  50. package/src/components/icon/icon.scss +2 -1
  51. package/src/components/image-slider/README.md +1 -1
  52. package/src/components/index.scss +4 -6
  53. package/src/components/label/label.scss +1 -0
  54. package/src/components/link/README.md +9 -10
  55. package/src/components/link/link.scss +6 -28
  56. package/src/components/logo/README.md +1 -1
  57. package/src/components/page/README.md +23 -0
  58. package/src/components/page/page.scss +12 -0
  59. package/src/components/{footer → page-footer}/README.md +7 -5
  60. package/src/components/page-footer/page-footer.scss +56 -0
  61. package/src/components/{header → page-header}/README.md +5 -5
  62. package/src/components/{header/header.scss → page-header/page-header.scss} +65 -56
  63. package/src/components/page-heading/README.md +1 -1
  64. package/src/components/page-heading/page-heading.scss +1 -0
  65. package/src/components/skip-link/README.md +3 -3
  66. package/src/components/spotlight/README.md +2 -3
  67. package/src/components/standalone-link/README.md +11 -0
  68. package/src/components/standalone-link/standalone-link.scss +53 -0
  69. package/src/components/tabs/README.md +1 -1
  70. package/src/components/visually-hidden/visually-hidden.scss +1 -0
  71. package/dist/footer/footer.css +0 -1
  72. package/dist/footer/footer.css.map +0 -1
  73. package/dist/header/header.css +0 -1
  74. package/dist/header/header.css.map +0 -1
  75. package/dist/mega-menu/mega-menu.css +0 -1
  76. package/dist/mega-menu/mega-menu.css.map +0 -1
  77. package/dist/page-menu/page-menu.css +0 -1
  78. package/dist/page-menu/page-menu.css.map +0 -1
  79. package/dist/screen/screen.css +0 -1
  80. package/dist/screen/screen.css.map +0 -1
  81. package/dist/top-task-link/top-task-link.css +0 -1
  82. package/dist/top-task-link/top-task-link.css.map +0 -1
  83. package/src/components/footer/footer.scss +0 -47
  84. package/src/components/mega-menu/README.md +0 -3
  85. package/src/components/mega-menu/mega-menu.scss +0 -16
  86. package/src/components/page-menu/README.md +0 -24
  87. package/src/components/page-menu/page-menu.scss +0 -65
  88. package/src/components/screen/README.md +0 -23
  89. package/src/components/screen/screen.scss +0 -23
  90. package/src/components/top-task-link/README.md +0 -27
  91. package/src/components/top-task-link/top-task-link.scss +0 -45
@@ -1 +0,0 @@
1
- .ams-header{display:grid;font-family:var(--ams-header-font-family);padding-block:var(--ams-header-padding-block);padding-inline:var(--ams-header-padding-inline)}.ams-header__logo-link{align-items:center;align-self:start;column-gap:var(--ams-header-logo-link-column-gap);display:flex;grid-area:1/1;inline-size:fit-content;outline-offset:var(--ams-header-logo-link-outline-offset);text-decoration:none}.ams-header__logo-link--hidden{opacity:0%;user-select:none}.ams-header__logo-container{flex-shrink:0;inline-size:.75rem;overflow:hidden}@media screen and (min-width: 36rem){.ams-header__logo-container{inline-size:auto}}.ams-header__brand-name{color:var(--ams-header-brand-name-color);font-size:var(--ams-header-brand-name-font-size);font-weight:var(--ams-header-brand-name-font-weight);line-height:1.35}.ams-header__navigation{column-gap:var(--ams-header-navigation-column-gap);display:flex;flex-wrap:wrap;grid-area:1/1;pointer-events:none;row-gap:var(--ams-header-navigation-row-gap)}.ams-header__menu{align-items:center;column-gap:var(--ams-header-menu-column-gap);display:flex;flex-wrap:wrap;justify-content:flex-end;margin-inline-start:auto;pointer-events:auto;row-gap:var(--ams-header-menu-row-gap);list-style:none;margin-block:0;padding-inline-start:0}@media screen and not (min-width: 68rem){.ams-header__menu-item{display:none}}.ams-header__menu-item--fixed{display:revert}.ams-header__menu-link{display:inline-block;text-decoration-line:var(--ams-header-menu-link-text-decoration-line);text-decoration-thickness:var(--ams-header-menu-link-text-decoration-thickness);text-underline-offset:var(--ams-header-menu-link-text-underline-offset);color:var(--ams-header-menu-item-color);font-size:var(--ams-header-menu-item-font-size);font-weight:var(--ams-header-menu-item-font-weight);line-height:var(--ams-header-menu-item-line-height);outline-offset:var(--ams-header-menu-item-outline-offset);padding-block:var(--ams-header-menu-item-padding-block);touch-action:manipulation;white-space:nowrap;text-rendering:optimizeLegibility;-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none}.ams-header__menu-link:hover{color:var(--ams-header-menu-item-hover-color)}.ams-header__menu-link:hover{text-decoration-line:var(--ams-header-menu-link-hover-text-decoration-line)}@media screen and (min-width: 68rem){.ams-header__mega-menu-button-item--hide-on-wide-window{display:none}}.ams-header__mega-menu-button{column-gap:var(--ams-header-menu-item-column-gap);cursor:var(--ams-header-mega-menu-button-cursor);display:grid;font-family:inherit;grid-auto-flow:column;color:var(--ams-header-menu-item-color);font-size:var(--ams-header-menu-item-font-size);font-weight:var(--ams-header-menu-item-font-weight);line-height:var(--ams-header-menu-item-line-height);outline-offset:var(--ams-header-menu-item-outline-offset);padding-block:var(--ams-header-menu-item-padding-block);touch-action:manipulation;white-space:nowrap;text-rendering:optimizeLegibility;-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none;background:none;border:none;margin-block:0;margin-inline:0;padding-inline:0}.ams-header__mega-menu-button:hover{color:var(--ams-header-menu-item-hover-color)}.ams-header__mega-menu-button[aria-expanded=true]{font-weight:var(--ams-header-mega-menu-button-label-open-font-weight)}.ams-header__mega-menu-button-label,.ams-header__mega-menu-button-hidden-label{grid-area:1/1}.ams-header__mega-menu-button-hidden-label{font-weight:var(--ams-header-mega-menu-button-label-open-font-weight);pointer-events:none;user-select:none;visibility:hidden}.ams-header__menu-icon line{stroke:currentColor;stroke-width:3px;transform-origin:center;transition:translate .1s ease-in-out,rotate .2s ease-in-out,opacity .1s ease-in-out}@media(prefers-reduced-motion){.ams-header__menu-icon line{transition:none}}.ams-header__menu-icon .ams-header__menu-icon-top{translate:0 -7px}.ams-header__menu-icon .ams-header__menu-icon-bottom{translate:0 7px}.ams-header__menu-icon--open .ams-header__menu-icon-top{rotate:45deg;translate:0}.ams-header__menu-icon--open .ams-header__menu-icon-middle{opacity:0%}.ams-header__menu-icon--open .ams-header__menu-icon-bottom{rotate:-45deg;translate:0}.ams-header__mega-menu{inline-size:100%;pointer-events:auto}.ams-header__mega-menu .ams-grid{padding-inline:0}.ams-header__mega-menu--closed.ams-header__mega-menu--closed{display:none}@media screen and (min-width: 68rem){.ams-header__grid-cell-narrow-window-only{display:none}}/*# sourceMappingURL=header.css.map */
@@ -1 +0,0 @@
1
- {"version":3,"sourceRoot":"","sources":["../../src/components/header/header.scss","../../src/common/text-rendering.scss"],"names":[],"mappings":"AAQA,YAME,aACA,0CACA,8CACA,gDAGF,uBACE,mBACA,iBACA,kDACA,aACA,cACA,wBACA,0DACA,qBAGF,+BACE,WACA,iBAGF,4BACE,cACA,mBACA,gBAEA,qCALF,4BAMI,kBAIJ,wBACE,yCACA,iDACA,qDACA,iBAGF,wBACE,mDACA,aACA,eACA,cAGA,oBACA,6CASF,kBACE,mBACA,6CACA,aACA,eACA,yBACA,yBACA,oBACA,uCAbA,gBACA,eACA,uBAkBA,yCADF,uBAEI,cAKJ,8BACE,eAoBF,uBACE,qBACA,sEACA,gFACA,wEApBA,wCACA,gDACA,oDACA,oDACA,0DACA,wDACA,0BACA,mBC7FA,kCACA,2BACA,8BACA,sBD8FA,6BACE,8CAYF,6BACE,4EAKF,qCADF,wDAEI,cAcJ,8BACE,kDACA,iDACA,aACA,oBACA,sBAlDA,wCACA,gDACA,oDACA,oDACA,0DACA,wDACA,0BACA,mBC7FA,kCACA,2BACA,8BACA,sBDuHA,gBACA,YACA,eACA,gBACA,iBA7BA,oCACE,8CA4CJ,kDACE,sEAGF,+EAEE,cAKF,2CACE,sEACA,oBACA,iBACA,kBAIA,4BACE,oBACA,iBACA,wBACA,WACE,yEAIF,+BATF,4BAUI,iBAIJ,kDACE,iBAGF,qDACE,gBAKF,wDACE,aACA,YAEF,2DACE,WAEF,2DACE,cACA,YAIJ,uBACE,iBACA,oBAIA,iCACE,iBAIJ,6DACE,aAIA,qCADF,0CAEI","file":"header.css"}
@@ -1 +0,0 @@
1
- .ams-mega-menu__list-category{column-gap:var(--ams-mega-menu-list-category-column-gap);column-width:var(--ams-mega-menu-list-category-column-width);padding-block-start:var(--ams-mega-menu-list-category-padding-block-start)}.ams-mega-menu__list-category:not(:last-child){padding-block-end:var(--ams-mega-menu-list-category-padding-block-end)}/*# sourceMappingURL=mega-menu.css.map */
@@ -1 +0,0 @@
1
- {"version":3,"sourceRoot":"","sources":["../../src/components/mega-menu/mega-menu.scss"],"names":[],"mappings":"AAKA,8BACE,yDACA,6DAGA,2EAEA,+CACE","file":"mega-menu.css"}
@@ -1 +0,0 @@
1
- .ams-page-menu{align-items:center;box-sizing:border-box;column-gap:var(--ams-page-menu-column-gap);display:flex;flex-wrap:wrap;list-style:none;row-gap:var(--ams-page-menu-row-gap);margin-block:0;padding-inline:0}.ams-page-menu--align-end{justify-content:end}.ams-page-menu--no-wrap{flex-wrap:nowrap}.ams-page-menu__link{box-sizing:border-box;color:var(--ams-page-menu-item-color);display:inline-flex;font-family:var(--ams-page-menu-item-font-family);font-size:var(--ams-page-menu-item-font-size);font-weight:var(--ams-page-menu-item-font-weight);gap:var(--ams-page-menu-item-gap);line-height:var(--ams-page-menu-item-line-height);outline-offset:var(--ams-page-menu-item-outline-offset);text-align:center;text-decoration-line:var(--ams-page-menu-item-text-decoration-line);text-decoration-thickness:var(--ams-page-menu-item-text-decoration-thickness);text-underline-offset:var(--ams-page-menu-item-text-underline-offset);touch-action:manipulation;white-space:nowrap;text-rendering:optimizeLegibility;-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none}.ams-page-menu__link:hover,.ams-page-menu__button:hover{color:var(--ams-page-menu-item-hover-color);text-decoration-line:var(--ams-page-menu-item-hover-text-decoration-line)}.ams-page-menu__link svg{color:currentColor}/*# sourceMappingURL=page-menu.css.map */
@@ -1 +0,0 @@
1
- {"version":3,"sourceRoot":"","sources":["../../src/components/page-menu/page-menu.scss","../../src/common/text-rendering.scss"],"names":[],"mappings":"AAYA,eACE,mBACA,sBACA,2CACA,aACA,eACA,gBACA,qCAXA,eACA,iBAeF,0BACE,oBAGF,wBACE,iBAoBF,qBACE,sBAjBA,sCACA,oBACA,kDACA,8CACA,kDACA,kCACA,kDACA,wDACA,kBACA,oEACA,8EACA,sEACA,0BACA,mBCpCA,kCACA,2BACA,8BACA,sBD2CF,wDAEE,4CACA,0EAGF,yBACE","file":"page-menu.css"}
@@ -1 +0,0 @@
1
- .ams-screen{background-color:var(--ams-screen-background-color);box-sizing:border-box;margin-inline:auto;position:relative}.ams-screen--full-height{min-block-size:100vh}.ams-screen--wide{max-inline-size:var(--ams-screen-wide-max-inline-size)}.ams-screen--x-wide{max-inline-size:var(--ams-screen-x-wide-max-inline-size)}/*# sourceMappingURL=screen.css.map */
@@ -1 +0,0 @@
1
- {"version":3,"sourceRoot":"","sources":["../../src/components/screen/screen.scss"],"names":[],"mappings":"AAKA,YACE,oDACA,sBACA,mBACA,kBAGF,yBACE,qBAGF,kBACE,uDAGF,oBACE","file":"screen.css"}
@@ -1 +0,0 @@
1
- .ams-top-task-link{break-inside:avoid;display:flex;flex-direction:column;gap:var(--ams-top-task-link-gap);outline-offset:var(--ams-top-task-link-outline-offset);text-decoration:none;hyphenate-limit-chars:var(--ams-typography-hyphenate-limit-chars);hyphens:auto;overflow-wrap:break-word;text-rendering:optimizeLegibility;-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none}.ams-top-task-link__label{box-sizing:border-box;color:var(--ams-top-task-link-label-color);font-family:var(--ams-top-task-link-label-font-family);font-size:var(--ams-top-task-link-label-font-size);font-weight:var(--ams-top-task-link-label-font-weight);line-height:var(--ams-top-task-link-label-line-height);text-decoration-line:var(--ams-top-task-link-label-text-decoration-line);text-decoration-thickness:var(--ams-top-task-link-label-text-decoration-thickness);text-underline-offset:var(--ams-top-task-link-label-text-underline-offset)}.ams-top-task-link:hover .ams-top-task-link__label{color:var(--ams-top-task-link-label-hover-color);text-decoration-line:var(--ams-top-task-link-label-hover-text-decoration-line)}.ams-top-task-link__description{box-sizing:border-box;color:var(--ams-top-task-link-description-color);font-family:var(--ams-top-task-link-description-font-family);font-size:var(--ams-top-task-link-description-font-size);font-weight:var(--ams-top-task-link-description-font-weight);line-height:var(--ams-top-task-link-description-line-height)}/*# sourceMappingURL=top-task-link.css.map */
@@ -1 +0,0 @@
1
- {"version":3,"sourceRoot":"","sources":["../../src/components/top-task-link/top-task-link.scss","../../src/common/hyphenation.scss","../../src/common/text-rendering.scss"],"names":[],"mappings":"AAQA,mBACE,mBACA,aACA,sBACA,iCACA,uDACA,qBCRA,kEACA,aACA,yBCEA,kCACA,2BACA,8BACA,sBFOF,0BACE,sBACA,2CACA,uDACA,mDACA,uDACA,uDACA,yEACA,mFACA,2EAGF,mDACE,iDACA,+EAGF,gCACE,sBACA,iDACA,6DACA,yDACA,6DACA","file":"top-task-link.css"}
@@ -1,47 +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
- @mixin reset-ul {
10
- list-style: none;
11
- margin-block: 0;
12
- }
13
-
14
- .ams-footer__spotlight {
15
- background-color: var(--ams-footer-spotlight-background-color);
16
- }
17
-
18
- .ams-footer__menu {
19
- column-gap: var(--ams-footer-menu-column-gap);
20
- display: flex;
21
- flex-wrap: wrap;
22
- padding-block: var(--ams-footer-menu-padding-block);
23
- padding-inline: var(--ams-footer-menu-padding-inline);
24
- row-gap: var(--ams-footer-menu-row-gap);
25
-
26
- @include reset-ul;
27
- }
28
-
29
- .ams-footer__menu-link {
30
- color: var(--ams-footer-menu-link-color);
31
- font-family: var(--ams-footer-menu-link-font-family);
32
- font-size: var(--ams-footer-menu-link-font-size);
33
- font-weight: var(--ams-footer-menu-link-font-weight);
34
- line-height: var(--ams-footer-menu-link-line-height);
35
- outline-offset: var(--ams-footer-menu-link-outline-offset);
36
- text-decoration-line: var(--ams-footer-menu-link-text-decoration-line);
37
- text-decoration-thickness: var(--ams-footer-menu-link-text-decoration-thickness);
38
- text-underline-offset: var(--ams-footer-menu-link-text-underline-offset);
39
-
40
- @include hyphenation;
41
- @include text-rendering;
42
-
43
- &:hover {
44
- color: var(--ams-footer-menu-link-hover-color);
45
- text-decoration-line: var(--ams-footer-menu-link-hover-text-decoration-line);
46
- }
47
- }
@@ -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,65 +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-wrap: wrap;
19
- list-style: none;
20
- row-gap: var(--ams-page-menu-row-gap);
21
-
22
- @include reset-ul;
23
- }
24
-
25
- .ams-page-menu--align-end {
26
- justify-content: end;
27
- }
28
-
29
- .ams-page-menu--no-wrap {
30
- flex-wrap: nowrap;
31
- }
32
-
33
- @mixin page-menu-item {
34
- color: var(--ams-page-menu-item-color);
35
- display: inline-flex;
36
- font-family: var(--ams-page-menu-item-font-family);
37
- font-size: var(--ams-page-menu-item-font-size);
38
- font-weight: var(--ams-page-menu-item-font-weight);
39
- gap: var(--ams-page-menu-item-gap);
40
- line-height: var(--ams-page-menu-item-line-height);
41
- outline-offset: var(--ams-page-menu-item-outline-offset);
42
- text-align: center;
43
- text-decoration-line: var(--ams-page-menu-item-text-decoration-line);
44
- text-decoration-thickness: var(--ams-page-menu-item-text-decoration-thickness);
45
- text-underline-offset: var(--ams-page-menu-item-text-underline-offset);
46
- touch-action: manipulation;
47
- white-space: nowrap;
48
- }
49
-
50
- .ams-page-menu__link {
51
- box-sizing: border-box;
52
-
53
- @include page-menu-item;
54
- @include text-rendering;
55
- }
56
-
57
- .ams-page-menu__link:hover,
58
- .ams-page-menu__button:hover {
59
- color: var(--ams-page-menu-item-hover-color);
60
- text-decoration-line: var(--ams-page-menu-item-hover-text-decoration-line);
61
- }
62
-
63
- .ams-page-menu__link svg {
64
- color: currentColor;
65
- }
@@ -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](https://designsystem.amsterdam/?path=/docs/components-layout-grid--docs),
12
- [Header](https://designsystem.amsterdam/?path=/docs/components-containers-header--docs),
13
- [Footer](https://designsystem.amsterdam/?path=/docs/components-containers-footer--docs),
14
- [Spotlight](https://designsystem.amsterdam/?path=/docs/components-containers-spotlight--docs),
15
- [Image Slider](https://designsystem.amsterdam/?path=/docs/components-media-image-slider--docs),
16
- and [Figure](https://designsystem.amsterdam/?path=/docs/components-media-figure--docs).
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
- @include hyphenation;
18
- @include text-rendering;
19
- }
20
-
21
- .ams-top-task-link__label {
22
- box-sizing: border-box;
23
- color: var(--ams-top-task-link-label-color);
24
- font-family: var(--ams-top-task-link-label-font-family);
25
- font-size: var(--ams-top-task-link-label-font-size);
26
- font-weight: var(--ams-top-task-link-label-font-weight);
27
- line-height: var(--ams-top-task-link-label-line-height);
28
- text-decoration-line: var(--ams-top-task-link-label-text-decoration-line);
29
- text-decoration-thickness: var(--ams-top-task-link-label-text-decoration-thickness);
30
- text-underline-offset: var(--ams-top-task-link-label-text-underline-offset);
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
- }