Files
kupshop/admin/static/scss/components/_modal.scss
2025-08-02 16:30:27 +02:00

136 lines
2.3 KiB
SCSS

.modal-content {
border: none;
border-radius: 0;
box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
color: $darkgray-dark;
}
.modal-header {
border-bottom: none;
}
.modal-body {
padding: 10px 15px 20px;
}
.modal-footer {
background-color: $gray-background;
border-top: none;
box-shadow: 0 0 1px rgba(0, 0, 0, .35);
padding: 10px;
}
.modal-header .close {
background: transparent;
color: $darkgray-dark;
display: flex;
align-items: center;
justify-content: center;
margin-top: 0;
opacity: 1;
position: absolute;
top: 0;
right: 0;
width: 35px;
height: 35px;
&:active,
&:hover,
&:focus {
background-color: $primary;
color: $white;
outline: 0;
}
}
.modal-open {
//overflow: auto !important; // body with .modal-open should not scroll (it makes no sense to scroll content covered behind modal)
.modal {
visibility: unset; // .modal might scroll
}
}
.modal {
overflow: hidden;
visibility: hidden;
}
.modal-dialog {
visibility: visible;
}
.modal-translations {
.modal-dialog {
width: 1340px;
max-width: calc(100% - 20px);
height: calc(100% - 20px);
margin: 10px auto;
}
.modal-content {
display: flex;
flex-direction: column;
height: 100%;
}
.modal-body {
flex-grow: 1;
> form {
display: flex;
flex-direction: column;
height: 100%;
> div:first-child {
flex-grow: 1;
padding-bottom: 10px;
}
}
}
}
.modal-llm {
.modal-header {
border-bottom: 1px solid $border-color-light;
h5 {
margin: 0;
}
}
.modal-dialog {
width: 900px;
max-width: calc(100% - 20px);
margin: 10px auto;
}
.modal-content {
display: flex;
flex-direction: column;
height: 100%;
}
.modal-body {
flex-grow: 1;
padding: 20px 15px 10px;
min-height: 395px;
> form {
display: flex;
flex-direction: column;
height: 100%;
> div:first-child {
flex-grow: 1;
padding-bottom: 10px;
}
}
}
.modal-footer {
background-color: $white;
border-top: 1px solid $border-color-light;
box-shadow: none;//0 0 1px rgba(0, 0, 0, .35);
padding: 15px;
}
}