Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'less/modals.less')
-rw-r--r--less/modals.less18
1 files changed, 7 insertions, 11 deletions
diff --git a/less/modals.less b/less/modals.less
index 81cacb7ab1..90b86670f4 100644
--- a/less/modals.less
+++ b/less/modals.less
@@ -2,16 +2,6 @@
// Modals
// --------------------------------------------------
-
-// Recalculate z-index where appropriate,
-// but only apply to elements within modal
-.modal-open .modal {
- .dropdown-menu { z-index: @zindexDropdown + @zindexModal; }
- .dropdown.open { *z-index: @zindexDropdown + @zindexModal; }
- .popover { z-index: @zindexPopover + @zindexModal; }
- .tooltip { z-index: @zindexTooltip + @zindexModal; }
-}
-
// Background
.modal-backdrop {
position: fixed;
@@ -36,7 +26,6 @@
top: 50%;
left: 50%;
z-index: @zindexModal;
- overflow: auto;
width: 560px;
margin: -250px 0 0 -280px;
background-color: @white;
@@ -46,6 +35,9 @@
.border-radius(6px);
.box-shadow(0 3px 7px rgba(0,0,0,0.3));
.background-clip(padding-box);
+ // Remove focus outline from opened modal
+ outline: none;
+
&.fade {
.transition(e('opacity .3s linear, top .3s ease-out'));
top: -25%;
@@ -95,4 +87,8 @@
.btn-group .btn + .btn {
margin-left: -1px;
}
+ // and override it for block buttons as well
+ .btn-block + .btn-block {
+ margin-left: 0;
+ }
}