blob: 6b38bf08b09aa1dad43399c8c0c1ddc700fc1c3a [file] [log] [blame]
Copybara botbe50d492023-11-30 00:16:42 +01001dialog {
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
18dialog:not([open]) {
19 display: none;
20}
21
22dialog + .backdrop {
23 position: fixed;
24 top: 0; right: 0; bottom: 0; left: 0;
25 background: rgba(0,0,0,0.1);
26}
27
28._dialog_overlay {
29 position: fixed;
30 top: 0; right: 0; bottom: 0; left: 0;
31}
32
33dialog.fixed {
34 position: fixed;
35 top: 50%;
36 transform: translate(0, -50%);
37}