@rijkshuisstijl-community/components-css 1.0.0-alpha.8 → 1.0.0-alpha.80
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.
- package/dist/index.css +22 -0
- package/index.scss +47 -0
- package/package.json +19 -11
- package/src/accordion/index.scss +68 -0
- package/src/action-group/index.scss +11 -0
- package/src/alert/index.scss +27 -0
- package/src/article/index.scss +1 -0
- package/src/badgecounter/index.scss +3 -0
- package/src/blockquote/_mixin.scss +85 -0
- package/src/blockquote/index.scss +41 -0
- package/src/breadcrumb-nav/index.scss +28 -0
- package/src/button/_mixin.scss +36 -0
- package/src/button/index.scss +18 -0
- package/src/card/_mixin.scss +174 -0
- package/src/card/index.scss +108 -0
- package/src/checkbox/_mixin.scss +103 -0
- package/src/checkbox/index.scss +34 -0
- package/src/dot-badge/_mixin.scss +12 -0
- package/src/dot-badge/index.scss +9 -0
- package/src/figure/index.scss +18 -0
- package/src/file-input/index.scss +49 -0
- package/src/footer/index.scss +71 -0
- package/src/form/index.scss +18 -0
- package/src/form-field/index.scss +13 -0
- package/src/form-field-error-message/index.scss +15 -0
- package/src/form-field-radio-option/index.scss +21 -0
- package/src/hero/_mixin.scss +103 -0
- package/src/hero/index.scss +81 -0
- package/src/link/_mixin.scss +38 -0
- package/src/link/index.scss +44 -0
- package/src/link-list/index.scss +16 -0
- package/src/link-list-card/index.scss +10 -0
- package/src/logo/_mixin.scss +58 -0
- package/src/logo/index.scss +31 -0
- package/src/message-list/_mixin.scss +85 -0
- package/src/message-list/index.scss +41 -0
- package/src/navbar/index.scss +90 -0
- package/src/navigation-list/_mixin.scss +94 -0
- package/src/navigation-list/index.scss +43 -0
- package/src/ordered-list/index.scss +18 -0
- package/src/pre-heading/index.scss +22 -0
- package/src/radio/index.scss +27 -0
- package/src/radio-group/_mixin.scss +12 -0
- package/src/radio-group/index.scss +10 -0
- package/src/select/index.scss +16 -0
- package/src/separator/index.scss +14 -0
- package/src/side-nav/index.scss +52 -0
- package/src/skip-link/_mixin.scss +13 -0
- package/src/skip-link/index.scss +43 -0
- package/src/table/index.scss +56 -0
- package/src/textarea/index.scss +8 -0
- package/src/textbox/index.scss +6 -0
- package/src/toggletip/_mixin.scss +59 -0
- package/src/toggletip/index.scss +48 -0
- package/src/unordered-list/index.scss +27 -0
- package/vite.config.js +18 -0
- package/button/README.md +0 -3
- package/button/index.scss +0 -16
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2
|
|
3
|
+
* Copyright (c) 2021 Community for NL Design System
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
.rhc-side-nav {
|
|
7
|
+
display: var(--rhc-sidenav-display, flex);
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
row-gap: var(--rhc-sidenav-row-gap);
|
|
10
|
+
&__list {
|
|
11
|
+
list-style: none;
|
|
12
|
+
margin-block: 0;
|
|
13
|
+
padding-block: 0;
|
|
14
|
+
padding-inline: 0;
|
|
15
|
+
}
|
|
16
|
+
&__link {
|
|
17
|
+
align-items: center;
|
|
18
|
+
color: var(--rhc-sidenav-link-color);
|
|
19
|
+
column-gap: var(--rhc-sidenav-link-column-gap);
|
|
20
|
+
display: flex;
|
|
21
|
+
font-family: var(--rhc-sidenav-link-font-family), sans-serif;
|
|
22
|
+
font-size: var(--rhc-sidenav-link-font-size);
|
|
23
|
+
font-weight: var(--rhc-sidenav-link-font-weight);
|
|
24
|
+
line-height: var(--rhc-sidenav-link-line-height);
|
|
25
|
+
padding-block-end: var(--rhc-sidenav-link-padding-block-end);
|
|
26
|
+
padding-block-start: var(--rhc-sidenav-link-padding-block-start);
|
|
27
|
+
text-decoration: var(--rhc-sidenav-link-text-decoration);
|
|
28
|
+
&[aria-current="page"] {
|
|
29
|
+
color: var(--rhc-sidenav-link-current-color);
|
|
30
|
+
font-weight: var(--rhc-sidenav-link-current-font-weight);
|
|
31
|
+
}
|
|
32
|
+
&:active {
|
|
33
|
+
color: var(--rhc-sidenav-link-active-color);
|
|
34
|
+
text-decoration: var(--rhc-sidenav-link-active-text-decoration);
|
|
35
|
+
}
|
|
36
|
+
&:focus {
|
|
37
|
+
background-color: var(--rhc-sidenav-link-focus-background-color);
|
|
38
|
+
color: var(--rhc-sidenav-link-focus-color);
|
|
39
|
+
text-decoration: var(--rhc-sidenav-link-focus-text-decoration);
|
|
40
|
+
}
|
|
41
|
+
&:focus-visible {
|
|
42
|
+
border-color: var(--rhc-sidenav-link-focus-border-color);
|
|
43
|
+
border-radius: var(--rhc-sidenav-link-focus-border-radius);
|
|
44
|
+
border-style: var(--rhc-sidenav-link-focus-border-style);
|
|
45
|
+
border-width: var(--rhc-sidenav-link-focus-border-width);
|
|
46
|
+
}
|
|
47
|
+
&:hover {
|
|
48
|
+
color: var(--rhc-sidenav-link-hover-color);
|
|
49
|
+
text-decoration: var(--rhc-sidenav-link-hover-text-decoration);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2
|
|
3
|
+
* Copyright (c) 2021 Community for NL Design System
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@mixin rhc-skip-link {
|
|
7
|
+
box-shadow: var(--utrecht-skip-link-box-block-end-shadow-offset-x)
|
|
8
|
+
var(--utrecht-skip-link-box-block-end-shadow-offset-y) var(--utrecht-skip-link-box-block-end-shadow-blur-radius)
|
|
9
|
+
var(--utrecht-skip-link-box-block-end-shadow-spread-radius) var(--utrecht-skip-link-box-block-end-shadow-color);
|
|
10
|
+
font-weight: var(--utrecht-skip-link-font-weight, inherit);
|
|
11
|
+
position: revert;
|
|
12
|
+
text-underline-offset: var(--utrecht-skip-link-text-underline-offset, inherit);
|
|
13
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2
|
|
3
|
+
* Copyright (c) 2021 Community for NL Design System
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@use "mixin";
|
|
7
|
+
|
|
8
|
+
.rhc-skip-link {
|
|
9
|
+
@include mixin.rhc-skip-link;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.rhc-skip-link--hidden,
|
|
13
|
+
.rhc-skip-link--visible-on-focus {
|
|
14
|
+
inset-block-start: -9999px;
|
|
15
|
+
position: fixed;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.rhc-skip-link--focus,
|
|
19
|
+
.rhc-skip-link:focus {
|
|
20
|
+
@include mixin.rhc-skip-link;
|
|
21
|
+
|
|
22
|
+
background-color: var(--utrecht-skip-link-focus-background-color, inherit);
|
|
23
|
+
border-color: var(--utrecht-skip-link-focus-border-color, inherit);
|
|
24
|
+
border-style: var(--utrecht-skip-link-focus-border-style, inherit);
|
|
25
|
+
border-width: var(--utrecht-skip-link-focus-border-width, inherit);
|
|
26
|
+
color: var(--utrecht-skip-link-focus-color, inherit);
|
|
27
|
+
outline-color: var(--utrecht-skip-link-focus-outline-color, revert);
|
|
28
|
+
outline-offset: var(--utrecht-skip-link-focus-outline-offset, revert);
|
|
29
|
+
outline-style: var(--utrecht-skip-link-focus-outline-style, revert);
|
|
30
|
+
outline-width: var(--utrecht-skip-link-focus-outline-width, revert);
|
|
31
|
+
position: revert;
|
|
32
|
+
text-decoration: var(--utrecht-skip-link-focus-text-decoration, inherit);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.rhc-skip-link--focus-visible,
|
|
36
|
+
.rhc-skip-link:focus-visible {
|
|
37
|
+
@include mixin.rhc-skip-link;
|
|
38
|
+
|
|
39
|
+
outline-color: var(--utrecht-skip-link-focus-visible-outline-color, var(--utrecht-focus-outline-color));
|
|
40
|
+
outline-offset: var(--utrecht-skip-link-focus-visible-outline-offset, var(--utrecht-focus-outline-offset));
|
|
41
|
+
outline-style: var(--utrecht-skip-link-focus-visible-outline-style, var(--utrecht-focus-outline-style));
|
|
42
|
+
outline-width: var(--utrecht-skip-link-focus-visible-outline-width, var(--utrecht-focus-outline-width));
|
|
43
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2
|
|
3
|
+
* Copyright (c) 2021 Community for NL Design System
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
.utrecht-table {
|
|
7
|
+
&__caption {
|
|
8
|
+
text-align: start;
|
|
9
|
+
&--rtl {
|
|
10
|
+
text-align: end;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
&__cell {
|
|
14
|
+
color: var(--rhc-color-foreground-lint);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&__header {
|
|
18
|
+
tr:last-child > th {
|
|
19
|
+
border-block-end-color: var(--utrecht-table-header-border-block-end-color);
|
|
20
|
+
border-block-end-style: solid;
|
|
21
|
+
border-block-end-width: var(
|
|
22
|
+
--utrecht-table-header-sticky-border-block-end-width,
|
|
23
|
+
var(--utrecht-table-header-border-block-end-width, 0)
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&--align-right {
|
|
28
|
+
--_utrecht-table-cell-text-align: end;
|
|
29
|
+
}
|
|
30
|
+
&--align-center {
|
|
31
|
+
--_utrecht-table-cell-text-align: center;
|
|
32
|
+
}
|
|
33
|
+
&--align-left {
|
|
34
|
+
--_utrecht-table-cell-text-align: start;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&--cell {
|
|
38
|
+
&-row {
|
|
39
|
+
--utrecht-table-header-cell-font-weight: --utrecht-table-row-border-block-end-width;
|
|
40
|
+
|
|
41
|
+
border-block-end-color: var(--utrecht-table-row-border-block-end-color);
|
|
42
|
+
border-block-end-style: solid;
|
|
43
|
+
border-block-end-width: var(--utrecht-table-row-border-block-end-width, 2px);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&__footer {
|
|
49
|
+
color: var(--utrecht-table-footer-color);
|
|
50
|
+
td {
|
|
51
|
+
--utrecht-table-footer-font-weight: var(--utrecht-table-footer-font-weight, bold);
|
|
52
|
+
|
|
53
|
+
font-weight: var(--utrecht-table-footer-font-weight, bold);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
.utrecht-textarea {
|
|
2
|
+
&:focus {
|
|
3
|
+
border-width: var(--utrecht-textarea-focus-border-width, var(--rhc-border-width-m, 2px));
|
|
4
|
+
}
|
|
5
|
+
&--html-textarea:read-only {
|
|
6
|
+
--utrecht-textarea-read-only-border: var(--utrecht-textarea-read-only-background-color, --rhc-color-grijs-100);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2
|
|
3
|
+
* Copyright (c) 2021 Community for NL Design System
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@mixin rhc-toggletip {
|
|
7
|
+
background-color: transparent;
|
|
8
|
+
border-radius: var(--rhc-toggletip-border-radius);
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
size: var(--rhc-toggletip-size);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@mixin rhc-toggletip__summary {
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
display: inline-flex;
|
|
17
|
+
margin-block-end: var(--rhc-toggletip-gap, 16px);
|
|
18
|
+
max-inline-size: var(--rhc-toggletip-size);
|
|
19
|
+
size: var(--rhc-toggletip-size);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@mixin rhc-toggletip__button {
|
|
23
|
+
background-color: var(--rhc-toggletip-background-color);
|
|
24
|
+
border-color: var(--rhc-toggletip-border-color);
|
|
25
|
+
border-radius: var(--rhc-toggletip-border-radius);
|
|
26
|
+
border-width: var(--rhc-toggletip-border-width);
|
|
27
|
+
color: var(--rhc-toggletip-color);
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
display: inline-flex;
|
|
30
|
+
max-inline-size: var(--rhc-toggletip-size);
|
|
31
|
+
padding-block: 0;
|
|
32
|
+
padding-inline: 0;
|
|
33
|
+
size: var(--rhc-toggletip-size);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@mixin rhc-toggletip__button--no-pointer-events {
|
|
37
|
+
pointer-events: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@mixin rhc-toggletip__icon {
|
|
41
|
+
size: var(--rhc-toggletip-icon-size);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@mixin rhc-toggletip--active {
|
|
45
|
+
background-color: var(--rhc-toggletip-active-background-color);
|
|
46
|
+
border-color: var(--rhc-toggletip-active-border-color);
|
|
47
|
+
border-style: solid;
|
|
48
|
+
color: var(--rhc-toggletip-active-color);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@mixin rhc-toggletip--hover {
|
|
52
|
+
background-color: var(--rhc-toggletip-hover-background-color);
|
|
53
|
+
color: var(--rhc-toggletip-hover-color);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@mixin rhc-toggletip--focus {
|
|
57
|
+
background-color: var(--rhc-toggletip-focus-background-color);
|
|
58
|
+
color: var(--rhc-toggletip-focus-color);
|
|
59
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2
|
|
3
|
+
* Copyright (c) 2021 Community for NL Design System
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@use "mixin";
|
|
7
|
+
|
|
8
|
+
.rhc-toggletip {
|
|
9
|
+
@include mixin.rhc-toggletip;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.rhc-toggletip__summary {
|
|
13
|
+
@include mixin.rhc-toggletip__summary;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.rhc-toggletip__button {
|
|
17
|
+
@include mixin.rhc-toggletip__button;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.rhc-toggletip__summary .rhc-toggletip__button {
|
|
21
|
+
// If button is not used standalone the summary should take precedence
|
|
22
|
+
@include mixin.rhc-toggletip__button--no-pointer-events;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.rhc-toggletip__button:focus {
|
|
26
|
+
@include mixin.rhc-toggletip--focus;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.rhc-toggletip__button:hover {
|
|
30
|
+
@include mixin.rhc-toggletip--hover;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.rhc-toggletip__summary:focus .rhc-toggletip__button {
|
|
34
|
+
@include mixin.rhc-toggletip--focus;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.rhc-toggletip__summary:hover .rhc-toggletip__button {
|
|
38
|
+
@include mixin.rhc-toggletip--hover;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.rhc-toggletip:active .rhc-toggletip__button,
|
|
42
|
+
.rhc-toggletip[open] .rhc-toggletip__button {
|
|
43
|
+
@include mixin.rhc-toggletip--active;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.rhc-toggletip__icon {
|
|
47
|
+
@include mixin.rhc-toggletip__icon;
|
|
48
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2
|
|
3
|
+
* Copyright (c) 2021 Community for NL Design System
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
.utrecht-unordered-list {
|
|
7
|
+
color: var(--utrecht-unordered-list-color);
|
|
8
|
+
font-family: var(--utrecht-unordered-list-font-family);
|
|
9
|
+
font-size: var(--utrecht-unordered-list-font-size);
|
|
10
|
+
font-weight: var(--utrecht-unordered-list-font-weight);
|
|
11
|
+
line-height: var(--utrecht-unordered-list-line-heigh);
|
|
12
|
+
padding-inline-start: var(--utrecht-unordered-list-padding-inline-start);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.utrecht-unordered-list__item {
|
|
16
|
+
margin-block-end: var(--utrecht-unordered-list-item-margin-block-end);
|
|
17
|
+
margin-block-start: var(--utrecht-unordered-list-item-margin-block-start);
|
|
18
|
+
padding-inline-start: var(--utrecht-unordered-list-item-padding-inline-start);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.utrecht-unordered-list--nested {
|
|
22
|
+
margin-inline-start: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.utrecht-unordered-list--nested > .utrecht-unordered-list__item::marker {
|
|
26
|
+
content: "○";
|
|
27
|
+
}
|
package/vite.config.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* eslint-disable no-undef */
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { defineConfig } from 'vite';
|
|
4
|
+
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
build: {
|
|
7
|
+
outDir: path.resolve(__dirname, 'dist'), // Output folder for compiled CSS
|
|
8
|
+
rollupOptions: {
|
|
9
|
+
input: path.resolve(__dirname, 'index.scss'), // Entry point for SCSS
|
|
10
|
+
output: {
|
|
11
|
+
// Disable JS output and ensure only CSS is generated
|
|
12
|
+
format: 'es',
|
|
13
|
+
assetFileNames: 'index.css', // Ensure the CSS file gets the correct name
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
cssCodeSplit: false, // Avoid splitting the CSS file into multiple parts
|
|
17
|
+
},
|
|
18
|
+
});
|
package/button/README.md
DELETED
package/button/index.scss
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license EUPL-1.2
|
|
3
|
-
* Copyright (c) 2021 Community for NL Design System
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
.rhc-button {
|
|
7
|
-
background-color: var(--rhc-button-background-color);
|
|
8
|
-
border: 0;
|
|
9
|
-
color: var(--rhc-button-color);
|
|
10
|
-
font-family: system-ui;
|
|
11
|
-
font-size: 1rem;
|
|
12
|
-
padding-block-end: 1ex;
|
|
13
|
-
padding-block-start: 1ex;
|
|
14
|
-
padding-inline-end: 1ch;
|
|
15
|
-
padding-inline-start: 1ch;
|
|
16
|
-
}
|