finished styling popup

This commit is contained in:
Yusuf Ipek
2021-05-05 09:35:38 +03:00
parent 7a317c66c3
commit 366161e0ca
4 changed files with 43 additions and 4 deletions
+35
View File
@@ -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;
}
}
}