dso-toolkit 62.16.0 → 62.18.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "dso-toolkit",
3
3
  "description": "DSO Toolkit",
4
4
  "license": "SEE LICENSE IN DISCLAIMER.txt",
5
- "version": "62.16.0",
5
+ "version": "62.18.0",
6
6
  "scripts": {
7
7
  "watch": "gulp"
8
8
  },
@@ -38,6 +38,8 @@ $option-hover-color: $option-active-color;
38
38
  $option-hover-bg-color: colors.$grasgroen-10;
39
39
  $option-hover-font-weight: $option-active-font-weight;
40
40
 
41
+ $option-placeholder-color: colors.$grijs-60;
42
+
41
43
  $default-variant-color: colors.$grijs-20;
42
44
  $info-variant-color: colors.$info-color;
43
45
  $primary-variant-color: colors.$bosgroen;
@@ -58,6 +58,13 @@ form {
58
58
  @include css-grid-mixins.make-row();
59
59
 
60
60
  &.dso-equal-heights {
61
+ &:has(.dso-highlight-box, dso-highlight-box) {
62
+ --highlight-box-block-size: 100%;
63
+ --highlight-box-min-block-size: auto;
64
+ --highlight-box-counter-block-size: calc(100% - #{units.$shared-equal-heights-highlight-box-height});
65
+ --highlight-box-nocounter-block-size: calc(100% - #{units.$u2});
66
+ }
67
+
61
68
  display: flex;
62
69
  flex-wrap: wrap;
63
70
 
@@ -77,13 +84,16 @@ form {
77
84
  }
78
85
 
79
86
  &.dso-banner {
87
+ --dso-banner-background-color: #{colors.$grasgroen-10};
88
+
80
89
  @include css-grid-mixins.full-width-row(css-grid-variables.$grid-gutter-width);
81
90
 
91
+ position: relative;
92
+
82
93
  min-height: 352px;
94
+ overflow: hidden;
83
95
 
84
96
  @media only screen and (min-width: media-query-breakpoints.$screen-sm-min) {
85
- position: relative;
86
-
87
97
  padding-block-start: units.$u3;
88
98
  }
89
99
 
@@ -110,8 +120,7 @@ form {
110
120
  min-block-size: calc(100 / 6) + dvi;
111
121
 
112
122
  background-image: inherit; // inherits from parent, external style set by implememnter
113
- background-color: colors.$grasgroen-10;
114
- background-position: center;
123
+ background-color: var(--dso-banner-background-color);
115
124
  background-repeat: no-repeat;
116
125
  background-size: cover;
117
126
 
@@ -122,6 +131,23 @@ form {
122
131
  min-block-size: unset;
123
132
  }
124
133
  }
134
+
135
+ &::after {
136
+ // synthetic background, offsetting the 'background-size: 0' property set above
137
+ content: "";
138
+
139
+ position: absolute;
140
+ inset: 0;
141
+ z-index: -1;
142
+
143
+ display: block;
144
+
145
+ background-color: var(--dso-banner-background-color);
146
+
147
+ @media only screen and (min-width: media-query-breakpoints.$screen-sm-min) {
148
+ display: none;
149
+ }
150
+ }
125
151
  }
126
152
 
127
153
  &.dso-featured {
@@ -12,9 +12,21 @@
12
12
  margin-top: units.$u2;
13
13
  padding: units.$u2;
14
14
  margin-bottom: units.$vertical-spacing-large;
15
+
16
+ block-size: var(--highlight-box-block-size, unset);
17
+ min-block-size: var(--highlight-box-min-block-size, unset);
18
+
19
+ &[has-counter] {
20
+ block-size: var(--highlight-box-counter-block-size, unset);
21
+ }
22
+
23
+ &:not([has-counter]) {
24
+ block-size: var(--highlight-box-nocounter-block-size, unset);
25
+ }
15
26
  }
16
27
 
17
28
  @mixin children(
29
+ $grey-selector,
18
30
  $white-selector,
19
31
  $yellow-selector,
20
32
  $drop-shadow-selector,
@@ -26,6 +38,10 @@
26
38
  @include set-colors.apply(colors.$grijs-5);
27
39
  }
28
40
 
41
+ &#{$grey-selector} {
42
+ @include set-colors.apply(colors.$grijs-5);
43
+ }
44
+
29
45
  &#{$white-selector} {
30
46
  @include set-colors.apply(colors.$wit);
31
47
  }
@@ -39,12 +55,14 @@
39
55
  }
40
56
 
41
57
  &#{$border-selector} {
42
- @include set-colors.apply(colors.$wit);
43
-
44
58
  border: 1px solid colors.$grijs-20;
45
59
  padding: units.$u2 - 1;
46
60
  }
47
61
 
62
+ &#{$border-selector}:not(#{$grey-selector}, #{$yellow-selector}) {
63
+ @include set-colors.apply(colors.$wit, $border-color: colors.$grijs-20);
64
+ }
65
+
48
66
  &#{$has-counter-selector} {
49
67
  margin-top: highlight-box-variables.$margin-top;
50
68
 
@@ -8,6 +8,7 @@
8
8
  .dso-highlight-box {
9
9
  @include highlight-box.root();
10
10
  @include highlight-box.children(
11
+ $grey-selector: ".dso-grey",
11
12
  $white-selector: ".dso-white",
12
13
  $yellow-selector: ".dso-yellow",
13
14
  $drop-shadow-selector: ".dso-drop-shadow",
@@ -61,6 +62,7 @@
61
62
  // Web Component
62
63
  dso-highlight-box {
63
64
  @include highlight-box.children(
65
+ $grey-selector: "[grey]",
64
66
  $white-selector: "[white]",
65
67
  $yellow-selector: "[yellow]",
66
68
  $drop-shadow-selector: "[drop-shadow]",
@@ -10,3 +10,4 @@ $size: units.$u3;
10
10
  $border-width: 2px;
11
11
  $focus-border-width: 3px;
12
12
  $indeterminate-size: 12px;
13
+ $symbol-indent: units.$u4;
@@ -2,6 +2,22 @@
2
2
 
3
3
  @use "../table";
4
4
 
5
+ @mixin outside-lines-sides() {
6
+ thead {
7
+ border-inline-start: 1px solid table.$th-border-color;
8
+ border-inline-end: 1px solid table.$th-border-color;
9
+ }
10
+ tbody {
11
+ border-inline-start: 1px solid table.$border-color;
12
+ border-inline-end: 1px solid table.$border-color;
13
+ }
14
+ }
15
+
16
+ @mixin outside-lines-topbot() {
17
+ border-block-start: 1px solid table.$th-border-color;
18
+ border-block-end: 1px solid table.$border-color;
19
+ }
20
+
5
21
  @mixin row-variant($state, $background) {
6
22
  // Exact selectors below required to override `.table-striped` and prevent
7
23
  // inheritance to nested tables.
@@ -96,6 +96,67 @@ table.table,
96
96
  }
97
97
  }
98
98
 
99
+ &.dso-table-outside-lines-top {
100
+ border-block-start: 1px solid table.$th-border-color;
101
+ }
102
+
103
+ &.dso-table-outside-lines-bottom {
104
+ border-block-end: 1px solid table.$border-color;
105
+ }
106
+
107
+ &.dso-table-outside-lines-topbot {
108
+ @include css-table-mixins.outside-lines-topbot;
109
+ }
110
+
111
+ &.dso-table-outside-lines-all {
112
+ @include css-table-mixins.outside-lines-topbot;
113
+ @include css-table-mixins.outside-lines-sides;
114
+ }
115
+
116
+ &.dso-table-outside-lines-sides {
117
+ @include css-table-mixins.outside-lines-sides;
118
+ }
119
+
120
+ > thead {
121
+ > tr {
122
+ > td,
123
+ > th {
124
+ &.dso-horizontal-line {
125
+ border-block-end: 1px solid table.$th-border-color;
126
+ }
127
+
128
+ &:not(:last-child) {
129
+ &.dso-vertical-line {
130
+ border-inline-end: 1px solid table.$th-border-color;
131
+ }
132
+ }
133
+ }
134
+ }
135
+ }
136
+
137
+ > tbody,
138
+ > tfoot {
139
+ > tr {
140
+ > td,
141
+ > th {
142
+ &:not(:last-child) {
143
+ &.dso-vertical-line {
144
+ border-inline-end: 1px solid table.$border-color;
145
+ }
146
+ }
147
+ }
148
+ }
149
+
150
+ > tr:not(:last-child) {
151
+ > td,
152
+ > th {
153
+ &.dso-horizontal-line {
154
+ border-block-end: 1px solid table.$border-color;
155
+ }
156
+ }
157
+ }
158
+ }
159
+
99
160
  th,
100
161
  td {
101
162
  &.dso-text-left {
@@ -128,21 +189,23 @@ table.table,
128
189
  }
129
190
  }
130
191
 
131
- > thead {
132
- > tr {
133
- > td,
134
- > th {
135
- border-bottom: 1px solid table.$th-border-color;
192
+ &:not([class*="dso-table-outside-lines"]) {
193
+ > thead {
194
+ > tr {
195
+ > td,
196
+ > th {
197
+ border-bottom: 1px solid table.$th-border-color;
198
+ }
136
199
  }
137
200
  }
138
- }
139
201
 
140
- > tbody,
141
- > tfoot {
142
- > tr {
143
- > td,
144
- > th {
145
- border-bottom: 1px solid table.$border-color;
202
+ > tbody,
203
+ > tfoot {
204
+ > tr {
205
+ > td,
206
+ > th {
207
+ border-bottom: 1px solid table.$border-color;
208
+ }
146
209
  }
147
210
  }
148
211
  }