File: /var/www/innodrive/src/scss/blocks/modal.scss
.modal {
z-index: 1000;
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
display: flex;
opacity: 0;
align-items: flex-start;
justify-content: center;
padding: 40px;
background-color: rgba(0, 0, 0, 0.62);
pointer-events: none;
transition: opacity 0.4s linear;
overflow: auto;
&.js-shown {
opacity: 1;
pointer-events: all;
.modal__cities {
flex-direction: row;
flex-wrap: wrap;
}
}
}
.modal__inner {
top: 20vh;
width: 100%;
position: relative;
padding: 15px 60px;
background-color: #fff;
.modal__response {
background: transparent;
border: none;
box-shadow: none;
border-radius: 0;
position: unset;
transform: none;
margin: 0;
padding: 30px;
max-width: none;
width: 100%;
> div {
margin-top: 64px;
}
}
&--cart {
max-width: 915px;
form {
width: 100%;
padding: 11px 0 30px;
input[type="text"] {
width: calc(50% - 15px);
}
.contacts-form__fieldset {
margin-top: 32px;
&:first-of-type {
margin-top: 0;
}
&--policy {
justify-content: flex-start;
max-width: 700px;
margin: 35px auto 0;
font-size: 16px;
line-height: 19px;
text-align: left;
}
}
}
}
&--order {
max-width: 730px;
}
&--callback {
max-width: 570px;
form {
width: 100%;
padding: 0 0 30px;
input[type="text"] {
width: 100%;
&:first-of-type {
margin-right: 0;
}
}
.contacts-form__fieldset {
flex-wrap: wrap;
&--policy {
flex-wrap: nowrap;
justify-content: flex-start;
max-width: 700px;
margin: 30px auto 0;
text-align: left;
}
}
}
.modal__order-buttons {
justify-content: center;
}
}
&--city {
max-width: 780px;
form {
width: 100%;
padding: 0 0 30px;
input[type="text"] {
width: 100%;
}
}
.modal__cities {
> p {
display: none;
flex-grow: 1;
margin: 0;
margin-right: 20px;
line-height: 2;
color: #939393;
}
&.js-no-match {
> p {
display: block;
}
}
}
}
}
.modal__close {
@include reset-button;
position: absolute;
right: -23px;
top: -23px;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: white;
svg {
fill: #fff;
}
&:hover {
svg {
fill: $color-primary-blue;
}
}
}
#modal-analog {
.modal__view {
.page-heading {
color: black;
span {
background: none;
}
&::before {
background: none;
}
}
}
}
.modal__view {
.page-heading {
padding: 0;
text-transform: uppercase;
font-size: 24px;
span {
padding-left: 0;
padding-right: 10px;
}
&::before {
top: 12px;
left: 0;
right: 0;
}
&.cart-header {
span {
&:not(:first-child) {
display: none;
}
}
&.js-cart-is-empty {
span {
&:first-child {
display: none;
}
&:not(:first-child) {
display: block;
}
}
}
}
}
}
.modal__order-list {
@include reset-list;
display: flex;
align-items: flex-start;
flex-wrap: wrap;
width: 100%;
padding-top: 6px;
}
.modal__order-item {
display: flex;
align-items: baseline;
width: 100%;
margin-top: 7px;
padding-bottom: 10px;
border-bottom: 1px solid $color-pale-grey;
h4 {
flex-grow: 1;
margin: 0;
margin-right: 20px;
font-weight: 300;
font-size: 16px;
line-height: 17.5px;
color: #939393;
a {
text-decoration: underline;
}
}
.card-buttons__quant {
width: auto;
margin-left: auto;
margin-bottom: 0;
padding-top: 0;
}
}
.modal__order-remove {
@include reset-button;
margin-left: 37px;
padding: 0 13px;
height: 35px;
> * {
pointer-events: none;
}
svg {
top: 6px;
fill: #c06060;
}
}
.modal__order-buttons {
display: flex;
justify-content: space-between;
font-size: 0;
.button-link {
margin: 0;
margin-top: 15px;
&--with-icon {
svg {
left: 30px;
}
}
&:not(:last-of-type) {
//margin-right: 10px;
}
}
}
.modal__cities {
display: flex;
padding-bottom: 20px;
ul {
@include reset-list;
width: 33.3333%;
}
li {
font-size: 18px;
line-height: 30px;
color: #939393;
&.hidden {
display: none;
}
a {
font-weight: inherit;
&.js-current {
font-weight: 700;
}
}
}
}
.modal__response {
background: #f9fafc;
border: 1px solid #c4c3c3;
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
border-radius: 5px;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
margin: 0 16px;
padding: 136px 70px 42px 70px;
max-width: 677px;
width: 100%;
z-index: 10;
p {
font-weight: 400;
font-size: 24px;
line-height: 31px;
text-align: center;
color: #000;
margin: 0;
}
> div {
margin-top: 106px;
text-align: center;
.button-link {
min-width: 180px;
}
}
}
@include media("tablet-m") {
.modal__order-buttons {
flex-wrap: wrap;
justify-content: center;
max-width: 350px;
margin: 30px auto 0;
.button-link {
margin-top: 15px;
}
}
}
@include media("tablet-s") {
.modal__response {
p {
font-size: 9px;
line-height: 12px;
}
}
#modal-cart {
top: 60px;
padding: 0;
background-color: #fff;
.modal__inner {
top: 0;
bottom: 0;
max-width: unset;
padding: 15px 15px;
}
.contacts-form {
max-width: 450px;
margin: 0 auto;
padding: 30px 0;
}
.contacts-form__fieldset {
&:not(.contacts-form__fieldset--policy):not(:first-of-type) {
margin-top: 20px;
}
input[type="text"] {
width: 100%;
//max-width: 450px;
}
&--policy {
margin-top: 25px;
}
}
}
#modal-city {
z-index: 9999;
padding: 0;
background-color: #fff;
.modal__inner {
top: 0;
bottom: 0;
max-width: unset;
padding: 15px 15px;
}
}
#modal-callback {
.modal__inner {
padding: 7px 25px;
}
.contacts-form {
input {
//height: 25px;
//padding: 8px;
//font-size: 8px;
}
}
.contacts-form__fieldset {
&--policy {
margin-top: 13px;
}
}
.modal__order-buttons {
.button-link {
margin-top: 5px;
}
}
}
.modal__inner {
padding: 15px 30px;
.modal__response {
padding-bottom: 10px;
}
form {
padding: 0 0 10px;
}
.contacts-form .contacts-form__fieldset {
&--policy {
label {
//margin-top: 0;
//font-size: 8px;
//line-height: 8px;
//&::before {
// top: 0.5px;
//}
//
//&::after {
// left: 2px;
//}
}
}
}
}
.modal__view {
.page-heading {
//font-size: 20px;
min-width: unset;
font-size: 16px;
&::before {
//top: 10px;
top: 8px;
}
}
}
#modal-cart,
#modal-city {
.modal__close {
z-index: 1;
top: 20px;
right: 0;
padding-right: 13px;
padding-left: 5px;
background-color: #fff;
svg.icon {
width: 16px;
height: 16px;
fill: #000;
}
}
}
.modal__close {
right: -15px;
top: -20px;
svg {
width: 10px;
height: 10px;
}
}
.modal__order-item {
margin-top: 12px;
h4 {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-size: 14px;
line-height: 1;
}
}
.modal__order-remove {
align-self: flex-start;
height: 25px;
margin-left: 0;
padding: 0 9px;
padding-right: 2px;
font-size: 11px;
line-height: 1;
svg.icon {
width: 5.5px;
height: 5.5px;
}
}
.modal__order-buttons {
max-width: 250px;
margin-top: 12px;
.button-link {
&:last-child {
order: -1;
}
&--with-icon {
svg.icon {
width: 18.5px;
height: 15px;
}
}
}
}
.modal__cities {
ul {
width: 50%;
+ ul {
//margin-left: 15px;
}
}
li {
font-size: 16px;
line-height: 26px;
a {
position: relative;
display: block;
padding-left: 25px;
&::before {
position: absolute;
top: 0;
left: 0;
width: auto;
height: auto;
box-shadow: none;
background-color: transparent;
content: "\f00c";
display: none;
margin-right: 20px;
font-family: 'Font Awesome 5 Pro', Helvetica, sans-serif;
font-weight: 300;
color: $color-primary-grey;
}
&.js-current {
&::before {
display: block;
}
}
}
}
}
}