mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-08-21 05:21:28 +02:00
fix(dialog.scss): fix position of peusedo element
border is not visible when opening dark dialog
This commit is contained in:
@@ -147,8 +147,8 @@ div.containers > .nes-container {
|
|||||||
bottom: -4px;
|
bottom: -4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#dialogs > section + section {
|
#dialogs > section {
|
||||||
margin-top: 1.5rem;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
#dialogs .dialog-menu {
|
#dialogs .dialog-menu {
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
.nes-dialog {
|
.nes-dialog {
|
||||||
padding: 1.5rem 2rem;
|
padding: 1.5rem 2rem;
|
||||||
|
border-width: $border-size;
|
||||||
|
|
||||||
> .backdrop,
|
> .backdrop,
|
||||||
&::backdrop {
|
&::backdrop {
|
||||||
@@ -18,19 +19,20 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.is-dark {
|
&.is-dark {
|
||||||
|
position: relative;
|
||||||
color: $background-color;
|
color: $background-color;
|
||||||
background-color: $base-color;
|
background-color: $base-color;
|
||||||
border-color: $background-color;
|
border-color: $background-color;
|
||||||
|
|
||||||
&:not(.is-rounded)::after {
|
&:not(.is-rounded)::before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -$border-size * 1.8;
|
top: -$border-size * 2;
|
||||||
right: -$border-size * 1.8;
|
right: -$border-size * 2;
|
||||||
bottom: -$border-size * 1.8;
|
bottom: -$border-size * 2;
|
||||||
left: -$border-size * 1.8;
|
left: -$border-size * 2;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
content: "";
|
content: "";
|
||||||
background-color: $base-color;
|
border: $border-size solid $base-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user