@rijkshuisstijl-community/components-css 1.0.0-alpha.8 → 1.0.0-alpha.81

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 (58) hide show
  1. package/dist/index.css +22 -0
  2. package/index.scss +47 -0
  3. package/package.json +19 -11
  4. package/src/accordion/index.scss +68 -0
  5. package/src/action-group/index.scss +11 -0
  6. package/src/alert/index.scss +27 -0
  7. package/src/article/index.scss +1 -0
  8. package/src/badgecounter/index.scss +3 -0
  9. package/src/blockquote/_mixin.scss +85 -0
  10. package/src/blockquote/index.scss +41 -0
  11. package/src/breadcrumb-nav/index.scss +28 -0
  12. package/src/button/_mixin.scss +36 -0
  13. package/src/button/index.scss +18 -0
  14. package/src/card/_mixin.scss +174 -0
  15. package/src/card/index.scss +108 -0
  16. package/src/checkbox/_mixin.scss +103 -0
  17. package/src/checkbox/index.scss +34 -0
  18. package/src/dot-badge/_mixin.scss +12 -0
  19. package/src/dot-badge/index.scss +9 -0
  20. package/src/figure/index.scss +18 -0
  21. package/src/file-input/index.scss +49 -0
  22. package/src/footer/index.scss +71 -0
  23. package/src/form/index.scss +18 -0
  24. package/src/form-field/index.scss +13 -0
  25. package/src/form-field-error-message/index.scss +15 -0
  26. package/src/form-field-radio-option/index.scss +21 -0
  27. package/src/hero/_mixin.scss +103 -0
  28. package/src/hero/index.scss +81 -0
  29. package/src/link/_mixin.scss +38 -0
  30. package/src/link/index.scss +44 -0
  31. package/src/link-list/index.scss +16 -0
  32. package/src/link-list-card/index.scss +10 -0
  33. package/src/logo/_mixin.scss +58 -0
  34. package/src/logo/index.scss +31 -0
  35. package/src/message-list/_mixin.scss +85 -0
  36. package/src/message-list/index.scss +41 -0
  37. package/src/navbar/index.scss +90 -0
  38. package/src/navigation-list/_mixin.scss +94 -0
  39. package/src/navigation-list/index.scss +43 -0
  40. package/src/ordered-list/index.scss +18 -0
  41. package/src/pre-heading/index.scss +22 -0
  42. package/src/radio/index.scss +27 -0
  43. package/src/radio-group/_mixin.scss +12 -0
  44. package/src/radio-group/index.scss +10 -0
  45. package/src/select/index.scss +16 -0
  46. package/src/separator/index.scss +14 -0
  47. package/src/side-nav/index.scss +52 -0
  48. package/src/skip-link/_mixin.scss +13 -0
  49. package/src/skip-link/index.scss +43 -0
  50. package/src/table/index.scss +56 -0
  51. package/src/textarea/index.scss +8 -0
  52. package/src/textbox/index.scss +6 -0
  53. package/src/toggletip/_mixin.scss +59 -0
  54. package/src/toggletip/index.scss +48 -0
  55. package/src/unordered-list/index.scss +27 -0
  56. package/vite.config.js +18 -0
  57. package/button/README.md +0 -3
  58. package/button/index.scss +0 -16
@@ -0,0 +1,108 @@
1
+ @use "mixin";
2
+
3
+ .rhc-card {
4
+ @include mixin.rhc-card;
5
+ .utrecht-img:not(img[width]) {
6
+ block-size: 100%;
7
+ inline-size: 100%;
8
+ }
9
+ }
10
+
11
+ .rhc-card div:empty {
12
+ @include mixin.rhc-card__empty-element;
13
+ }
14
+
15
+ .rhc-card--default {
16
+ @include mixin.rhc-card--default;
17
+ }
18
+
19
+ .rhc-card--full-bleed {
20
+ @include mixin.rhc-card--full-bleed;
21
+ }
22
+
23
+ .rhc-card--horizontal {
24
+ @include mixin.rhc-card--horizontal;
25
+ }
26
+
27
+ .rhc-card__footer {
28
+ @include mixin.rhc-card__content;
29
+ }
30
+ .rhc-card__image {
31
+ @include mixin.rhc-card__image;
32
+ }
33
+
34
+ .rhc-card__heading {
35
+ @include mixin.rhc-card__heading;
36
+ }
37
+
38
+ .rhc-card__icon {
39
+ @include mixin.rhc-card__icon;
40
+ }
41
+
42
+ .rhc-card__metadata {
43
+ @include mixin.rhc-card__metadata;
44
+ }
45
+
46
+ .rhc-card__content {
47
+ @include mixin.rhc-card__content;
48
+ }
49
+
50
+ .rhc-card--horizontal .rhc-card__content {
51
+ @include mixin.rhc-card--horizontal__content;
52
+ }
53
+
54
+ .rhc-card--horizontal .rhc-card__heading {
55
+ @include mixin.rhc-card--horizontal__heading;
56
+ }
57
+
58
+ .rhc-card--horizontal .rhc-card__image {
59
+ @include mixin.rhc-card--horizontal__image;
60
+ }
61
+
62
+ .rhc-card--full-bleed .rhc-card__footer {
63
+ @include mixin.rhc-card--full-bleed__footer;
64
+ }
65
+
66
+ .rhc-card--full-bleed .rhc-card__image {
67
+ @include mixin.rhc-card--full-bleed__image;
68
+ }
69
+
70
+ .rhc-card__link {
71
+ @include mixin.rhc-card__link;
72
+ }
73
+
74
+ .rhc-card:active {
75
+ @include mixin.rhc-card--active;
76
+ }
77
+
78
+ .rhc-card:active .rhc-card__heading {
79
+ @include mixin.rhc-card__heading--active;
80
+ }
81
+
82
+ .rhc-card:active .rhc-card__link {
83
+ @include mixin.rhc-card__link--active;
84
+ }
85
+
86
+ .rhc-card--default:focus {
87
+ @include mixin.rhc-card--default--focus;
88
+ }
89
+
90
+ .rhc-card:focus .rhc-card__heading {
91
+ @include mixin.rhc-card__heading--active;
92
+ }
93
+
94
+ .rhc-card:focus .rhc-card__link {
95
+ @include mixin.rhc-card__link--focus;
96
+ }
97
+
98
+ .rhc-card--default:hover {
99
+ @include mixin.rhc-card--default--hover;
100
+ }
101
+
102
+ .rhc-card:hover .rhc-card__heading {
103
+ @include mixin.rhc-card__heading--active;
104
+ }
105
+
106
+ .rhc-card:hover .rhc-card__link {
107
+ @include mixin.rhc-card__link--hover;
108
+ }
@@ -0,0 +1,103 @@
1
+ @mixin utrecht-checkbox--checked {
2
+ background-image: url('data:image/svg+xml,<svg width="5.5" height="7" viewBox="0 0 17 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16.7071 0.292893C17.0976 0.683417 17.0976 1.31658 16.7071 1.70711L6.70711 11.7071C6.31658 12.0976 5.68342 12.0976 5.29289 11.7071L0.292893 6.70711C-0.0976311 6.31658 -0.0976311 5.68342 0.292893 5.29289C0.683417 4.90237 1.31658 4.90237 1.70711 5.29289L6 9.58579L15.2929 0.292893C15.6834 -0.0976311 16.3166 -0.0976311 16.7071 0.292893Z" fill="white"/></svg>');
3
+ }
4
+
5
+ @mixin utrecht-checkbox--disabled {
6
+ background-color: var(--utrecht-checkbox-disabled-background-color);
7
+ border-color: var(--utrecht-checkbox-disabled-border-color);
8
+ cursor: var(--utrecht-action-disabled-cursor, revert);
9
+ }
10
+
11
+ @mixin utrecht-checkbox--invalid {
12
+ background-color: var(--utrecht-checkbox-invalid-background-color);
13
+ border-color: var(--utrecht-checkbox-invalid-border-color);
14
+ }
15
+
16
+ @mixin utrecht-checkbox--checked--active {
17
+ background-color: var(--utrecht-checkbox-checked-active-background-color);
18
+ border-color: var(--utrecht-checkbox-checked-active-border-color);
19
+ }
20
+
21
+ @mixin utrecht-checkbox--checked--hover {
22
+ background-color: var(--utrecht-checkbox-checked-hover-background-color);
23
+ background-image: url('data:image/svg+xml,<svg width="5.5" height="7" viewBox="0 0 17 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16.7071 0.292893C17.0976 0.683417 17.0976 1.31658 16.7071 1.70711L6.70711 11.7071C6.31658 12.0976 5.68342 12.0976 5.29289 11.7071L0.292893 6.70711C-0.0976311 6.31658 -0.0976311 5.68342 0.292893 5.29289C0.683417 4.90237 1.31658 4.90237 1.70711 5.29289L6 9.58579L15.2929 0.292893C15.6834 -0.0976311 16.3166 -0.0976311 16.7071 0.292893Z" fill="white"/></svg>');
24
+ border-color: var(--utrecht-checkbox-checked-hover-border-color);
25
+ }
26
+ @mixin utrecht-checkbox--checked--disabled {
27
+ background-color: var(--utrecht-checkbox-disabled-background-color);
28
+ background-image: url('data:image/svg+xml,<svg width="5.5" height="7" viewBox="0 0 17 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16.7071 0.292893C17.0976 0.683417 17.0976 1.31658 16.7071 1.70711L6.70711 11.7071C6.31658 12.0976 5.68342 12.0976 5.29289 11.7071L0.292893 6.70711C-0.0976311 6.31658 -0.0976311 5.68342 0.292893 5.29289C0.683417 4.90237 1.31658 4.90237 1.70711 5.29289L6 9.58579L15.2929 0.292893C15.6834 -0.0976311 16.3166 -0.0976311 16.7071 0.292893Z" fill="%23475569"/></svg>');
29
+ }
30
+
31
+ @mixin utrecht-checkbox--indeterminate--active {
32
+ background-color: var(--utrecht-checkbox-indeterminate-active-background-color);
33
+ border-color: var(--utrecht-checkbox-indeterminate-active-border-color);
34
+ }
35
+
36
+ @mixin utrecht-checkbox--indeterminate--hover {
37
+ background-color: var(--utrecht-checkbox-indeterminate-hover-background-color);
38
+ border-color: var(--utrecht-checkbox-indeterminate-hover-border-color);
39
+ }
40
+
41
+ @mixin utrecht-checkbox--indeterminate--focus {
42
+ background-color: var(--utrecht-checkbox-indeterminate-focus-background-color);
43
+ background-image: url('data:image/svg+xml,<svg width="16" height="4" viewBox="0 0 16 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 1C0 0.447715 0.447715 0 1 0H15C15.5523 0 16 0.447715 16 1C16 1.55228 15.5523 2 15 2H1C0.447715 2 0 1.55228 0 1Z" fill="%23154273"/></svg>');
44
+ border-color: var(--utrecht-checkbox-indeterminate-focus-border-color);
45
+ }
46
+
47
+ @mixin utrecht-checkbox--indeterminate--disabled {
48
+ background-color: var(--utrecht-checkbox-indeterminate-disabled-background-color);
49
+ background-image: url('data:image/svg+xml,<svg width="16" height="4" viewBox="0 0 16 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 1C0 0.447715 0.447715 0 1 0H15C15.5523 0 16 0.447715 16 1C16 1.55228 15.5523 2 15 2H1C0.447715 2 0 1.55228 0 1Z" fill="%23154273"/></svg>');
50
+ border-color: var(--utrecht-checkbox-indeterminate-disabled-border-color);
51
+ }
52
+ @mixin utrecht-custom-checkbox--html-input {
53
+ &:checked {
54
+ @include utrecht-checkbox--checked;
55
+ &:active {
56
+ @include utrecht-checkbox--checked--active;
57
+ }
58
+ &:hover {
59
+ @include utrecht-checkbox--checked--hover;
60
+ }
61
+ &:disabled {
62
+ @include utrecht-checkbox--checked--disabled;
63
+ }
64
+ &:focus {
65
+ background-color: var(--utrecht-checkbox-checked-focus-background-color);
66
+ background-image: url('data:image/svg+xml,<svg width="5.5" height="7" viewBox="0 0 17 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16.7071 0.292893C17.0976 0.683417 17.0976 1.31658 16.7071 1.70711L6.70711 11.7071C6.31658 12.0976 5.68342 12.0976 5.29289 11.7071L0.292893 6.70711C-0.0976311 6.31658 -0.0976311 5.68342 0.292893 5.29289C0.683417 4.90237 1.31658 4.90237 1.70711 5.29289L6 9.58579L15.2929 0.292893C15.6834 -0.0976311 16.3166 -0.0976311 16.7071 0.292893Z" fill="%23154273"/></svg>');
67
+ border-color: var(--utrecht-checkbox-checked-focus-border-color);
68
+ border-width: var(--utrecht-checkbox-checked-focus-border-width);
69
+ }
70
+ &:focus-visible {
71
+ background-color: var(--utrecht-checkbox-checked-focus-background-color);
72
+ background-image: url('data:image/svg+xml,<svg width="5.5" height="7" viewBox="0 0 17 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16.7071 0.292893C17.0976 0.683417 17.0976 1.31658 16.7071 1.70711L6.70711 11.7071C6.31658 12.0976 5.68342 12.0976 5.29289 11.7071L0.292893 6.70711C-0.0976311 6.31658 -0.0976311 5.68342 0.292893 5.29289C0.683417 4.90237 1.31658 4.90237 1.70711 5.29289L6 9.58579L15.2929 0.292893C15.6834 -0.0976311 16.3166 -0.0976311 16.7071 0.292893Z" fill="%23154273"/></svg>');
73
+ border-color: var(--utrecht-checkbox-checked-focus-border-color);
74
+ border-width: var(--utrecht-checkbox-checked-focus-border-width);
75
+ }
76
+ }
77
+ &:disabled:hover {
78
+ @include utrecht-checkbox--disabled;
79
+ }
80
+ }
81
+ @mixin utrecht-checkbox--indeterminate {
82
+ &:indeterminate,
83
+ &:checked:indeterminate {
84
+ background-image: url('data:image/svg+xml,<svg width="16" height="4" viewBox="0 0 16 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 1C0 0.447715 0.447715 0 1 0H15C15.5523 0 16 0.447715 16 1C16 1.55228 15.5523 2 15 2H1C0.447715 2 0 1.55228 0 1Z" fill="white"/></svg>');
85
+ background-position: center;
86
+ background-size: 16px 4px;
87
+ }
88
+ &:indeterminate {
89
+ &:active {
90
+ @include utrecht-checkbox--indeterminate--active;
91
+ }
92
+ &:hover {
93
+ @include utrecht-checkbox--indeterminate--hover;
94
+ }
95
+
96
+ &:focus {
97
+ @include utrecht-checkbox--indeterminate--focus;
98
+ }
99
+ &:disabled {
100
+ @include utrecht-checkbox--indeterminate--disabled;
101
+ }
102
+ }
103
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Community for NL Design System
4
+ */
5
+
6
+ @use "mixin";
7
+
8
+ .utrecht-checkbox {
9
+ margin-block-start: var(--rhc-space-50);
10
+ &--disabled {
11
+ @include mixin.utrecht-checkbox--disabled;
12
+ }
13
+ &--invalid {
14
+ @include mixin.utrecht-checkbox--invalid;
15
+ }
16
+ }
17
+ .utrecht-checkbox--custom.utrecht-checkbox--html-input,
18
+ .utrecht-custom-checkbox--html-input {
19
+ @include mixin.utrecht-custom-checkbox--html-input;
20
+ }
21
+ .utrecht-checkbox--custom.utrecht-checkbox--html-input:indeterminate {
22
+ @include mixin.utrecht-checkbox--indeterminate;
23
+ }
24
+ .utrecht-checkbox--custom.utrecht-checkbox--html-input[aria-invalid="true"]:hover {
25
+ @include mixin.utrecht-checkbox--invalid;
26
+ }
27
+
28
+ .rhc-checkbox-group {
29
+ display: flex;
30
+ flex-direction: column;
31
+ padding-block-end: var(--rhc-checkbox-group-padding-block-end);
32
+ padding-block-start: var(--rhc-checkbox-group-padding-block-start);
33
+ row-gap: var(--rhc-checkbox-group-row-gap);
34
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Community for NL Design System
4
+ */
5
+
6
+ @mixin rhc-dot-badge {
7
+ block-size: var(--rhc-dot-badge-size, var(--rhc-size-quarter-lint));
8
+ border-radius: var(--rhc-dot-badge-border-radius, var(--rhc-border-radius-circle));
9
+ color: var(--rhc-dot-badge-color, var(--rhc-color-rood-500));
10
+ display: inline-block;
11
+ inline-size: var(--rhc-dot-badge-inline-size, var(--rhc-size-quarter-lint));
12
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Community for NL Design System
4
+ */
5
+ @use "mixin";
6
+
7
+ .rhc-dot-badge {
8
+ @include mixin.rhc-dot-badge;
9
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Community for NL Design System
4
+ */
5
+
6
+ .utrecht-figure img {
7
+ border-end-end-radius: var(--utrecht-figure-img-border-end-end-radius);
8
+ border-end-start-radius: var(--utrecht-figure-img-border-end-start-radius);
9
+ border-start-end-radius: var(--utrecht-figure-img-border-start-end-radius);
10
+ border-start-start-radius: var(--utrecht-figure-img-border-start-start-radius);
11
+ }
12
+
13
+ .utrecht-figure__caption {
14
+ border-inline-start: var(--utrecht-figure-caption-border-width) solid var(--utrecht-figure-caption-border-color);
15
+ padding-block-end: var(--utrecht-figure-caption-padding-block-end);
16
+ padding-block-start: var(--utrecht-figure-caption-padding-block-start);
17
+ padding-inline-start: var(--utrecht-figure-caption-padding-inline-start);
18
+ }
@@ -0,0 +1,49 @@
1
+ .rhc-file-input {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: var(--rhc-file-input-column-gap);
5
+ }
6
+
7
+ .rhc-file-input__item {
8
+ border-color: var(--rhc-file-input-item-border-color);
9
+ border-radius: var(--rhc-file-input-item-border-radius);
10
+ border-style: var(--rhc-file-input-item-border-style);
11
+ display: flex;
12
+ flex-direction: column;
13
+ padding-block-end: var(--rhc-file-input-item-padding-block-end);
14
+ padding-block-start: var(--rhc-file-input-item-padding-block-start);
15
+ padding-inline-end: var(--rhc-file-input-item-padding-inline-end);
16
+ padding-inline-start: var(--rhc-file-input-item-padding-inline-start);
17
+ }
18
+
19
+ .rhc-file-input__item--error {
20
+ border-color: var(--rhc-file-input-item-error-border-color);
21
+ }
22
+
23
+ .rhc-file-input__item--subtitle {
24
+ color: var(--rhc-file-input-item-subtitle-color);
25
+ }
26
+
27
+ .rhc-file-input__items-container {
28
+ display: flex;
29
+ flex-direction: column;
30
+ gap: var(--rhc-file-input-item-column-gap);
31
+ }
32
+
33
+ .rhc-file-input__inner-container {
34
+ display: flex;
35
+ flex-direction: row;
36
+ justify-content: space-between;
37
+ }
38
+
39
+ .rhc-file-input__inner-container__sub {
40
+ display: flex;
41
+ flex-direction: column;
42
+ overflow: hidden;
43
+ }
44
+
45
+ .rhc-file-input__item--name {
46
+ overflow: hidden;
47
+ text-overflow: ellipsis;
48
+ white-space: nowrap;
49
+ }
@@ -0,0 +1,71 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Community for NL Design System
4
+ */
5
+ .rhc-page-footer {
6
+ --utrecht-space-around: 1;
7
+ --utrecht-link-hover-text-decoration: underline;
8
+ --_utrecht-link-state-text-decoration-color: currentColor;
9
+ --utrecht-column-layout-gap: var(--rhc-page-footer-column-gap);
10
+ --utrecht-column-layout-column-width: var(--rhc-page-footer-column-width);
11
+ --utrecht-heading-1-color: currentColor;
12
+ --utrecht-heading-2-color: currentColor;
13
+ --utrecht-heading-3-color: currentColor;
14
+ --utrecht-heading-4-color: currentColor;
15
+ --utrecht-heading-5-color: currentColor;
16
+ --utrecht-heading-6-color: currentColor;
17
+
18
+ display: flex;
19
+ flex-direction: var(--rhc-page-footer-flex-direction);
20
+ justify-content: center;
21
+
22
+ :is(h1, h2, h3, h4, h5, h6) {
23
+ margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
24
+ }
25
+ }
26
+
27
+ .rhc-page-footer--primary-filled {
28
+ --utrecht-page-footer-background-color: var(--rhc-color-primary-500);
29
+ }
30
+
31
+ .rhc-page-footer--primary-outlined {
32
+ --utrecht-page-footer-background-color: var(--rhc-color-wit);
33
+ --utrecht-page-footer-color: var(--rhc-color-primary-500);
34
+
35
+ border-block-start-color: var(--rhc-page-footer-border-block-start-color);
36
+ border-block-start-style: var(--rhc-page-footer-border-block-start-style);
37
+ border-block-start-width: var(--rhc-page-footer-border-block-start-width);
38
+ }
39
+
40
+ .rhc-page-footer__content {
41
+ column-gap: var(--rhc-page-footer-column-gap);
42
+ display: flex;
43
+ flex: 1;
44
+ flex-direction: var(--rhc-page-footer-flex-direction);
45
+ max-inline-size: var(--rhc-page-footer-content-max-inline-size);
46
+ padding-inline-end: var(--rhc-page-footer-content-padding-inline-end);
47
+ padding-inline-start: var(--rhc-page-footer-content-padding-inline-start);
48
+ }
49
+
50
+ .rhc-page-footer__section,
51
+ .rhc-page-footer__title {
52
+ break-inside: avoid;
53
+ padding-block-end: var(--rhc-page-footer-padding-block-end);
54
+ }
55
+
56
+ .rhc-page-footer__content > * {
57
+ flex: 1;
58
+ }
59
+
60
+ @media (width <= 1024px) {
61
+ .rhc-page-footer {
62
+ --rhc-page-footer-flex-direction: column;
63
+ }
64
+ }
65
+
66
+ @media (width <= 320px) {
67
+ .rhc-page-footer {
68
+ --utrecht-page-footer-padding-inline-start: var(--rhc-page-footer-padding-inline-start);
69
+ --utrecht-page-footer-padding-block-start: var(--rhc-page-footer-padding-block-start);
70
+ }
71
+ }
@@ -0,0 +1,18 @@
1
+ .rhc-form-label--checkbox .utrecht-form-field__label--checkbox {
2
+ --utrecht-form-label-font-weight: var(--rhc-font-weight-regular, 400);
3
+
4
+ align-items: flex-start;
5
+ display: flex;
6
+ margin-block-end: var(--rhc-form-field-checkbox-option-margin-block-end, inherit);
7
+ }
8
+
9
+ .utrecht-form-field__status {
10
+ grid-column-end: status;
11
+ grid-column-start: status;
12
+ grid-row-end: status;
13
+ grid-row-start: status;
14
+ }
15
+
16
+ .utrecht-form-field--checkbox {
17
+ grid-template-areas: "input label" "input description" "input error-message" "input status";
18
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Community for NL Design System
4
+ */
5
+
6
+ .utrecht-rich-text .utrecht-form-field {
7
+ margin-block-end: var(--utrecht-form-field-margin-block-end);
8
+ }
9
+
10
+ .utrecht-form-field__status {
11
+ margin-block-end: var(--rhc-space-100, 0.5rem);
12
+ margin-block-start: var(--rhc-space-100, 0.5rem);
13
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Community for NL Design System
4
+ */
5
+ .utrecht-form-field-error-message {
6
+ &--icon-container {
7
+ display: flex;
8
+ &-icon {
9
+ --utrecht-icon-size: var(--utrecht-form-field-error-message-icon-size, 24px);
10
+
11
+ margin-inline-end: var(--utrecht-form-field-error-message-icon-margin-inline-end, 0.5rem);
12
+ min-inline-size: var(--utrecht-form-field-error-message-icon-min-width, 24px);
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Community for NL Design System
4
+ */
5
+
6
+ .utrecht-form-field--radio {
7
+ --utrecht-form-field-label-margin-block-end: var(--rhc-form-field-radio-option-label-margin-block-end, inherit);
8
+ --utrecht-radio-button-margin-inline-end: var(--rhc-form-field-radio-option-column-gap, inherit);
9
+ }
10
+
11
+ .rhc-form-field-radio-option__input {
12
+ align-items: flex-start;
13
+ display: flex;
14
+ margin-block-start: var(--rhc-form-field-radio-option-input-margin-block-start, inherit);
15
+ }
16
+
17
+ .utrecht-form-field--radio .utrecht-form-field__label {
18
+ --utrecht-form-label-font-weight: var(--rhc-form-field-radio-option-font-weight, inherit);
19
+
20
+ display: inline-flex;
21
+ }
@@ -0,0 +1,103 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Community for NL Design System
4
+ */
5
+
6
+ @mixin rhc-hero {
7
+ block-size: auto;
8
+ inline-size: var(--rhc-hero-inline-size);
9
+ overflow: hidden;
10
+ position: relative;
11
+ }
12
+
13
+ @mixin rhc-hero--aspect-ratio-16-9 {
14
+ aspect-ratio: 16 / 9;
15
+ }
16
+
17
+ @mixin rhc-hero--aspect-ratio-1-1 {
18
+ aspect-ratio: 1 / 1;
19
+ }
20
+
21
+ @mixin rhc-hero--aspect-ratio-4-3 {
22
+ aspect-ratio: 4 / 3;
23
+ }
24
+
25
+ @mixin rhc-hero__message {
26
+ background-color: var(--rhc-hero-message-background-color);
27
+ box-sizing: border-box;
28
+ color: var(--rhc-hero-message-color, inherit);
29
+ display: flex;
30
+ flex-direction: column;
31
+ inline-size: var(--rhc-hero-message-inline-size);
32
+ inset-block-end: 0;
33
+ padding-block-end: var(--rhc-hero-message-padding-block-end);
34
+ padding-block-start: var(--rhc-hero-message-padding-block-start);
35
+ padding-inline-end: var(--rhc-hero-message-padding-inline-end);
36
+ padding-inline-start: var(--rhc-hero-message-padding-inline-start);
37
+ position: absolute;
38
+ row-gap: var(--rhc-hero-message-row-gap);
39
+ }
40
+
41
+ @mixin rhc-hero__heading-group {
42
+ display: flex;
43
+ flex-direction: column;
44
+ row-gap: var(--rhc-hero-message-heading-group-row-gap, var(--rhc-hero-message-row-gap));
45
+ }
46
+
47
+ @mixin rhc-hero--border-radius-corner-end-end {
48
+ border-end-end-radius: var(--rhc-hero-border-radius);
49
+ }
50
+
51
+ @mixin rhc-hero--border-radius-corner-end-start {
52
+ border-end-start-radius: var(--rhc-hero-border-radius);
53
+ }
54
+
55
+ @mixin rhc-hero--border-radius-corner-start-end {
56
+ border-start-end-radius: var(--rhc-hero-border-radius);
57
+ }
58
+
59
+ @mixin rhc-hero--border-radius-corner-start-start {
60
+ border-start-start-radius: var(--rhc-hero-border-radius);
61
+ }
62
+
63
+ @mixin rhc-hero__message--text-align-start {
64
+ border-start-end-radius: var(--rhc-hero-message-border-radius);
65
+ inset-inline-start: 0;
66
+ }
67
+
68
+ @mixin rhc-hero__message--text-align-end {
69
+ border-start-start-radius: var(--rhc-hero-message-border-radius);
70
+ inset-inline-end: 0;
71
+ }
72
+
73
+ @mixin rhc-hero__image {
74
+ block-size: auto;
75
+ inline-size: var(--rhc-hero-inline-size);
76
+ position: relative;
77
+ }
78
+
79
+ @mixin rhc-hero__heading {
80
+ color: currentColor;
81
+ font-family: var(--rhc-hero-heading-font-family);
82
+ font-size: var(--rhc-hero-heading-font-size);
83
+ font-weight: var(--rhc-hero-heading-font-weight);
84
+ line-height: var(--rhc-hero-heading-line-height);
85
+ }
86
+
87
+ @mixin rhc-hero__sub-heading {
88
+ color: currentColor;
89
+ font-family: var(--rhc-hero-sub-heading-font-family);
90
+ font-size: var(--rhc-hero-sub-heading-font-size);
91
+ font-weight: var(--rhc-hero-sub-heading-font-weight);
92
+ line-height: var(--rhc-hero-sub-heading-line-height);
93
+ }
94
+
95
+ @mixin rhc-hero__children {
96
+ box-sizing: border-box;
97
+ display: flex;
98
+ flex-direction: row;
99
+ inset-block-start: 50%;
100
+ position: absolute;
101
+ row-gap: var(--rhc-hero-message-row-gap);
102
+ transform: translateY(-50%);
103
+ }
@@ -0,0 +1,81 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Community for NL Design System
4
+ */
5
+ @use "mixin";
6
+
7
+ .rhc-hero {
8
+ @include mixin.rhc-hero;
9
+ }
10
+
11
+ .rhc-hero--aspect-ratio-16-9 {
12
+ @include mixin.rhc-hero--aspect-ratio-16-9;
13
+ }
14
+
15
+ .rhc-hero--aspect-ratio-1-1 {
16
+ @include mixin.rhc-hero--aspect-ratio-1-1;
17
+ }
18
+
19
+ .rhc-hero--aspect-ratio-4-3 {
20
+ @include mixin.rhc-hero--aspect-ratio-4-3;
21
+ }
22
+
23
+ .rhc-hero__message {
24
+ @include mixin.rhc-hero__message;
25
+ }
26
+
27
+ .rhc-hero__children {
28
+ @include mixin.rhc-hero__children;
29
+ }
30
+
31
+ .rhc-hero__message .utrecht-heading-group {
32
+ @include mixin.rhc-hero__heading-group;
33
+ }
34
+
35
+ .rhc-hero--text-align-start:not(.rhc-hero--custom-border-radius-corner) {
36
+ @include mixin.rhc-hero--border-radius-corner-start-start;
37
+ }
38
+
39
+ .rhc-hero--text-align-start .rhc-hero__message {
40
+ @include mixin.rhc-hero__message--text-align-start;
41
+ }
42
+
43
+ .rhc-hero--text-align-end:not(.rhc-hero--custom-border-radius-corner) {
44
+ @include mixin.rhc-hero--border-radius-corner-start-end;
45
+ }
46
+
47
+ .rhc-hero--text-align-end .rhc-hero__message {
48
+ @include mixin.rhc-hero__message--text-align-end;
49
+ }
50
+
51
+ .rhc-hero--custom-border-radius-corner.rhc-hero--border-radius-corner-start-start {
52
+ @include mixin.rhc-hero--border-radius-corner-start-start;
53
+ }
54
+
55
+ .rhc-hero--custom-border-radius-corner.rhc-hero--border-radius-corner-start-end {
56
+ @include mixin.rhc-hero--border-radius-corner-start-end;
57
+ }
58
+
59
+ .rhc-hero--custom-border-radius-corner.rhc-hero--border-radius-corner-end-start {
60
+ @include mixin.rhc-hero--border-radius-corner-end-start;
61
+ }
62
+
63
+ .rhc-hero--custom-border-radius-corner.rhc-hero--border-radius-corner-end-end {
64
+ @include mixin.rhc-hero--border-radius-corner-end-end;
65
+ }
66
+
67
+ .rhc-hero__image {
68
+ @include mixin.rhc-hero__image;
69
+ }
70
+ .rhc-hero__image:not(img[height]) {
71
+ block-size: auto;
72
+ inline-size: var(--rhc-hero-inline-size);
73
+ }
74
+
75
+ .rhc-hero__heading {
76
+ @include mixin.rhc-hero__heading;
77
+ }
78
+
79
+ .rhc-hero__sub-heading {
80
+ @include mixin.rhc-hero__sub-heading;
81
+ }