Support true in addition to the inset keyword for the box-shadow mixin. Closes GH-206

This commit is contained in:
Chris Eppstein 2010-10-30 18:34:49 -07:00
parent 762c6a0b18
commit 3a6481d2d5
2 changed files with 8 additions and 1 deletions

View File

@ -32,6 +32,10 @@ h1 {
margin: 0.5em 0 1em; margin: 0.5em 0 1em;
text-align: center; } } text-align: center; } }
.inset {
@include box-shadow(darken($border_color, 40), 5px, 5px, 2px, 3px, inset);
}
.gutter { .gutter {
display: block; display: block;
float: left; float: left;

View File

@ -36,7 +36,10 @@ $default-box-shadow-inset : false !default;
) { ) {
$full : $color $hoff $voff $blur $spread; $full : $color $hoff $voff $blur $spread;
@if $inset { @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 { @if $color == none {
@include experimental(box-shadow, none, @include experimental(box-shadow, none,