dso-toolkit 62.1.0 → 62.2.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 CHANGED
@@ -5,6 +5,25 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
5
5
 
6
6
  ## Next
7
7
 
8
+ ### 🦴 62.2.0 - 02-11-2023
9
+
10
+ ### Fixed
11
+ * Anchor: Icon no wrap ([#2329](https://github.com/dso-toolkit/dso-toolkit/issues/2329))
12
+ * Viewer Grid (VDK): Diverse bevindingen ([#2410](https://github.com/dso-toolkit/dso-toolkit/issues/2410))
13
+ * Image: Large image overflows container ([#2401](https://github.com/dso-toolkit/dso-toolkit/issues/2401))
14
+
15
+ ### Added
16
+ * Header: "Help"-button toevoegen ([#2334](https://github.com/dso-toolkit/dso-toolkit/issues/2334))
17
+ * Ozon Content: Ondersteuning voor XMLDocument ([#2416](https://github.com/dso-toolkit/dso-toolkit/issues/2416))
18
+
19
+ ### Changed
20
+ * Highlight Box: aspect ratio banner aanpassen ([#2383](https://github.com/dso-toolkit/dso-toolkit/issues/2383))
21
+
22
+ ### Docs
23
+ * Logo: Documenteer afgesproken waardes van het ribbon attribuut ([#2399](https://github.com/dso-toolkit/dso-toolkit/issues/2399))
24
+ * Storybook: vervang 'lorem ipsum' door meer echt lijkende content ([#2412](https://github.com/dso-toolkit/dso-toolkit/issues/2412))
25
+ * Readme: Verwijs naar de juiste dso.css ([#2377](https://github.com/dso-toolkit/dso-toolkit/issues/2377))
26
+
8
27
  ## 🐼 62.1.0 - 27-10-2023
9
28
 
10
29
  ### Added
package/README.md CHANGED
@@ -40,7 +40,11 @@ The same goes for the component library:
40
40
  | _tags only_ | _releases_ | `https://www.dso-toolkit.nl/VERSION/` |
41
41
 
42
42
  ```html
43
- <link rel="stylesheet" href="https://cdn.dso-toolkit.nl/[master|VERSION]/dso.css" />
43
+ <link rel="stylesheet" href="https://cdn.dso-toolkit.nl/dso-toolkit/[master|VERSION]/dist/dso.css" />
44
+
45
+ or minified:
46
+
47
+ <link rel="stylesheet" href="https://cdn.dso-toolkit.nl/dso-toolkit/[master|VERSION]/dist/dso.min.css" />
44
48
  ```
45
49
 
46
50
  For Web Components:
package/dist/dso.css CHANGED
@@ -1,5 +1,5 @@
1
- /* DSO Toolkit version: 62.1.0 */
2
- :root { --dso-toolkit-version: 62.1.0 }
1
+ /* DSO Toolkit version: 62.2.0 */
2
+ :root { --dso-toolkit-version: 62.2.0 }
3
3
 
4
4
  @font-face {
5
5
  font-family: "Asap";
@@ -1008,27 +1008,20 @@ a:active {
1008
1008
  a:visited {
1009
1009
  color: var(--link-visited-color);
1010
1010
  }
1011
- a.download::after, a.extern::after {
1011
+ a:not(.dso-primary, .dso-secondary, .dso-tertiary).download, a:not(.dso-primary, .dso-secondary, .dso-tertiary).extern {
1012
+ padding-inline-end: 1.5em;
1013
+ background-repeat: no-repeat;
1014
+ background-size: 1.25em 1.25em;
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 {
1012
1018
  content: "";
1013
- display: inline-block;
1014
- margin-left: 4px;
1015
- vertical-align: top;
1016
1019
  }
1017
- a.download::after {
1018
- background: url("./dso-icons.svg#img-download") no-repeat;
1019
- background-position: center;
1020
- background-size: cover;
1021
- height: 24px;
1022
- vertical-align: top;
1023
- width: 24px;
1020
+ a:not(.dso-primary, .dso-secondary, .dso-tertiary).download {
1021
+ background-image: url("./dso-icons.svg#img-download");
1024
1022
  }
1025
- a.extern::after {
1026
- background: url("./dso-icons.svg#img-external-link") no-repeat;
1027
- background-position: center;
1028
- background-size: cover;
1029
- height: 24px;
1030
- vertical-align: top;
1031
- width: 24px;
1023
+ a:not(.dso-primary, .dso-secondary, .dso-tertiary).extern {
1024
+ background-image: url("./dso-icons.svg#img-external-link");
1032
1025
  }
1033
1026
 
1034
1027
  .dso-app-heading {
@@ -1267,21 +1260,11 @@ a.extern::after {
1267
1260
  vertical-align: top;
1268
1261
  width: 24px;
1269
1262
  }
1270
- .dso-banner:not(.row) a.download::after {
1271
- background: url("./dso-icons.svg#img-download-grijs90") no-repeat;
1272
- background-position: center;
1273
- background-size: cover;
1274
- height: 24px;
1275
- vertical-align: top;
1276
- width: 24px;
1263
+ .dso-banner:not(.row) a.download {
1264
+ background-image: url("./dso-icons.svg#img-download-grijs90");
1277
1265
  }
1278
- .dso-banner:not(.row) a.extern::after {
1279
- background: url("./dso-icons.svg#img-external-link-grijs90") no-repeat;
1280
- background-position: center;
1281
- background-size: cover;
1282
- height: 24px;
1283
- vertical-align: top;
1284
- width: 24px;
1266
+ .dso-banner:not(.row) a.extern {
1267
+ background-image: url("./dso-icons.svg#img-external-link-grijs90");
1285
1268
  }
1286
1269
 
1287
1270
  dso-banner {
@@ -1421,21 +1404,11 @@ dso-banner[status=warning]:not([no-icon]) .row > div::before {
1421
1404
  vertical-align: top;
1422
1405
  width: 24px;
1423
1406
  }
1424
- dso-banner a.download::after {
1425
- background: url("./dso-icons.svg#img-download-grijs90") no-repeat;
1426
- background-position: center;
1427
- background-size: cover;
1428
- height: 24px;
1429
- vertical-align: top;
1430
- width: 24px;
1407
+ dso-banner a.download {
1408
+ background-image: url("./dso-icons.svg#img-download-grijs90");
1431
1409
  }
1432
- dso-banner a.extern::after {
1433
- background: url("./dso-icons.svg#img-external-link-grijs90") no-repeat;
1434
- background-position: center;
1435
- background-size: cover;
1436
- height: 24px;
1437
- vertical-align: top;
1438
- width: 24px;
1410
+ dso-banner a.extern {
1411
+ background-image: url("./dso-icons.svg#img-external-link-grijs90");
1439
1412
  }
1440
1413
 
1441
1414
  blockquote {
@@ -2432,6 +2405,7 @@ dso-card img {
2432
2405
  display: flex;
2433
2406
  height: 24px;
2434
2407
  width: 24px;
2408
+ max-inline-size: unset;
2435
2409
  }
2436
2410
  .dso-card.dso-wide-image img, .dso-card[image-shape=wide] img,
2437
2411
  dso-card.dso-wide-image img,
@@ -3754,21 +3728,11 @@ footer .dso-link-list a::before, footer .dso-link-list a:active::before, footer
3754
3728
  vertical-align: top;
3755
3729
  width: 24px;
3756
3730
  }
3757
- footer .dso-link-list a.download::after {
3758
- background: url("./dso-icons.svg#img-download-zwart") no-repeat;
3759
- background-position: center;
3760
- background-size: cover;
3761
- height: 24px;
3762
- vertical-align: top;
3763
- width: 24px;
3731
+ footer .dso-link-list a.download {
3732
+ background-image: url("./dso-icons.svg#img-download-zwart");
3764
3733
  }
3765
- footer .dso-link-list a.extern::after {
3766
- background: url("./dso-icons.svg#img-external-link-zwart") no-repeat;
3767
- background-position: center;
3768
- background-size: cover;
3769
- height: 24px;
3770
- vertical-align: top;
3771
- width: 24px;
3734
+ footer .dso-link-list a.extern {
3735
+ background-image: url("./dso-icons.svg#img-external-link-zwart");
3772
3736
  }
3773
3737
  footer h2 {
3774
3738
  border-bottom: 1px solid #ccc;
@@ -5368,6 +5332,7 @@ h6,
5368
5332
  margin-top: 16px;
5369
5333
  padding: 16px;
5370
5334
  margin-bottom: 24px;
5335
+ container-type: inline-size;
5371
5336
  }
5372
5337
  .dso-highlight-box.dso-white {
5373
5338
  background-color: #fff;
@@ -5421,6 +5386,17 @@ h6,
5421
5386
  margin-top: -16px;
5422
5387
  object-fit: cover;
5423
5388
  width: calc(100% + 32px);
5389
+ max-inline-size: unset;
5390
+ }
5391
+ @container (min-width: 360px) and (max-width: 470px) {
5392
+ .dso-highlight-box > .dso-highlight-box-banner {
5393
+ aspect-ratio: 3/1;
5394
+ }
5395
+ }
5396
+ @container (min-width: 471px) {
5397
+ .dso-highlight-box > .dso-highlight-box-banner {
5398
+ aspect-ratio: 3.5/1;
5399
+ }
5424
5400
  }
5425
5401
  .dso-highlight-box > .dso-step-counter:first-child + .dso-rich-content *:first-child,
5426
5402
  .dso-highlight-box > .dso-rich-content:first-child *:first-child {
@@ -5467,21 +5443,11 @@ h6,
5467
5443
  vertical-align: top;
5468
5444
  width: 24px;
5469
5445
  }
5470
- .dso-highlight-box:not(.dso-border):not(.dso-white) .dso-link-list a.download::after {
5471
- background: url("./dso-icons.svg#img-download-zwart") no-repeat;
5472
- background-position: center;
5473
- background-size: cover;
5474
- height: 24px;
5475
- vertical-align: top;
5476
- width: 24px;
5446
+ .dso-highlight-box:not(.dso-border):not(.dso-white) .dso-link-list a.download {
5447
+ background-image: url("./dso-icons.svg#img-download-zwart");
5477
5448
  }
5478
- .dso-highlight-box:not(.dso-border):not(.dso-white) .dso-link-list a.extern::after {
5479
- background: url("./dso-icons.svg#img-external-link-zwart") no-repeat;
5480
- background-position: center;
5481
- background-size: cover;
5482
- height: 24px;
5483
- vertical-align: top;
5484
- width: 24px;
5449
+ .dso-highlight-box:not(.dso-border):not(.dso-white) .dso-link-list a.extern {
5450
+ background-image: url("./dso-icons.svg#img-external-link-zwart");
5485
5451
  }
5486
5452
 
5487
5453
  dso-highlight-box > .dso-highlight-box-banner {
@@ -5491,6 +5457,17 @@ dso-highlight-box > .dso-highlight-box-banner {
5491
5457
  margin-top: -16px;
5492
5458
  object-fit: cover;
5493
5459
  width: calc(100% + 32px);
5460
+ max-inline-size: unset;
5461
+ }
5462
+ @container (min-width: 360px) and (max-width: 470px) {
5463
+ dso-highlight-box > .dso-highlight-box-banner {
5464
+ aspect-ratio: 3/1;
5465
+ }
5466
+ }
5467
+ @container (min-width: 471px) {
5468
+ dso-highlight-box > .dso-highlight-box-banner {
5469
+ aspect-ratio: 3.5/1;
5470
+ }
5494
5471
  }
5495
5472
  dso-highlight-box > .dso-step-counter:first-child + .dso-rich-content *:first-child,
5496
5473
  dso-highlight-box > .dso-rich-content:first-child *:first-child {
@@ -5565,21 +5542,11 @@ dso-highlight-box:not([border]):not([white]) .dso-link-list a::before, dso-highl
5565
5542
  vertical-align: top;
5566
5543
  width: 24px;
5567
5544
  }
5568
- dso-highlight-box:not([border]):not([white]) .dso-link-list a.download::after {
5569
- background: url("./dso-icons.svg#img-download-zwart") no-repeat;
5570
- background-position: center;
5571
- background-size: cover;
5572
- height: 24px;
5573
- vertical-align: top;
5574
- width: 24px;
5545
+ dso-highlight-box:not([border]):not([white]) .dso-link-list a.download {
5546
+ background-image: url("./dso-icons.svg#img-download-zwart");
5575
5547
  }
5576
- dso-highlight-box:not([border]):not([white]) .dso-link-list a.extern::after {
5577
- background: url("./dso-icons.svg#img-external-link-zwart") no-repeat;
5578
- background-position: center;
5579
- background-size: cover;
5580
- height: 24px;
5581
- vertical-align: top;
5582
- width: 24px;
5548
+ dso-highlight-box:not([border]):not([white]) .dso-link-list a.extern {
5549
+ background-image: url("./dso-icons.svg#img-external-link-zwart");
5583
5550
  }
5584
5551
 
5585
5552
  hr {
@@ -5600,6 +5567,7 @@ svg.di {
5600
5567
  img {
5601
5568
  border: 0;
5602
5569
  vertical-align: middle;
5570
+ max-inline-size: 100%;
5603
5571
  }
5604
5572
 
5605
5573
  .img-responsive {
@@ -8219,6 +8187,104 @@ dso-viewer-grid .dso-filterblok .dso-filterblok-address {
8219
8187
  flex-basis: auto;
8220
8188
  }
8221
8189
  }
8190
+ dso-viewer-grid img {
8191
+ max-inline-size: unset;
8192
+ }
8193
+ dso-viewer-grid .dso-toggle-main-button {
8194
+ display: inline-block;
8195
+ font-size: 1em;
8196
+ font-weight: 500;
8197
+ margin-bottom: 0;
8198
+ text-decoration: none;
8199
+ touch-action: manipulation;
8200
+ text-align: left;
8201
+ user-select: none;
8202
+ vertical-align: middle;
8203
+ border: 0;
8204
+ color: #39870c;
8205
+ line-height: 1;
8206
+ padding: 0;
8207
+ background-color: transparent;
8208
+ padding-block: 16px;
8209
+ }
8210
+ dso-viewer-grid .dso-toggle-main-button:focus, dso-viewer-grid .dso-toggle-main-button:focus-visible {
8211
+ outline-offset: 2px;
8212
+ }
8213
+ dso-viewer-grid .dso-toggle-main-button:active {
8214
+ outline: 0;
8215
+ }
8216
+ dso-viewer-grid .dso-toggle-main-button[disabled] {
8217
+ color: #afcf9d;
8218
+ }
8219
+ dso-viewer-grid .dso-toggle-main-button[disabled].dso-spinner-left, dso-viewer-grid .dso-toggle-main-button[disabled].dso-spinner-right {
8220
+ color: #39870c;
8221
+ }
8222
+ dso-viewer-grid .dso-toggle-main-button:not([disabled]):hover {
8223
+ color: #275937;
8224
+ text-decoration: underline;
8225
+ text-underline-position: under;
8226
+ }
8227
+ dso-viewer-grid .dso-toggle-main-button:not([disabled]):active {
8228
+ color: #173521;
8229
+ }
8230
+ dso-viewer-grid .dso-toggle-main-button.dso-align {
8231
+ line-height: calc(1.5em - 1px);
8232
+ padding: 11px 0;
8233
+ position: relative;
8234
+ }
8235
+ dso-viewer-grid .dso-toggle-main-button.dso-truncate {
8236
+ max-width: 100%;
8237
+ overflow: hidden;
8238
+ text-overflow: ellipsis;
8239
+ white-space: nowrap;
8240
+ }
8241
+ dso-viewer-grid .dso-toggle-main-button.dso-spinner-left::before {
8242
+ background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
8243
+ background-repeat: no-repeat;
8244
+ content: "";
8245
+ display: inline-block;
8246
+ height: 24px;
8247
+ vertical-align: middle;
8248
+ width: 24px;
8249
+ margin-right: 8px;
8250
+ }
8251
+ dso-viewer-grid .dso-toggle-main-button.dso-spinner-right::after {
8252
+ background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
8253
+ background-repeat: no-repeat;
8254
+ content: "";
8255
+ display: inline-block;
8256
+ height: 24px;
8257
+ vertical-align: middle;
8258
+ width: 24px;
8259
+ margin-left: 8px;
8260
+ }
8261
+ dso-viewer-grid .dso-toggle-main-button dso-icon + span:not(.sr-only),
8262
+ dso-viewer-grid .dso-toggle-main-button svg.di + span:not(.sr-only),
8263
+ dso-viewer-grid .dso-toggle-main-button span:not(.sr-only) + dso-icon,
8264
+ dso-viewer-grid .dso-toggle-main-button span:not(.sr-only) + svg.di {
8265
+ margin-left: 8px;
8266
+ }
8267
+ dso-viewer-grid .dso-toggle-main-button svg.di.di-chevron-down + span:not(.sr-only),
8268
+ dso-viewer-grid .dso-toggle-main-button svg.di.di-chevron-up + span:not(.sr-only),
8269
+ dso-viewer-grid .dso-toggle-main-button span:not(.sr-only) + svg.di.di-chevron-down,
8270
+ dso-viewer-grid .dso-toggle-main-button span:not(.sr-only) + svg.di.di-chevron-up {
8271
+ margin-left: 4px;
8272
+ }
8273
+ dso-viewer-grid .dso-toggle-main-button dso-icon[icon=chevron-left] + span:not(.sr-only),
8274
+ dso-viewer-grid .dso-toggle-main-button dso-icon[icon=chevron-right] + span:not(.sr-only),
8275
+ dso-viewer-grid .dso-toggle-main-button svg.di.di-angle-down + span:not(.sr-only),
8276
+ dso-viewer-grid .dso-toggle-main-button svg.di.di-angle-up + span:not(.sr-only),
8277
+ dso-viewer-grid .dso-toggle-main-button span:not(.sr-only) + svg.di.di-angle-down,
8278
+ dso-viewer-grid .dso-toggle-main-button span:not(.sr-only) + svg.di.di-angle-up,
8279
+ dso-viewer-grid .dso-toggle-main-button span:not(.sr-only) + dso-icon[icon=chevron-left],
8280
+ dso-viewer-grid .dso-toggle-main-button span:not(.sr-only) + dso-icon[icon=chevron-right] {
8281
+ margin-left: 0;
8282
+ }
8283
+ dso-viewer-grid .dso-toggle-main-button dso-icon,
8284
+ dso-viewer-grid .dso-toggle-main-button svg.di,
8285
+ dso-viewer-grid .dso-toggle-main-button span {
8286
+ vertical-align: middle;
8287
+ }
8222
8288
 
8223
8289
  .dso-whitebox {
8224
8290
  background: #fff;
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.1.0",
5
+ "version": "62.2.0",
6
6
  "scripts": {
7
7
  "watch": "gulp"
8
8
  },
@@ -57,11 +57,14 @@
57
57
  }
58
58
 
59
59
  @mixin mode-base() {
60
+ padding-inline-end: 1.5em;
61
+
62
+ background-repeat: no-repeat;
63
+ background-size: 1.25em 1.25em;
64
+ background-position: bottom 0 right 0;
65
+
60
66
  &::after {
61
67
  content: "";
62
- display: inline-block;
63
- margin-left: anchor-variables.$spacer-width;
64
- vertical-align: icon.$vertical-align;
65
68
  }
66
69
  }
67
70
 
@@ -70,9 +73,7 @@
70
73
  @include mode-base();
71
74
  }
72
75
 
73
- &::after {
74
- @include di.base("download");
75
- }
76
+ @include di.variant("download");
76
77
  }
77
78
 
78
79
  @mixin mode-extern($base-styling: false) {
@@ -80,7 +81,5 @@
80
81
  @include mode-base();
81
82
  }
82
83
 
83
- &::after {
84
- @include di.base("external-link");
85
- }
84
+ @include di.variant("external-link");
86
85
  }
@@ -5,16 +5,19 @@
5
5
  a {
6
6
  @include anchor-mixins.root();
7
7
 
8
- &.download,
9
- &.extern {
10
- @include anchor-mixins.mode-base();
11
- }
8
+ &:not(.dso-primary, .dso-secondary, .dso-tertiary) {
9
+ // todo: alternative for :not
10
+ &.download,
11
+ &.extern {
12
+ @include anchor-mixins.mode-base();
13
+ }
12
14
 
13
- &.download {
14
- @include anchor-mixins.mode-download();
15
- }
15
+ &.download {
16
+ @include anchor-mixins.mode-download();
17
+ }
16
18
 
17
- &.extern {
18
- @include anchor-mixins.mode-extern();
19
+ &.extern {
20
+ @include anchor-mixins.mode-extern();
21
+ }
19
22
  }
20
23
  }
@@ -70,15 +70,11 @@
70
70
 
71
71
  a {
72
72
  &.download {
73
- &::after {
74
- @include di.base("download-grijs90");
75
- }
73
+ @include di.variant("download-grijs90");
76
74
  }
77
75
 
78
76
  &.extern {
79
- &::after {
80
- @include di.base("external-link-grijs90");
81
- }
77
+ @include di.variant("external-link-grijs90");
82
78
  }
83
79
  }
84
80
  }
@@ -146,15 +142,11 @@ dso-banner {
146
142
 
147
143
  a {
148
144
  &.download {
149
- &::after {
150
- @include di.base("download-grijs90");
151
- }
145
+ @include di.variant("download-grijs90");
152
146
  }
153
147
 
154
148
  &.extern {
155
- &::after {
156
- @include di.base("external-link-grijs90");
157
- }
149
+ @include di.variant("external-link-grijs90");
158
150
  }
159
151
  }
160
152
  }
@@ -119,6 +119,7 @@ dso-card {
119
119
  display: flex;
120
120
  height: units.$u3;
121
121
  width: units.$u3;
122
+ max-inline-size: unset;
122
123
  }
123
124
 
124
125
  &.dso-wide-image img,
@@ -33,15 +33,11 @@ footer {
33
33
  }
34
34
 
35
35
  &.download {
36
- &::after {
37
- @include di.base("download-zwart");
38
- }
36
+ @include di.variant("download-zwart");
39
37
  }
40
38
 
41
39
  &.extern {
42
- &::after {
43
- @include di.base("external-link-zwart");
44
- }
40
+ @include di.variant("external-link-zwart");
45
41
  }
46
42
  }
47
43
  }
@@ -46,6 +46,19 @@
46
46
  margin-top: units.$u2 * -1;
47
47
  object-fit: cover;
48
48
  width: calc(100% + #{units.$u4});
49
+ max-inline-size: unset;
50
+
51
+ @container (min-width: 360px) and (max-width: 470px) {
52
+ & {
53
+ aspect-ratio: 3 / 1;
54
+ }
55
+ }
56
+
57
+ @container (min-width: 471px) {
58
+ & {
59
+ aspect-ratio: 3.5 / 1;
60
+ }
61
+ }
49
62
  }
50
63
 
51
64
  > .dso-step-counter:first-child + .dso-rich-content,
@@ -8,6 +8,7 @@
8
8
  .dso-highlight-box {
9
9
  @include highlight-box.root();
10
10
  @include highlight-box.children();
11
+ container-type: inline-size;
11
12
 
12
13
  &.dso-yellow,
13
14
  &:not(.dso-border):not(.dso-white) {
@@ -29,15 +30,11 @@
29
30
  }
30
31
 
31
32
  &.download {
32
- &::after {
33
- @include di.base("download-zwart");
34
- }
33
+ @include di.variant("download-zwart");
35
34
  }
36
35
 
37
36
  &.extern {
38
- &::after {
39
- @include di.base("external-link-zwart");
40
- }
37
+ @include di.variant("external-link-zwart");
41
38
  }
42
39
  }
43
40
  }
@@ -69,15 +66,11 @@ dso-highlight-box {
69
66
  }
70
67
 
71
68
  &.download {
72
- &::after {
73
- @include di.base("download-zwart");
74
- }
69
+ @include di.variant("download-zwart");
75
70
  }
76
71
 
77
72
  &.extern {
78
- &::after {
79
- @include di.base("external-link-zwart");
80
- }
73
+ @include di.variant("external-link-zwart");
81
74
  }
82
75
  }
83
76
  }
@@ -3,6 +3,7 @@
3
3
  img {
4
4
  border: 0;
5
5
  vertical-align: middle;
6
+ max-inline-size: 100%;
6
7
  }
7
8
 
8
9
  .img-responsive {
@@ -1,5 +1,6 @@
1
1
  @use "../../variables/units";
2
2
  @use "../../variables/media-query-breakpoints";
3
+ @use "../../components/button";
3
4
 
4
5
  @use "../grid/grid.variables" as css-grid-variables;
5
6
 
@@ -21,4 +22,14 @@ dso-viewer-grid {
21
22
  }
22
23
  }
23
24
  }
25
+
26
+ img {
27
+ max-inline-size: unset;
28
+ }
29
+
30
+ .dso-toggle-main-button {
31
+ @include button.tertiary($modifiers: false);
32
+
33
+ padding-block: units.$u2;
34
+ }
24
35
  }