mirror of
https://github.com/yusufipk/natours-react.git
synced 2026-09-11 19:16:11 +00:00
finished styling popup
This commit is contained in:
@@ -6,6 +6,9 @@
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 3000;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition: all 0.3s;
|
||||
|
||||
&__content {
|
||||
@include center-horizontal-vertical;
|
||||
@@ -15,6 +18,9 @@
|
||||
border-radius: 3px;
|
||||
display: table;
|
||||
overflow: hidden;
|
||||
opacity: 0;
|
||||
transform: translate(-50%, -50%) scale(0.5);
|
||||
transition: all 0.4s 0.2s;
|
||||
}
|
||||
|
||||
&__left {
|
||||
@@ -44,4 +50,33 @@
|
||||
column-rule: 1px solid $color-grey-light-2;
|
||||
hyphens: auto;
|
||||
}
|
||||
|
||||
&:target {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
&:target &__content {
|
||||
opacity: 1;
|
||||
transform: translate(-50%, -50%) scale(1);
|
||||
}
|
||||
|
||||
&__close {
|
||||
&:link,
|
||||
&:visited {
|
||||
color: $color-grey-dark;
|
||||
position: absolute;
|
||||
top: 2.5rem;
|
||||
right: 2.5rem;
|
||||
font-size: $medium-font-size;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
transition: all 0.2s;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $color-primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user