Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commit7e6a73d4c3ace7e22e2afc25805ed0066b867bf5 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2018-02-21 15:27:22 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2018-02-21 15:27:22 +0800
Files8a8e40f9d5013deb16f7da09b110225b7b4d7ec5 /src
Spectre-Dark-Gruvbox-7e6a73d4c3ace7e22e2afc25805ed0066b867bf5.tar
Spectre-Dark-Gruvbox-7e6a73d4c3ace7e22e2afc25805ed0066b867bf5.tar.gz
Spectre-Dark-Gruvbox-7e6a73d4c3ace7e22e2afc25805ed0066b867bf5.zip
Parent2b9ac9b4b8deae206b3215c0573412a36300664f (diff)
Add 100% modal height class #391
1 files changed, 9 insertions, 4 deletions
-rw-r--r--src/_modals.scss13
diff --git a/src/_modals.scss b/src/_modals.scss
index 59a7e4e..e6e7840 100644
--- a/src/_modals.scss
+++ b/src/_modals.scss
@@ -31,8 +31,6 @@
.modal-container {
animation: slide-down .2s ease 1;
- max-width: $control-width-md;
- width: 100%;
z-index: $zindex-0;
}
}
@@ -60,15 +58,22 @@
@include shadow-variant(.2rem);
background: $bg-color-light;
border-radius: $border-radius;
- display: block;
+ display: flex;
+ flex-direction: column;
+ max-height: 75vh;
+ max-width: $control-width-md;
padding: 0 $unit-4;
+ width: 100%;
+
+ &.modal-fullheight {
+ max-height: 100vh;
+ }
.modal-header {
padding: $unit-4;
}
.modal-body {
- max-height: 50vh;
overflow-y: auto;
padding: $unit-4;
position: relative;