59 lines
835 B
SCSS
59 lines
835 B
SCSS
@use "sass:color";
|
|
@use "../variables" as *;
|
|
|
|
dialog {
|
|
border: 3px solid $color-dark;
|
|
border-radius: 2%;
|
|
|
|
color: $color-dark;
|
|
background: $color-white;
|
|
|
|
padding-right: 5%;
|
|
}
|
|
|
|
dialog > form[method="dialog"] {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
line-height: 0px;
|
|
|
|
button {
|
|
padding-top: 6px;
|
|
padding-left: 3px;
|
|
font-size: 150%;
|
|
line-height: 0px;
|
|
color: $color-dark;
|
|
|
|
border: 0;
|
|
background: transparent;
|
|
&::before {
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
content: "\00d7"; // Nicer X
|
|
}
|
|
&:hover {
|
|
color: black;
|
|
transition: color 0.1s;
|
|
}
|
|
}
|
|
}
|
|
|
|
.shifted_dialog {
|
|
top: 50vh;
|
|
left: 50vw;
|
|
margin: 0;
|
|
}
|
|
|
|
.close_button {
|
|
color: red;
|
|
position: absolute;
|
|
top: 5%;
|
|
right: 2%;
|
|
background: rgba(0%,0%,0%,10%);
|
|
|
|
&:hover {
|
|
color: rgb(0%,100%,100%);
|
|
background: rgba(0%,0%,0%,80%);
|
|
}
|
|
}
|