mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-08-20 04:51:21 +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;
|
||||
}
|
||||
|
||||
#dialogs > section + section {
|
||||
margin-top: 1.5rem;
|
||||
#dialogs > section {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#dialogs .dialog-menu {
|
||||
|
@@ -1,5 +1,6 @@
|
||||
.nes-dialog {
|
||||
padding: 1.5rem 2rem;
|
||||
border-width: $border-size;
|
||||
|
||||
> .backdrop,
|
||||
&::backdrop {
|
||||
@@ -18,19 +19,20 @@
|
||||
}
|
||||
}
|
||||
&.is-dark {
|
||||
position: relative;
|
||||
color: $background-color;
|
||||
background-color: $base-color;
|
||||
border-color: $background-color;
|
||||
|
||||
&:not(.is-rounded)::after {
|
||||
&:not(.is-rounded)::before {
|
||||
position: absolute;
|
||||
top: -$border-size * 1.8;
|
||||
right: -$border-size * 1.8;
|
||||
bottom: -$border-size * 1.8;
|
||||
left: -$border-size * 1.8;
|
||||
top: -$border-size * 2;
|
||||
right: -$border-size * 2;
|
||||
bottom: -$border-size * 2;
|
||||
left: -$border-size * 2;
|
||||
z-index: -1;
|
||||
content: "";
|
||||
background-color: $base-color;
|
||||
border: $border-size solid $base-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user