@gemeentenijmegen/components-css 0.0.1-alpha.11 → 0.0.1-alpha.110
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/accordion/index.scss +9 -0
- package/action-card/index.scss +37 -0
- package/blockquote/index.scss +54 -0
- package/breadcrumb/index.scss +130 -0
- package/button/index.scss +10 -0
- package/card/index.scss +152 -0
- package/dist/header.css +208 -0
- package/dist/index.min.css +152 -2
- package/dropdown-menu/index.scss +65 -0
- package/footer/index.scss +116 -0
- package/header/_mixin.scss +25 -0
- package/header/index.scss +213 -0
- package/hero/index.scss +108 -0
- package/image/index.scss +17 -0
- package/image-text-block/index.scss +48 -0
- package/index.scss +27 -0
- package/link/index.scss +10 -9
- package/link-list/_mixin.scss +8 -1
- package/link-list/index.scss +17 -4
- package/listbox/index.scss +81 -0
- package/mega-menu/index.scss +61 -0
- package/menu.scss +5 -0
- package/metadata/index.scss +31 -0
- package/mobile-menu/_mixin.scss +11 -0
- package/mobile-menu/index.scss +180 -0
- package/package.json +9 -4
- package/pagination/_mixin.scss +41 -0
- package/pagination/index.scss +191 -0
- package/rollup.config.mjs +26 -0
- package/search/index.scss +141 -0
- package/search-results/index.scss +56 -0
- package/skip-link/index.scss +41 -0
- package/spacing/getSpacing.mjs +116 -0
- package/spacing/semantic-spacing-matrix.json +156 -0
- package/spacing/spacing-matrix.json +1056 -0
- package/spacing/src/_mixin.scss +1968 -0
- package/spacing/src/_nested.scss +47 -0
- package/spacing/src/index.scss +36 -0
- package/spacing/src/semantic/_mixin.scss +311 -0
- package/spacing/src/semantic/index.scss +17 -0
- package/steplist/index.scss +114 -0
- package/table/_mixin.scss +98 -0
- package/table/index.scss +33 -0
- package/table-of-contents/index.scss +21 -0
- package/toolbar-button/_mixin.scss +21 -0
- package/toolbar-button/index.js +29 -0
- package/toolbar-button/index.scss +51 -0
- package/top-task-card/index.scss +57 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
class ToolbarButton {
|
|
2
|
+
component;
|
|
3
|
+
#toolbarButtonClass = '.nijmegen-theme nijmegen-toolbar-button';
|
|
4
|
+
|
|
5
|
+
constructor() {
|
|
6
|
+
this.component = document.querySelectorAll(this.#toolbarButtonClass);
|
|
7
|
+
if (this.component) {
|
|
8
|
+
this.#initToolbarButtonListeners();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
#initToolbarButtonListeners() {
|
|
13
|
+
this.component.forEach((button) => {
|
|
14
|
+
button.addEventListener(
|
|
15
|
+
'click',
|
|
16
|
+
(event) => {
|
|
17
|
+
this.toolbarButtonClickHandler(event);
|
|
18
|
+
},
|
|
19
|
+
{ once: true },
|
|
20
|
+
);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
static toolbarButtonClickHandler(event) {
|
|
25
|
+
event.target.ariaExpanded = event.target.ariaExpanded === 'true' ? 'false' : 'true';
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export default ToolbarButton;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@import "~@utrecht/button-css/src/mixin";
|
|
2
|
+
@import "~@utrecht/focus-ring-css/src/mixin";
|
|
3
|
+
@import "./mixin";
|
|
4
|
+
.nijmegen-toolbar-button {
|
|
5
|
+
@include utrecht-button;
|
|
6
|
+
@include utrecht-button-appearance-properties("utrecht-button", "subtle");
|
|
7
|
+
|
|
8
|
+
column-gap: var(--nijmegen-toolbar-button-column-gap);
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
padding-block-end: var(--nijmegen-toolbar-button-padding-block-end);
|
|
11
|
+
padding-block-start: var(--nijmegen-toolbar-button-padding-block-start);
|
|
12
|
+
padding-inline-end: var(--nijmegen-toolbar-button-padding-inline-end);
|
|
13
|
+
padding-inline-start: var(--nijmegen-toolbar-button-padding-inline-start);
|
|
14
|
+
|
|
15
|
+
&.nijmegen-toolbar-button--icon {
|
|
16
|
+
&-menu {
|
|
17
|
+
&::before {
|
|
18
|
+
mask-image: var(
|
|
19
|
+
--nijmegen-toolbar-button-menu-icon-image,
|
|
20
|
+
url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" className="icon icon-tabler icons-tabler-outline icon-tabler-menu-2" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M4 6l16 0" /> <path d="M4 12l16 0" /> <path d="M4 18l16 0" /> </svg>')
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
@include toolbar-button-icon;
|
|
24
|
+
}
|
|
25
|
+
&-search {
|
|
26
|
+
&::before {
|
|
27
|
+
mask-image: var(
|
|
28
|
+
--nijmegen-toolbar-button-search-icon-image,
|
|
29
|
+
url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-search"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" /><path d="M21 21l-6 -6" /></svg>')
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
@include toolbar-button-icon;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:focus-visible,
|
|
37
|
+
&.nijmegen-toolbar-button--focus-visible {
|
|
38
|
+
@include utrecht-button--focus;
|
|
39
|
+
@include utrecht-button--focus-visible;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:active:not(:disabled, [aria-disabled="true"]),
|
|
43
|
+
&.nijmegen-toolbar-button--active {
|
|
44
|
+
@include utrecht-button--active;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:hover:not(:disabled, [aria-disabled="true"]),
|
|
48
|
+
&.nijmegen-toolbar-button--hover {
|
|
49
|
+
@include utrecht-button--hover;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
.nijmegen-toptask-card {
|
|
2
|
+
background-color: var(--utrecht-toptask-link-background-color);
|
|
3
|
+
color: var(--utrecht-toptask-link-color);
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
|
|
7
|
+
font-family: var(--todo-toptask-link-font-family); /* stylelint-disable-line */
|
|
8
|
+
font-size: var(--utrecht-toptask-link-font-size);
|
|
9
|
+
font-weight: var(--todo-toptask-link-font-weight); /* stylelint-disable-line */
|
|
10
|
+
line-height: var(--utrecht-toptask-link-line-height);
|
|
11
|
+
|
|
12
|
+
border-radius: var(--todo-toptask-link-border-radius); /* stylelint-disable-line */
|
|
13
|
+
max-inline-size: var(--utrecht-toptask-link-max-inline-size);
|
|
14
|
+
min-block-size: var(--utrecht-toptask-link-min-block-size);
|
|
15
|
+
min-inline-size: var(--utrecht-toptask-link-min-inline-size);
|
|
16
|
+
padding-block-end: var(--utrecht-toptask-link-padding-block-end);
|
|
17
|
+
padding-block-start: var(--utrecht-toptask-link-padding-block-start);
|
|
18
|
+
padding-inline-end: var(--utrecht-toptask-link-padding-inline-end);
|
|
19
|
+
padding-inline-start: var(--utrecht-toptask-link-padding-inline-start);
|
|
20
|
+
text-decoration: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.nijmegen-toptask-card--hover,
|
|
24
|
+
.nijmegen-toptask-card:hover {
|
|
25
|
+
background-color: var(--utrecht-toptask-link-hover-background-color, var(--utrecht-toptask-link-background-color));
|
|
26
|
+
color: var(--utrecht-toptask-link-hover-color, var(--utrecht-toptask-link-color));
|
|
27
|
+
transform: var(--utrecht-toptask-link-hover-transform-scale, 1);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.nijmegen-toptask-card--focus-visible,
|
|
31
|
+
.nijmegen-toptask-card:focus-visible {
|
|
32
|
+
box-shadow: var(--_utrecht-focus-ring-box-shadow);
|
|
33
|
+
outline-color: var(--utrecht-focus-outline-color, revert);
|
|
34
|
+
outline-offset: var(--utrecht-focus-outline-offset, revert);
|
|
35
|
+
outline-style: var(--utrecht-focus-outline-style, revert);
|
|
36
|
+
outline-width: var(--utrecht-focus-outline-width, revert);
|
|
37
|
+
z-index: 1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.nijmegen-toptask-card--focus,
|
|
41
|
+
.nijmegen-toptask-card:focus {
|
|
42
|
+
background-color: var(--utrecht-toptask-link-focus-background-color, var(--utrecht-toptask-link-background-color));
|
|
43
|
+
color: var(--utrecht-toptask-link-focus-color, var(--utrecht-toptask-link-color));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.nijmegen-toptask-card__title {
|
|
47
|
+
display: block;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.nijmegen-toptask-card__icon {
|
|
51
|
+
display: block;
|
|
52
|
+
width: var(--utrecht-toptask-link-icon-size); /* stylelint-disable-line property-disallowed-list */
|
|
53
|
+
|
|
54
|
+
svg {
|
|
55
|
+
fill: currentColor;
|
|
56
|
+
}
|
|
57
|
+
}
|