dso-toolkit 54.3.0 → 55.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 +88 -48
- package/package.json +10 -6
- package/src/components/accordion/accordion.scss +6 -2
- package/src/components/button-row/button-row.scss +11 -0
- package/src/components/list-button/list-button.mixins.scss +8 -38
- package/src/components/modal/modal.mixins.scss +47 -5
- package/src/components/modal/modal.variables.scss +5 -0
package/dist/dso.css
CHANGED
|
@@ -114,10 +114,10 @@ body {
|
|
|
114
114
|
margin-top: -4px;
|
|
115
115
|
padding: 20px 16px 16px;
|
|
116
116
|
}
|
|
117
|
-
.dso-accordion .dso-section-body *:first-child:not(.dso-info) {
|
|
117
|
+
.dso-accordion .dso-section-body > *:first-child:not(.dso-info) {
|
|
118
118
|
margin-top: 0;
|
|
119
119
|
}
|
|
120
|
-
.dso-accordion .dso-section-body *:last-child:not(.dso-info) {
|
|
120
|
+
.dso-accordion .dso-section-body > *:last-child:not(.dso-info) {
|
|
121
121
|
margin-bottom: 0;
|
|
122
122
|
}
|
|
123
123
|
.dso-accordion .dso-section-body .dso-rich-content + .dso-accordion,
|
|
@@ -692,6 +692,9 @@ body {
|
|
|
692
692
|
display: none;
|
|
693
693
|
}
|
|
694
694
|
|
|
695
|
+
dso-accordion-section > *:first-child:not(.dso-info) {
|
|
696
|
+
margin-top: 0;
|
|
697
|
+
}
|
|
695
698
|
dso-accordion-section > *:last-child:not(.dso-info) {
|
|
696
699
|
margin-bottom: 0;
|
|
697
700
|
}
|
|
@@ -2421,6 +2424,14 @@ a.dso-tertiary, a.dso-tertiary:visited {
|
|
|
2421
2424
|
.dso-button-row .dso-tertiary + .dso-tertiary {
|
|
2422
2425
|
margin-left: 0;
|
|
2423
2426
|
}
|
|
2427
|
+
.dso-button-row.dso-emphasized {
|
|
2428
|
+
background-color: #f2f2f2;
|
|
2429
|
+
gap: 32px;
|
|
2430
|
+
padding: 16px;
|
|
2431
|
+
}
|
|
2432
|
+
.dso-button-row.dso-emphasized .dso-tertiary {
|
|
2433
|
+
color: #000;
|
|
2434
|
+
}
|
|
2424
2435
|
|
|
2425
2436
|
dso-card[is-selectable], dso-card[has-image], .dso-card.dso-is-selectable, .dso-card.dso-has-image,
|
|
2426
2437
|
dso-card.dso-is-selectable,
|
|
@@ -6468,16 +6479,7 @@ ol.dso-list-unstyled {
|
|
|
6468
6479
|
background-color: #fff;
|
|
6469
6480
|
border-color: #39870c;
|
|
6470
6481
|
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
|
-
}
|
|
6482
|
+
box-shadow: inset 0 -1px 0 0 #39870c, inset 0 1px 0 0 #39870c, inset -1px 0 0 0 #39870c;
|
|
6481
6483
|
}
|
|
6482
6484
|
.dso-btn-group > *:active + .dso-input-number, .dso-btn-group > *:active + .dso-input-number:hover,
|
|
6483
6485
|
.dso-btn-group > *.active + .dso-input-number,
|
|
@@ -6497,24 +6499,6 @@ ol.dso-list-unstyled {
|
|
|
6497
6499
|
.dso-btn-group .dso-list-button {
|
|
6498
6500
|
padding-right: 15px;
|
|
6499
6501
|
}
|
|
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
6502
|
|
|
6519
6503
|
.dso-list-button {
|
|
6520
6504
|
display: inline-block;
|
|
@@ -6566,9 +6550,11 @@ ol.dso-list-unstyled {
|
|
|
6566
6550
|
border-width: 1px;
|
|
6567
6551
|
box-shadow: inset 0px 0px 0px 1px #39870c, inset -1px 0px 0px 0px #39870c;
|
|
6568
6552
|
}
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6553
|
+
@media screen and (min-width: 768px) {
|
|
6554
|
+
.dso-list-button.dso-selected.dso-single-count {
|
|
6555
|
+
border-right: 0;
|
|
6556
|
+
box-shadow: #39870c 0px 1px 0px 0px inset, #39870c 1px 0px 0px 0px inset, #39870c 0px -1px 0px 0px inset;
|
|
6557
|
+
}
|
|
6572
6558
|
}
|
|
6573
6559
|
.dso-list-button > span {
|
|
6574
6560
|
display: block;
|
|
@@ -6687,13 +6673,13 @@ mark {
|
|
|
6687
6673
|
}
|
|
6688
6674
|
.dso-modal .dso-dialog {
|
|
6689
6675
|
animation: 1s ease-out 0s 1 slideInFromTop;
|
|
6690
|
-
|
|
6676
|
+
background-color: #fff;
|
|
6677
|
+
box-shadow: 0 8px 24px 0 rgba(25, 25, 25, 0.4);
|
|
6691
6678
|
margin-left: auto;
|
|
6692
6679
|
margin-right: auto;
|
|
6680
|
+
margin-top: clamp(40px, 15vh, 15vh);
|
|
6693
6681
|
max-width: 640px;
|
|
6694
6682
|
opacity: 1;
|
|
6695
|
-
background-color: #fff;
|
|
6696
|
-
box-shadow: 0 8px 24px 0 rgba(25, 25, 25, 0.4);
|
|
6697
6683
|
}
|
|
6698
6684
|
.dso-modal .dso-header {
|
|
6699
6685
|
border-bottom: 1px solid #ccc;
|
|
@@ -6716,41 +6702,74 @@ mark {
|
|
|
6716
6702
|
top: 16px;
|
|
6717
6703
|
width: 32px;
|
|
6718
6704
|
}
|
|
6719
|
-
.dso-modal .dso-body {
|
|
6705
|
+
.dso-modal > .dso-dialog > .dso-body {
|
|
6720
6706
|
height: calc(100% - 96px - 1.5rem);
|
|
6721
6707
|
max-height: calc(70vh - 144px - 1.5em);
|
|
6722
6708
|
min-height: 1.5rem;
|
|
6723
6709
|
overflow-x: auto;
|
|
6724
6710
|
padding: 32px;
|
|
6725
6711
|
}
|
|
6726
|
-
.dso-modal .dso-body p {
|
|
6712
|
+
.dso-modal > .dso-dialog > .dso-body p {
|
|
6727
6713
|
margin: 0 0 16px;
|
|
6728
6714
|
}
|
|
6729
|
-
.dso-modal .dso-body ul,
|
|
6730
|
-
.dso-modal .dso-body ol {
|
|
6715
|
+
.dso-modal > .dso-dialog > .dso-body ul,
|
|
6716
|
+
.dso-modal > .dso-dialog > .dso-body ol {
|
|
6731
6717
|
margin-bottom: 16px;
|
|
6732
6718
|
}
|
|
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) {
|
|
6719
|
+
.dso-modal > .dso-dialog > .dso-body ul:not(.list-group):not(.dso-link-list):not(.dso-columns-list),
|
|
6720
|
+
.dso-modal > .dso-dialog > .dso-body ol:not(.list-group):not(.dso-link-list):not(.dso-columns-list) {
|
|
6735
6721
|
padding-inline-start: 24px;
|
|
6736
6722
|
}
|
|
6737
|
-
.dso-modal .dso-body pre {
|
|
6723
|
+
.dso-modal > .dso-dialog > .dso-body pre {
|
|
6738
6724
|
margin: 0 0 16px;
|
|
6739
6725
|
}
|
|
6740
|
-
.dso-modal .dso-body blockquote {
|
|
6726
|
+
.dso-modal > .dso-dialog > .dso-body blockquote {
|
|
6741
6727
|
padding: 16px 24px;
|
|
6742
6728
|
}
|
|
6743
|
-
.dso-modal .dso-body dso-highlight-box,
|
|
6744
|
-
.dso-modal .dso-body .dso-highlight-box {
|
|
6729
|
+
.dso-modal > .dso-dialog > .dso-body dso-highlight-box,
|
|
6730
|
+
.dso-modal > .dso-dialog > .dso-body .dso-highlight-box {
|
|
6745
6731
|
margin-bottom: 24px;
|
|
6746
6732
|
}
|
|
6747
|
-
.dso-modal .dso-body img {
|
|
6733
|
+
.dso-modal > .dso-dialog > .dso-body img {
|
|
6734
|
+
height: auto;
|
|
6735
|
+
max-width: 100%;
|
|
6736
|
+
}
|
|
6737
|
+
.dso-modal > .dso-dialog > dso-scrollable {
|
|
6738
|
+
height: calc(100% - 96px - 1.5rem);
|
|
6739
|
+
max-height: calc(70vh - 144px - 1.5em);
|
|
6740
|
+
min-height: 6.5rem;
|
|
6741
|
+
}
|
|
6742
|
+
.dso-modal > .dso-dialog > dso-scrollable .dso-body {
|
|
6743
|
+
padding: 32px;
|
|
6744
|
+
}
|
|
6745
|
+
.dso-modal > .dso-dialog > dso-scrollable .dso-body p {
|
|
6746
|
+
margin: 0 0 16px;
|
|
6747
|
+
}
|
|
6748
|
+
.dso-modal > .dso-dialog > dso-scrollable .dso-body ul,
|
|
6749
|
+
.dso-modal > .dso-dialog > dso-scrollable .dso-body ol {
|
|
6750
|
+
margin-bottom: 16px;
|
|
6751
|
+
}
|
|
6752
|
+
.dso-modal > .dso-dialog > dso-scrollable .dso-body ul:not(.list-group):not(.dso-link-list):not(.dso-columns-list),
|
|
6753
|
+
.dso-modal > .dso-dialog > dso-scrollable .dso-body ol:not(.list-group):not(.dso-link-list):not(.dso-columns-list) {
|
|
6754
|
+
padding-inline-start: 24px;
|
|
6755
|
+
}
|
|
6756
|
+
.dso-modal > .dso-dialog > dso-scrollable .dso-body pre {
|
|
6757
|
+
margin: 0 0 16px;
|
|
6758
|
+
}
|
|
6759
|
+
.dso-modal > .dso-dialog > dso-scrollable .dso-body blockquote {
|
|
6760
|
+
padding: 16px 24px;
|
|
6761
|
+
}
|
|
6762
|
+
.dso-modal > .dso-dialog > dso-scrollable .dso-body dso-highlight-box,
|
|
6763
|
+
.dso-modal > .dso-dialog > dso-scrollable .dso-body .dso-highlight-box {
|
|
6764
|
+
margin-bottom: 24px;
|
|
6765
|
+
}
|
|
6766
|
+
.dso-modal > .dso-dialog > dso-scrollable .dso-body img {
|
|
6748
6767
|
height: auto;
|
|
6749
6768
|
max-width: 100%;
|
|
6750
6769
|
}
|
|
6751
6770
|
.dso-modal .dso-footer {
|
|
6752
6771
|
min-height: 80px;
|
|
6753
|
-
padding:
|
|
6772
|
+
padding: 16px 32px;
|
|
6754
6773
|
text-align: right;
|
|
6755
6774
|
}
|
|
6756
6775
|
@media screen and (max-width: 767px) {
|
|
@@ -6799,6 +6818,27 @@ mark {
|
|
|
6799
6818
|
float: none;
|
|
6800
6819
|
}
|
|
6801
6820
|
}
|
|
6821
|
+
@media screen and (max-height: 380px) {
|
|
6822
|
+
.dso-modal .dso-dialog {
|
|
6823
|
+
margin-bottom: 8px;
|
|
6824
|
+
margin-top: 8px;
|
|
6825
|
+
min-height: 216px;
|
|
6826
|
+
}
|
|
6827
|
+
.dso-modal .dso-header {
|
|
6828
|
+
padding: 8px 16px;
|
|
6829
|
+
}
|
|
6830
|
+
.dso-modal .dso-header .dso-close {
|
|
6831
|
+
top: 8px;
|
|
6832
|
+
}
|
|
6833
|
+
.dso-modal .dso-body {
|
|
6834
|
+
padding: 16px 24px;
|
|
6835
|
+
}
|
|
6836
|
+
.dso-modal .dso-footer {
|
|
6837
|
+
min-height: auto;
|
|
6838
|
+
overflow: auto;
|
|
6839
|
+
padding: 8px 32px;
|
|
6840
|
+
}
|
|
6841
|
+
}
|
|
6802
6842
|
.dso-modal .dso-close::before {
|
|
6803
6843
|
background: url("./dso-icons.svg#img-times") no-repeat;
|
|
6804
6844
|
background-position: 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": "
|
|
5
|
+
"version": "55.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": "
|
|
31
|
-
"@storybook/addons": "
|
|
32
|
-
"@storybook/client-api": "
|
|
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
|
-
"
|
|
61
|
-
"
|
|
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
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
-
|
|
170
|
-
|
|
171
|
-
colors.$grasgroen 0px
|
|
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
|
-
|
|
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:
|
|
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;
|