@rijkshuisstijl-community/components-css 17.0.0 → 17.1.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 (52) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/README.md +2 -2
  3. package/dist/index.css +1 -1
  4. package/index.scss +30 -30
  5. package/package.json +48 -18
  6. package/src/expandable-checkbox-group/_mixin.scss +1 -1
  7. package/src/wrapper/createSpacingCSS.js +2 -2
  8. package/src/code-input/index.scss +0 -14
  9. package/src/code-input-group/_mixin.scss +0 -16
  10. package/src/code-input-group/index.scss +0 -14
  11. package/src/data-badge-button/_mixin.scss +0 -28
  12. package/src/data-badge-button/index.scss +0 -23
  13. package/src/data-summary/_mixin.scss +0 -127
  14. package/src/data-summary/index.scss +0 -58
  15. package/src/file/index.scss +0 -43
  16. package/src/file-input/index.scss +0 -32
  17. package/src/footer/index.scss +0 -126
  18. package/src/heading/index.scss +0 -33
  19. package/src/hero/_mixin.scss +0 -104
  20. package/src/hero/index.scss +0 -87
  21. package/src/language-navigation/_mixin.scss +0 -85
  22. package/src/language-navigation/index.scss +0 -37
  23. package/src/link-button/_mixin.scss +0 -6
  24. package/src/link-button/index.scss +0 -7
  25. package/src/link-list/index.scss +0 -28
  26. package/src/link-list-card/index.scss +0 -15
  27. package/src/listbox/_mixin.scss +0 -6
  28. package/src/listbox/index.scss +0 -7
  29. package/src/logo/_mixin.scss +0 -61
  30. package/src/logo/index.scss +0 -32
  31. package/src/message-list/_mixin.scss +0 -89
  32. package/src/message-list/index.scss +0 -41
  33. package/src/navbar/index.scss +0 -98
  34. package/src/navigation-list/_mixin.scss +0 -97
  35. package/src/navigation-list/index.scss +0 -44
  36. package/src/number-badge/index.scss +0 -10
  37. package/src/ordered-list/_mixin.scss +0 -6
  38. package/src/ordered-list/index.scss +0 -7
  39. package/src/page-number-navigation/index.scss +0 -7
  40. package/src/radio/index.scss +0 -27
  41. package/src/rounded-corner/_mixin.scss +0 -20
  42. package/src/rounded-corner/index.scss +0 -31
  43. package/src/side-nav/index.scss +0 -49
  44. package/src/skip-link/index.scss +0 -6
  45. package/src/text-input/index.scss +0 -11
  46. package/src/textarea/index.scss +0 -13
  47. package/src/toggletip/_mixin.scss +0 -59
  48. package/src/toggletip/index.scss +0 -48
  49. package/src/unordered-list/_mixin.scss +0 -8
  50. package/src/unordered-list/index.scss +0 -10
  51. package/src/visually-hidden/_mixin.scss +0 -19
  52. package/src/visually-hidden/index.scss +0 -10
@@ -1,126 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2026 Community for NL Design System
4
- */
5
-
6
- .rhc-page-footer {
7
- --_utrecht-link-state-text-decoration-color: currentColor;
8
- --nl-heading-level-1-color: currentColor;
9
- --nl-heading-level-2-color: currentColor;
10
- --nl-heading-level-3-color: currentColor;
11
- --nl-heading-level-4-color: currentColor;
12
- --nl-heading-level-5-color: currentColor;
13
- --nl-heading-level-6-color: currentColor;
14
- --nl-link-active-color: currentColor;
15
- --nl-link-color: currentColor;
16
- --nl-link-hover-color: currentColor;
17
- --nl-link-text-decoration-color: currentColor;
18
- --nl-paragraph-color: currentColor;
19
- --utrecht-column-layout-column-width: var(--rhc-page-footer-column-width);
20
- --utrecht-column-layout-gap: var(--rhc-page-footer-column-gap);
21
- --utrecht-link-hover-text-decoration: underline;
22
- --utrecht-space-around: 1;
23
- }
24
-
25
- .rhc-page-footer--primary-filled {
26
- --utrecht-page-footer-background-color: var(--rhc-color-primary-500);
27
- --utrecht-page-footer-color: var(--rhc-color-wit);
28
- --utrecht-page-footer-content-color: inherit;
29
- }
30
-
31
- .rhc-page-footer--primary-filled.rhc-page-footer--subfooter {
32
- border-block-start-color: var(--rhc-page-footer-border-block-start-color);
33
- border-block-start-style: var(--rhc-page-footer-border-block-start-style);
34
- border-block-start-width: var(--rhc-page-footer-border-block-start-width);
35
- }
36
-
37
- .rhc-page-footer--primary-outlined {
38
- --utrecht-page-footer-background-color: var(--rhc-page-footer-outlined-background-color);
39
- --utrecht-page-footer-color: var(--rhc-page-footer-outlined-color);
40
-
41
- border-block-start-color: var(--rhc-page-footer-outlined-border-color);
42
- border-block-start-style: var(--rhc-page-footer-border-block-start-style);
43
- border-block-start-width: var(--rhc-page-footer-border-block-start-width);
44
- }
45
-
46
- /**
47
- * Contains:
48
- * - the pre-footer (optional)
49
- * - the regular page footer
50
- * - the subfooter (optional)
51
- */
52
- .rhc-page-footer-container {
53
- display: flex;
54
- flex-direction: column;
55
- inline-size: 100%;
56
- }
57
-
58
- .rhc-page-footer-layout {
59
- column-gap: var(--rhc-page-footer-column-gap);
60
- display: flex;
61
- flex: 1;
62
- flex-direction: row;
63
-
64
- :is(.rhc-heading, .rhc-paragraph):is(h1, h2, h3, h4, h5, h6, p) {
65
- margin-block-end: var(--utrecht-rich-text-friend-margin-block-end);
66
- }
67
- }
68
-
69
- .rhc-page-footer-layout > * {
70
- flex: 1;
71
- }
72
-
73
- .rhc-page-footer__section,
74
- .rhc-page-footer__tagline {
75
- break-inside: avoid;
76
- line-height: var(--rhc-text-line-height-md, inherit);
77
- padding-block-end: var(--rhc-page-footer-padding-block-end);
78
- }
79
-
80
- .rhc-page-subfooter-layout {
81
- align-items: center;
82
- display: flex;
83
- gap: var(--rhc-page-footer-content-column-gap);
84
- justify-content: space-between;
85
-
86
- @media (width <= 1024px) {
87
- flex-direction: column;
88
- }
89
- }
90
-
91
- .rhc-page-prefooter {
92
- display: flex;
93
- justify-content: center;
94
- position: relative;
95
- }
96
-
97
- .rhc-page-prefooter::before {
98
- background-color: var(--rhc-color-primary-500, currentColor);
99
- block-size: var(--rhc-space-2xl);
100
- content: "";
101
- inline-size: var(--rhc-space-5xl);
102
-
103
- @media (forced-colors: active) {
104
- background-color: CanvasText;
105
- }
106
- }
107
-
108
- .rhc-page-prefooter__content {
109
- font-family: var(--rhc-text-font-family-serif);
110
- inset: 0% 50% auto auto;
111
- line-height: 1;
112
- margin-inline-end: calc(-1 * var(--rhc-space-3xl));
113
- position: absolute;
114
- transform: translateX(100%);
115
-
116
- @media (width <= 720px) {
117
- /*
118
- * Hiding the text of this feature is a violation of WCAG SC 1.4.10 Reflow
119
- * TODO: Reconsider if the Page Footer Prefooter can be made accessible, or should be removed.
120
- * https://nldesignsystem.nl/wcag/1.4.10/
121
- */
122
- & {
123
- display: none;
124
- }
125
- }
126
- }
@@ -1,33 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2026 Community for NL Design System
4
- */
5
-
6
- @use "@nl-design-system-candidate/heading-css/dist/heading.css";
7
-
8
- .rhc-heading {
9
- &.nl-heading--level-1 {
10
- margin-block-end: var(--nl-heading-level-1-margin-block-end, var(--rhc-space-none, 0));
11
- margin-block-start: var(--nl-heading-level-1-margin-block-start, var(--rhc-space-none, 0));
12
- }
13
-
14
- &.nl-heading--level-2 {
15
- margin-block-end: var(--nl-heading-level-2-margin-block-end, var(--rhc-space-none, 0));
16
- margin-block-start: var(--nl-heading-level-2-margin-block-start, var(--rhc-space-none, 0));
17
- }
18
-
19
- &.nl-heading--level-3 {
20
- margin-block-end: var(--nl-heading-level-3-margin-block-end, var(--rhc-space-none, 0));
21
- margin-block-start: var(--nl-heading-level-3-margin-block-start, var(--rhc-space-none, 0));
22
- }
23
-
24
- &.nl-heading--level-4 {
25
- margin-block-end: var(--nl-heading-level-4-margin-block-end, var(--rhc-space-none, 0));
26
- margin-block-start: var(--nl-heading-level-4-margin-block-start, var(--rhc-space-none, 0));
27
- }
28
-
29
- &.nl-heading--level-5 {
30
- margin-block-end: var(--nl-heading-level-5-margin-block-end, var(--rhc-space-none, 0));
31
- margin-block-start: var(--nl-heading-level-5-margin-block-start, var(--rhc-space-none, 0));
32
- }
33
- }
@@ -1,104 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2026 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
- --nl-paragraph-font-size: var(--rhc-hero-sub-heading-font-size);
89
- --nl-paragraph-color: currentColor;
90
-
91
- font-family: var(--rhc-hero-sub-heading-font-family);
92
- font-weight: var(--rhc-hero-sub-heading-font-weight);
93
- line-height: var(--rhc-hero-sub-heading-line-height);
94
- }
95
-
96
- @mixin rhc-hero__children {
97
- box-sizing: border-box;
98
- display: flex;
99
- flex-direction: row;
100
- inset-block-start: 50%;
101
- position: absolute;
102
- row-gap: var(--rhc-hero-message-row-gap);
103
- transform: translateY(-50%);
104
- }
@@ -1,87 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2026 Community for NL Design System
4
- */
5
-
6
- @use "mixin";
7
-
8
- .rhc-hero {
9
- @include mixin.rhc-hero;
10
-
11
- .utrecht-img:not(img[width]) {
12
- inline-size: var(--rhc-hero-inline-size);
13
- }
14
- }
15
-
16
- .rhc-hero--aspect-ratio-16-9 {
17
- @include mixin.rhc-hero--aspect-ratio-16-9;
18
- }
19
-
20
- .rhc-hero--aspect-ratio-1-1 {
21
- @include mixin.rhc-hero--aspect-ratio-1-1;
22
- }
23
-
24
- .rhc-hero--aspect-ratio-4-3 {
25
- @include mixin.rhc-hero--aspect-ratio-4-3;
26
- }
27
-
28
- .rhc-hero__message {
29
- @include mixin.rhc-hero__message;
30
- }
31
-
32
- .rhc-hero__children {
33
- @include mixin.rhc-hero__children;
34
- }
35
-
36
- .rhc-hero__message .utrecht-heading-group {
37
- @include mixin.rhc-hero__heading-group;
38
- }
39
-
40
- .rhc-hero--text-align-start:not(.rhc-hero--custom-border-radius-corner) {
41
- @include mixin.rhc-hero--border-radius-corner-start-start;
42
- }
43
-
44
- .rhc-hero--text-align-start .rhc-hero__message {
45
- @include mixin.rhc-hero__message--text-align-start;
46
- }
47
-
48
- .rhc-hero--text-align-end:not(.rhc-hero--custom-border-radius-corner) {
49
- @include mixin.rhc-hero--border-radius-corner-start-end;
50
- }
51
-
52
- .rhc-hero--text-align-end .rhc-hero__message {
53
- @include mixin.rhc-hero__message--text-align-end;
54
- }
55
-
56
- .rhc-hero--custom-border-radius-corner.rhc-hero--border-radius-corner-start-start {
57
- @include mixin.rhc-hero--border-radius-corner-start-start;
58
- }
59
-
60
- .rhc-hero--custom-border-radius-corner.rhc-hero--border-radius-corner-start-end {
61
- @include mixin.rhc-hero--border-radius-corner-start-end;
62
- }
63
-
64
- .rhc-hero--custom-border-radius-corner.rhc-hero--border-radius-corner-end-start {
65
- @include mixin.rhc-hero--border-radius-corner-end-start;
66
- }
67
-
68
- .rhc-hero--custom-border-radius-corner.rhc-hero--border-radius-corner-end-end {
69
- @include mixin.rhc-hero--border-radius-corner-end-end;
70
- }
71
-
72
- .rhc-hero__image {
73
- @include mixin.rhc-hero__image;
74
- }
75
-
76
- .rhc-hero__image:not(img[height]) {
77
- block-size: auto;
78
- inline-size: var(--rhc-hero-inline-size);
79
- }
80
-
81
- .rhc-hero__heading {
82
- @include mixin.rhc-hero__heading;
83
- }
84
-
85
- .rhc-hero__sub-heading {
86
- @include mixin.rhc-hero__sub-heading;
87
- }
@@ -1,85 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2026 Community for NL Design System
4
- */
5
-
6
- @use "@utrecht/listbox-css/src/mixin" as utrecht-listbox-mixin;
7
-
8
- @mixin rhc-language-navigation__trigger {
9
- --utrecht-button-font-weight: var(--rhc-font-weight-regular);
10
- }
11
-
12
- @mixin rhc-language-navigation__list {
13
- @include utrecht-listbox-mixin.utrecht-listbox;
14
- @include utrecht-listbox-mixin.reset-ul;
15
- }
16
-
17
- @mixin rhc-language-navigation__list__item {
18
- @include utrecht-listbox-mixin.utrecht-listbox__option;
19
-
20
- padding-block-end: 0;
21
- padding-block-start: 0;
22
- padding-inline-end: 0;
23
- padding-inline-start: 0;
24
- }
25
-
26
- @mixin rhc-language-navigation__list__item--html-li {
27
- @include utrecht-listbox-mixin.reset-li;
28
-
29
- &:hover {
30
- @include utrecht-listbox-mixin.utrecht-listbox__option--hover;
31
- }
32
-
33
- &:focus {
34
- @include utrecht-listbox-mixin.utrecht-listbox__option--focus;
35
- }
36
- }
37
-
38
- // Currently the utrecht mixin does not apply pseudo classes properly so we set the variables ourselves
39
- // once the following issue is resolved we can use the mixin again: https://github.com/nl-design-system/utrecht/issues/3031
40
- @mixin rhc-language-navigation__list__item--selected {
41
- --_utrecht-listbox-option-state-background-color: var(--utrecht-listbox-option-selected-background-color);
42
- --_utrecht-listbox-option-state-color: var(--utrecht-listbox-option-selected-color);
43
- --_nl-link-state-color: var(--utrecht-listbox-option-selected-color);
44
- }
45
-
46
- @mixin rhc-language-navigation__link--focus-visible {
47
- @include utrecht-listbox-mixin.utrecht-listbox__option--focus-visible;
48
- }
49
-
50
- @mixin rhc-language-navigation__link {
51
- // remove default link styles
52
- --nl-link-text-decoration-line: none;
53
- --nl-link-hover-text-decoration-line: none;
54
-
55
- // set link colors based on listbox option colors
56
- --nl-link-color: var(--utrecht-listbox-option-color, var(--rhc-color-zwart));
57
- --nl-link-active-color: var(--utrecht-listbox-option-color, var(--rhc-color-zwart));
58
- --nl-link-hover-color: var(--utrecht-listbox-option-hover-color, var(--rhc-color-zwart));
59
-
60
- flex-grow: 1;
61
-
62
- // make the link fill the list item
63
- line-height: calc(
64
- var(--utrecht-listbox-option-min-block-size, var(--rhc-space-3xl)) - var(
65
- --utrecht-listbox-option-padding-block-start,
66
- var(--rhc-space-md)
67
- ) - var(--utrecht-listbox-option-padding-block-end, var(--rhc-space-md))
68
- );
69
- padding-block-end: var(--utrecht-listbox-option-padding-block-end, var(--rhc-space-md));
70
- padding-block-start: var(--utrecht-listbox-option-padding-block-start, var(--rhc-space-md));
71
- padding-inline-end: var(--utrecht-listbox-option-padding-inline-end, var(--rhc-space-xl));
72
- padding-inline-start: var(--utrecht-listbox-option-padding-inline-start, var(--rhc-space-xl));
73
- }
74
-
75
- @mixin rhc-language-navigation__link--button {
76
- // reset default button styles & match link colors
77
- appearance: none;
78
- background: transparent;
79
- border: 0;
80
- color: inherit;
81
- cursor: pointer;
82
- font: inherit;
83
- inline-size: 100%;
84
- text-align: start;
85
- }
@@ -1,37 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2026 Community for NL Design System
4
- */
5
- @use "mixin";
6
-
7
- .rhc-language-navigation__trigger {
8
- @include mixin.rhc-language-navigation__trigger;
9
- }
10
-
11
- .rhc-language-navigation__list {
12
- @include mixin.rhc-language-navigation__list;
13
- }
14
-
15
- .rhc-language-navigation__list__item {
16
- @include mixin.rhc-language-navigation__list__item;
17
- }
18
-
19
- .rhc-language-navigation__list__item--selected {
20
- @include mixin.rhc-language-navigation__list__item--selected;
21
- }
22
-
23
- .rhc-language-navigation__list__item--html-li {
24
- @include mixin.rhc-language-navigation__list__item--html-li;
25
- }
26
-
27
- .rhc-language-navigation__link:focus-visible {
28
- @include mixin.rhc-language-navigation__link--focus-visible;
29
- }
30
-
31
- .rhc-language-navigation__link {
32
- @include mixin.rhc-language-navigation__link;
33
- }
34
-
35
- button.rhc-language-navigation__link {
36
- @include mixin.rhc-language-navigation__link--button;
37
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2026 Community for NL Design System
4
- */
5
-
6
- // Nothing here yet
@@ -1,7 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2026 Community for NL Design System
4
- */
5
-
6
- // If needed to extend the Utrecht component add styles here.
7
- @use "mixin";
@@ -1,28 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2026 Community for NL Design System
4
- */
5
-
6
- .rhc-link-list {
7
- .utrecht-link-list__link {
8
- align-items: flex-start;
9
-
10
- .utrecht-icon {
11
- align-items: center;
12
- block-size: 1lh;
13
- display: flex;
14
- flex-shrink: 0;
15
- position: static;
16
- }
17
- }
18
-
19
- .utrecht-link-list__item {
20
- display: inline-flex;
21
- font-family: var(--rhc-text-font-family-default, inherit);
22
- font-size: var(--utrecht-link-list-item-font-size, inherit);
23
- }
24
-
25
- .utrecht-link-list__item .utrecht-link:any-link {
26
- line-height: var(--rhc-text-line-height-md, inherit);
27
- }
28
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2026 Community for NL Design System
4
- */
5
-
6
- .rhc-link-list-card {
7
- background-color: var(--rhc-link-list-card-background-color);
8
- display: flex;
9
- flex-direction: column;
10
- gap: var(--rhc-link-list-card-row-gap);
11
- padding-block-end: var(--rhc-link-list-card-padding-block-end);
12
- padding-block-start: var(--rhc-link-list-card-padding-block-start);
13
- padding-inline-end: var(--rhc-link-list-card-padding-inline-end);
14
- padding-inline-start: var(--rhc-link-list-card-padding-inline-start);
15
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2026 Community for NL Design System
4
- */
5
-
6
- // Nothing here yet
@@ -1,7 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2026 Community for NL Design System
4
- */
5
-
6
- // If needed to extend the Utrecht component add styles here.
7
- @use "mixin";
@@ -1,61 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2026 Community for NL Design System
4
- */
5
-
6
- @mixin rhc-logo {
7
- display: grid;
8
- font-family: var(--rhc-logo-font-family);
9
- font-size: var(--rhc-logo-title-font-size, 1em);
10
- font-weight: var(--rhc-logo-title-font-weight);
11
- gap: 0 var(--rhc-logo-column-gap, inherit);
12
- grid-auto-rows: var(--rhc-logo-image-inline-size);
13
- grid-template-areas: ". image ." ". image caption";
14
- grid-template-columns: 1fr var(--rhc-logo-image-inline-size) 1fr;
15
- grid-template-rows: var(--rhc-logo-title-padding-block-start) 1fr;
16
- line-height: var(--rhc-logo-title-line-height, 1);
17
- margin-block-end: var(--rhc-logo-margin-block-end, 0);
18
- margin-block-start: var(--rhc-logo-margin-block-start, 0);
19
- margin-inline-end: var(--rhc-logo-margin-inline-end, 0);
20
- margin-inline-start: var(--rhc-logo-margin-inline-start, 0);
21
- min-block-size: calc(var(--rhc-logo-rows, 2) * var(--rhc-logo-image-inline-size));
22
- }
23
-
24
- @mixin rhc-logo__image {
25
- align-items: center;
26
- background-color: var(--rhc-logo-image-background-color, inherit);
27
- block-size: var(--rhc-logo-image-block-size);
28
- color: var(--rhc-logo-image-color, inherit);
29
- display: flex;
30
- flex-direction: column;
31
- grid-area: image;
32
- inline-size: var(--rhc-logo-image-inline-size);
33
- justify-content: end;
34
- }
35
-
36
- @mixin rhc-logo__icon {
37
- block-size: unset;
38
- inline-size: unset;
39
- }
40
-
41
- @mixin rhc-logo__caption {
42
- color: var(--rhc-logo-color, inherit);
43
-
44
- /* Harden against `font-feature-settings` configured, use the default font for the logotype */
45
- font-feature-settings: normal;
46
- grid-area: caption;
47
- max-inline-size: var(--rhc-logo-caption-max-inline-size);
48
- }
49
-
50
- @mixin rhc-logo__title {
51
- /* reset margin of HTML <h1> element */
52
- margin-block-end: 0;
53
- margin-block-start: 0;
54
- white-space: pre-line;
55
- }
56
-
57
- @mixin rhc-logo__subtitle {
58
- font-size: var(--rhc-logo-subtitle-font-size, 1em);
59
- font-weight: var(--rhc-logo-subtitle-font-weight);
60
- line-height: var(--rhc-logo-subtitle-line-height, 1);
61
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2026 Community for NL Design System
4
- */
5
-
6
- @use "mixin";
7
-
8
- .rhc-logo {
9
- @include mixin.rhc-logo;
10
- }
11
-
12
- .rhc-logo__image {
13
- @include mixin.rhc-logo__image;
14
- }
15
-
16
- .rhc-logo__image .utrecht-icon,
17
- .rhc-logo__image .rhc-icon {
18
- @include mixin.rhc-logo__icon;
19
- }
20
-
21
- .rhc-logo__caption {
22
- @include mixin.rhc-logo__caption;
23
- }
24
-
25
- .rhc-logo__title {
26
- @include mixin.rhc-logo__title;
27
- }
28
-
29
- .rhc-logo__subtitle {
30
- @include mixin.rhc-logo__subtitle;
31
- @include mixin.rhc-logo__title;
32
- }