nimbus-site/themes/navy/source/scss/popup.scss

280 lines
4.5 KiB
SCSS

.popup-wrap {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: auto;
box-sizing: border-box;
z-index: 700;
visibility: hidden;
pointer-events: none;
}
.popup-wrap.popup--shown {
visibility: visible;
pointer-events: all;
}
.popup-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(120, 135, 148, .25);
z-index: 800;
opacity: 0;
transform: translate3d(0, 0 ,0) scale(1);
visibility: hidden;
transition: visibility .5s linear 0s, opacity .2s ease;
}
.popup--shown .popup-overlay {
transition-delay: 0s;
visibility: visible;
opacity: 1;
transform: translate3d(0, 0 ,0) scale(1);
}
.popup {
box-sizing: border-box;
width: 960px;
margin: 132px auto 40px;
background-color: rgba(255, 255, 255, 1);
border-radius: 10px;
padding: 0px;
position: relative;
box-shadow: 0 3px 7px 0 rgba(175,192,202,0.41);
z-index: 900;
opacity: 0;
transform: translate3d(0, 15px ,0) scale(.96);
visibility: hidden;
transition-delay: .2s;
transition: visibility .5s linear 0s, opacity .2s ease, transform .4s cubic-bezier(0.175, 0.885, 0.135, 1.425);
}
.popup--shown .popup {
transition-delay: 0s;
visibility: visible;
opacity: 1;
transform: translate3d(0, 0 ,0) scale(1);
}
.popup__title {
padding: 32px 0 12px 32px;
}
.popup__inner {
padding: 0 32px 32px 32px;
}
.popup__text {
font-size: 18px;
line-height: 26px;
padding: 0 32px 24px 32px;
color: #70808D;
}
.popup__button {
position: absolute;
top: -69px;
width: 42px;
height: 42px;
background-color: #ffffff;
border-radius: 50%;
opacity: .7;
cursor: pointer;
transition: opacity .2s ease;
}
.popup__button:hover {
opacity: 1
}
.popup__button::after {
content: "";
display: block;
position: absolute;
top: 13px;
left: 13px;
width: 16px;
height: 16px;
background-size: 16px;
background-repeat: no-repeat;
}
.popup__button.popup__button--close {
right: 0;
}
.popup__button.popup__button--close::after {
background-image: url(../img/icon-close.svg);
}
.cards--community {
margin: 0 0 52px 0;
}
.cards--community .card-inner {
height: auto;
min-height: 170px;
display: flex;
align-items: center;
flex-direction: column;
text-align: center;
padding: 24px;
background-color: rgba(67, 96, 223, .1);
border-radius: 16px;
margin: 12px;
text-decoration: none;
}
.cards--community .card-inner:hover {
background-color: rgba(67, 96, 223, .14);
}
.popup .card h4 {
padding: 0 0 4px 0;
}
.cards--community a h4 {
color: $colorBlack;
padding: 0 0 8px 0;
}
.cards--community a p {
color: rgba(67, 96, 223, .6);
}
.separator {
border-bottom: 1px solid #e8ebec;
width: 100%;
height: 1px;
background-color: transparent;
}
.popup--projects .separator {
margin: 32px 0;
}
.community-icon {
width: 32px;
height: 32px;
background-size: 32px;
background-repeat: no-repeat;
margin: 0 0 24px 0;
}
.community-icon--join {
background-image: url(../img/icon-join-blue.svg);
}
.community-icon--discussion {
background-image: url(../img/icon-discussion-blue.svg);
}
.community-icon--contrubute {
background-image: url(../img/icon-contribute-blue.svg);
}
.popup--community h5,
.popup--projects h5 {
padding: 0 0 24px 0;
}
.cards-community-more .card-content {
height: auto;
min-height: 112px;
overflow: hidden;
}
.popup--projects .cards-community-more .card-content {
height: auto;
min-height: 142px;
overflow: hidden;
}
@media (max-width: 1008px) {
.popup-wrap {
padding: 0 24px;
}
.popup {
width: 100%;
}
.card-community-more__link {
margin: 8px 0 0 0;
}
}
@media (max-width: 800px) {
.cards--community {
margin: 0 0 40px 0
}
.popup--community h5 {
padding-bottom: 16px;
}
.cards--community.cards--community--light .card-inner {
height: auto;
min-height: 0
}
.cards-community-more .card-content {
height: auto;
min-height: 0;
padding: 0 0 8px 0;
}
.popup--projects .cards-community-more .card-content {
height: auto;
min-height: 0;
padding: 0 0 8px 0;
}
.cards-community-more .card-content h4 {
padding: 8px 0 4px 0;
}
.popup__inner {
padding: 0 24px 24px 24px;
}
.popup__title {
font-size: 18px;
padding: 24px 0 12px 24px;
}
}
@media (max-width: 600px) {
.popup-wrap {
padding: 0 16px;
}
.popup {
margin: 96px auto 64px;
}
.popup__text {
font-size: 16px;
line-height: 24px;
padding: 0 16px 16px 16px;
}
}