54 lines
730 B
CSS
54 lines
730 B
CSS
body > div {
|
|
display: none;
|
|
}
|
|
|
|
body > div.on {
|
|
display: block;
|
|
}
|
|
|
|
#dialog {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
background: rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
#dialog > div {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%);
|
|
background: #fff;
|
|
padding: 0 1em;
|
|
border: 1px solid #aaa;
|
|
border-radius: 0.5em;
|
|
}
|
|
|
|
#dialog p.answers {
|
|
text-align: center;
|
|
}
|
|
|
|
#dialog button {
|
|
display: inline-block;
|
|
}
|
|
|
|
#error {
|
|
position: absolute;
|
|
z-index: 1;
|
|
top: 1em;
|
|
right: 1em;
|
|
max-width: 20em;
|
|
border: 1px solid #e0afac;
|
|
padding: 1em;
|
|
border-radius: 0.5em;
|
|
background: bisque;
|
|
cursor: pointer;
|
|
margin: 0;
|
|
display: none;
|
|
}
|
|
|
|
#error.on {
|
|
display: block;
|
|
}
|