dso-toolkit 62.5.0 → 62.6.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 +15 -0
- package/dist/dso-icons.svg +270 -236
- package/dist/dso.css +43 -22
- package/package.json +1 -1
- package/src/components/anchor/anchor.mixins.scss +45 -17
- package/src/components/anchor/anchor.scss +8 -7
- package/src/components/document-component/document-component.scss +10 -19
- package/src/components/form/form.mixins.scss +0 -1
- package/src/components/navbar/navbar.mixins.scss +5 -0
package/dist/dso.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* DSO Toolkit version: 62.
|
|
2
|
-
:root { --dso-toolkit-version: 62.
|
|
1
|
+
/* DSO Toolkit version: 62.6.0 */
|
|
2
|
+
:root { --dso-toolkit-version: 62.6.0 }
|
|
3
3
|
|
|
4
4
|
@font-face {
|
|
5
5
|
font-family: "Asap";
|
|
@@ -1008,21 +1008,46 @@ a:active {
|
|
|
1008
1008
|
a:visited {
|
|
1009
1009
|
color: var(--link-visited-color);
|
|
1010
1010
|
}
|
|
1011
|
-
a:not(.dso-primary, .dso-secondary, .dso-tertiary).download
|
|
1012
|
-
padding-inline-end: 1.5em;
|
|
1011
|
+
a:not(.dso-primary, .dso-secondary, .dso-tertiary).download {
|
|
1013
1012
|
background-repeat: no-repeat;
|
|
1014
1013
|
background-size: 1.25em 1.25em;
|
|
1014
|
+
padding-inline-end: 1.5em;
|
|
1015
1015
|
background-position: bottom 0 right 0;
|
|
1016
|
-
}
|
|
1017
|
-
a:not(.dso-primary, .dso-secondary, .dso-tertiary).download::after, a:not(.dso-primary, .dso-secondary, .dso-tertiary).extern::after {
|
|
1018
|
-
content: "";
|
|
1019
|
-
}
|
|
1020
|
-
a:not(.dso-primary, .dso-secondary, .dso-tertiary).download {
|
|
1021
1016
|
background-image: url("./dso-icons.svg#img-download");
|
|
1022
1017
|
}
|
|
1018
|
+
a:not(.dso-primary, .dso-secondary, .dso-tertiary).download:hover, a:not(.dso-primary, .dso-secondary, .dso-tertiary).download:focus {
|
|
1019
|
+
background-image: url("./dso-icons.svg#img-download-scampi");
|
|
1020
|
+
}
|
|
1023
1021
|
a:not(.dso-primary, .dso-secondary, .dso-tertiary).extern {
|
|
1022
|
+
background-repeat: no-repeat;
|
|
1023
|
+
background-size: 1.25em 1.25em;
|
|
1024
|
+
padding-inline-end: 1.5em;
|
|
1025
|
+
background-position: bottom 0 right 0;
|
|
1024
1026
|
background-image: url("./dso-icons.svg#img-external-link");
|
|
1025
1027
|
}
|
|
1028
|
+
a:not(.dso-primary, .dso-secondary, .dso-tertiary).extern:hover, a:not(.dso-primary, .dso-secondary, .dso-tertiary).extern:focus {
|
|
1029
|
+
background-image: url("./dso-icons.svg#img-external-link-scampi");
|
|
1030
|
+
}
|
|
1031
|
+
a:not(.dso-primary, .dso-secondary, .dso-tertiary)[href^="tel:"] {
|
|
1032
|
+
background-repeat: no-repeat;
|
|
1033
|
+
background-size: 1.25em 1.25em;
|
|
1034
|
+
padding-inline-start: 1.5em;
|
|
1035
|
+
background-position: bottom 0 left 0;
|
|
1036
|
+
background-image: url("./dso-icons.svg#img-call-grasgroen");
|
|
1037
|
+
}
|
|
1038
|
+
a:not(.dso-primary, .dso-secondary, .dso-tertiary)[href^="tel:"]:hover, a:not(.dso-primary, .dso-secondary, .dso-tertiary)[href^="tel:"]:focus {
|
|
1039
|
+
background-image: url("./dso-icons.svg#img-call-scampi");
|
|
1040
|
+
}
|
|
1041
|
+
a:not(.dso-primary, .dso-secondary, .dso-tertiary)[href^="mailto:"] {
|
|
1042
|
+
background-repeat: no-repeat;
|
|
1043
|
+
background-size: 1.25em 1.25em;
|
|
1044
|
+
padding-inline-start: 1.5em;
|
|
1045
|
+
background-position: bottom 0 left 0;
|
|
1046
|
+
background-image: url("./dso-icons.svg#img-email-grasgroen");
|
|
1047
|
+
}
|
|
1048
|
+
a:not(.dso-primary, .dso-secondary, .dso-tertiary)[href^="mailto:"]:hover, a:not(.dso-primary, .dso-secondary, .dso-tertiary)[href^="mailto:"]:focus {
|
|
1049
|
+
background-image: url("./dso-icons.svg#img-email-scampi");
|
|
1050
|
+
}
|
|
1026
1051
|
|
|
1027
1052
|
.dso-app-heading {
|
|
1028
1053
|
border-bottom: 1px solid #ccc;
|
|
@@ -2915,10 +2940,6 @@ del a {
|
|
|
2915
2940
|
margin-top: 8px;
|
|
2916
2941
|
}
|
|
2917
2942
|
|
|
2918
|
-
dso-document-component[filtered]::before {
|
|
2919
|
-
left: -3px;
|
|
2920
|
-
}
|
|
2921
|
-
|
|
2922
2943
|
dso-document-component[not-applicable] {
|
|
2923
2944
|
opacity: 0.6;
|
|
2924
2945
|
}
|
|
@@ -2926,16 +2947,12 @@ dso-document-component[not-applicable] dso-document-component[not-applicable] {
|
|
|
2926
2947
|
opacity: 1;
|
|
2927
2948
|
}
|
|
2928
2949
|
|
|
2929
|
-
dso-responsive-element
|
|
2930
|
-
|
|
2931
|
-
--b: calc(var(--depth) + 1);
|
|
2932
|
-
margin-left: 24px;
|
|
2950
|
+
dso-responsive-element[small] dso-document-component:not([not-collapsible]) dso-document-component {
|
|
2951
|
+
margin-left: -24px;
|
|
2933
2952
|
}
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
dso-responsive-element:not([small]) dso-document-component dso-document-component li {
|
|
2938
|
-
--a: calc(var(--b));
|
|
2953
|
+
|
|
2954
|
+
dso-responsive-element:not([small]) dso-document-component:not([not-collapsible]) li {
|
|
2955
|
+
--a: var(--b);
|
|
2939
2956
|
}
|
|
2940
2957
|
|
|
2941
2958
|
.dso-document-header {
|
|
@@ -6744,6 +6761,10 @@ nav .dso-link-list a:visited {
|
|
|
6744
6761
|
margin-block-end: 0;
|
|
6745
6762
|
padding-inline-start: 0;
|
|
6746
6763
|
}
|
|
6764
|
+
.dso-nav > li > button {
|
|
6765
|
+
border: 0;
|
|
6766
|
+
background-color: transparent;
|
|
6767
|
+
}
|
|
6747
6768
|
.dso-nav > li > a,
|
|
6748
6769
|
.dso-nav > li > button {
|
|
6749
6770
|
display: block;
|
package/package.json
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
@use "../../di";
|
|
2
|
-
@use "../../variables/scaffolding";
|
|
3
|
-
|
|
4
|
-
@use "../icon";
|
|
5
|
-
|
|
6
2
|
@use "anchor.variables" as anchor-variables;
|
|
7
3
|
|
|
8
4
|
@mixin pseudo() {
|
|
@@ -56,30 +52,62 @@
|
|
|
56
52
|
}
|
|
57
53
|
}
|
|
58
54
|
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
// provide base styling icon placement (before or after)
|
|
56
|
+
@mixin mode-base($pos) {
|
|
57
|
+
@if $pos != "after" and $pos != "before" {
|
|
58
|
+
@error 'Use mixin argument "before" or "after".';
|
|
59
|
+
}
|
|
61
60
|
|
|
62
61
|
background-repeat: no-repeat;
|
|
63
62
|
background-size: 1.25em 1.25em;
|
|
64
|
-
background-position: bottom 0 right 0;
|
|
65
63
|
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
@if $pos == before {
|
|
65
|
+
padding-inline-start: 1.5em;
|
|
66
|
+
background-position: bottom 0 left 0;
|
|
68
67
|
}
|
|
69
|
-
}
|
|
70
68
|
|
|
71
|
-
@
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
@if $pos == after {
|
|
70
|
+
padding-inline-end: 1.5em;
|
|
71
|
+
background-position: bottom 0 right 0;
|
|
74
72
|
}
|
|
73
|
+
}
|
|
75
74
|
|
|
75
|
+
@mixin mode-download() {
|
|
76
|
+
@include mode-base("after");
|
|
76
77
|
@include di.variant("download");
|
|
77
|
-
}
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
@include
|
|
79
|
+
&:hover,
|
|
80
|
+
&:focus {
|
|
81
|
+
@include di.variant("download-scampi");
|
|
82
82
|
}
|
|
83
|
+
}
|
|
83
84
|
|
|
85
|
+
@mixin mode-extern() {
|
|
86
|
+
@include mode-base("after");
|
|
84
87
|
@include di.variant("external-link");
|
|
88
|
+
|
|
89
|
+
&:hover,
|
|
90
|
+
&:focus {
|
|
91
|
+
@include di.variant("external-link-scampi");
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@mixin mode-phone() {
|
|
96
|
+
@include mode-base("before");
|
|
97
|
+
@include di.variant("call-grasgroen");
|
|
98
|
+
|
|
99
|
+
&:hover,
|
|
100
|
+
&:focus {
|
|
101
|
+
@include di.variant("call-scampi");
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@mixin mode-email() {
|
|
106
|
+
@include mode-base("before");
|
|
107
|
+
@include di.variant("email-grasgroen");
|
|
108
|
+
|
|
109
|
+
&:hover,
|
|
110
|
+
&:focus {
|
|
111
|
+
@include di.variant("email-scampi");
|
|
112
|
+
}
|
|
85
113
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@use "../icon";
|
|
2
|
-
|
|
3
1
|
@use "anchor.mixins" as anchor-mixins;
|
|
4
2
|
|
|
5
3
|
a {
|
|
@@ -7,11 +5,6 @@ a {
|
|
|
7
5
|
|
|
8
6
|
&:not(.dso-primary, .dso-secondary, .dso-tertiary) {
|
|
9
7
|
// todo: alternative for :not
|
|
10
|
-
&.download,
|
|
11
|
-
&.extern {
|
|
12
|
-
@include anchor-mixins.mode-base();
|
|
13
|
-
}
|
|
14
|
-
|
|
15
8
|
&.download {
|
|
16
9
|
@include anchor-mixins.mode-download();
|
|
17
10
|
}
|
|
@@ -19,5 +12,13 @@ a {
|
|
|
19
12
|
&.extern {
|
|
20
13
|
@include anchor-mixins.mode-extern();
|
|
21
14
|
}
|
|
15
|
+
|
|
16
|
+
&[href^="tel:"] {
|
|
17
|
+
@include anchor-mixins.mode-phone();
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&[href^="mailto:"] {
|
|
21
|
+
@include anchor-mixins.mode-email();
|
|
22
|
+
}
|
|
22
23
|
}
|
|
23
24
|
}
|
|
@@ -15,12 +15,6 @@
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
dso-document-component[filtered] {
|
|
19
|
-
&::before {
|
|
20
|
-
left: -3px;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
18
|
dso-document-component[not-applicable] {
|
|
25
19
|
opacity: 0.6;
|
|
26
20
|
|
|
@@ -29,22 +23,19 @@ dso-document-component[not-applicable] {
|
|
|
29
23
|
}
|
|
30
24
|
}
|
|
31
25
|
|
|
32
|
-
dso-responsive-element
|
|
33
|
-
dso-document-component {
|
|
26
|
+
dso-responsive-element[small] {
|
|
27
|
+
dso-document-component:not([not-collapsible]) {
|
|
34
28
|
dso-document-component {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
&[filtered] {
|
|
41
|
-
&::before {
|
|
42
|
-
left: calc((var(--depth) * #{document-component-variables.$indent} + 3px) * -1);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
29
|
+
margin-left: document-component-variables.$indent * -1;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
45
33
|
|
|
34
|
+
dso-responsive-element:not([small]) {
|
|
35
|
+
dso-document-component {
|
|
36
|
+
&:not([not-collapsible]) {
|
|
46
37
|
li {
|
|
47
|
-
--a:
|
|
38
|
+
--a: var(--b);
|
|
48
39
|
}
|
|
49
40
|
}
|
|
50
41
|
}
|