updated modal styles

This commit is contained in:
andres alcocer
2021-10-08 20:38:30 -04:00
parent 8fcbe7adaa
commit 8ee1dc1bfd
3 changed files with 142 additions and 123 deletions

View File

@@ -1,6 +1,11 @@
import React from 'react' import React from 'react'
const backdrop = ({ toggleBackdrop, show }) => const backdrop = ({ toggleBackdrop, show }) =>
show ? <div onClick={toggleBackdrop} className='backdrop'></div> : null show ? (
<div
onClick={toggleBackdrop}
className={`backdrop ${show ? 'hideB' : ''}`}
></div>
) : null
export default backdrop export default backdrop

View File

@@ -5,6 +5,15 @@
z-index: 100; z-index: 100;
left: 0; left: 0;
top: 0; top: 0;
background-color: rgba($color-background, .7); animation: fadeIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
transition: all .3s; background-color: rgba($color-background, 0.7);
}
@keyframes fadeIn {
0% {
background: rgba(0, 0, 0, 0);
}
100% {
background: rgba(0, 0, 0, 0.7);
}
} }

View File

@@ -7,8 +7,8 @@
color: #fff; color: #fff;
height: 52rem; height: 52rem;
opacity: 0; opacity: 0;
box-shadow: 0 1.5rem 4rem rgba($color-dark, .15); box-shadow: 0 1.5rem 4rem rgba($color-dark, 0.15);
transition: all .3s; transition: all 0.3s;
@include responsive(tab_port) { @include responsive(tab_port) {
height: 38rem; height: 38rem;
@@ -18,7 +18,6 @@
height: 50rem; height: 50rem;
} }
&__container { &__container {
background: linear-gradient(90deg, #000 50%, transparent); background: linear-gradient(90deg, #000 50%, transparent);
width: 70%; width: 70%;
@@ -27,7 +26,12 @@
padding-left: 5rem; padding-left: 5rem;
@include responsive(tab_port) { @include responsive(tab_port) {
background: linear-gradient(90deg, rgb(0, 0, 0) 55%, rgba(0, 0, 0, 0.733), transparent); background: linear-gradient(
90deg,
rgb(0, 0, 0) 55%,
rgba(0, 0, 0, 0.733),
transparent
);
width: 88%; width: 88%;
} }
@@ -61,7 +65,7 @@
} }
&__episode { &__episode {
padding-top: .5rem; padding-top: 0.5rem;
font-size: 2rem; font-size: 2rem;
} }
@@ -99,13 +103,13 @@
cursor: pointer; cursor: pointer;
background-color: transparent; background-color: transparent;
color: #fff; color: #fff;
border: .5px solid $color-modal-grey-2; border: 0.5px solid $color-modal-grey-2;
border-radius: 2px; border-radius: 2px;
font-size: 1.5rem; font-size: 1.5rem;
margin-top: 2rem; margin-top: 2rem;
margin-right: 1rem; margin-right: 1rem;
padding: 1rem 2rem 1rem 2rem; padding: 1rem 2rem 1rem 2rem;
transition: all .2s; transition: all 0.2s;
@include responsive(phone) { @include responsive(phone) {
margin-top: 1rem; margin-top: 1rem;
@@ -130,7 +134,7 @@
} }
.show { .show {
transition: .5s .3s ease-out; transition: 0.3s 0.3s ease-out;
top: 25%; top: 25%;
left: 0; left: 0;
visibility: visible; visibility: visible;
@@ -139,4 +143,5 @@
.hide { .hide {
visibility: hidden; visibility: hidden;
transition: 0.3s ease-out;
} }