dso-toolkit 67.1.0 → 67.3.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 +31 -0
- package/dist/dso-icons.svg +344 -1510
- package/dist/dso.css +533 -517
- 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 +4 -4
- package/package.json +5 -5
- package/src/components/accordion/accordion.scss +18 -0
- package/src/components/banner/banner.mixins.scss +47 -45
- package/src/components/banner/banner.scss +44 -7
- package/src/components/banner/banner.variables.scss +4 -0
- package/src/components/card/card.scss +56 -99
- package/src/components/form/form-groups/textarea/form-group-textarea.scss +4 -5
- package/src/di.scss +2 -3
- package/src/dso.scss +0 -1
- package/src/components/header/header.scss +0 -79
|
@@ -43,128 +43,85 @@
|
|
|
43
43
|
font-size: 0;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
}
|
|
47
46
|
|
|
48
|
-
dso-card {
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
.dso-card-container {
|
|
48
|
+
padding-block: units.$u2;
|
|
49
|
+
padding-inline: units.$u2;
|
|
50
|
+
inline-size: 100%;
|
|
51
51
|
|
|
52
|
-
dso-
|
|
53
|
-
|
|
52
|
+
&.dso-card-active {
|
|
53
|
+
background-color: card-variables.$background-color-active;
|
|
54
54
|
}
|
|
55
|
-
}
|
|
56
55
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
h4[slot="heading"],
|
|
60
|
-
h5[slot="heading"] {
|
|
61
|
-
font-size: 1.125em;
|
|
62
|
-
margin-block-end: 0;
|
|
63
|
-
margin-block-start: 0;
|
|
64
|
-
|
|
65
|
-
span {
|
|
66
|
-
margin-inline-end: units.$u1 * 0.5;
|
|
67
|
-
|
|
68
|
-
+ dso-icon,
|
|
69
|
-
+ svg.di {
|
|
70
|
-
flex-shrink: 0;
|
|
71
|
-
position: relative;
|
|
72
|
-
}
|
|
56
|
+
.dso-card-selectable {
|
|
57
|
+
grid-row: span 2;
|
|
73
58
|
}
|
|
74
59
|
}
|
|
75
60
|
|
|
76
|
-
|
|
77
|
-
--_dt-rich-content-margin-block: #{units.$u1};
|
|
78
|
-
--_dt-rich-content-margin-block-end: 0;
|
|
79
|
-
--_dt-rich-content-margin-block-start: 0;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
dso-selectable {
|
|
83
|
-
label {
|
|
84
|
-
font-size: 0;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.dso-card-container {
|
|
90
|
-
padding-block: units.$u2;
|
|
91
|
-
padding-inline: units.$u2;
|
|
92
|
-
inline-size: 100%;
|
|
93
|
-
|
|
94
|
-
&.dso-card-active {
|
|
95
|
-
background-color: card-variables.$background-color-active;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.dso-card-selectable {
|
|
99
|
-
grid-row: span 2;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.dso-card-heading {
|
|
104
|
-
align-items: center;
|
|
105
|
-
display: flex;
|
|
106
|
-
margin-block-end: units.$u1;
|
|
107
|
-
|
|
108
|
-
h2:first-child,
|
|
109
|
-
h3:first-child,
|
|
110
|
-
h4:first-child,
|
|
111
|
-
h5:first-child {
|
|
61
|
+
.dso-card-heading {
|
|
112
62
|
align-items: center;
|
|
113
63
|
display: flex;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
64
|
+
margin-block-end: units.$u1;
|
|
65
|
+
|
|
66
|
+
h2:first-child,
|
|
67
|
+
h3:first-child,
|
|
68
|
+
h4:first-child,
|
|
69
|
+
h5:first-child {
|
|
70
|
+
align-items: center;
|
|
71
|
+
display: flex;
|
|
72
|
+
font-size: 1.125em;
|
|
73
|
+
margin-block-end: 0;
|
|
74
|
+
margin-block-start: 0;
|
|
117
75
|
|
|
118
|
-
|
|
119
|
-
|
|
76
|
+
span {
|
|
77
|
+
margin-inline-end: units.$u1 * 0.5;
|
|
120
78
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
79
|
+
+ dso-icon,
|
|
80
|
+
+ svg.di {
|
|
81
|
+
flex-shrink: 0;
|
|
82
|
+
position: relative;
|
|
83
|
+
}
|
|
125
84
|
}
|
|
126
85
|
}
|
|
127
|
-
}
|
|
128
86
|
|
|
129
|
-
|
|
130
|
-
|
|
87
|
+
a {
|
|
88
|
+
text-decoration: none;
|
|
131
89
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
90
|
+
&,
|
|
91
|
+
&#{button.$not-dso-buttons}:visited,
|
|
92
|
+
&:active,
|
|
93
|
+
&:focus-visible {
|
|
94
|
+
color: card-variables.$heading-anchor-color;
|
|
95
|
+
}
|
|
137
96
|
}
|
|
138
|
-
}
|
|
139
97
|
|
|
140
|
-
|
|
141
|
-
|
|
98
|
+
@media screen and (max-width: media-query-breakpoints.$screen-xs-min) {
|
|
99
|
+
flex-wrap: wrap;
|
|
100
|
+
}
|
|
142
101
|
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.dso-card-interactions,
|
|
146
|
-
[slot="interactions"],
|
|
147
|
-
[slot="interaction"] {
|
|
148
|
-
display: flex;
|
|
149
|
-
justify-content: space-between;
|
|
150
|
-
margin-inline-start: auto;
|
|
151
102
|
|
|
152
|
-
.dso-card-
|
|
153
|
-
align-items: center;
|
|
103
|
+
.dso-card-interactions {
|
|
154
104
|
display: flex;
|
|
155
|
-
|
|
105
|
+
justify-content: space-between;
|
|
106
|
+
margin-inline-start: auto;
|
|
156
107
|
|
|
157
|
-
|
|
158
|
-
|
|
108
|
+
.dso-card-interaction {
|
|
109
|
+
align-items: center;
|
|
110
|
+
display: flex;
|
|
111
|
+
text-align: center;
|
|
112
|
+
|
|
113
|
+
p {
|
|
114
|
+
margin-block-end: 0;
|
|
115
|
+
}
|
|
159
116
|
}
|
|
160
|
-
}
|
|
161
117
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
118
|
+
.dso-info-button {
|
|
119
|
+
margin: 0;
|
|
120
|
+
}
|
|
165
121
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
122
|
+
@media screen and (max-width: media-query-breakpoints.$screen-xs-min) {
|
|
123
|
+
flex-basis: 100%;
|
|
124
|
+
margin-block-start: units.$u2;
|
|
125
|
+
}
|
|
169
126
|
}
|
|
170
127
|
}
|
|
@@ -18,11 +18,10 @@
|
|
|
18
18
|
block-size: auto;
|
|
19
19
|
|
|
20
20
|
&:not([rows]) {
|
|
21
|
-
block-size:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
);
|
|
21
|
+
$lines-block-size: typography.$line-height-base * css-form-variables.$textarea-default-rows * 1em;
|
|
22
|
+
$lines-block-padding: (units.$padding-base-block + 1) * 2;
|
|
23
|
+
|
|
24
|
+
block-size: calc(#{$lines-block-size} + #{$lines-block-padding});
|
|
26
25
|
}
|
|
27
26
|
}
|
|
28
27
|
}
|
package/src/di.scss
CHANGED
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
@mixin base($icon, $size: icon.$size, $vertical-align: icon.$vertical-align) {
|
|
6
6
|
& {
|
|
7
|
-
background: url("#{config.$icons-path}
|
|
8
|
-
background-position: center;
|
|
7
|
+
background: url("#{config.$icons-path}di.svg##{$icon}") no-repeat center;
|
|
9
8
|
background-size: cover;
|
|
10
9
|
block-size: $size;
|
|
11
10
|
vertical-align: $vertical-align;
|
|
@@ -15,6 +14,6 @@
|
|
|
15
14
|
|
|
16
15
|
@mixin variant($icon) {
|
|
17
16
|
& {
|
|
18
|
-
background-image: url("#{config.$icons-path}
|
|
17
|
+
background-image: url("#{config.$icons-path}di.svg##{$icon}");
|
|
19
18
|
}
|
|
20
19
|
}
|
package/src/dso.scss
CHANGED
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
@use "components/form/form";
|
|
43
43
|
@use "components/form-control/form-control";
|
|
44
44
|
@use "components/grid/grid";
|
|
45
|
-
@use "components/header/header";
|
|
46
45
|
@use "components/heading/heading";
|
|
47
46
|
@use "components/highlight-box/highlight-box";
|
|
48
47
|
@use "components/horizontal-rule/horizontal-rule";
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
@use "../../variables/media-query-breakpoints";
|
|
2
|
-
|
|
3
|
-
@use "../../di";
|
|
4
|
-
|
|
5
|
-
header {
|
|
6
|
-
display: block;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
dso-header {
|
|
10
|
-
.dso-header:not(.has-sub-logo) {
|
|
11
|
-
div[slot="logo"] {
|
|
12
|
-
img {
|
|
13
|
-
@media screen and (min-width: media-query-breakpoints.$screen-sm-min) {
|
|
14
|
-
max-block-size: 48px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@media screen and (max-width: media-query-breakpoints.$screen-xs-max) {
|
|
18
|
-
max-block-size: 40px;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.dso-header.has-sub-logo {
|
|
25
|
-
div[slot="logo"] {
|
|
26
|
-
img {
|
|
27
|
-
max-block-size: 40px;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
dso-dropdown-menu {
|
|
33
|
-
> button:not(.dso-primary):not(.dso-secondary):not(.dso-tertiary) {
|
|
34
|
-
&,
|
|
35
|
-
&:hover,
|
|
36
|
-
&:active {
|
|
37
|
-
&::after {
|
|
38
|
-
@include di.variant("chevron-down-grasgroen");
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&[open] {
|
|
44
|
-
> button:not(.dso-primary):not(.dso-secondary):not(.dso-tertiary) {
|
|
45
|
-
&,
|
|
46
|
-
&:hover,
|
|
47
|
-
&:active {
|
|
48
|
-
&::after {
|
|
49
|
-
@include di.variant("chevron-up-grasgroen");
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
nav dso-dropdown-menu {
|
|
57
|
-
> button:not(.dso-primary):not(.dso-secondary):not(.dso-tertiary) {
|
|
58
|
-
&,
|
|
59
|
-
&:hover,
|
|
60
|
-
&:active {
|
|
61
|
-
&::after {
|
|
62
|
-
@include di.variant("chevron-down-bosgroen");
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&[open] {
|
|
68
|
-
> button:not(.dso-primary):not(.dso-secondary):not(.dso-tertiary) {
|
|
69
|
-
&,
|
|
70
|
-
&:hover,
|
|
71
|
-
&:active {
|
|
72
|
-
&::after {
|
|
73
|
-
@include di.variant("chevron-up-bosgroen");
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|