StaticApps/src/theme/components/_modal.scss

80 lines
1.2 KiB
SCSS

v-modal-container {
display: none;
&.open {
display: flex;
}
justify-content: center;
align-items: center;
width: 100vw;
height: 100vh;
position: absolute;
top: 0;
left: 0;
&:after {
content: '';
position: absolute;
z-index: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, .7);
}
v-modal {
display: block;
max-width: 768px;
min-width: 300px;
z-index: 1;
background-color: #333333;
color: #fff;
box-shadow: $box-shadow-1;
v-modal-head, v-modal-content {
display: block;
padding: .2rem;
}
v-modal-head {
background-color: #212121;
box-shadow: $box-shadow-1;
display: flex;
align-items: center;
.headline {
padding: .5rem 1rem;
font-weight: bold;
}
}
v-modal-content {
padding: 1rem;
.button-group {
display: flex;
justify-content: flex-end;
margin-top: 1rem;
.btn {
margin-right: 1rem;
}
}
}
.close-modal {
margin-left: auto;
fill: #fff;
cursor: pointer;
* {
pointer-events: none;
}
&.close {
display: none;
}
}
}
}