MDM/mdm-front/src/pages/DevicesPage/components/AddDeviceModal/AddDeviceModal.scss

163 lines
2.4 KiB
SCSS

@use '../../../../shared/styles/variables' as *;
.add-device-modal__overlay {
position: fixed;
inset: 0;
z-index: 80;
background: rgba(15, 23, 42, 0.42);
backdrop-filter: blur(2px);
animation: addDeviceOverlayShow 0.18s ease;
}
.add-device-modal {
position: fixed;
z-index: 90;
top: 50%;
left: 50%;
width: min(520px, calc(100vw - 32px));
padding: 24px;
border-radius: 24px;
background: #ffffff;
box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
transform: translate(-50%, -50%);
animation: addDeviceModalShow 0.2s ease;
}
.add-device-modal__header {
margin-bottom: 22px;
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
}
.add-device-modal__title {
margin: 0;
color: #111827;
font-size: 24px;
font-weight: 650;
}
.add-device-modal__description {
margin: 6px 0 0;
color: $gray50;
font-size: 15px;
font-weight: 400;
line-height: 1.4;
}
.add-device-modal__close {
width: 40px;
height: 40px;
border: none;
border-radius: 12px;
background: $color-bg;
display: inline-flex;
align-items: center;
justify-content: center;
color: $gray50;
cursor: pointer;
transition: 0.2s ease;
&:hover {
color: $blue;
background: $gray20;
}
}
.add-device-qr {
display: flex;
flex-direction: column;
gap: 14px;
p {
margin: 0;
color: $gray50;
font-size: 14px;
line-height: 1.45;
text-align: center;
}
}
.add-device-qr__box {
min-height: 260px;
border-radius: 22px;
border: 1px dashed rgba(3, 29, 154, 0.32);
background: $color-bg;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 14px;
color: $blue;
span {
color: #111827;
font-size: 18px;
font-weight: 600;
}
}
.add-device-modal__footer {
margin-top: 22px;
display: flex;
justify-content: flex-end;
}
.add-device-cancel {
height: 42px;
padding: 0 18px;
border: none;
border-radius: 14px;
background: $color-bg;
color: $gray50;
font-size: 15px;
font-weight: 600;
cursor: pointer;
transition: 0.2s ease;
&:hover {
background: $gray20;
color: #111827;
}
}
@keyframes addDeviceOverlayShow {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes addDeviceModalShow {
from {
opacity: 0;
transform: translate(-50%, -48%) scale(0.98);
}
to {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}
}