diff options
author | Radomir Dopieralski <openstack@sheep.art.pl> | 2014-07-30 14:51:49 +0200 |
---|---|---|
committer | Radomir Dopieralski <openstack@sheep.art.pl> | 2014-08-12 12:38:38 +0200 |
commit | 11ee24aa9192061a1bac3e58ad1d5ebb2bf4d85f (patch) | |
tree | 37179461676ea3f08343cb0d813a2bc0219ed3f6 /xstatic/pkg/bootstrap_scss/data/scss/bootstrap/_modals.scss | |
parent | d81b7b71c6c088406e90d1bdba0e10f0a304bbdc (diff) | |
download | xstatic-bootstrap-scss-11ee24aa9192061a1bac3e58ad1d5ebb2bf4d85f.tar.gz |
Version 3.2.0
Change-Id: I886276a578c0d130e87d87eb1ca1378141231aaa
Diffstat (limited to 'xstatic/pkg/bootstrap_scss/data/scss/bootstrap/_modals.scss')
-rw-r--r-- | xstatic/pkg/bootstrap_scss/data/scss/bootstrap/_modals.scss | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/xstatic/pkg/bootstrap_scss/data/scss/bootstrap/_modals.scss b/xstatic/pkg/bootstrap_scss/data/scss/bootstrap/_modals.scss index 931092c..785ca5c 100644 --- a/xstatic/pkg/bootstrap_scss/data/scss/bootstrap/_modals.scss +++ b/xstatic/pkg/bootstrap_scss/data/scss/bootstrap/_modals.scss @@ -15,8 +15,7 @@ // Container that the modal scrolls within .modal { display: none; - overflow: auto; - overflow-y: scroll; + overflow: hidden; position: fixed; top: 0; right: 0; @@ -31,10 +30,14 @@ // When fading in the modal, animate it to slide down &.fade .modal-dialog { - @include translate(0, -25%); + @include translate3d(0, -25%, 0); @include transition-transform(0.3s ease-out); } - &.in .modal-dialog { @include translate(0, 0)} + &.in .modal-dialog { @include translate3d(0, 0, 0) } +} +.modal-open .modal { + overflow-x: hidden; + overflow-y: auto; } // Shell div to position the modal with bottom padding @@ -54,7 +57,7 @@ @include box-shadow(0 3px 9px rgba(0,0,0,.5)); background-clip: padding-box; // Remove focus outline from opened modal - outline: none; + outline: 0; } // Modal background @@ -98,8 +101,7 @@ // Footer (for actions) .modal-footer { - margin-top: 15px; - padding: ($modal-inner-padding - 1) $modal-inner-padding $modal-inner-padding; + padding: $modal-inner-padding; text-align: right; // right align buttons border-top: 1px solid $modal-footer-border-color; @include clearfix(); // clear it in case folks use .pull-* classes on buttons @@ -119,6 +121,15 @@ } } +// Measure scrollbar width for padding body during modal show/hide +.modal-scrollbar-measure { + position: absolute; + top: -9999px; + width: 50px; + height: 50px; + overflow: scroll; +} + // Scale up the modal @media (min-width: $screen-sm-min) { // Automatically set modal's width for larger viewports |