dso-toolkit 63.0.0 → 65.0.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.
- package/CHANGELOG.md +42 -0
- package/dist/dso.css +505 -225
- package/dist/dso.css.map +1 -1
- package/dist/dso.min.css +1 -1
- package/dist/dso.min.css.map +1 -1
- package/dist/index.js +8 -5
- package/package.json +4 -4
- package/src/components/accordion/accordion-theme-compact.scss +8 -2
- package/src/components/accordion/accordion.scss +1 -1
- package/src/components/action-list/action-list.scss +2 -2
- package/src/components/alert/alert.scss +5 -1
- package/src/components/attachments-counter/attachments-counter.scss +5 -2
- package/src/components/breadcrumbs/breadcrumbs.mixins.scss +7 -5
- package/src/components/button/button.mixins.scss +20 -13
- package/src/components/context/context.scss +10 -7
- package/src/components/definition-list/definition-list.scss +39 -10
- package/src/components/delete/delete.mixins.scss +3 -1
- package/src/components/description/description.scss +4 -2
- package/src/components/document-header/document-header.scss +15 -7
- package/src/components/dropdown-menu/dropdown-menu.mixins.scss +12 -9
- package/src/components/dropdown-menu/dropdown-menu.scss +26 -14
- package/src/components/footer/footer.scss +8 -5
- package/src/components/form/form-buttons/form-buttons.scss +4 -1
- package/src/components/form/form-group-collection.scss +27 -4
- package/src/components/form/form-group.scss +9 -6
- package/src/components/form/form-groups/select/form-group-select.scss +9 -6
- package/src/components/form-control/form-control.mixins.scss +17 -15
- package/src/components/grid/grid.scss +10 -4
- package/src/components/heading/_index.scss +1 -0
- package/src/components/{headings/headings.scss → heading/heading.scss} +9 -9
- package/src/components/highlight-box/highlight-box.scss +6 -3
- package/src/components/info/info.scss +5 -2
- package/src/components/info-button/info-button.mixins.scss +7 -5
- package/src/components/insert/insert.mixins.scss +3 -1
- package/src/components/label/label.mixins.scss +6 -2
- package/src/components/link-list/link-list.mixins.scss +4 -1
- package/src/components/link-list/link-list.scss +6 -3
- package/src/components/list-button/list-button.mixins.scss +43 -27
- package/src/components/mark/mark.scss +4 -3
- package/src/components/modal/modal.mixins.scss +21 -12
- package/src/components/modal/modal.scss +6 -3
- package/src/components/navbar/navbar.mixins.scss +15 -9
- package/src/components/pagination/pagination.mixins.scss +53 -51
- package/src/components/pagination/pagination.scss +6 -1
- package/src/components/paragraph/paragraph.scss +6 -0
- package/src/components/paragraph/readme.md +1 -0
- package/src/components/search-bar/search-bar.scss +31 -23
- package/src/components/shopping-cart/shopping-cart.scss +26 -16
- package/src/components/tabs/tabs.scss +19 -13
- package/src/components/viewer-grid/viewer-grid.scss +4 -1
- package/src/di.scss +11 -7
- package/src/dso.scss +1 -1
- package/src/global/mixins/set-colors.mixin.scss +32 -31
- package/src/global/spacing.scss +4 -0
- package/src/components/headings/_index.scss +0 -1
- /package/src/components/{headings/headings.mixins.scss → heading/heading.mixins.scss} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `<p>`
|
|
@@ -33,9 +33,12 @@
|
|
|
33
33
|
&::before {
|
|
34
34
|
@include di.base("search");
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
// stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
|
|
37
|
+
& {
|
|
38
|
+
content: "";
|
|
39
|
+
display: inline-block;
|
|
40
|
+
font-size: 1rem;
|
|
41
|
+
}
|
|
39
42
|
}
|
|
40
43
|
|
|
41
44
|
+ input,
|
|
@@ -47,23 +50,25 @@
|
|
|
47
50
|
input {
|
|
48
51
|
@include utilities.placeholder(colors.$input-color-placeholder);
|
|
49
52
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
53
|
+
// stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
|
|
54
|
+
& {
|
|
55
|
+
background-color: colors.$wit;
|
|
56
|
+
background-image: none;
|
|
57
|
+
border: 1px solid form-control.$focus-border-color;
|
|
58
|
+
border-radius: 4px;
|
|
59
|
+
border-width: 1px;
|
|
60
|
+
box-shadow: none;
|
|
61
|
+
display: block;
|
|
62
|
+
font-size: typography.$root-font-size-base;
|
|
63
|
+
block-size: css-search-bar-variables.$block-size;
|
|
64
|
+
line-height: css-search-bar-variables.$block-size;
|
|
65
|
+
padding-block: 6px;
|
|
66
|
+
padding-inline: units.$u1 css-search-bar-variables.$block-size;
|
|
67
|
+
transition:
|
|
68
|
+
border-color ease-in-out 0.15s,
|
|
69
|
+
box-shadow ease-in-out 0.15s;
|
|
70
|
+
inline-size: 100%;
|
|
71
|
+
}
|
|
67
72
|
|
|
68
73
|
&:focus {
|
|
69
74
|
border-color: form-control.$focus-border-color;
|
|
@@ -93,9 +98,12 @@
|
|
|
93
98
|
&::before {
|
|
94
99
|
@include di.base("times");
|
|
95
100
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
101
|
+
// stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
|
|
102
|
+
& {
|
|
103
|
+
content: "";
|
|
104
|
+
display: inline-block;
|
|
105
|
+
font-size: typography.$root-font-size-base;
|
|
106
|
+
}
|
|
99
107
|
}
|
|
100
108
|
}
|
|
101
109
|
|
|
@@ -11,15 +11,19 @@
|
|
|
11
11
|
.dso-shopping-cart {
|
|
12
12
|
.dso-status {
|
|
13
13
|
@include set-colors.apply(colors.$grijs-5);
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
|
|
15
|
+
// stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
|
|
16
|
+
& {
|
|
17
|
+
border: 0;
|
|
18
|
+
border-radius: css-shopping-cart-variables.$radius;
|
|
19
|
+
box-shadow: none;
|
|
20
|
+
display: block;
|
|
21
|
+
font-weight: 600;
|
|
22
|
+
padding-block: units.$u2;
|
|
23
|
+
padding-inline: units.$u6;
|
|
24
|
+
position: relative;
|
|
25
|
+
text-align: start;
|
|
26
|
+
}
|
|
23
27
|
|
|
24
28
|
dso-icon,
|
|
25
29
|
svg.di {
|
|
@@ -56,10 +60,13 @@
|
|
|
56
60
|
.dso-contents {
|
|
57
61
|
@include set-colors.apply(colors.$grijs-5);
|
|
58
62
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
+
// stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
|
|
64
|
+
& {
|
|
65
|
+
border: 0;
|
|
66
|
+
border-radius: css-shopping-cart-variables.$radius;
|
|
67
|
+
color: colors.$zwart;
|
|
68
|
+
position: relative;
|
|
69
|
+
}
|
|
63
70
|
|
|
64
71
|
> .dso-delete {
|
|
65
72
|
position: absolute;
|
|
@@ -82,9 +89,12 @@
|
|
|
82
89
|
|
|
83
90
|
@include set-colors.apply(colors.$grijs-5, $icons: false);
|
|
84
91
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
92
|
+
// stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
|
|
93
|
+
& {
|
|
94
|
+
border-radius: css-shopping-cart-variables.$radius;
|
|
95
|
+
margin-block-end: 0;
|
|
96
|
+
margin-block-start: 0;
|
|
97
|
+
}
|
|
88
98
|
|
|
89
99
|
li {
|
|
90
100
|
border-block-start: 1px solid css-shopping-cart-variables.$border-color;
|
|
@@ -10,9 +10,12 @@
|
|
|
10
10
|
.nav {
|
|
11
11
|
@include utilities.clearfix();
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
// stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
|
|
14
|
+
& {
|
|
15
|
+
list-style: none;
|
|
16
|
+
margin-block-end: 0;
|
|
17
|
+
padding-inline-start: 0; // Override default ul/ol
|
|
18
|
+
}
|
|
16
19
|
|
|
17
20
|
> li {
|
|
18
21
|
position: relative;
|
|
@@ -94,16 +97,19 @@
|
|
|
94
97
|
> a {
|
|
95
98
|
@include anchor.clean();
|
|
96
99
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
100
|
+
// stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
|
|
101
|
+
& {
|
|
102
|
+
border: 1px solid transparent;
|
|
103
|
+
border-radius: css-tabs-variables.$border-radius css-tabs-variables.$border-radius 0 0;
|
|
104
|
+
color: css-tabs-variables.$text-color;
|
|
105
|
+
display: block;
|
|
106
|
+
line-height: typography.$line-height-base;
|
|
107
|
+
margin-inline-end: 2px;
|
|
108
|
+
min-block-size: css-tabs-variables.$block-size;
|
|
109
|
+
padding-block: css-tabs-variables.$block-padding;
|
|
110
|
+
padding-inline: css-tabs-variables.$inline-padding;
|
|
111
|
+
position: relative;
|
|
112
|
+
}
|
|
107
113
|
|
|
108
114
|
&:hover {
|
|
109
115
|
border-color: css-tabs-variables.$link-hover-border-color css-tabs-variables.$link-hover-border-color
|
|
@@ -31,6 +31,9 @@ dso-viewer-grid {
|
|
|
31
31
|
.dso-toggle-main-button {
|
|
32
32
|
@include button.tertiary($modifiers: false);
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
// stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724
|
|
35
|
+
& {
|
|
36
|
+
padding-block: units.$u2;
|
|
37
|
+
}
|
|
35
38
|
}
|
|
36
39
|
}
|
package/src/di.scss
CHANGED
|
@@ -3,14 +3,18 @@
|
|
|
3
3
|
@use "config";
|
|
4
4
|
|
|
5
5
|
@mixin base($icon, $size: icon.$size, $vertical-align: icon.$vertical-align) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
& {
|
|
7
|
+
background: url("#{config.$icons-path}dso-icons.svg#img-#{$icon}") no-repeat;
|
|
8
|
+
background-position: center;
|
|
9
|
+
background-size: cover;
|
|
10
|
+
block-size: $size;
|
|
11
|
+
vertical-align: $vertical-align;
|
|
12
|
+
inline-size: $size;
|
|
13
|
+
}
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
@mixin variant($icon) {
|
|
15
|
-
|
|
17
|
+
& {
|
|
18
|
+
background-image: url("#{config.$icons-path}dso-icons.svg#img-#{$icon}");
|
|
19
|
+
}
|
|
16
20
|
}
|
package/src/dso.scss
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
@use "components/form-control/form-control";
|
|
44
44
|
@use "components/grid/grid";
|
|
45
45
|
@use "components/header/header";
|
|
46
|
-
@use "components/
|
|
46
|
+
@use "components/heading/heading";
|
|
47
47
|
@use "components/highlight-box/highlight-box";
|
|
48
48
|
@use "components/horizontal-rule/horizontal-rule";
|
|
49
49
|
@use "components/icon/icon";
|
|
@@ -18,43 +18,44 @@
|
|
|
18
18
|
|
|
19
19
|
@mixin apply($background-color, $border-color: null, $icons: true, $links: true, $reverse: false) {
|
|
20
20
|
$icon-color: null;
|
|
21
|
+
& {
|
|
22
|
+
// run contrast-color function to determine WCAG-compliant text color
|
|
23
|
+
$contrast-color: contrast-color.apply($background-color);
|
|
21
24
|
|
|
22
|
-
|
|
23
|
-
|
|
25
|
+
// set link and icon color according to text color
|
|
26
|
+
@if color.lightness($background-color) < 100% {
|
|
27
|
+
@if $links == true {
|
|
28
|
+
--link-color: currentColor;
|
|
29
|
+
--link-hover-color: currentColor;
|
|
30
|
+
--link-visited-color: currentColor;
|
|
31
|
+
}
|
|
24
32
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
33
|
+
// set according to contrast color determined by contrast-color function
|
|
34
|
+
@if $contrast-color == colors.$contrast-dark {
|
|
35
|
+
$icon-color: "zwart";
|
|
36
|
+
} @else if $contrast-color == colors.$contrast-light {
|
|
37
|
+
$icon-color: "wit";
|
|
38
|
+
}
|
|
32
39
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
$
|
|
40
|
+
// if contrast-color function gets it wrong, and therefore $reverse is set to true
|
|
41
|
+
@if $contrast-color == colors.$contrast-dark and $reverse == true {
|
|
42
|
+
$icon-color: "wit";
|
|
43
|
+
$contrast-color: colors.$contrast-light;
|
|
44
|
+
} @else if $contrast-color == colors.$contrast-light and $reverse == true {
|
|
45
|
+
$icon-color: "zwart";
|
|
46
|
+
$contrast-color: colors.$contrast-dark;
|
|
47
|
+
}
|
|
38
48
|
}
|
|
39
49
|
|
|
40
|
-
//
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
} @else if $contrast-color == colors.$contrast-light and $reverse == true {
|
|
45
|
-
$icon-color: "zwart";
|
|
46
|
-
$contrast-color: colors.$contrast-dark;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
50
|
+
// set css properties
|
|
51
|
+
background-color: $background-color;
|
|
52
|
+
border-color: if($border-color, $border-color, $background-color);
|
|
53
|
+
color: $contrast-color;
|
|
49
54
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
// implement icon color according to background color
|
|
56
|
-
@if $icon-color and $icons == true {
|
|
57
|
-
@include _anchorIconColors($icon-color);
|
|
55
|
+
// implement icon color according to background color
|
|
56
|
+
@if $icon-color and $icons == true {
|
|
57
|
+
@include _anchorIconColors($icon-color);
|
|
58
|
+
}
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
61
|
|
package/src/global/spacing.scss
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@forward "headings.mixins";
|
|
File without changes
|