w-aura/src/components/Modal/styles.module.css
Денис Катаев fae4569c4f Preview/discount pages
2024-02-11 05:44:06 +00:00

79 lines
1.3 KiB
CSS

.modal {
background: rgba(85, 84, 85, 0.8);
height: 100dvh;
position: fixed;
left: 0;
top: 0;
/* margin-inline: 50%; */
/* overflow: scroll; */
/* -webkit-transform: translate(-50%);
transform: translate(-50%); */
width: 100vw;
z-index: 2000;
}
.modal-content {
position: absolute;
background: #fff;
width: 100%;
max-width: 375px;
max-height: calc(100vh - 200px);
overflow: scroll;
top: 50%;
left: 50%;
z-index: 3;
border-radius: 16px;
padding: 64px 24px 16px;
transform: translate(-50%, -50%);
}
.modal-content::-webkit-scrollbar {
width: 0;
}
.modal-close-btn {
display: flex;
position: absolute;
justify-content: center;
align-items: center;
border: none;
border-radius: 20px;
height: 20px;
aspect-ratio: 1 / 1;
padding: 0;
left: 15px;
top: 16px;
cursor: pointer;
background-repeat: no-repeat;
background-position: center;
background-color: transparent;
background-image: url(./close.svg);
}
.modal .main-btn {
font-size: 14px;
font-weight: 400;
height: 48px;
line-height: 18px;
margin-top: 16px;
max-width: 100%;
min-height: 48px;
width: 100%;
}
.modal .main-btn:disabled {
color: #121620;
background: #c7c7c7;
cursor: not-allowed;
opacity: 100%;
}
.modal .main-btn svg {
margin-right: 12px;
fill: #fff;
}
.modal .main-btn:disabled svg {
fill: #121620;
}