diff options
| Commit | c811cb46631e66772a108c393f6ef53a83ca010b (patch) | |
|---|---|---|
| Author | 2017-09-01 15:34:29 +0800 | |
| Committer | 2017-09-01 15:34:29 +0800 | |
| Files | cc78dfa6f7398e9e77dd81d8865bcca939b9549d /src/_modals.scss | |
| Spectre-Dark-Gruvbox-0.4.0.tar Spectre-Dark-Gruvbox-0.4.0.tar.gz Spectre-Dark-Gruvbox-0.4.0.zip | ||
| Parent | 66c492fd05c2d720c81e2be8d6845560b868e7ff (diff) | |
| Parent | cca094ecbf55e8a4f552e55219b37373d3c07d9e (diff) | |
Merge pull request #266 from picturepan2/0.4.0 v0.4.0
0.4.0
1 files changed, 73 insertions, 0 deletions
| -rw-r--r-- | src/_modals.scss | 73 |
diff --git a/src/_modals.scss b/src/_modals.scss new file mode 100644 index 0000000..21d6ed8 --- /dev/null +++ b/src/_modals.scss @@ -0,0 +1,73 @@ +// Modals +.modal { + align-items: center; + bottom: 0; + display: none; + justify-content: center; + left: 0; + opacity: 0; + overflow: hidden; + padding: $layout-spacing; + position: fixed; + right: 0; + top: 0; + + &:target, + &.active { + display: flex; + opacity: 1; + z-index: $zindex-4; + + .modal-overlay { + background: rgba($bg-color, .75); + bottom: 0; + cursor: default; + display: block; + left: 0; + position: absolute; + right: 0; + top: 0; + } + + .modal-container { + animation: slide-down .2s ease 1; + max-width: 640px; + z-index: $zindex-0; + } + } + + &.modal-sm { + .modal-container { + max-width: $control-max-width; + } + } +} + +.modal-container { + @include shadow-variant(.2rem); + background: $bg-color-light; + border-radius: $border-radius; + display: block; + padding: 0; + text-align: left; + + .modal-header { + padding: $layout-spacing-lg; + + .modal-title { + margin: 0; + } + } + + .modal-body { + max-height: 50vh; + overflow-y: auto; + padding: $layout-spacing-lg; + position: relative; + } + + .modal-footer { + padding: $layout-spacing-lg; + text-align: right; + } +} |