mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
60 lines
1.2 KiB
SCSS
60 lines
1.2 KiB
SCSS
@import '../constants/dimensions';
|
|
@import '../constants/colors';
|
|
|
|
.modal {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
grid-template-rows: 1fr;
|
|
position: absolute;
|
|
z-index: 1000;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(20, 20, 20, 0.5);
|
|
padding: $padding-xl;
|
|
|
|
.modal__header {
|
|
border-top-left-radius: $radius-md;
|
|
border-top-right-radius: $radius-md;
|
|
border-bottom: 1px solid $hl-md;
|
|
height: $line-height-md;
|
|
font-size: $font-size-lg;
|
|
line-height: $line-height-md;
|
|
padding: 0 $padding-md;
|
|
position: relative;
|
|
background-color: $bg-light;
|
|
|
|
.modal__close-btn {
|
|
position: absolute;
|
|
height: 100%;
|
|
right: 0;
|
|
}
|
|
}
|
|
|
|
.modal__content {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
grid-template-rows: auto 1fr auto;
|
|
margin: auto;
|
|
background: $bg-super-light;
|
|
color: $font-super-light-bg;
|
|
border-radius: $radius-md;
|
|
box-sizing: border-box;
|
|
box-shadow: 0 0 2rem 0 rgba(0, 0, 0, 0.5);
|
|
width: $modal-width;
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
}
|
|
|
|
.modal__body {
|
|
overflow: auto;
|
|
}
|
|
|
|
.modal__footer {
|
|
border-bottom-left-radius: $radius-md;
|
|
border-bottom-right-radius: $radius-md;
|
|
border-top: 1px solid $hl-md;
|
|
}
|
|
}
|