dso-toolkit 57.0.0 → 58.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.
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
+ ## 58.0.0 - 21-08-2023
9
+
10
+ Zie de blogpost van deze release op [dso-toolkit.nl](https://www.dso-toolkit.nl) voor een toelichting op de BREAKING changes.
11
+
12
+ ### Added
13
+ * **BREAKING** Viewer Grid: Panelen als Tabs op smalle viewport ([#2254](https://github.com/dso-toolkit/dso-toolkit/issues/2254))
14
+
15
+ ### Changed
16
+ * **BREAKING:** Modal: Groot onderhoud (dialog element, responsive bugfix, geen ModalControllers meer, fullscreen support) ([#2223](https://github.com/dso-toolkit/dso-toolkit/issues/2223))
17
+
18
+ ### Fixed
19
+ * Button Row: heeft onterecht ondermarge als last-child in container ([#2279](https://github.com/dso-toolkit/dso-toolkit/issues/2279))
20
+
21
+ ### Deprecated
22
+ * **BREAKING:** Tooltip: Deprecate HTML/CSS implementatie ([#2289](https://github.com/dso-toolkit/dso-toolkit/issues/2289))
23
+
24
+ ### Tasks
25
+ * DangerJS in CI ([#2225](https://github.com/dso-toolkit/dso-toolkit/issues/2225))
26
+
8
27
  ## 57.0.0 - 08-08-2023
9
28
 
10
29
  Zie de blogpost op dso-toolkit.nl voor een toelichting op de BREAKING changes.
package/dist/dso.css CHANGED
@@ -53,6 +53,9 @@
53
53
  :where(.dso-button-row) {
54
54
  margin-block: 16px 32px;
55
55
  }
56
+ :where(.dso-button-row):last-child {
57
+ margin-block-end: 0;
58
+ }
56
59
 
57
60
  :where(dso-highlight-box) :where(.dso-button-row),
58
61
  :where(.dso-highlight-box) :where(.dso-button-row) {
@@ -6392,17 +6395,6 @@ mark {
6392
6395
  body.dso-modal-open {
6393
6396
  overflow: hidden;
6394
6397
  }
6395
- body.dso-modal-open::before {
6396
- background-color: rgba(255, 255, 255, 0.8);
6397
- bottom: 0;
6398
- display: block;
6399
- left: 0;
6400
- position: fixed;
6401
- right: 0;
6402
- top: 0;
6403
- z-index: 529;
6404
- content: "";
6405
- }
6406
6398
  }
6407
6399
  @media screen and (max-width: 767px) {
6408
6400
  body.dso-modal-open .container,
@@ -6413,49 +6405,45 @@ mark {
6413
6405
  }
6414
6406
 
6415
6407
  .dso-modal {
6416
- bottom: 0;
6417
- height: 100%;
6418
- left: 0;
6419
- position: fixed;
6420
- right: 0;
6421
- top: 0;
6422
- z-index: 530;
6408
+ overflow: visible;
6409
+ padding: 0;
6410
+ border: 0;
6411
+ }
6412
+ .dso-modal::backdrop {
6413
+ background-color: rgba(255, 255, 255, 0.8);
6423
6414
  }
6424
6415
  .dso-modal .dso-dialog {
6425
- animation: 1s ease-out 0s 1 slideInFromTop;
6416
+ max-inline-size: 640px;
6426
6417
  background-color: #fff;
6427
- box-shadow: 0 8px 24px 0 rgba(25, 25, 25, 0.4);
6428
- margin-left: auto;
6429
- margin-right: auto;
6430
- margin-top: clamp(40px, 15vh, 15vh);
6431
- max-width: 640px;
6432
6418
  opacity: 1;
6419
+ box-shadow: 0 8px 24px 0 rgba(25, 25, 25, 0.4);
6420
+ animation: 1s ease-out 0s 1 slideInFromTop;
6433
6421
  }
6434
6422
  .dso-modal .dso-header {
6435
- border-bottom: 1px solid #ccc;
6436
- padding: 16px;
6437
6423
  position: relative;
6424
+ padding: 16px;
6425
+ border-block-end: 1px solid #ccc;
6438
6426
  }
6439
6427
  .dso-modal .dso-header h2 {
6440
- color: #275937;
6428
+ max-inline-size: calc(100% - 24px);
6441
6429
  margin: 0;
6442
- max-width: calc(100% - 24px);
6430
+ color: #275937;
6443
6431
  }
6444
6432
  .dso-modal .dso-header .dso-close {
6433
+ position: absolute;
6434
+ inset-block-start: 16px;
6435
+ inset-inline-end: 13px;
6436
+ block-size: 32px;
6437
+ inline-size: 32px;
6438
+ padding: 0;
6445
6439
  background-color: transparent;
6446
6440
  border: 0;
6447
- height: 32px;
6448
- padding: 0;
6449
- position: absolute;
6450
- right: 13px;
6451
6441
  text-align: center;
6452
- top: 16px;
6453
- width: 32px;
6454
6442
  }
6455
6443
  .dso-modal > .dso-dialog > .dso-body {
6456
- height: calc(100% - 96px - 1.5rem);
6457
- max-height: calc(70vh - 144px - 1.5em);
6458
- min-height: 1.5rem;
6444
+ block-size: calc(100% - 96px - 1.5rem);
6445
+ max-block-size: calc(70vh - 144px - 1.5em);
6446
+ min-block-size: 1.5rem;
6459
6447
  overflow-x: auto;
6460
6448
  padding: 32px;
6461
6449
  }
@@ -6485,9 +6473,9 @@ mark {
6485
6473
  max-width: 100%;
6486
6474
  }
6487
6475
  .dso-modal > .dso-dialog > dso-scrollable {
6488
- height: calc(100% - 96px - 1.5rem);
6489
- max-height: calc(70vh - 144px - 1.5em);
6490
- min-height: 6.5rem;
6476
+ block-size: calc(100% - 96px - 1.5rem);
6477
+ max-block-size: calc(70vh - 144px - 1.5em);
6478
+ min-block-size: 6.5rem;
6491
6479
  }
6492
6480
  .dso-modal > .dso-dialog > dso-scrollable .dso-body {
6493
6481
  padding: 32px;
@@ -6517,21 +6505,24 @@ mark {
6517
6505
  height: auto;
6518
6506
  max-width: 100%;
6519
6507
  }
6508
+ .dso-modal .dso-body:focus-visible {
6509
+ outline: none;
6510
+ }
6520
6511
  .dso-modal .dso-footer {
6521
- min-height: 80px;
6512
+ min-block-size: 80px;
6522
6513
  padding: 16px 32px;
6523
- text-align: right;
6514
+ text-align: end;
6524
6515
  }
6525
6516
  @media screen and (max-width: 767px) {
6526
6517
  .dso-modal .dso-footer .dso-primary + .dso-primary, .dso-modal .dso-footer .dso-primary + .dso-secondary, .dso-modal .dso-footer .dso-primary + .dso-tertiary, .dso-modal .dso-footer .dso-secondary + .dso-primary, .dso-modal .dso-footer .dso-secondary + .dso-secondary, .dso-modal .dso-footer .dso-secondary + .dso-tertiary, .dso-modal .dso-footer .dso-tertiary + .dso-primary, .dso-modal .dso-footer .dso-tertiary + .dso-secondary, .dso-modal .dso-footer .dso-tertiary + .dso-tertiary {
6527
- margin-left: 0;
6518
+ margin-inline-start: 0;
6528
6519
  }
6529
6520
  .dso-modal .dso-footer button {
6521
+ inline-size: 100%;
6530
6522
  text-align: center;
6531
- width: 100%;
6532
6523
  }
6533
6524
  .dso-modal .dso-footer button + button {
6534
- margin-top: 8px;
6525
+ margin-block-start: 8px;
6535
6526
  }
6536
6527
  .dso-modal .dso-footer button.dso-tertiary,
6537
6528
  .dso-modal .dso-footer button.dso-tertiary span {
@@ -6540,26 +6531,26 @@ mark {
6540
6531
  }
6541
6532
  @media screen and (min-width: 768px) {
6542
6533
  .dso-modal .dso-footer .dso-primary + .dso-secondary, .dso-modal .dso-footer .dso-secondary + .dso-secondary, .dso-modal .dso-footer .dso-tertiary + .dso-secondary {
6543
- margin-left: 16px;
6534
+ margin-inline-start: 16px;
6544
6535
  }
6545
6536
  .dso-modal .dso-footer .dso-primary + .dso-tertiary, .dso-modal .dso-footer .dso-secondary + .dso-tertiary, .dso-modal .dso-footer .dso-tertiary + .dso-tertiary {
6546
- margin-left: 0;
6537
+ margin-inline-start: 0;
6547
6538
  }
6548
6539
  }
6549
6540
  @media screen and (max-width: 767px) {
6550
6541
  .dso-modal .dso-dialog {
6551
- max-width: 100%;
6552
- margin-top: 0;
6542
+ max-inline-size: 100%;
6543
+ margin-block-start: 0;
6553
6544
  }
6554
6545
  .dso-modal .dso-footer .dso-primary + .dso-primary, .dso-modal .dso-footer .dso-primary + .dso-secondary, .dso-modal .dso-footer .dso-primary + .dso-tertiary, .dso-modal .dso-footer .dso-secondary + .dso-primary, .dso-modal .dso-footer .dso-secondary + .dso-secondary, .dso-modal .dso-footer .dso-secondary + .dso-tertiary, .dso-modal .dso-footer .dso-tertiary + .dso-primary, .dso-modal .dso-footer .dso-tertiary + .dso-secondary, .dso-modal .dso-footer .dso-tertiary + .dso-tertiary {
6555
- margin-left: 0;
6546
+ margin-inline-start: 0;
6556
6547
  }
6557
6548
  .dso-modal .dso-footer button {
6549
+ inline-size: 100%;
6558
6550
  text-align: center;
6559
- width: 100%;
6560
6551
  }
6561
6552
  .dso-modal .dso-footer button + button {
6562
- margin-top: 8px;
6553
+ margin-block-start: 8px;
6563
6554
  }
6564
6555
  .dso-modal .dso-footer button.dso-tertiary,
6565
6556
  .dso-modal .dso-footer button.dso-tertiary span {
@@ -6568,25 +6559,42 @@ mark {
6568
6559
  }
6569
6560
  @media screen and (max-height: 380px) {
6570
6561
  .dso-modal .dso-dialog {
6571
- margin-bottom: 8px;
6572
- margin-top: 8px;
6573
- min-height: 216px;
6562
+ min-block-size: 216px;
6563
+ margin-block-start: 8px;
6564
+ margin-block-end: 8px;
6574
6565
  }
6575
6566
  .dso-modal .dso-header {
6576
6567
  padding: 8px 16px;
6577
6568
  }
6578
6569
  .dso-modal .dso-header .dso-close {
6579
- top: 8px;
6570
+ inset-block-start: 8px;
6580
6571
  }
6581
6572
  .dso-modal .dso-body {
6582
6573
  padding: 16px 24px;
6583
6574
  }
6584
6575
  .dso-modal .dso-footer {
6585
- min-height: auto;
6576
+ min-block-size: auto;
6586
6577
  overflow: auto;
6587
6578
  padding: 8px 32px;
6588
6579
  }
6589
6580
  }
6581
+ .dso-modal.dso-fullscreen {
6582
+ inline-size: 100dvi;
6583
+ block-size: 100dvb;
6584
+ }
6585
+ .dso-modal.dso-fullscreen .dso-dialog {
6586
+ display: flex;
6587
+ flex-direction: column;
6588
+ max-inline-size: 100%;
6589
+ block-size: 100%;
6590
+ }
6591
+ .dso-modal.dso-fullscreen .dso-dialog > dso-scrollable {
6592
+ flex-grow: 1;
6593
+ max-block-size: unset;
6594
+ }
6595
+ .dso-modal.dso-fullscreen .dso-footer {
6596
+ flex-shrink: 0;
6597
+ }
6590
6598
  .dso-modal .dso-close::before {
6591
6599
  background: url("./dso-icons.svg#img-times") no-repeat;
6592
6600
  background-position: center;
@@ -6604,49 +6612,68 @@ mark {
6604
6612
  padding: 11px 0;
6605
6613
  position: relative;
6606
6614
  }
6615
+ @media screen and (max-width: 480px) {
6616
+ .dso-modal {
6617
+ inline-size: 100dvi;
6618
+ block-size: 100dvb;
6619
+ }
6620
+ .dso-modal .dso-dialog {
6621
+ display: flex;
6622
+ flex-direction: column;
6623
+ max-inline-size: 100%;
6624
+ block-size: 100%;
6625
+ }
6626
+ .dso-modal .dso-dialog > dso-scrollable {
6627
+ flex-grow: 1;
6628
+ max-block-size: unset;
6629
+ }
6630
+ .dso-modal .dso-footer {
6631
+ flex-shrink: 0;
6632
+ }
6633
+ }
6607
6634
 
6608
- dso-modal *[slot=body] p {
6635
+ dso-modal [slot=body] p {
6609
6636
  margin: 0 0 16px;
6610
6637
  }
6611
- dso-modal *[slot=body] ul,
6612
- dso-modal *[slot=body] ol {
6638
+ dso-modal [slot=body] ul,
6639
+ dso-modal [slot=body] ol {
6613
6640
  margin-bottom: 16px;
6614
6641
  }
6615
- dso-modal *[slot=body] ul:not(.list-group):not(.dso-link-list):not(.dso-columns-list),
6616
- dso-modal *[slot=body] ol:not(.list-group):not(.dso-link-list):not(.dso-columns-list) {
6642
+ dso-modal [slot=body] ul:not(.list-group):not(.dso-link-list):not(.dso-columns-list),
6643
+ dso-modal [slot=body] ol:not(.list-group):not(.dso-link-list):not(.dso-columns-list) {
6617
6644
  padding-inline-start: 24px;
6618
6645
  }
6619
- dso-modal *[slot=body] pre {
6646
+ dso-modal [slot=body] pre {
6620
6647
  margin: 0 0 16px;
6621
6648
  }
6622
- dso-modal *[slot=body] blockquote {
6649
+ dso-modal [slot=body] blockquote {
6623
6650
  padding: 16px 24px;
6624
6651
  }
6625
- dso-modal *[slot=body] dso-highlight-box,
6626
- dso-modal *[slot=body] .dso-highlight-box {
6652
+ dso-modal [slot=body] dso-highlight-box,
6653
+ dso-modal [slot=body] .dso-highlight-box {
6627
6654
  margin-bottom: 24px;
6628
6655
  }
6629
- dso-modal *[slot=body] img {
6656
+ dso-modal [slot=body] img {
6630
6657
  height: auto;
6631
6658
  max-width: 100%;
6632
6659
  }
6633
6660
  @media screen and (max-width: 767px) {
6634
- dso-modal div[slot=footer] .dso-primary + .dso-primary, dso-modal div[slot=footer] .dso-primary + .dso-secondary, dso-modal div[slot=footer] .dso-primary + .dso-tertiary, dso-modal div[slot=footer] .dso-secondary + .dso-primary, dso-modal div[slot=footer] .dso-secondary + .dso-secondary, dso-modal div[slot=footer] .dso-secondary + .dso-tertiary, dso-modal div[slot=footer] .dso-tertiary + .dso-primary, dso-modal div[slot=footer] .dso-tertiary + .dso-secondary, dso-modal div[slot=footer] .dso-tertiary + .dso-tertiary {
6635
- margin-left: 0;
6661
+ dso-modal [slot=footer] .dso-primary + .dso-primary, dso-modal [slot=footer] .dso-primary + .dso-secondary, dso-modal [slot=footer] .dso-primary + .dso-tertiary, dso-modal [slot=footer] .dso-secondary + .dso-primary, dso-modal [slot=footer] .dso-secondary + .dso-secondary, dso-modal [slot=footer] .dso-secondary + .dso-tertiary, dso-modal [slot=footer] .dso-tertiary + .dso-primary, dso-modal [slot=footer] .dso-tertiary + .dso-secondary, dso-modal [slot=footer] .dso-tertiary + .dso-tertiary {
6662
+ margin-inline-start: 0;
6636
6663
  }
6637
- dso-modal div[slot=footer] button {
6664
+ dso-modal [slot=footer] button {
6665
+ inline-size: 100%;
6638
6666
  text-align: center;
6639
- width: 100%;
6640
6667
  }
6641
- dso-modal div[slot=footer] button + button {
6642
- margin-top: 8px;
6668
+ dso-modal [slot=footer] button + button {
6669
+ margin-block-start: 8px;
6643
6670
  }
6644
- dso-modal div[slot=footer] button.dso-tertiary,
6645
- dso-modal div[slot=footer] button.dso-tertiary span {
6671
+ dso-modal [slot=footer] button.dso-tertiary,
6672
+ dso-modal [slot=footer] button.dso-tertiary span {
6646
6673
  float: none;
6647
6674
  }
6648
6675
  }
6649
- dso-modal div[slot=footer] .dso-tertiary {
6676
+ dso-modal [slot=footer] .dso-tertiary {
6650
6677
  float: left;
6651
6678
  line-height: calc(1.5em - 1px);
6652
6679
  padding: 11px 0;
@@ -6666,20 +6693,6 @@ nav .dso-link-list a:visited {
6666
6693
  .dso-navbar .dso-navbar-header {
6667
6694
  float: left;
6668
6695
  }
6669
- @media screen and (max-width: 991px) {
6670
- .dso-navbar {
6671
- clear: left;
6672
- }
6673
- .dso-navbar > .dso-nav {
6674
- clear: both;
6675
- }
6676
- .dso-navbar:not(.dso-open) > .dso-nav {
6677
- display: none;
6678
- }
6679
- .dso-navbar:not(.dso-open) > .dso-nav.dso-nav-sub {
6680
- display: block;
6681
- }
6682
- }
6683
6696
  .dso-navbar .dso-navbar-toggle {
6684
6697
  border-radius: 4px;
6685
6698
  min-width: auto;
@@ -6695,61 +6708,89 @@ nav .dso-link-list a:visited {
6695
6708
  display: none;
6696
6709
  }
6697
6710
  }
6698
- #state-switch:checked ~ .toolkit-example .dso-navbar > .dso-nav {
6699
- display: block;
6700
- }
6701
6711
 
6702
6712
  .dso-nav {
6703
6713
  list-style: none;
6704
6714
  margin-bottom: 0;
6705
6715
  padding-left: 0;
6706
6716
  }
6707
- @media screen and (min-width: 768px) {
6708
- .dso-nav {
6709
- border-bottom: 1px solid #ccc;
6710
- }
6711
- }
6712
- .dso-nav > li > a {
6717
+ .dso-nav > li > a,
6718
+ .dso-nav > li > button {
6713
6719
  display: block;
6714
6720
  }
6715
- .dso-nav > li > a, .dso-nav > li > a:hover, .dso-nav > li > a:focus, .dso-nav > li > a:visited {
6721
+ .dso-nav > li > a, .dso-nav > li > a:hover, .dso-nav > li > a:focus, .dso-nav > li > a:visited,
6722
+ .dso-nav > li > button,
6723
+ .dso-nav > li > button:hover,
6724
+ .dso-nav > li > button:focus,
6725
+ .dso-nav > li > button:visited {
6716
6726
  color: #275937;
6717
6727
  }
6718
- .dso-nav > li.dso-active > a, .dso-nav > li.is-active > a {
6728
+ .dso-nav > li.dso-active > a,
6729
+ .dso-nav > li.dso-active > button, .dso-nav > li.is-active > a,
6730
+ .dso-nav > li.is-active > button {
6719
6731
  border-bottom: 4px solid #8b4a6a;
6720
6732
  font-weight: bold;
6721
6733
  }
6722
6734
  .dso-nav.dso-nav-main > li {
6723
- display: block;
6724
- }
6725
- @media screen and (min-width: 768px) {
6726
- .dso-nav.dso-nav-main > li {
6727
- display: inline-block;
6728
- }
6735
+ display: inline-block;
6729
6736
  }
6730
- .dso-nav.dso-nav-main > li > a {
6737
+ .dso-nav.dso-nav-main > li > a,
6738
+ .dso-nav.dso-nav-main > li > button {
6731
6739
  text-decoration: none;
6732
6740
  font-size: 1.25em;
6733
6741
  line-height: 1;
6734
6742
  margin-top: 8px;
6735
6743
  padding: 8px 16px 7px;
6736
6744
  }
6737
- .dso-nav.dso-nav-main > li > a:hover, .dso-nav.dso-nav-main > li > a:focus, .dso-nav.dso-nav-main > li > a:active {
6745
+ .dso-nav.dso-nav-main > li > a:hover, .dso-nav.dso-nav-main > li > a:focus, .dso-nav.dso-nav-main > li > a:active,
6746
+ .dso-nav.dso-nav-main > li > button:hover,
6747
+ .dso-nav.dso-nav-main > li > button:focus,
6748
+ .dso-nav.dso-nav-main > li > button:active {
6738
6749
  text-decoration: underline;
6739
6750
  }
6740
6751
  .dso-nav.dso-nav-sub > li {
6741
6752
  display: inline-block;
6742
6753
  }
6743
- .dso-nav.dso-nav-sub > li > a {
6754
+ .dso-nav.dso-nav-sub > li > a,
6755
+ .dso-nav.dso-nav-sub > li > button {
6744
6756
  text-decoration: none;
6745
6757
  font-size: 1rem;
6746
6758
  margin-top: 4px;
6747
6759
  padding: 4px 8px 3px;
6748
6760
  }
6749
- .dso-nav.dso-nav-sub > li > a:hover, .dso-nav.dso-nav-sub > li > a:focus, .dso-nav.dso-nav-sub > li > a:active {
6761
+ .dso-nav.dso-nav-sub > li > a:hover, .dso-nav.dso-nav-sub > li > a:focus, .dso-nav.dso-nav-sub > li > a:active,
6762
+ .dso-nav.dso-nav-sub > li > button:hover,
6763
+ .dso-nav.dso-nav-sub > li > button:focus,
6764
+ .dso-nav.dso-nav-sub > li > button:active {
6750
6765
  text-decoration: underline;
6751
6766
  }
6752
6767
 
6768
+ @media screen and (max-width: 991px) {
6769
+ .dso-navbar {
6770
+ clear: left;
6771
+ }
6772
+ .dso-navbar > .dso-nav {
6773
+ clear: both;
6774
+ }
6775
+ .dso-navbar:not(.dso-open) > .dso-nav {
6776
+ display: none;
6777
+ }
6778
+ .dso-navbar:not(.dso-open) > .dso-nav.dso-nav-sub {
6779
+ display: block;
6780
+ }
6781
+ }
6782
+
6783
+ @media screen and (min-width: 768px) {
6784
+ .dso-nav {
6785
+ border-bottom: 1px solid #ccc;
6786
+ }
6787
+ }
6788
+ @media screen and (max-width: 767px) {
6789
+ .dso-nav.dso-nav-main > li {
6790
+ display: block;
6791
+ }
6792
+ }
6793
+
6753
6794
  .pagination {
6754
6795
  padding-inline-start: initial;
6755
6796
  text-align: center;
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": "57.0.0",
5
+ "version": "58.0.0",
6
6
  "scripts": {
7
7
  "watch": "gulp"
8
8
  },
@@ -19,46 +19,58 @@
19
19
  }
20
20
 
21
21
  @mixin root() {
22
- bottom: 0;
23
- height: 100%;
24
- left: 0;
25
- position: fixed;
26
- right: 0;
27
- top: 0;
28
- z-index: zindex.$modal;
22
+ // dialog
23
+ // ------
24
+ // overwrite UA styles:
25
+ overflow: visible;
26
+ padding: 0;
27
+ border: 0;
28
+
29
+ &::backdrop {
30
+ background-color: fade-out(modal-variables.$backdrop-bg, modal-variables.$backdrop-opacity);
31
+ }
29
32
 
30
33
  .dso-dialog {
31
- animation: 1s ease-out 0s 1 slideInFromTop;
34
+ max-inline-size: modal-variables.$max-width;
35
+
32
36
  background-color: modal-variables.$content-bg;
33
- box-shadow: 0 #{units.$u1} #{units.$u3} 0 rgba(25, 25, 25, 0.4);
34
- margin-left: auto;
35
- margin-right: auto;
36
- margin-top: clamp(#{units.$u5}, 15vh, 15vh);
37
- max-width: modal-variables.$max-width;
37
+
38
38
  opacity: 1;
39
+
40
+ box-shadow: 0 #{units.$u1} #{units.$u3} 0 rgba(25, 25, 25, 0.4);
41
+ animation: 1s ease-out 0s 1 slideInFromTop;
39
42
  }
40
43
 
41
44
  .dso-header {
42
- border-bottom: 1px solid modal-variables.$border-color;
43
- padding: modal-variables.$header-padding;
44
45
  position: relative;
45
46
 
47
+ padding: modal-variables.$header-padding;
48
+
49
+ border-block-end: 1px solid modal-variables.$border-color;
50
+
46
51
  h2 {
47
- color: colors.$bosgroen;
52
+ max-inline-size: calc(100% - #{units.$u3});
53
+
48
54
  margin: 0;
49
- max-width: calc(100% - #{units.$u3});
55
+
56
+ color: colors.$bosgroen;
50
57
  }
51
58
 
52
59
  .dso-close {
60
+ position: absolute;
61
+ inset-block-start: units.$u2;
62
+ inset-inline-end: 13px;
63
+
64
+ block-size: modal-variables.$close-icon-size;
65
+ inline-size: modal-variables.$close-icon-size;
66
+
67
+ padding: 0;
68
+
53
69
  background-color: transparent;
70
+
54
71
  border: 0;
55
- height: modal-variables.$close-icon-size;
56
- padding: 0;
57
- position: absolute;
58
- right: 13px;
72
+
59
73
  text-align: center;
60
- top: units.$u2;
61
- width: modal-variables.$close-icon-size;
62
74
  }
63
75
  }
64
76
 
@@ -68,10 +80,11 @@
68
80
 
69
81
  @include rich-content.children();
70
82
 
71
- height: calc(100% - #{modal-variables.$body-padding * 2 + units.$u4} - 1.5rem);
72
- max-height: calc(#{modal-variables.$max-height} - #{$dso-body-unavailable-height + units.$u4} - 1.5em);
73
- min-height: 1.5rem;
83
+ block-size: calc(100% - #{modal-variables.$body-padding * 2 + units.$u4} - 1.5rem);
84
+ max-block-size: calc(#{modal-variables.$max-height} - #{$dso-body-unavailable-height + units.$u4} - 1.5em);
85
+ min-block-size: 1.5rem;
74
86
  overflow-x: auto;
87
+
75
88
  padding: modal-variables.$body-padding;
76
89
  }
77
90
 
@@ -79,9 +92,9 @@
79
92
  $dso-body-unavailable-height: (2 * modal-variables.$header-padding) +
80
93
  (modal-variables.$footer-button-height + modal-variables.$footer-padding);
81
94
 
82
- height: calc(100% - #{modal-variables.$body-padding * 2 + units.$u4} - 1.5rem);
83
- max-height: calc(#{modal-variables.$max-height} - #{$dso-body-unavailable-height + units.$u4} - 1.5em);
84
- min-height: modal-variables.$body-min-height;
95
+ block-size: calc(100% - #{modal-variables.$body-padding * 2 + units.$u4} - 1.5rem);
96
+ max-block-size: calc(#{modal-variables.$max-height} - #{$dso-body-unavailable-height + units.$u4} - 1.5em);
97
+ min-block-size: modal-variables.$body-min-height;
85
98
 
86
99
  .dso-body {
87
100
  @include rich-content.children();
@@ -90,43 +103,53 @@
90
103
  }
91
104
  }
92
105
 
106
+ .dso-body {
107
+ &:focus-visible {
108
+ outline: none;
109
+ }
110
+ }
111
+
93
112
  .dso-footer {
94
113
  @include modal-wide-buttons();
95
114
 
96
- min-height: modal-variables.$footer-button-height + modal-variables.$footer-padding;
115
+ min-block-size: modal-variables.$footer-button-height + modal-variables.$footer-padding;
116
+
97
117
  padding: calc(modal-variables.$footer-padding / 2) modal-variables.$footer-padding;
98
- text-align: right;
118
+
119
+ text-align: end;
99
120
  }
100
121
 
101
122
  @media screen and (min-width: media-query-breakpoints.$screen-sm-min) {
102
123
  .dso-footer {
103
124
  #{button.$button-adjacent-secondary} {
104
- margin-left: units.$u2;
125
+ margin-inline-start: units.$u2;
105
126
  }
106
127
 
107
128
  #{button.$button-adjacent-tertiary} {
108
- margin-left: 0;
129
+ margin-inline-start: 0;
109
130
  }
110
131
  }
111
132
  }
112
133
 
113
134
  @media screen and (max-width: media-query-breakpoints.$screen-xs-max) {
114
135
  .dso-dialog {
115
- max-width: 100%;
116
- margin-top: 0;
136
+ max-inline-size: 100%;
137
+
138
+ margin-block-start: 0;
117
139
  }
118
140
 
119
141
  .dso-footer {
120
142
  #{button.$button-adjacent} {
121
- margin-left: 0;
143
+ margin-inline-start: 0;
122
144
  }
123
145
 
124
146
  button {
147
+ inline-size: 100%;
148
+
125
149
  text-align: center;
126
- width: 100%;
127
150
 
128
151
  + button {
129
- margin-top: units.$u1;
152
+ margin-block-start: units.$u1;
130
153
  }
131
154
 
132
155
  &.dso-tertiary {
@@ -142,16 +165,17 @@
142
165
  // special query for height
143
166
  @media screen and (max-height: modal-variables.$small-modal-vh) {
144
167
  .dso-dialog {
145
- margin-bottom: units.$u1;
146
- margin-top: units.$u1;
147
- min-height: modal-variables.$min-modal-height;
168
+ min-block-size: modal-variables.$min-modal-height;
169
+
170
+ margin-block-start: units.$u1;
171
+ margin-block-end: units.$u1;
148
172
  }
149
173
 
150
174
  .dso-header {
151
175
  padding: #{units.$u1} #{units.$u2};
152
176
 
153
177
  .dso-close {
154
- top: units.$u1;
178
+ inset-block-start: units.$u1;
155
179
  }
156
180
  }
157
181
 
@@ -160,8 +184,9 @@
160
184
  }
161
185
 
162
186
  .dso-footer {
163
- min-height: auto;
187
+ min-block-size: auto;
164
188
  overflow: auto;
189
+
165
190
  padding: modal-variables.$footer-padding-small-modal-vh modal-variables.$footer-padding;
166
191
  }
167
192
  }
@@ -170,15 +195,16 @@
170
195
  @mixin modal-wide-buttons() {
171
196
  @media screen and (max-width: media-query-breakpoints.$screen-xs-max) {
172
197
  #{button.$button-adjacent} {
173
- margin-left: 0;
198
+ margin-inline-start: 0;
174
199
  }
175
200
 
176
201
  button {
202
+ inline-size: 100%;
203
+
177
204
  text-align: center;
178
- width: 100%;
179
205
 
180
206
  + button {
181
- margin-top: units.$u1;
207
+ margin-block-start: units.$u1;
182
208
  }
183
209
 
184
210
  &.dso-tertiary {
@@ -191,13 +217,25 @@
191
217
  }
192
218
  }
193
219
 
194
- @mixin overlay() {
195
- background-color: fade-out(modal-variables.$backdrop-bg, modal-variables.$backdrop-opacity);
196
- bottom: 0;
197
- display: block;
198
- left: 0;
199
- position: fixed;
200
- right: 0;
201
- top: 0;
202
- z-index: zindex.$modal-background-overlay;
220
+ @mixin fullscreen() {
221
+ inline-size: 100dvi;
222
+ block-size: 100dvb;
223
+
224
+ .dso-dialog {
225
+ display: flex;
226
+ flex-direction: column;
227
+
228
+ max-inline-size: 100%;
229
+ block-size: 100%;
230
+
231
+ > dso-scrollable {
232
+ flex-grow: 1;
233
+
234
+ max-block-size: unset;
235
+ }
236
+ }
237
+
238
+ .dso-footer {
239
+ flex-shrink: 0;
240
+ }
203
241
  }
@@ -9,12 +9,6 @@
9
9
  body.dso-modal-open {
10
10
  @media screen and (min-width: media-query-breakpoints.$screen-sm-min) {
11
11
  overflow: hidden;
12
-
13
- &::before {
14
- @include modal.overlay();
15
-
16
- content: "";
17
- }
18
12
  }
19
13
 
20
14
  @media screen and (max-width: media-query-breakpoints.$screen-xs-max) {
@@ -29,6 +23,10 @@ body.dso-modal-open {
29
23
  .dso-modal {
30
24
  @include modal.root();
31
25
 
26
+ &.dso-fullscreen {
27
+ @include modal.fullscreen();
28
+ }
29
+
32
30
  .dso-close {
33
31
  &::before {
34
32
  @include di.base("times");
@@ -47,14 +45,18 @@ body.dso-modal-open {
47
45
  position: relative;
48
46
  }
49
47
  }
48
+
49
+ @media screen and (max-width: media-query-breakpoints.$screen-xs-min) {
50
+ @include modal.fullscreen();
51
+ }
50
52
  }
51
53
 
52
54
  dso-modal {
53
- *[slot="body"] {
55
+ [slot="body"] {
54
56
  @include rich-content.children();
55
57
  }
56
58
 
57
- div[slot="footer"] {
59
+ [slot="footer"] {
58
60
  @include modal.modal-wide-buttons();
59
61
 
60
62
  .dso-tertiary {
@@ -1 +1,2 @@
1
+ @forward "navbar.mixins";
1
2
  @forward "navbar.variables";
@@ -0,0 +1,101 @@
1
+ @use "../../variables/units";
2
+ @use "../../variables/colors";
3
+ @use "../../variables/typography";
4
+ @use "../../variables/media-query-breakpoints";
5
+ @use "../anchor";
6
+ @use "./navbar.variables.scss" as navbar;
7
+
8
+ @mixin root() {
9
+ .dso-navbar {
10
+ min-height: units.$u4;
11
+
12
+ .dso-navbar-header {
13
+ float: left;
14
+ }
15
+
16
+ .dso-navbar-toggle {
17
+ border-radius: 4px;
18
+ min-width: auto;
19
+ padding: #{units.$padding-base-vertical - 1} 0;
20
+
21
+ dso-icon,
22
+ svg.di {
23
+ margin-left: units.$u1;
24
+ margin-right: units.$u1;
25
+ }
26
+
27
+ @media screen and (min-width: media-query-breakpoints.$screen-md-min) {
28
+ display: none;
29
+ }
30
+ }
31
+ }
32
+
33
+ .dso-nav {
34
+ list-style: none;
35
+ margin-bottom: 0;
36
+ padding-left: 0;
37
+
38
+ > li {
39
+ > a,
40
+ > button {
41
+ display: block;
42
+
43
+ &,
44
+ &:hover,
45
+ &:focus,
46
+ &:visited {
47
+ color: colors.$bosgroen;
48
+ }
49
+ }
50
+
51
+ &.dso-active,
52
+ &.is-active {
53
+ > a,
54
+ > button {
55
+ @include nav-item-border(navbar.$selected-color);
56
+
57
+ font-weight: bold;
58
+ }
59
+ }
60
+ }
61
+
62
+ &.dso-nav-main {
63
+ > li {
64
+ display: inline-block;
65
+
66
+ > a,
67
+ > button {
68
+ @include anchor.reverse();
69
+
70
+ font-size: 1.25em;
71
+ line-height: 1;
72
+ margin-top: units.$u1;
73
+ padding: units.$u1 units.$u2 #{units.$u1 - 1px};
74
+ }
75
+ }
76
+ }
77
+
78
+ &.dso-nav-sub {
79
+ > li {
80
+ display: inline-block;
81
+
82
+ > a,
83
+ > button {
84
+ @include anchor.reverse();
85
+
86
+ font-size: typography.$root-font-size-base;
87
+ margin-top: (units.$u1 * 0.5);
88
+ padding: (units.$u1 * 0.5) units.$u1 #{units.$u1 * 0.5 - 1px};
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+
95
+ @mixin nav-item-border($color) {
96
+ border-bottom: 4px solid $color;
97
+ }
98
+
99
+ @mixin nav-border() {
100
+ border-bottom: 1px solid colors.$grijs-20;
101
+ }
@@ -1,21 +1,10 @@
1
- @use "../../variables/units";
2
- @use "../../variables/colors";
3
- @use "../../variables/typography";
4
1
  @use "../../variables/media-query-breakpoints";
5
- @use "../anchor";
6
- @use "../navbar";
7
2
 
8
- @mixin nav-item-border($color) {
9
- border-bottom: 4px solid $color;
10
- }
3
+ @use "./navbar.mixins" as navbar;
11
4
 
12
- .dso-navbar {
13
- min-height: units.$u4;
14
-
15
- .dso-navbar-header {
16
- float: left;
17
- }
5
+ @include navbar.root();
18
6
 
7
+ .dso-navbar {
19
8
  @media screen and (max-width: media-query-breakpoints.$screen-sm-max) {
20
9
  clear: left;
21
10
 
@@ -33,88 +22,17 @@
33
22
  }
34
23
  }
35
24
  }
36
-
37
- .dso-navbar-toggle {
38
- border-radius: 4px;
39
- min-width: auto;
40
- padding: #{units.$padding-base-vertical - 1} 0;
41
-
42
- dso-icon,
43
- svg.di {
44
- margin-left: units.$u1;
45
- margin-right: units.$u1;
46
- }
47
-
48
- @media screen and (min-width: media-query-breakpoints.$screen-md-min) {
49
- display: none;
50
- }
51
- }
52
-
53
- #state-switch:checked ~ .toolkit-example & > .dso-nav {
54
- display: block;
55
- }
56
25
  }
57
26
 
58
27
  .dso-nav {
59
- list-style: none;
60
- margin-bottom: 0;
61
- padding-left: 0;
62
-
63
28
  @media screen and (min-width: media-query-breakpoints.$screen-sm-min) {
64
- border-bottom: 1px solid colors.$grijs-20;
65
- }
66
-
67
- > li {
68
- > a {
69
- display: block;
70
-
71
- &,
72
- &:hover,
73
- &:focus,
74
- &:visited {
75
- color: colors.$bosgroen;
76
- }
77
- }
78
-
79
- &.dso-active,
80
- &.is-active {
81
- > a {
82
- @include nav-item-border(navbar.$selected-color);
83
-
84
- font-weight: bold;
85
- }
86
- }
29
+ @include navbar.nav-border();
87
30
  }
88
31
 
89
32
  &.dso-nav-main {
90
33
  > li {
91
- display: block;
92
-
93
- @media screen and (min-width: media-query-breakpoints.$screen-sm-min) {
94
- display: inline-block;
95
- }
96
-
97
- > a {
98
- @include anchor.reverse();
99
-
100
- font-size: 1.25em;
101
- line-height: 1;
102
- margin-top: units.$u1;
103
- padding: units.$u1 units.$u2 #{units.$u1 - 1px};
104
- }
105
- }
106
- }
107
-
108
- &.dso-nav-sub {
109
- > li {
110
- display: inline-block;
111
-
112
- > a {
113
- @include anchor.reverse();
114
-
115
- font-size: typography.$root-font-size-base;
116
- margin-top: (units.$u1 * 0.5);
117
- padding: (units.$u1 * 0.5) units.$u1 #{units.$u1 * 0.5 - 1px};
34
+ @media screen and (max-width: media-query-breakpoints.$screen-xs-max) {
35
+ display: block;
118
36
  }
119
37
  }
120
38
  }
@@ -12,6 +12,10 @@
12
12
  // To Do: re-evaluate vertical rhythm
13
13
  :where(.dso-button-row) {
14
14
  margin-block: units.$u2 units.$u4;
15
+
16
+ &:last-child {
17
+ margin-block-end: 0;
18
+ }
15
19
  }
16
20
 
17
21
  // within dso-highlight-box, create space for dso-button-row when preceded and/or followed by other elements
@@ -1,5 +1,5 @@
1
1
  $viewer-grid-sizing-buttons: -1;
2
- $viewer-grid-map-panel: 100;
2
+ $viewer-grid-main-panel: 100;
3
3
 
4
4
  $datepicker: 100;
5
5
  $datepicker-dialog: 210;