@oslokommune/punkt-css 12.37.0 → 12.37.2
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 +17 -0
- package/dist/css/components/modal.css +29 -1
- package/dist/css/components/modal.min.css +1 -1
- package/dist/css/pkt-components.css +29 -1
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt-docs.css +29 -1
- package/dist/css/pkt-docs.min.css +1 -1
- package/dist/css/pkt.css +29 -1
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/components/_modal.scss +29 -2
- package/package.json +2 -2
|
@@ -10,16 +10,34 @@ $pkt-modal-gap: map.get(variables.$spacing, 'size-32');
|
|
|
10
10
|
$pkt-modal-padding-sides: map.get(variables.$spacing, 'size-40');
|
|
11
11
|
|
|
12
12
|
.pkt-modal {
|
|
13
|
+
&:not([open]) {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
13
16
|
&[open] {
|
|
14
17
|
background-color: transparent;
|
|
15
18
|
border: none;
|
|
16
19
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
17
20
|
padding: 0;
|
|
18
21
|
max-height: 90vh;
|
|
22
|
+
max-height: 90svh;
|
|
19
23
|
display: block;
|
|
20
24
|
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
@supports not (selector(::backdrop)) {
|
|
26
|
+
position: fixed;
|
|
27
|
+
top: 50%;
|
|
28
|
+
left: 50%;
|
|
29
|
+
transform: translate(-50%, -50%);
|
|
30
|
+
& + .backdrop {
|
|
31
|
+
background-color: rgba(0, 0, 0, 0.55);
|
|
32
|
+
position: fixed;
|
|
33
|
+
top: 0;
|
|
34
|
+
left: 0;
|
|
35
|
+
width: 100vw;
|
|
36
|
+
height: 100vh;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&::backdrop {
|
|
23
41
|
background-color: rgba(0, 0, 0, 0.55);
|
|
24
42
|
}
|
|
25
43
|
|
|
@@ -239,3 +257,12 @@ body.pkt-modal--open {
|
|
|
239
257
|
) {
|
|
240
258
|
margin: 0;
|
|
241
259
|
}
|
|
260
|
+
|
|
261
|
+
// Polyfill specific styles
|
|
262
|
+
._dialog_overlay {
|
|
263
|
+
position: fixed;
|
|
264
|
+
top: 0;
|
|
265
|
+
right: 0;
|
|
266
|
+
bottom: 0;
|
|
267
|
+
left: 0;
|
|
268
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-css",
|
|
3
|
-
"version": "12.37.
|
|
3
|
+
"version": "12.37.2",
|
|
4
4
|
"description": "CSS-rammeverket til Punkt, et designsystem laget av Oslo Origo",
|
|
5
5
|
"homepage": "https://punkt.oslo.kommune.no",
|
|
6
6
|
"author": "Team Designsystem, Oslo Origo",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"url": "https://github.com/oslokommune/punkt/issues"
|
|
58
58
|
},
|
|
59
59
|
"license": "MIT",
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "d6608a66551554a1f07952e1c1f7ffe414190a54"
|
|
61
61
|
}
|