dso-toolkit 69.2.1 → 70.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.
@@ -104,7 +104,9 @@
104
104
  zoom: 1;
105
105
 
106
106
  @media (prefers-contrast: more) {
107
- opacity: 1;
107
+ & {
108
+ opacity: 1;
109
+ }
108
110
  }
109
111
 
110
112
  &:not([disabled]) {
package/src/dso.scss CHANGED
@@ -79,7 +79,6 @@
79
79
  @use "components/superscript/superscript";
80
80
  @use "components/svg/svg";
81
81
  @use "components/table/table";
82
- @use "components/tabs/tabs";
83
82
  @use "components/textarea/textarea";
84
83
  @use "components/tile/tile";
85
84
  @use "components/tile-grid/tile-grid";
@@ -25,9 +25,9 @@
25
25
 
26
26
  // sRGB BT-709 BRIGHTNESS
27
27
  @function brightness($c) {
28
- $rlin: de-gamma(math.div(color.red($c), 255));
29
- $glin: de-gamma(math.div(color.green($c), 255));
30
- $blin: de-gamma(math.div(color.blue($c), 255));
28
+ $rlin: de-gamma(math.div(color.channel($c, "red", $space: rgb), 255));
29
+ $glin: de-gamma(math.div(color.channel($c, "green", $space: rgb), 255));
30
+ $blin: de-gamma(math.div(color.channel($c, "blue", $space: rgb), 255));
31
31
  @return re-gamma(0.2126 * $rlin + 0.7152 * $glin + 0.0722 * $blin) * 100;
32
32
  }
33
33
 
@@ -23,7 +23,7 @@
23
23
  $contrast-color: contrast-color.apply($background-color);
24
24
 
25
25
  // set link and icon color according to text color
26
- @if color.lightness($background-color) < 100% {
26
+ @if color.channel($background-color, "lightness", $space: hsl) < 100% {
27
27
  @if $links == true {
28
28
  --link-color: currentColor;
29
29
  --link-hover-color: currentColor;
@@ -64,6 +64,11 @@
64
64
  margin-block-start: units.$block-spacing-medium;
65
65
  }
66
66
 
67
+ :where(*) + :where(.dso-form-buttons),
68
+ :where(.dso-form-buttons) + :where(*) {
69
+ margin-block: units.$block-spacing-xlarge;
70
+ }
71
+
67
72
  $spacers: (
68
73
  (
69
74
  space: units.$block-spacing-small,
@@ -12,6 +12,7 @@ $form-control-feedback: 101;
12
12
  $searchbar-icon: 101;
13
13
 
14
14
  $autosuggest: 200;
15
+ $advanced-select-group: 200;
15
16
  $dropdown-options: 220;
16
17
  $tooltip: 410;
17
18
 
@@ -1,185 +0,0 @@
1
- @use "../../utilities";
2
- @use "../../variables/colors";
3
- @use "../../variables/media-query-breakpoints";
4
- @use "../../variables/scaffolding";
5
- @use "../../variables/typography";
6
- @use "../anchor";
7
-
8
- @use "tabs.variables" as css-tabs-variables;
9
-
10
- .nav {
11
- @include utilities.clearfix();
12
-
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
- }
19
-
20
- > li {
21
- position: relative;
22
- display: block;
23
-
24
- > a {
25
- position: relative;
26
- display: block;
27
- padding: css-tabs-variables.$nav-link-padding;
28
- &:hover,
29
- &:focus {
30
- text-decoration: none;
31
- background-color: css-tabs-variables.$nav-link-hover-bg;
32
- }
33
- }
34
-
35
- // Disabled state sets text to gray and nukes hover/tab effects
36
- &.disabled > a {
37
- color: css-tabs-variables.$nav-disabled-link-color;
38
-
39
- &:hover,
40
- &:focus {
41
- color: css-tabs-variables.$nav-disabled-link-hover-color;
42
- text-decoration: none;
43
- cursor: scaffolding.$cursor-disabled;
44
- background-color: transparent;
45
- }
46
- }
47
- }
48
-
49
- // Open dropdowns
50
- .open > a {
51
- &,
52
- &:hover,
53
- &:focus {
54
- background-color: css-tabs-variables.$nav-link-hover-bg;
55
- border-color: var(--link-color);
56
- }
57
- }
58
- }
59
-
60
- .nav.nav-tabs {
61
- border-block-end: 1px solid css-tabs-variables.$border-color;
62
- display: flex;
63
- flex-wrap: wrap;
64
- margin-block-end: css-tabs-variables.$margin-block-end;
65
- padding-inline-start: 0;
66
-
67
- @media screen and (min-width: media-query-breakpoints.$screen-sm-min) {
68
- border-block-end: 1px solid colors.$grasgroen;
69
- }
70
-
71
- @media screen and (max-width: media-query-breakpoints.$screen-xs-max) {
72
- border-block-end: 1px solid colors.$wit;
73
- display: block;
74
- }
75
-
76
- > li {
77
- border-color: css-tabs-variables.$color;
78
- font-weight: bold;
79
- // Make the list-items overlay the bottom border
80
- margin-block-end: -1px;
81
- min-block-size: css-tabs-variables.$block-size;
82
-
83
- @media screen and (max-width: media-query-breakpoints.$screen-xs-max) {
84
- margin-block: 10px;
85
- margin-inline: 0;
86
-
87
- &:first-child {
88
- margin-block-start: 0;
89
- }
90
-
91
- &:last-child {
92
- margin-block-end: 0;
93
- }
94
- }
95
-
96
- // Actual tabs (as links)
97
- > a {
98
- @include anchor.clean();
99
-
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
- }
113
-
114
- &:hover {
115
- border-color: css-tabs-variables.$link-hover-border-color css-tabs-variables.$link-hover-border-color
116
- css-tabs-variables.$border-color;
117
- }
118
- }
119
-
120
- &:not(.disabled) > a:visited {
121
- color: css-tabs-variables.$text-color;
122
- }
123
-
124
- a:active,
125
- a:focus,
126
- a:hover {
127
- background-color: css-tabs-variables.$hover-color;
128
- border: 1px solid transparent;
129
- border-block-end-color: css-tabs-variables.$color;
130
- text-decoration: none;
131
- }
132
-
133
- // Active state, and its :hover to override normal :hover
134
- &.active > a {
135
- &,
136
- &:active,
137
- &:focus,
138
- &:hover,
139
- &:visited {
140
- background-color: colors.$wit;
141
- border: 1px solid css-tabs-variables.$color;
142
- border-block-end-color: colors.$wit;
143
- color: css-tabs-variables.$color;
144
- cursor: default;
145
- }
146
- }
147
-
148
- &.disabled > a {
149
- color: css-tabs-variables.$nav-disabled-link-color;
150
-
151
- &:hover,
152
- &:focus {
153
- color: css-tabs-variables.$nav-disabled-link-hover-color;
154
- text-decoration: none;
155
- cursor: scaffolding.$cursor-disabled;
156
- background-color: transparent;
157
- }
158
- }
159
-
160
- @media screen and (max-width: media-query-breakpoints.$screen-xs-max) {
161
- a {
162
- border-color: colors.$wit;
163
- border-radius: 8px;
164
- padding-block: 18px;
165
- padding-inline: 20px;
166
-
167
- &:active,
168
- &:focus,
169
- &:hover {
170
- border-block-end-width: 1px;
171
- border-color: transparent;
172
- }
173
- }
174
-
175
- &.active a {
176
- &,
177
- &:focus,
178
- &:hover {
179
- border-block-end-width: 1px;
180
- border-color: css-tabs-variables.$color;
181
- }
182
- }
183
- }
184
- }
185
- }
@@ -1,18 +0,0 @@
1
- @use "../../variables/units";
2
- @use "../../variables/colors";
3
-
4
- $color: colors.$grasgroen;
5
- $hover-color: colors.$grijs-5;
6
- $text-color: colors.$grijs-60;
7
- $border-radius: 4px;
8
- $border-color: colors.$grijs-10;
9
- $link-hover-border-color: colors.$grijs-10;
10
- $block-size: 56px;
11
- $block-padding: units.$u2 - 1px;
12
- $inline-padding: units.$u3 - 1px;
13
- $margin-block-end: units.$block-spacing-large;
14
-
15
- $nav-link-padding: 10px 15px;
16
- $nav-link-hover-bg: colors.$grijs-10;
17
- $nav-disabled-link-color: colors.$grijs-40;
18
- $nav-disabled-link-hover-color: colors.$grijs-40;