0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

Extract variables for .modal-content box-shadow

[skip sauce]
[skip validator]
This commit is contained in:
Chris Rebert 2016-01-09 15:39:41 -08:00
parent bbd449994a
commit 802c1cb5fc
2 changed files with 6 additions and 4 deletions

View File

@ -50,7 +50,7 @@
background-clip: padding-box;
border: 1px solid $modal-content-border-color;
@include border-radius($border-radius-lg);
@include box-shadow(0 3px 9px rgba(0,0,0,.5));
@include box-shadow($modal-content-xs-box-shadow);
// Remove focus outline from opened modal
outline: 0;
}
@ -134,7 +134,7 @@
margin: 30px auto;
}
.modal-content {
@include box-shadow(0 5px 15px rgba(0,0,0,.5));
@include box-shadow($modal-content-sm-up-box-shadow);
}
// Modal sizes

View File

@ -541,8 +541,10 @@ $modal-inner-padding: 15px !default;
$modal-title-padding: 15px !default;
$modal-title-line-height: $line-height !default;
$modal-content-bg: #fff !default;
$modal-content-border-color: rgba(0,0,0,.2) !default;
$modal-content-bg: #fff !default;
$modal-content-border-color: rgba(0,0,0,.2) !default;
$modal-content-xs-box-shadow: 0 3px 9px rgba(0,0,0,.5) !default;
$modal-content-sm-up-box-shadow: 0 5px 15px rgba(0,0,0,.5) !default;
$modal-backdrop-bg: #000 !default;
$modal-backdrop-opacity: .5 !default;