Support true in addition to the inset keyword for the box-shadow mixin. Closes GH-206
This commit is contained in:
parent
762c6a0b18
commit
3a6481d2d5
@ -32,6 +32,10 @@ h1 {
|
||||
margin: 0.5em 0 1em;
|
||||
text-align: center; } }
|
||||
|
||||
.inset {
|
||||
@include box-shadow(darken($border_color, 40), 5px, 5px, 2px, 3px, inset);
|
||||
}
|
||||
|
||||
.gutter {
|
||||
display: block;
|
||||
float: left;
|
||||
|
@ -36,7 +36,10 @@ $default-box-shadow-inset : false !default;
|
||||
) {
|
||||
$full : $color $hoff $voff $blur $spread;
|
||||
@if $inset {
|
||||
$full: $full $inset;
|
||||
@if not ($inset == true or $inset == inset) {
|
||||
@warn "$inset expected to be true or the inset keyword. Got #{$inset} instead. The box shadow will be inset."
|
||||
}
|
||||
$full: $full inset;
|
||||
}
|
||||
@if $color == none {
|
||||
@include experimental(box-shadow, none,
|
||||
|
Loading…
Reference in New Issue
Block a user