insomnia/app/css/components/modal.scss
Gregory Schier 9e84bc4387 Workspaces, Cookies, and More! (#31)
* Start on workspace dropdown and upgrade fontawesome

* WorkspaceDropdown start and Elm components!

* Lots of CSS shit

* Refactor some db stuff and move filter out of sidebar

* Adjust dropdown css

* Handle duplicate header names, and stuff

* Shitty cookies tab

* fixed cookie table a bit

* Modal refactor

* Starteed cookie modal design

* Better cookie storage and filter cookie modal

* Cookie editor round 1

* Fix kve cursor jumping and form encoding templating

* New cookies now show up in filter

* Checkpoint

* Stuff and fix environments css

* Added manage cookies button to cookie pane

* Fix accidental sidebar item drag on sidebar resize

* Environments modal is looking pretty good now

* Pretty much done environments nad cookies

* Some changes

* Fixed codemirror in modals

* Fixed some things

* Add basic proxy support

* Updated shortcuts

* Code snippet generation

* Some style

* bug fix

* Code export now gets cookies for correct domain
2016-08-15 10:04:36 -07:00

103 lines
1.9 KiB
SCSS

@import '../constants/dimensions';
@import '../constants/colors';
.modal {
display: none;
position: absolute;
z-index: 1000;
top: 0;
left: 0;
right: 0;
bottom: 0;
padding: $padding-lg;
&:focus {
outline: 0;
}
&.modal--fixed-height .modal__content {
height: 100%;
}
&.modal--open {
display: block;
}
.modal__backdrop {
background: $bg-backdrop;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1;
}
.modal__content {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto 1fr auto;
color: $font-super-light-bg;
border-radius: $radius-md;
box-sizing: border-box;
box-shadow: 0 0 2rem 0 rgba(0, 0, 0, 0.2);
width: $modal-width;
max-width: 100%;
max-height: 100%;
margin: auto;
}
&.modal--wide .modal__content {
width: $modal-width-wide;
}
&.modal--fixed-top .modal__content {
margin: 0 auto auto auto;
}
.modal__header {
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__body {
overflow: auto;
background-color: $bg-super-light;
min-height: 2rem;
box-sizing: border-box;
max-width: 100%;
&.modal__body--no-scroll {
overflow: visible;
height: 100%;
}
}
.modal__footer {
border-top: 1px solid $hl-md;
background-color: $bg-super-light;
}
.modal__content > *:not(.modal__backdrop):last-child {
border-bottom-left-radius: $radius-md;
border-bottom-right-radius: $radius-md;
}
// 2nd child because the backdrop is the first
.modal__content > *:nth-child(2) {
border-top-left-radius: $radius-md;
border-top-right-radius: $radius-md;
}
}