Blame Raw
· · · 37 lines (665 B)
0 contributors
1.poly_dialog {
2 position: absolute;
3 left: 0; right: 0;
4 width: -moz-fit-content;
5 width: -webkit-fit-content;
6 width: fit-content;
7 height: -moz-fit-content;
8 height: -webkit-fit-content;
9 height: fit-content;
10 margin: auto;
11 border: solid;
12 padding: 1em;
13 background: white;
14 color: black;
15 display: block;
16}
17
18.poly_dialog:not([open]) {
19 display: none;
20}
21
22.poly_dialog + .backdrop {
23 position: fixed;
24 top: 0; right: 0; bottom: 0; left: 0;
25 background: rgba(0,0,0,0.1);
26}
27
28._poly_dialog_overlay {
29 position: fixed;
30 top: 0; right: 0; bottom: 0; left: 0;
31}
32
33.poly_dialog.fixed {
34 position: fixed;
35 top: 50%;
36 transform: translate(0, -50%);
37}