dso-toolkit 54.3.0 → 56.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/dist/dso.css CHANGED
@@ -46,6 +46,10 @@
46
46
  font-weight: 700;
47
47
  src: local("Asap Bold italic"), local("Asap-Bolditalic"), url("../assets/fonts/Asap/Asap-BoldItalic.woff2") format("woff2"), url("../assets/fonts/Asap/Asap-BoldItalic.woff") format("woff");
48
48
  }
49
+ :where(dso-action-list) + :where(.dso-form-buttons) {
50
+ margin-block-start: 32px;
51
+ }
52
+
49
53
  .text-right {
50
54
  text-align: right;
51
55
  }
@@ -114,10 +118,10 @@ body {
114
118
  margin-top: -4px;
115
119
  padding: 20px 16px 16px;
116
120
  }
117
- .dso-accordion .dso-section-body *:first-child:not(.dso-info) {
121
+ .dso-accordion .dso-section-body > *:first-child:not(.dso-info) {
118
122
  margin-top: 0;
119
123
  }
120
- .dso-accordion .dso-section-body *:last-child:not(.dso-info) {
124
+ .dso-accordion .dso-section-body > *:last-child:not(.dso-info) {
121
125
  margin-bottom: 0;
122
126
  }
123
127
  .dso-accordion .dso-section-body .dso-rich-content + .dso-accordion,
@@ -692,6 +696,9 @@ body {
692
696
  display: none;
693
697
  }
694
698
 
699
+ dso-accordion-section > *:first-child:not(.dso-info) {
700
+ margin-top: 0;
701
+ }
695
702
  dso-accordion-section > *:last-child:not(.dso-info) {
696
703
  margin-bottom: 0;
697
704
  }
@@ -2421,6 +2428,14 @@ a.dso-tertiary, a.dso-tertiary:visited {
2421
2428
  .dso-button-row .dso-tertiary + .dso-tertiary {
2422
2429
  margin-left: 0;
2423
2430
  }
2431
+ .dso-button-row.dso-emphasized {
2432
+ background-color: #f2f2f2;
2433
+ gap: 32px;
2434
+ padding: 16px;
2435
+ }
2436
+ .dso-button-row.dso-emphasized .dso-tertiary {
2437
+ color: #000;
2438
+ }
2424
2439
 
2425
2440
  dso-card[is-selectable], dso-card[has-image], .dso-card.dso-is-selectable, .dso-card.dso-has-image,
2426
2441
  dso-card.dso-is-selectable,
@@ -3153,6 +3168,38 @@ del {
3153
3168
  display: block;
3154
3169
  }
3155
3170
 
3171
+ .dso-document-components ul {
3172
+ padding-left: 0;
3173
+ list-style: none;
3174
+ margin: 0;
3175
+ }
3176
+ .dso-document-components ul li + li {
3177
+ margin-top: 8px;
3178
+ }
3179
+
3180
+ dso-document-component[filtered]::before {
3181
+ left: -3px;
3182
+ }
3183
+
3184
+ dso-document-component[not-applicable] {
3185
+ opacity: 0.6;
3186
+ }
3187
+ dso-document-component[not-applicable] dso-document-component[not-applicable] {
3188
+ opacity: 1;
3189
+ }
3190
+
3191
+ dso-responsive-element:not([small]) dso-document-component dso-document-component {
3192
+ --depth: var(--x, 1);
3193
+ --y: calc(var(--depth) + 1);
3194
+ margin-left: 24px;
3195
+ }
3196
+ dso-responsive-element:not([small]) dso-document-component dso-document-component[filtered]::before {
3197
+ left: calc((var(--depth) * 24px + 3px) * -1);
3198
+ }
3199
+ dso-responsive-element:not([small]) dso-document-component dso-document-component li {
3200
+ --x: calc(var(--y));
3201
+ }
3202
+
3156
3203
  .dso-document-header {
3157
3204
  background-color: #f2f2f2;
3158
3205
  color: #000;
@@ -3895,34 +3942,6 @@ dso-dropdown-menu[checkable] li.dso-checked button::before {
3895
3942
  margin-right: 8px;
3896
3943
  }
3897
3944
 
3898
- dso-expandable-heading *[slot=addons-end] {
3899
- margin-left: 8px;
3900
- }
3901
- dso-expandable-heading.dso-del, dso-expandable-heading.dso-ins {
3902
- padding-block: 16px 4px;
3903
- }
3904
- dso-expandable-heading.dso-del a, dso-expandable-heading.dso-ins a {
3905
- color: #000;
3906
- }
3907
- dso-expandable-heading.dso-del .dso-annotation-header,
3908
- dso-expandable-heading.dso-del .dso-annotation-content, dso-expandable-heading.dso-ins .dso-annotation-header,
3909
- dso-expandable-heading.dso-ins .dso-annotation-content {
3910
- background-color: rgba(255, 255, 255, 0.4);
3911
- }
3912
- dso-expandable-heading.dso-del .dso-annotation-header, dso-expandable-heading.dso-ins .dso-annotation-header {
3913
- border-bottom: 2px solid #fff;
3914
- border-left: 1px solid #ccc;
3915
- border-right: 1px solid #ccc;
3916
- border-top: 1px solid #ccc;
3917
- margin-bottom: -2px;
3918
- }
3919
- dso-expandable-heading.dso-del .dso-annotation-content, dso-expandable-heading.dso-ins .dso-annotation-content {
3920
- border-bottom: 1px solid #ccc;
3921
- border-left: 1px solid #ccc;
3922
- border-right: 1px solid #ccc;
3923
- padding-top: 18px;
3924
- }
3925
-
3926
3945
  label {
3927
3946
  display: inline-block;
3928
3947
  max-width: 100%;
@@ -6468,16 +6487,7 @@ ol.dso-list-unstyled {
6468
6487
  background-color: #fff;
6469
6488
  border-color: #39870c;
6470
6489
  color: #191919;
6471
- }
6472
- @media screen and (max-width: 767px) {
6473
- .dso-btn-group > *.dso-selected + .dso-input-number {
6474
- box-shadow: inset 0 -1px 0 0 #39870c, inset 0 0 0 0 #39870c, inset -1px 0 0 0 #39870c, inset 1px 0 0 0 #39870c;
6475
- }
6476
- }
6477
- @media screen and (min-width: 768px) {
6478
- .dso-btn-group > *.dso-selected + .dso-input-number {
6479
- box-shadow: inset 0 -1px 0 0 #39870c, inset 0 1px 0 0 #39870c, inset -1px 0 0 0 #39870c;
6480
- }
6490
+ box-shadow: inset 0 -1px 0 0 #39870c, inset 0 1px 0 0 #39870c, inset -1px 0 0 0 #39870c;
6481
6491
  }
6482
6492
  .dso-btn-group > *:active + .dso-input-number, .dso-btn-group > *:active + .dso-input-number:hover,
6483
6493
  .dso-btn-group > *.active + .dso-input-number,
@@ -6497,24 +6507,6 @@ ol.dso-list-unstyled {
6497
6507
  .dso-btn-group .dso-list-button {
6498
6508
  padding-right: 15px;
6499
6509
  }
6500
- @media screen and (max-width: 767px) {
6501
- .dso-btn-group {
6502
- flex-direction: column;
6503
- }
6504
- .dso-btn-group > *:first-child {
6505
- border-radius: 4px 4px 0 0;
6506
- }
6507
- .dso-btn-group > *:not(:first-child) {
6508
- border-left-style: solid !important;
6509
- border-top-style: none !important;
6510
- }
6511
- .dso-btn-group > *:last-child {
6512
- border-radius: 0 0 4px 4px;
6513
- }
6514
- .dso-btn-group > *:only-child {
6515
- border-radius: 4px;
6516
- }
6517
- }
6518
6510
 
6519
6511
  .dso-list-button {
6520
6512
  display: inline-block;
@@ -6566,9 +6558,11 @@ ol.dso-list-unstyled {
6566
6558
  border-width: 1px;
6567
6559
  box-shadow: inset 0px 0px 0px 1px #39870c, inset -1px 0px 0px 0px #39870c;
6568
6560
  }
6569
- .dso-list-button.dso-selected.dso-single-count {
6570
- border-right: 0;
6571
- box-shadow: #39870c 0px 1px 0px 0px inset, #39870c 1px 0px 0px 0px inset, #39870c 0px -1px 0px 0px inset;
6561
+ @media screen and (min-width: 768px) {
6562
+ .dso-list-button.dso-selected.dso-single-count {
6563
+ border-right: 0;
6564
+ box-shadow: #39870c 0px 1px 0px 0px inset, #39870c 1px 0px 0px 0px inset, #39870c 0px -1px 0px 0px inset;
6565
+ }
6572
6566
  }
6573
6567
  .dso-list-button > span {
6574
6568
  display: block;
@@ -6687,13 +6681,13 @@ mark {
6687
6681
  }
6688
6682
  .dso-modal .dso-dialog {
6689
6683
  animation: 1s ease-out 0s 1 slideInFromTop;
6690
- margin-top: 15vh;
6684
+ background-color: #fff;
6685
+ box-shadow: 0 8px 24px 0 rgba(25, 25, 25, 0.4);
6691
6686
  margin-left: auto;
6692
6687
  margin-right: auto;
6688
+ margin-top: clamp(40px, 15vh, 15vh);
6693
6689
  max-width: 640px;
6694
6690
  opacity: 1;
6695
- background-color: #fff;
6696
- box-shadow: 0 8px 24px 0 rgba(25, 25, 25, 0.4);
6697
6691
  }
6698
6692
  .dso-modal .dso-header {
6699
6693
  border-bottom: 1px solid #ccc;
@@ -6716,41 +6710,74 @@ mark {
6716
6710
  top: 16px;
6717
6711
  width: 32px;
6718
6712
  }
6719
- .dso-modal .dso-body {
6713
+ .dso-modal > .dso-dialog > .dso-body {
6720
6714
  height: calc(100% - 96px - 1.5rem);
6721
6715
  max-height: calc(70vh - 144px - 1.5em);
6722
6716
  min-height: 1.5rem;
6723
6717
  overflow-x: auto;
6724
6718
  padding: 32px;
6725
6719
  }
6726
- .dso-modal .dso-body p {
6720
+ .dso-modal > .dso-dialog > .dso-body p {
6721
+ margin: 0 0 16px;
6722
+ }
6723
+ .dso-modal > .dso-dialog > .dso-body ul,
6724
+ .dso-modal > .dso-dialog > .dso-body ol {
6725
+ margin-bottom: 16px;
6726
+ }
6727
+ .dso-modal > .dso-dialog > .dso-body ul:not(.list-group):not(.dso-link-list):not(.dso-columns-list),
6728
+ .dso-modal > .dso-dialog > .dso-body ol:not(.list-group):not(.dso-link-list):not(.dso-columns-list) {
6729
+ padding-inline-start: 24px;
6730
+ }
6731
+ .dso-modal > .dso-dialog > .dso-body pre {
6732
+ margin: 0 0 16px;
6733
+ }
6734
+ .dso-modal > .dso-dialog > .dso-body blockquote {
6735
+ padding: 16px 24px;
6736
+ }
6737
+ .dso-modal > .dso-dialog > .dso-body dso-highlight-box,
6738
+ .dso-modal > .dso-dialog > .dso-body .dso-highlight-box {
6739
+ margin-bottom: 24px;
6740
+ }
6741
+ .dso-modal > .dso-dialog > .dso-body img {
6742
+ height: auto;
6743
+ max-width: 100%;
6744
+ }
6745
+ .dso-modal > .dso-dialog > dso-scrollable {
6746
+ height: calc(100% - 96px - 1.5rem);
6747
+ max-height: calc(70vh - 144px - 1.5em);
6748
+ min-height: 6.5rem;
6749
+ }
6750
+ .dso-modal > .dso-dialog > dso-scrollable .dso-body {
6751
+ padding: 32px;
6752
+ }
6753
+ .dso-modal > .dso-dialog > dso-scrollable .dso-body p {
6727
6754
  margin: 0 0 16px;
6728
6755
  }
6729
- .dso-modal .dso-body ul,
6730
- .dso-modal .dso-body ol {
6756
+ .dso-modal > .dso-dialog > dso-scrollable .dso-body ul,
6757
+ .dso-modal > .dso-dialog > dso-scrollable .dso-body ol {
6731
6758
  margin-bottom: 16px;
6732
6759
  }
6733
- .dso-modal .dso-body ul:not(.list-group):not(.dso-link-list):not(.dso-columns-list),
6734
- .dso-modal .dso-body ol:not(.list-group):not(.dso-link-list):not(.dso-columns-list) {
6760
+ .dso-modal > .dso-dialog > dso-scrollable .dso-body ul:not(.list-group):not(.dso-link-list):not(.dso-columns-list),
6761
+ .dso-modal > .dso-dialog > dso-scrollable .dso-body ol:not(.list-group):not(.dso-link-list):not(.dso-columns-list) {
6735
6762
  padding-inline-start: 24px;
6736
6763
  }
6737
- .dso-modal .dso-body pre {
6764
+ .dso-modal > .dso-dialog > dso-scrollable .dso-body pre {
6738
6765
  margin: 0 0 16px;
6739
6766
  }
6740
- .dso-modal .dso-body blockquote {
6767
+ .dso-modal > .dso-dialog > dso-scrollable .dso-body blockquote {
6741
6768
  padding: 16px 24px;
6742
6769
  }
6743
- .dso-modal .dso-body dso-highlight-box,
6744
- .dso-modal .dso-body .dso-highlight-box {
6770
+ .dso-modal > .dso-dialog > dso-scrollable .dso-body dso-highlight-box,
6771
+ .dso-modal > .dso-dialog > dso-scrollable .dso-body .dso-highlight-box {
6745
6772
  margin-bottom: 24px;
6746
6773
  }
6747
- .dso-modal .dso-body img {
6774
+ .dso-modal > .dso-dialog > dso-scrollable .dso-body img {
6748
6775
  height: auto;
6749
6776
  max-width: 100%;
6750
6777
  }
6751
6778
  .dso-modal .dso-footer {
6752
6779
  min-height: 80px;
6753
- padding: 0 32px 32px;
6780
+ padding: 16px 32px;
6754
6781
  text-align: right;
6755
6782
  }
6756
6783
  @media screen and (max-width: 767px) {
@@ -6799,6 +6826,27 @@ mark {
6799
6826
  float: none;
6800
6827
  }
6801
6828
  }
6829
+ @media screen and (max-height: 380px) {
6830
+ .dso-modal .dso-dialog {
6831
+ margin-bottom: 8px;
6832
+ margin-top: 8px;
6833
+ min-height: 216px;
6834
+ }
6835
+ .dso-modal .dso-header {
6836
+ padding: 8px 16px;
6837
+ }
6838
+ .dso-modal .dso-header .dso-close {
6839
+ top: 8px;
6840
+ }
6841
+ .dso-modal .dso-body {
6842
+ padding: 16px 24px;
6843
+ }
6844
+ .dso-modal .dso-footer {
6845
+ min-height: auto;
6846
+ overflow: auto;
6847
+ padding: 8px 32px;
6848
+ }
6849
+ }
6802
6850
  .dso-modal .dso-close::before {
6803
6851
  background: url("./dso-icons.svg#img-times") no-repeat;
6804
6852
  background-position: center;
package/dist/index.js CHANGED
@@ -24,11 +24,11 @@ export { storiesOfContext } from "./components/context/context.stories-of.js";
24
24
  export { storiesOfDatePicker, } from "./components/date-picker/date-picker.stories-of.js";
25
25
  export { storiesOfDefinitionList, } from "./components/definition-list/definition-list.stories-of.js";
26
26
  export { storiesOfDescription } from "./components/description/description.stories-of.js";
27
+ export { storiesOfDocumentComponent, } from "./components/document-component/document-component.stories-of.js";
27
28
  export { storiesOfDocumentHeader, } from "./components/document-header/document-header.stories-of.js";
28
29
  export { storiesOfDocumentList } from "./components/document-list/document-list.stories-of.js";
29
30
  export { storiesOfDropdownMenu } from "./components/dropdown-menu/dropdown-menu.stories-of.js";
30
31
  export { storiesOfExpandable } from "./components/expandable/expandable.stories-of.js";
31
- export { storiesOfExpandableHeading, } from "./components/expandable-heading/expandable-heading.stories-of.js";
32
32
  export { storiesOfFootnotes } from "./components/footnotes/footnotes.stories-of.js";
33
33
  export { storiesOfForm } from "./components/form/form.stories-of.js";
34
34
  export { storiesOfFormButtons } from "./components/form-buttons/form-buttons.stories-of.js";
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": "54.3.0",
5
+ "version": "56.0.0",
6
6
  "scripts": {
7
7
  "watch": "gulp"
8
8
  },
@@ -27,9 +27,10 @@
27
27
  "homepage": "https://www.dso-toolkit.nl/",
28
28
  "devDependencies": {
29
29
  "@prettier/plugin-xml": "^2.2.0",
30
- "@storybook/addon-actions": "6.5.13",
31
- "@storybook/addons": "6.5.13",
32
- "@storybook/client-api": "6.5.13",
30
+ "@storybook/addon-actions": "7.0.22",
31
+ "@storybook/addons": "7.0.22",
32
+ "@storybook/client-api": "7.0.22",
33
+ "@storybook/types": "7.0.22",
33
34
  "@types/css": "^0.0.33",
34
35
  "@types/fancy-log": "^2.0.0",
35
36
  "@types/gulp": "^4.0.10",
@@ -55,10 +56,13 @@
55
56
  "gulp-svgstore": "^9.0.0",
56
57
  "gulp-typescript": "^6.0.0-alpha.1",
57
58
  "list-stream": "^2.1.0",
59
+ "markdown-to-jsx": "^7.2.1",
58
60
  "postcss": "^8.4.24",
59
61
  "prettier": "^2.8.8",
60
- "sass": "^1.63.4",
61
- "typescript": "~4.8.4",
62
+ "react": "^18.2.0",
63
+ "react-dom": "^18.2.0",
64
+ "sass": "^1.63.5",
65
+ "typescript": "^5.1.3",
62
66
  "uuid": "^9.0.0"
63
67
  },
64
68
  "nx": {
@@ -22,11 +22,11 @@
22
22
  margin-top: accordion.$border-radius * -1;
23
23
  padding: units.$u2 + accordion.$border-radius units.$u2 units.$u2;
24
24
 
25
- *:first-child:not(.dso-info) {
25
+ > *:first-child:not(.dso-info) {
26
26
  margin-top: 0;
27
27
  }
28
28
 
29
- *:last-child:not(.dso-info) {
29
+ > *:last-child:not(.dso-info) {
30
30
  margin-bottom: 0;
31
31
  }
32
32
 
@@ -245,6 +245,10 @@
245
245
 
246
246
  // Web component
247
247
  dso-accordion-section {
248
+ > *:first-child:not(.dso-info) {
249
+ margin-top: 0;
250
+ }
251
+
248
252
  > *:last-child:not(.dso-info) {
249
253
  margin-bottom: 0;
250
254
  }
@@ -2,11 +2,7 @@
2
2
 
3
3
  @use "anchor.variables" as anchor-variables;
4
4
 
5
- @mixin root($is-html-a-element: true) {
6
- background-color: transparent;
7
- color: scaffolding.$link-color;
8
- text-decoration: underline;
9
-
5
+ @mixin pseudo() {
10
6
  &:hover,
11
7
  &:focus {
12
8
  color: anchor-variables.$link-hover-color;
@@ -16,6 +12,14 @@
16
12
  &:active {
17
13
  text-decoration: none;
18
14
  }
15
+ }
16
+
17
+ @mixin root($is-html-a-element: true) {
18
+ background-color: transparent;
19
+ color: scaffolding.$link-color;
20
+ text-decoration: underline;
21
+
22
+ @include pseudo();
19
23
 
20
24
  @if ($is-html-a-element) {
21
25
  &:visited {
@@ -1,3 +1,4 @@
1
+ @use "../../variables/colors";
1
2
  @use "../../variables/units";
2
3
 
3
4
  .dso-button-row {
@@ -20,4 +21,14 @@
20
21
  margin-left: 0;
21
22
  }
22
23
  }
24
+
25
+ &.dso-emphasized {
26
+ background-color: colors.$grijs-5;
27
+ gap: units.$u4;
28
+ padding: units.$u2;
29
+
30
+ .dso-tertiary {
31
+ color: colors.$zwart;
32
+ }
33
+ }
23
34
  }
@@ -0,0 +1 @@
1
+ @forward "document-component.variables";
@@ -0,0 +1,49 @@
1
+ @use "../../variables/units";
2
+ @use "../list";
3
+
4
+ @use "document-component.variables" as document-component-variables;
5
+
6
+ .dso-document-components {
7
+ ul {
8
+ @include list.unstyled();
9
+
10
+ margin: 0;
11
+
12
+ li + li {
13
+ margin-top: units.$u1;
14
+ }
15
+ }
16
+ }
17
+
18
+ dso-document-component[filtered] {
19
+ &::before {
20
+ left: -3px;
21
+ }
22
+ }
23
+
24
+ dso-document-component[not-applicable] {
25
+ opacity: 0.6;
26
+
27
+ dso-document-component[not-applicable] {
28
+ opacity: 1;
29
+ }
30
+ }
31
+
32
+ dso-responsive-element:not([small]) {
33
+ dso-document-component dso-document-component {
34
+ --depth: var(--x, 1);
35
+ --y: calc(var(--depth) + 1);
36
+
37
+ margin-left: document-component-variables.$indent;
38
+
39
+ &[filtered] {
40
+ &::before {
41
+ left: calc((var(--depth) * #{document-component-variables.$indent} + 3px) * -1);
42
+ }
43
+ }
44
+
45
+ li {
46
+ --x: calc(var(--y));
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,3 @@
1
+ @use "../../variables/units";
2
+
3
+ $indent: units.$u3;
@@ -64,18 +64,9 @@
64
64
  > *.dso-selected + #{$input-number-selector} {
65
65
  @include _state-styling(colors.$wit, button.$secondary-hover-background-color, colors.$grijs-90);
66
66
 
67
- @media screen and (max-width: media-query-breakpoints.$screen-xs-max) {
68
- box-shadow: inset 0 -1px 0 0 button.$secondary-hover-background-color,
69
- inset 0 0 0 0 button.$secondary-hover-background-color,
70
- inset -1px 0 0 0 button.$secondary-hover-background-color,
71
- inset 1px 0 0 0 button.$secondary-hover-background-color;
72
- }
73
-
74
- @media screen and (min-width: media-query-breakpoints.$screen-sm-min) {
75
- box-shadow: inset 0 -1px 0 0 button.$secondary-hover-background-color,
76
- inset 0 1px 0 0 button.$secondary-hover-background-color,
77
- inset -1px 0 0 0 button.$secondary-hover-background-color;
78
- }
67
+ box-shadow: inset 0 -1px 0 0 button.$secondary-hover-background-color,
68
+ inset 0 1px 0 0 button.$secondary-hover-background-color,
69
+ inset -1px 0 0 0 button.$secondary-hover-background-color;
79
70
  }
80
71
 
81
72
  > *:active + #{$input-number-selector},
@@ -99,29 +90,6 @@
99
90
  #{$list-button-selector} {
100
91
  padding-right: #{units.$u2 - 1};
101
92
  }
102
-
103
- @media screen and (max-width: media-query-breakpoints.$screen-xs-max) {
104
- flex-direction: column;
105
-
106
- > * {
107
- &:first-child {
108
- border-radius: list-button-variables.$border-radius list-button-variables.$border-radius 0 0;
109
- }
110
-
111
- &:not(:first-child) {
112
- border-left-style: solid !important;
113
- border-top-style: none !important;
114
- }
115
-
116
- &:last-child {
117
- border-radius: 0 0 list-button-variables.$border-radius list-button-variables.$border-radius;
118
- }
119
-
120
- &:only-child {
121
- border-radius: list-button-variables.$border-radius;
122
- }
123
- }
124
- }
125
93
  }
126
94
 
127
95
  @mixin root() {
@@ -166,9 +134,11 @@
166
134
  box-shadow: inset 0px 0px 0px 1px colors.$grasgroen, inset -1px 0px 0px 0px colors.$grasgroen;
167
135
 
168
136
  &.dso-single-count {
169
- border-right: 0;
170
- box-shadow: colors.$grasgroen 0px 1px 0px 0px inset, colors.$grasgroen 1px 0px 0px 0px inset,
171
- colors.$grasgroen 0px -1px 0px 0px inset;
137
+ @media screen and (min-width: media-query-breakpoints.$screen-sm-min) {
138
+ border-right: 0;
139
+ box-shadow: colors.$grasgroen 0px 1px 0px 0px inset, colors.$grasgroen 1px 0px 0px 0px inset,
140
+ colors.$grasgroen 0px -1px 0px 0px inset;
141
+ }
172
142
  }
173
143
  }
174
144
 
@@ -29,13 +29,13 @@
29
29
 
30
30
  .dso-dialog {
31
31
  animation: 1s ease-out 0s 1 slideInFromTop;
32
- margin-top: 15vh;
32
+ background-color: modal-variables.$content-bg;
33
+ box-shadow: 0 #{units.$u1} #{units.$u3} 0 rgba(25, 25, 25, 0.4);
33
34
  margin-left: auto;
34
35
  margin-right: auto;
36
+ margin-top: clamp(#{units.$u5}, 15vh, 15vh);
35
37
  max-width: modal-variables.$max-width;
36
38
  opacity: 1;
37
- background-color: modal-variables.$content-bg;
38
- box-shadow: 0 8px 24px 0 rgba(25, 25, 25, 0.4);
39
39
  }
40
40
 
41
41
  .dso-header {
@@ -62,7 +62,7 @@
62
62
  }
63
63
  }
64
64
 
65
- .dso-body {
65
+ > .dso-dialog > .dso-body {
66
66
  $dso-body-unavailable-height: (2 * modal-variables.$header-padding) +
67
67
  (modal-variables.$footer-button-height + modal-variables.$footer-padding);
68
68
 
@@ -75,11 +75,26 @@
75
75
  padding: modal-variables.$body-padding;
76
76
  }
77
77
 
78
+ > .dso-dialog > dso-scrollable {
79
+ $dso-body-unavailable-height: (2 * modal-variables.$header-padding) +
80
+ (modal-variables.$footer-button-height + modal-variables.$footer-padding);
81
+
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;
85
+
86
+ .dso-body {
87
+ @include rich-content.children();
88
+
89
+ padding: modal-variables.$body-padding;
90
+ }
91
+ }
92
+
78
93
  .dso-footer {
79
94
  @include modal-wide-buttons();
80
95
 
81
96
  min-height: modal-variables.$footer-button-height + modal-variables.$footer-padding;
82
- padding: 0 modal-variables.$footer-padding modal-variables.$footer-padding;
97
+ padding: calc(modal-variables.$footer-padding / 2) modal-variables.$footer-padding;
83
98
  text-align: right;
84
99
  }
85
100
 
@@ -124,6 +139,33 @@
124
139
  }
125
140
  }
126
141
  }
142
+
143
+ // special query for height
144
+ @media screen and (max-height: modal-variables.$small-modal-vh) {
145
+ .dso-dialog {
146
+ margin-bottom: units.$u1;
147
+ margin-top: units.$u1;
148
+ min-height: modal-variables.$min-modal-height;
149
+ }
150
+
151
+ .dso-header {
152
+ padding: #{units.$u1} #{units.$u2};
153
+
154
+ .dso-close {
155
+ top: units.$u1;
156
+ }
157
+ }
158
+
159
+ .dso-body {
160
+ padding: #{units.$u2} #{units.$u3};
161
+ }
162
+
163
+ .dso-footer {
164
+ min-height: auto;
165
+ overflow: auto;
166
+ padding: modal-variables.$footer-padding-small-modal-vh modal-variables.$footer-padding;
167
+ }
168
+ }
127
169
  }
128
170
 
129
171
  @mixin modal-wide-buttons() {
@@ -4,6 +4,9 @@
4
4
  $max-width: 640px;
5
5
  $max-height: 70vh;
6
6
 
7
+ $small-modal-vh: 380px;
8
+ $min-modal-height: 216px;
9
+
7
10
  $backdrop-bg: colors.$wit;
8
11
  $backdrop-opacity: 0.2;
9
12
  $content-bg: colors.$wit;
@@ -13,6 +16,8 @@ $close-icon-size: units.$u4;
13
16
  $close-icon-color: colors.$grasgroen;
14
17
 
15
18
  $header-padding: units.$u2;
19
+ $body-min-height: 6.5rem;
16
20
  $body-padding: units.$u4;
17
21
  $footer-padding: units.$u4;
22
+ $footer-padding-small-modal-vh: units.$u1;
18
23
  $footer-button-height: units.$u6;
package/src/dso.scss CHANGED
@@ -1,5 +1,6 @@
1
1
  // Global
2
2
  @use "global/font-faces";
3
+ @use "global/spacing";
3
4
  @use "global/utilities";
4
5
 
5
6
  // Components
@@ -27,10 +28,10 @@
27
28
  @use "components/definition-list/definition-list";
28
29
  @use "components/delete/delete";
29
30
  @use "components/description/description";
31
+ @use "components/document-component/document-component";
30
32
  @use "components/document-header/document-header";
31
33
  @use "components/document-list/document-list";
32
34
  @use "components/dropdown-menu/dropdown-menu";
33
- @use "components/expandable-heading/expandable-heading.scss";
34
35
  @use "components/field-label/field-label";
35
36
  @use "components/fieldset/fieldset";
36
37
  @use "components/footer/footer";
@@ -0,0 +1,7 @@
1
+ @use "../variables/units.scss";
2
+
3
+ // Create space between action list and form buttons
4
+ // To Do: integrate this with things to come within this file.
5
+ :where(dso-action-list) + :where(.dso-form-buttons) {
6
+ margin-block-start: units.$vertical-spacing-xlarge;
7
+ }
File without changes
@@ -1,37 +0,0 @@
1
- @use "../../variables/colors";
2
- @use "../../variables/units";
3
-
4
- dso-expandable-heading {
5
- *[slot="addons-end"] {
6
- margin-left: units.$u1;
7
- }
8
-
9
- &.dso-del,
10
- &.dso-ins {
11
- padding-block: units.$u2 units.$u1 * 0.5;
12
-
13
- a {
14
- color: colors.$zwart;
15
- }
16
-
17
- .dso-annotation-header,
18
- .dso-annotation-content {
19
- background-color: rgba(255, 255, 255, 0.4);
20
- }
21
-
22
- .dso-annotation-header {
23
- border-bottom: 2px solid colors.$wit;
24
- border-left: 1px solid colors.$grijs-20;
25
- border-right: 1px solid colors.$grijs-20;
26
- border-top: 1px solid colors.$grijs-20;
27
- margin-bottom: -2px;
28
- }
29
-
30
- .dso-annotation-content {
31
- border-bottom: 1px solid colors.$grijs-20;
32
- border-left: 1px solid colors.$grijs-20;
33
- border-right: 1px solid colors.$grijs-20;
34
- padding-top: units.$u2 + 2px;
35
- }
36
- }
37
- }
@@ -1 +0,0 @@
1
- # `<dso-expandable-heading>`