@gemeentenijmegen/components-css 0.0.1-alpha.11 → 0.0.1-alpha.111
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 +229 -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 +235 -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,65 @@
|
|
|
1
|
+
@import "~@utrecht/link-css/src/mixin";
|
|
2
|
+
@import "~@utrecht/focus-ring-css/src/mixin";
|
|
3
|
+
@import "~@utrecht/unordered-list-css/src/mixin";
|
|
4
|
+
|
|
5
|
+
.nijmegen-dropdown-menu {
|
|
6
|
+
background-color: var(--nijmegen-dropdown-menu-background-color);
|
|
7
|
+
border-color: var(--nijmegen-dropdown-menu-border-color);
|
|
8
|
+
border-radius: var(--nijmegen-dropdown-menu-border-radius);
|
|
9
|
+
border-style: solid;
|
|
10
|
+
border-width: var(--nijmegen-dropdown-menu-border-width);
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
color: var(--nijmegen-dropdown-menu-color);
|
|
13
|
+
margin-block-end: var(--nijmegen-dropdown-menu-margin-block-end);
|
|
14
|
+
max-block-size: var(--nijmegen-dropdown-menu-max-block-size);
|
|
15
|
+
min-inline-size: var(--nijmegen-dropdown-menu-min-inline-size);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.nijmegen-dropdown-menu__list {
|
|
19
|
+
@include utrecht-unordered-list;
|
|
20
|
+
|
|
21
|
+
list-style: none;
|
|
22
|
+
padding-inline-start: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.nijmegen-dropdown-menu__item {
|
|
26
|
+
align-items: center;
|
|
27
|
+
background-color: var(--nijmegen-dropdown-menu-item-background-color);
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
color: var(--nijmegen-dropdown-menu-item-color);
|
|
30
|
+
display: flex;
|
|
31
|
+
font-family: var(--nijmegen-dropdown-menu-item-font-family);
|
|
32
|
+
font-size: var(--nijmegen-dropdown-menu-item-font-size);
|
|
33
|
+
font-weight: var(--nijmegen-dropdown-menu-item-font-weight);
|
|
34
|
+
line-height: var(--nijmegen-dropdown-menu-item-line-height);
|
|
35
|
+
min-block-size: var(--nijmegen-dropdown-menu-item-min-block-size);
|
|
36
|
+
padding-block-end: var(--nijmegen-dropdown-menu-item-padding-block-end);
|
|
37
|
+
padding-block-start: var(--nijmegen-dropdown-menu-item-padding-block-start);
|
|
38
|
+
padding-inline-end: var(--nijmegen-dropdown-menu-item-padding-inline-end);
|
|
39
|
+
padding-inline-start: var(--nijmegen-dropdown-menu-item-padding-inline-start);
|
|
40
|
+
text-decoration: none;
|
|
41
|
+
|
|
42
|
+
&:active,
|
|
43
|
+
&.nijmegen-dropdown-menu__item--active {
|
|
44
|
+
background-color: var(--nijmegen-dropdown-menu-item-active-background-color);
|
|
45
|
+
color: var(--nijmegen-dropdown-menu-item-active-color);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:hover,
|
|
49
|
+
&.nijmegen-dropdown-menu__item--hover {
|
|
50
|
+
@include utrecht-link--hover;
|
|
51
|
+
|
|
52
|
+
background-color: var(--nijmegen-dropdown-menu-item-hover-background-color);
|
|
53
|
+
color: var(--nijmegen-dropdown-menu-item-hover-color);
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:focus-visible,
|
|
58
|
+
&.nijmegen-dropdown-menu__item--focus-visible {
|
|
59
|
+
@include utrecht-link--focus;
|
|
60
|
+
@include utrecht-link--focus-visible;
|
|
61
|
+
|
|
62
|
+
background-color: var(--nijmegen-dropdown-menu-item-focus-visible-background-color);
|
|
63
|
+
color: var(--nijmegen-dropdown-menu-item-focus-visible-color);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
.nijmegen-footer {
|
|
2
|
+
background-color: var(--nijmegen-page-footer-background-color);
|
|
3
|
+
color: var(--nijmegen-page-footer-color);
|
|
4
|
+
margin-block-end: var(--nijmegen-footer-margin-block-end);
|
|
5
|
+
|
|
6
|
+
.utrecht-heading-4,
|
|
7
|
+
.utrecht-paragraph {
|
|
8
|
+
color: inherit;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.utrecht-link {
|
|
12
|
+
color: inherit;
|
|
13
|
+
text-decoration-color: inherit;
|
|
14
|
+
|
|
15
|
+
&:any-link {
|
|
16
|
+
color: inherit;
|
|
17
|
+
text-decoration-color: inherit;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:focus {
|
|
21
|
+
color: var(--nijmegen-link-list-item-focus-color, #000);
|
|
22
|
+
text-decoration: var(--nijmegen-link-list-item-focus-text-decoration, none);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:focus-visible {
|
|
26
|
+
color: var(--nijmegen-link-list-item-focus-visible-color, #000);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.nijmegen-link-list__link:any-link {
|
|
31
|
+
color: inherit;
|
|
32
|
+
|
|
33
|
+
&::before {
|
|
34
|
+
background-color: var(--nijmegen-page-footer-color);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:hover,
|
|
38
|
+
&.nijmegen-link-list__link--hover {
|
|
39
|
+
color: inherit;
|
|
40
|
+
|
|
41
|
+
&::before {
|
|
42
|
+
background-color: var(--nijmegen-page-footer-color);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.nijmegen-footer__container {
|
|
49
|
+
margin-inline-end: auto;
|
|
50
|
+
margin-inline-start: auto;
|
|
51
|
+
max-width: var(--nijmegen-page-footer-content-max-inline-size); /* stylelint-disable-line property-disallowed-list */
|
|
52
|
+
width: 100%; /* stylelint-disable-line property-disallowed-list */
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.nijmegen-footer__main {
|
|
56
|
+
gap: var(--nijmegen-page-footer-content-column-gap);
|
|
57
|
+
padding-block-end: var(--nijmegen-page-footer-main-footer-content-padding-block-end);
|
|
58
|
+
padding-block-start: var(--nijmegen-page-footer-main-footer-content-padding-block-start);
|
|
59
|
+
padding-inline-end: var(--nijmegen-page-footer-main-footer-content-padding-inline-end);
|
|
60
|
+
padding-inline-start: var(--nijmegen-page-footer-main-footer-content-padding-inline-start);
|
|
61
|
+
|
|
62
|
+
@media (width <1024px) {
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@media (width >=1024px) {
|
|
68
|
+
display: grid;
|
|
69
|
+
grid-auto-rows: 1fr;
|
|
70
|
+
grid-template-columns: 1fr 1fr 1fr;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.nijmegen-footer__sub {
|
|
75
|
+
/* stylelint-disable property-disallowed-list */
|
|
76
|
+
border-top: var(--nijmegen-page-footer-sub-footer-border-width, 1px);
|
|
77
|
+
border-top-color: var(--nijmegen-page-footer-sub-footer-border-color, #6d6d6d);
|
|
78
|
+
border-top-style: var(--nijmegen-page-footer-sub-footer-border-style, solid);
|
|
79
|
+
/* stylelint-enable property-disallowed-list */
|
|
80
|
+
display: flex;
|
|
81
|
+
justify-content: space-between;
|
|
82
|
+
padding-block-end: var(--nijmegen-page-footer-sub-footer-content-padding-block-end);
|
|
83
|
+
padding-block-start: var(--nijmegen-page-footer-sub-footer-content-padding-block-start);
|
|
84
|
+
padding-inline-end: var(--nijmegen-page-footer-sub-footer-content-padding-inline-end);
|
|
85
|
+
padding-inline-start: var(--nijmegen-page-footer-sub-footer-content-padding-inline-start);
|
|
86
|
+
|
|
87
|
+
@media (width <1024px) {
|
|
88
|
+
flex-direction: column-reverse;
|
|
89
|
+
gap: var(--nijmegen-page-footer-content-row-gap);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
ul {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-wrap: wrap;
|
|
95
|
+
gap: var(--nijmegen-page-footer-sub-footer-content-gap, 1rem);
|
|
96
|
+
list-style: none;
|
|
97
|
+
margin: 0; /* stylelint-disable-line property-disallowed-list */
|
|
98
|
+
padding: 0; /* stylelint-disable-line property-disallowed-list */
|
|
99
|
+
|
|
100
|
+
li {
|
|
101
|
+
display: inline-flex;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.nijmegen-footer__col {
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
gap: var(--nijmegen-page-footer-content-row-gap);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.nijmegen-footer__block {
|
|
113
|
+
display: flex;
|
|
114
|
+
flex-direction: column;
|
|
115
|
+
gap: var(--nijmegen-page-footer-footer-block-column-gap);
|
|
116
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@mixin nijmegen-header-content {
|
|
2
|
+
align-items: center;
|
|
3
|
+
align-self: center;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
margin-inline: auto;
|
|
8
|
+
max-inline-size: var(--nijmegen-header-content-max-inline-size, 100%);
|
|
9
|
+
padding-block-end: var(--nijmegen-header-content-padding-block-end, 0);
|
|
10
|
+
padding-block-start: var(--nijmegen-header-content-padding-block-start, 0);
|
|
11
|
+
padding-inline-end: var(--nijmegen-header-content-padding-inline-end, 0);
|
|
12
|
+
padding-inline-start: var(--nijmegen-header-content-padding-inline-start, 0);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin nijmegen-header-icon-base {
|
|
16
|
+
background-color: var(--nijmegen-header-item-color, #000);
|
|
17
|
+
content: "";
|
|
18
|
+
display: inline-block;
|
|
19
|
+
/* stylelint-disable-next-line property-disallowed-list */
|
|
20
|
+
height: var(--nijmegen-header-item-icon-size, 1.5rem);
|
|
21
|
+
mask-position: center;
|
|
22
|
+
mask-repeat: no-repeat;
|
|
23
|
+
mask-size: 100%;
|
|
24
|
+
width: var(--nijmegen-header-item-icon-size, 1.5rem); /* stylelint-disable-line property-disallowed-list */
|
|
25
|
+
}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
@import "~@gemeentenijmegen/layout-css/src/variables";
|
|
2
|
+
@import "~@utrecht/focus-ring-css/src/mixin";
|
|
3
|
+
@import "./mixin";
|
|
4
|
+
|
|
5
|
+
.nijmegen-header {
|
|
6
|
+
position: relative;
|
|
7
|
+
writing-mode: horizontal-tb;
|
|
8
|
+
|
|
9
|
+
.nijmegen-search {
|
|
10
|
+
inline-size: 100%;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.nijmegen-header__backdrop {
|
|
15
|
+
background-color: var(--utrecht-backdrop-background-color);
|
|
16
|
+
display: none;
|
|
17
|
+
height: 100vh; /* stylelint-disable-line property-disallowed-list */
|
|
18
|
+
opacity: var(--utrecht-backdrop-opacity);
|
|
19
|
+
position: fixed;
|
|
20
|
+
top: 0; /* stylelint-disable-line property-disallowed-list */
|
|
21
|
+
width: 100%; /* stylelint-disable-line property-disallowed-list */
|
|
22
|
+
z-index: 100;
|
|
23
|
+
|
|
24
|
+
&--visible {
|
|
25
|
+
display: block;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.nijmegen-header__content {
|
|
30
|
+
background-color: var(--nijmegen-header-background-color, #fff);
|
|
31
|
+
border: 0 solid var(--nijmegen-header-border-color, transparent);
|
|
32
|
+
border-block-end-width: var(--nijmegen-header-border-block-end-width, 0);
|
|
33
|
+
position: relative;
|
|
34
|
+
z-index: 101;
|
|
35
|
+
|
|
36
|
+
.nijmegen-header__content--inner {
|
|
37
|
+
@include nijmegen-header-content;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (width <1024px) {
|
|
41
|
+
display: none;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.nijmegen-header__content--small {
|
|
46
|
+
background-color: var(--nijmegen-header-background-color, #fff);
|
|
47
|
+
border: 0 solid var(--nijmegen-header-border-color, transparent);
|
|
48
|
+
border-block-end-width: var(--nijmegen-header-border-block-end-width, 0);
|
|
49
|
+
position: relative;
|
|
50
|
+
z-index: 101;
|
|
51
|
+
|
|
52
|
+
&--inner {
|
|
53
|
+
@include nijmegen-header-content;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (width >=1024px) {
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.nijmegen-header__mobile-menu {
|
|
62
|
+
background-color: var(--nijmegen-menu-background-color);
|
|
63
|
+
border: 0 solid var(--nijmegen-header-border-color, transparent);
|
|
64
|
+
border-block-start-width: var(--nijmegen-header-border-block-end-width, 0);
|
|
65
|
+
display: none;
|
|
66
|
+
padding-block-end: var(--nijmegen-menu-padding-block-end);
|
|
67
|
+
padding-block-start: var(--nijmegen-menu-padding-block-start);
|
|
68
|
+
position: absolute;
|
|
69
|
+
width: 100%; /* stylelint-disable-line property-disallowed-list */
|
|
70
|
+
z-index: 10;
|
|
71
|
+
|
|
72
|
+
nijmegen-search,
|
|
73
|
+
.nijmegen-search {
|
|
74
|
+
display: block;
|
|
75
|
+
max-inline-size: calc(
|
|
76
|
+
100% - var(--nijmegen-header-content-padding-inline-end, 0) - var(
|
|
77
|
+
--nijmegen-header-content-padding-inline-start,
|
|
78
|
+
0
|
|
79
|
+
)
|
|
80
|
+
);
|
|
81
|
+
padding-inline-end: var(--nijmegen-header-content-padding-inline-end, 0);
|
|
82
|
+
padding-inline-start: var(--nijmegen-header-content-padding-inline-start, 0);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&--visible {
|
|
86
|
+
display: block;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.nijmegen-header__navigation,
|
|
91
|
+
.nijmegen-header__actions {
|
|
92
|
+
column-gap: var(--nijmegen-header-content-column-gap, 0);
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: row;
|
|
95
|
+
justify-content: space-between;
|
|
96
|
+
list-style: none;
|
|
97
|
+
padding-inline-start: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.nijmegen-header__panel {
|
|
101
|
+
display: none;
|
|
102
|
+
left: 0; /* stylelint-disable-line property-disallowed-list */
|
|
103
|
+
padding-block-start: calc(1.5rem + 2px);
|
|
104
|
+
position: absolute;
|
|
105
|
+
width: 100%; /* stylelint-disable-line property-disallowed-list */
|
|
106
|
+
z-index: 10;
|
|
107
|
+
|
|
108
|
+
&--small {
|
|
109
|
+
width: auto; /* stylelint-disable-line property-disallowed-list */
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.nijmegen-header-action {
|
|
114
|
+
&--relative {
|
|
115
|
+
position: relative;
|
|
116
|
+
|
|
117
|
+
.nijmegen-header__panel {
|
|
118
|
+
left: auto; /* stylelint-disable-line property-disallowed-list */
|
|
119
|
+
right: 0; /* stylelint-disable-line property-disallowed-list */
|
|
120
|
+
|
|
121
|
+
.nijmegen-listbox {
|
|
122
|
+
min-inline-size: 240px;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.nijmegen-header-item {
|
|
129
|
+
all: unset; /* stylelint-disable-line order/properties-alphabetical-order */
|
|
130
|
+
align-items: end; /* stylelint-disable-line order/properties-alphabetical-order */
|
|
131
|
+
color: var(--nijmegen-header-item-color, #000);
|
|
132
|
+
column-gap: var(--nijmegen-header-item-column-gap, 0);
|
|
133
|
+
cursor: pointer;
|
|
134
|
+
display: flex;
|
|
135
|
+
flex-direction: row;
|
|
136
|
+
font-family: var(--nijmegen-header-item-font-family, inherit);
|
|
137
|
+
font-size: var(--nijmegen-header-item-font-size, 1rem);
|
|
138
|
+
font-weight: var(--nijmegen-header-item-font-weight, 400);
|
|
139
|
+
justify-content: space-between;
|
|
140
|
+
line-height: var(--nijmegen-header-item-line-height, 1.5);
|
|
141
|
+
text-decoration: none;
|
|
142
|
+
user-select: none;
|
|
143
|
+
|
|
144
|
+
&[aria-expanded]::after {
|
|
145
|
+
@include nijmegen-header-icon-base;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&--active,
|
|
149
|
+
&[aria-expanded="true"] {
|
|
150
|
+
-webkit-text-stroke-width: 1px; // Instead of bold, to prevent text shifting
|
|
151
|
+
& + .nijmegen-header__panel {
|
|
152
|
+
display: block;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&[aria-expanded="false"]::after {
|
|
157
|
+
mask-image: var(
|
|
158
|
+
--nijmegen-header-item-open-icon-image,
|
|
159
|
+
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-chevron-down"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6 9l6 6l6 -6" /></svg>')
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&[aria-expanded="true"]::after {
|
|
164
|
+
mask-image: var(
|
|
165
|
+
--nijmegen-header-item-open-icon-image,
|
|
166
|
+
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-chevron-up"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6 15l6 -6l6 6" /></svg>')
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&[class*="nijmegen-header-item--icon-"] {
|
|
171
|
+
&::before {
|
|
172
|
+
@include nijmegen-header-icon-base;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&[aria-expanded]::after {
|
|
176
|
+
all: unset;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&[aria-expanded="true"]::before {
|
|
180
|
+
mask-image: var(
|
|
181
|
+
--nijmegen-header-item-close-icon-image,
|
|
182
|
+
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-x"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 6l-12 12" /><path d="M6 6l12 12" /></svg>')
|
|
183
|
+
);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&--icon-search {
|
|
188
|
+
&::before {
|
|
189
|
+
mask-image: var(
|
|
190
|
+
--nijmegen-header-item-search-icon-image,
|
|
191
|
+
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>')
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
&--icon-user {
|
|
197
|
+
span {
|
|
198
|
+
@media (width <1280px) {
|
|
199
|
+
display: none;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
&::before {
|
|
204
|
+
mask-image: var(
|
|
205
|
+
--nijmegen-header-item-search-icon-image,
|
|
206
|
+
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-user"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0" /><path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" /></svg>')
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&:hover,
|
|
212
|
+
&--hover {
|
|
213
|
+
color: var(--nijmegen-header-item-hover-color, #000);
|
|
214
|
+
text-decoration: var(--nijmegen-header-item-hover-text-decoration, none);
|
|
215
|
+
|
|
216
|
+
&::before,
|
|
217
|
+
&::after {
|
|
218
|
+
background-color: var(--nijmegen-header-item-hover-color, #000);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
&:active,
|
|
223
|
+
&--active {
|
|
224
|
+
color: var(--nijmegen-header-item-active-color, #000);
|
|
225
|
+
text-decoration: var(--nijmegen-header-item-active-text-decoration, none);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
&:focus-visible,
|
|
229
|
+
&--focus-visible {
|
|
230
|
+
@include utrecht-focus-ring;
|
|
231
|
+
|
|
232
|
+
background-color: var(--nijmegen-header-item-focus-visible-background-color, #fff);
|
|
233
|
+
color: var(--nijmegen-header-item-focus-visible-color, #000);
|
|
234
|
+
}
|
|
235
|
+
}
|
package/hero/index.scss
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
.nijmegen-hero {
|
|
2
|
+
background-color: var(--nijmegen-hero-background-color, #a80a2d);
|
|
3
|
+
color: var(--nijmegen-hero-color, white);
|
|
4
|
+
position: relative;
|
|
5
|
+
|
|
6
|
+
.utrecht-heading-1,
|
|
7
|
+
.utrecht-heading-2,
|
|
8
|
+
.utrecht-paragraph {
|
|
9
|
+
color: inherit;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&.nijmegen-hero--background-image {
|
|
13
|
+
position: relative;
|
|
14
|
+
|
|
15
|
+
&::before {
|
|
16
|
+
background: var(
|
|
17
|
+
--nijmegen-hero-background-gradient,
|
|
18
|
+
linear-gradient(90deg, #550517 0%, rgba(#550517, 0.8) 50%, rgba(#a80a2dcc, 0.8) 100%)
|
|
19
|
+
);
|
|
20
|
+
bottom: 0; /* stylelint-disable-line property-disallowed-list */
|
|
21
|
+
content: "";
|
|
22
|
+
left: 0; /* stylelint-disable-line property-disallowed-list */
|
|
23
|
+
position: absolute;
|
|
24
|
+
right: 0; /* stylelint-disable-line property-disallowed-list */
|
|
25
|
+
top: 0; /* stylelint-disable-line property-disallowed-list */
|
|
26
|
+
z-index: 1; /* stylelint-disable-line property-disallowed-list */
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@media (width <1024px) {
|
|
30
|
+
&::before {
|
|
31
|
+
background: var(
|
|
32
|
+
--nijmegen-hero-background-mobile-gradient,
|
|
33
|
+
linear-gradient(180deg, #550517 0%, rgba(#550517, 0.8) 50%, rgba(#a80a2dcc, 0.8) 100%)
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.nijmegen-hero__container {
|
|
41
|
+
display: grid;
|
|
42
|
+
grid-auto-flow: dense;
|
|
43
|
+
grid-template-columns: repeat(12, 1fr);
|
|
44
|
+
margin-inline-end: auto;
|
|
45
|
+
margin-inline-start: auto;
|
|
46
|
+
/* stylelint-disable property-disallowed-list */
|
|
47
|
+
max-width: var(--nijmegen-hero-category-large-vw-container-max-inline-size, 1024px);
|
|
48
|
+
/* stylelint-enable property-disallowed-list */
|
|
49
|
+
position: relative;
|
|
50
|
+
width: 100%; /* stylelint-disable-line property-disallowed-list */
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.nijmegen-hero__content {
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
gap: var(--nijmegen-hero-content-row-gap, 1.5rem);
|
|
57
|
+
grid-column-end: 13;
|
|
58
|
+
grid-column-start: 1;
|
|
59
|
+
padding-block-end: var(--nijmegen-hero-content-padding-block-end, 2rem);
|
|
60
|
+
padding-block-start: var(--nijmegen-hero-content-padding-block-start, 2rem);
|
|
61
|
+
padding-inline-end: var(--nijmegen-hero-content-padding-inline-end, 1rem);
|
|
62
|
+
padding-inline-start: var(--nijmegen-hero-content-padding-inline-start, 1rem);
|
|
63
|
+
position: relative;
|
|
64
|
+
z-index: 2;
|
|
65
|
+
|
|
66
|
+
@media (width >=1024px) {
|
|
67
|
+
padding-block-end: var(--nijmegen-hero-category-large-vw-padding-block-end, 4rem);
|
|
68
|
+
padding-block-start: var(--nijmegen-hero-category-large-vw-padding-block-start, 3rem);
|
|
69
|
+
padding-inline-end: var(--nijmegen-hero-category-large-vw-padding-inline-end, 1rem);
|
|
70
|
+
padding-inline-start: var(--nijmegen-hero-category-large-vw-padding-inline-start, 1rem);
|
|
71
|
+
|
|
72
|
+
.nijmegen-hero--home & {
|
|
73
|
+
grid-column-end: 7;
|
|
74
|
+
padding-block-end: var(--nijmegen-hero-home-large-vw-padding-block-end, 4rem);
|
|
75
|
+
padding-block-start: var(--nijmegen-hero-home-large-vw-padding-block-start, 3rem);
|
|
76
|
+
padding-inline-end: var(--nijmegen-hero-home-large-vw-padding-inline-end, 4rem);
|
|
77
|
+
padding-inline-start: var(--nijmegen-hero-home-large-vw-padding-inline-start, 1rem);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.nijmegen-hero__content--heading {
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
gap: var(--nijmegen-hero-home-heading-row-gap, 0.5rem);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.nijmegen-hero__image {
|
|
89
|
+
height: 100%; /* stylelint-disable-line property-disallowed-list */
|
|
90
|
+
object-fit: cover;
|
|
91
|
+
object-position: center center;
|
|
92
|
+
pointer-events: none;
|
|
93
|
+
position: absolute;
|
|
94
|
+
right: 0; /* stylelint-disable-line property-disallowed-list */
|
|
95
|
+
top: 0; /* stylelint-disable-line property-disallowed-list */
|
|
96
|
+
|
|
97
|
+
.nijmegen-hero--background-image & {
|
|
98
|
+
width: 100%; /* stylelint-disable-line property-disallowed-list */
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.nijmegen-hero--home & {
|
|
102
|
+
width: var(--nijmegen-hero-image-width, 50%); /* stylelint-disable-line property-disallowed-list */
|
|
103
|
+
|
|
104
|
+
@media (width <1024px) {
|
|
105
|
+
display: none;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
package/image/index.scss
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.nijmegen-image {
|
|
2
|
+
max-height: 100%; /* stylelint-disable-line property-disallowed-list */
|
|
3
|
+
max-width: 100%; /* stylelint-disable-line property-disallowed-list */
|
|
4
|
+
object-fit: cover;
|
|
5
|
+
|
|
6
|
+
&.nijmegen-image--aspect-16-9 {
|
|
7
|
+
aspect-ratio: 16/9;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&.nijmegen-image--aspect-1-1 {
|
|
11
|
+
aspect-ratio: 1/1;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&.nijmegen-image--aspect-4-3 {
|
|
15
|
+
aspect-ratio: 4/3;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
.nijmegen-image-text-block {
|
|
2
|
+
display: flex;
|
|
3
|
+
|
|
4
|
+
/* stylelint-disable */
|
|
5
|
+
#storybook-root & {
|
|
6
|
+
max-width: 1000px;
|
|
7
|
+
}
|
|
8
|
+
/* stylelint-enable */
|
|
9
|
+
|
|
10
|
+
@media (width <992px) {
|
|
11
|
+
flex: 1;
|
|
12
|
+
flex-direction: column-reverse;
|
|
13
|
+
gap: var(--nijmegen-image-text-block-row-gap);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@media (width >=992px) {
|
|
17
|
+
align-items: center;
|
|
18
|
+
flex-direction: row-reverse;
|
|
19
|
+
gap: var(--nijmegen-image-text-block-large-vw-column-gap);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.nijmegen-image-text-block--reverse {
|
|
24
|
+
@media (width >=992px) {
|
|
25
|
+
flex-direction: row;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.nijmegen-image-text-block__content {
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
gap: var(--nijmegen-image-text-block-content-row-gap);
|
|
33
|
+
|
|
34
|
+
@media (width >=992px) {
|
|
35
|
+
flex-shrink: 0;
|
|
36
|
+
width: 50%; /* stylelint-disable-line property-disallowed-list */
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.nijmegen-image-text-block__message {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
gap: var(--nijmegen-image-text-block-message-row-gap);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.nijmegen-image-text-block__image {
|
|
47
|
+
display: flex;
|
|
48
|
+
}
|
package/index.scss
CHANGED
|
@@ -1,2 +1,29 @@
|
|
|
1
|
+
@import "./header/index";
|
|
2
|
+
@import "./link/index";
|
|
3
|
+
@import "./toolbar-button/index";
|
|
4
|
+
@import "./mega-menu/index";
|
|
5
|
+
@import "./mobile-menu/index";
|
|
6
|
+
@import "./card/index";
|
|
1
7
|
@import "./ordered-list/index";
|
|
2
8
|
@import "./link-list/index";
|
|
9
|
+
@import "./hero/index";
|
|
10
|
+
@import "./footer/index";
|
|
11
|
+
@import "./breadcrumb/index";
|
|
12
|
+
@import "./accordion/index";
|
|
13
|
+
@import "./table/index";
|
|
14
|
+
@import "./pagination/index";
|
|
15
|
+
@import "./metadata/index";
|
|
16
|
+
@import "./skip-link/index";
|
|
17
|
+
@import "./listbox/index";
|
|
18
|
+
@import "./spacing/src/index";
|
|
19
|
+
@import "./table-of-contents/index";
|
|
20
|
+
@import "./action-card/index";
|
|
21
|
+
@import "./search-results/index";
|
|
22
|
+
@import "./search/index";
|
|
23
|
+
@import "./image/index";
|
|
24
|
+
@import "./steplist/index";
|
|
25
|
+
@import "./blockquote/index";
|
|
26
|
+
@import "./image-text-block/index";
|
|
27
|
+
@import "./button/index";
|
|
28
|
+
@import "./dropdown-menu/index";
|
|
29
|
+
@import "./top-task-card/index";
|
package/link/index.scss
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license EUPL-1.2
|
|
3
|
-
* Copyright (c) 2021 Community for NL Design System
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
1
|
.utrecht-link {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
.utrecht-icon {
|
|
3
|
+
inset-block-start: var(--utrecht-icon-inset-block-start, 0.35rem);
|
|
4
|
+
|
|
5
|
+
+ span {
|
|
6
|
+
padding-inline-start: 0.25rem;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
span + .utrecht-icon {
|
|
11
|
+
padding-inline-start: 0.25rem;
|
|
11
12
|
}
|
|
12
13
|
}
|