dibk-design 6.0.0 → 6.0.1
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.
|
@@ -63,7 +63,7 @@ const Dialog = props => {
|
|
|
63
63
|
}, props.closeButton ? _react.default.createElement("button", {
|
|
64
64
|
"aria-label": "Lukk dialog",
|
|
65
65
|
onClick: props.onClickOutside,
|
|
66
|
-
className: _DialogModule.default.closeButton
|
|
66
|
+
className: (0, _helpers.classNameArrayToClassNameString)([_DialogModule.default.closeButton, props.noPadding && _DialogModule.default.noPadding])
|
|
67
67
|
}, _react.default.createElement("img", {
|
|
68
68
|
src: _xSymbol.default,
|
|
69
69
|
alt: ""
|
|
@@ -38,14 +38,10 @@
|
|
|
38
38
|
.dialogContainer {
|
|
39
39
|
display: flex;
|
|
40
40
|
flex-wrap: wrap;
|
|
41
|
-
|
|
41
|
+
overflow: auto;
|
|
42
42
|
.dialogContent {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
@media only screen and (min-width: $screen-sm) {
|
|
46
|
-
padding: 60px 40px;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
43
|
+
background-color: #fff;
|
|
44
|
+
width: 100%;
|
|
49
45
|
}
|
|
50
46
|
.dialogContent {
|
|
51
47
|
position: relative;
|
|
@@ -56,15 +52,7 @@
|
|
|
56
52
|
color: var(--color-primary, $color-primary);
|
|
57
53
|
display: inline-block;
|
|
58
54
|
position: absolute;
|
|
59
|
-
right: 7px;
|
|
60
|
-
top: 4px;
|
|
61
|
-
text-decoration: underline;
|
|
62
|
-
font-size: 19px;
|
|
63
55
|
cursor: pointer;
|
|
64
|
-
@media only screen and (min-width: $screen-sm) {
|
|
65
|
-
right: 15px;
|
|
66
|
-
top: 10px;
|
|
67
|
-
}
|
|
68
56
|
&:hover {
|
|
69
57
|
text-decoration: none;
|
|
70
58
|
}
|
|
@@ -83,6 +71,29 @@
|
|
|
83
71
|
}
|
|
84
72
|
.dialogContainer {
|
|
85
73
|
animation: 1000ms cubic-bezier(0.22, 1, 0.36, 1) 0s 1 normal none running modalInVertical;
|
|
74
|
+
max-height: 90vh;
|
|
75
|
+
.dialogContent {
|
|
76
|
+
&:not(.noPadding) {
|
|
77
|
+
padding: 30px 15px;
|
|
78
|
+
@media only screen and (min-width: $screen-sm) {
|
|
79
|
+
padding: 60px 40px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
.closeButton {
|
|
85
|
+
&:not(.noPadding) {
|
|
86
|
+
right: 5px;
|
|
87
|
+
top: 8px;
|
|
88
|
+
@media only screen and (min-width: $screen-sm) {
|
|
89
|
+
right: 10px;
|
|
90
|
+
top: 13px;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
&.noPadding {
|
|
94
|
+
right: 0;
|
|
95
|
+
top: 0;
|
|
96
|
+
}
|
|
86
97
|
}
|
|
87
98
|
}
|
|
88
99
|
&.isSidebar {
|
|
@@ -91,6 +102,21 @@
|
|
|
91
102
|
.dialogContainer {
|
|
92
103
|
height: 100%;
|
|
93
104
|
width: var(--max-width, auto);
|
|
105
|
+
.dialogContent {
|
|
106
|
+
&:not(.noPadding) {
|
|
107
|
+
padding: 24px;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
.closeButton {
|
|
112
|
+
&:not(.noPadding) {
|
|
113
|
+
right: 5px;
|
|
114
|
+
top: 8px;
|
|
115
|
+
}
|
|
116
|
+
&.noPadding {
|
|
117
|
+
right: 0;
|
|
118
|
+
top: 0;
|
|
119
|
+
}
|
|
94
120
|
}
|
|
95
121
|
&.left {
|
|
96
122
|
margin: 0 auto 0 0;
|