Skip to content

Commit

Permalink
Support true in addition to the inset keyword for the box-shadow mixin.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseppstein committed Oct 31, 2010
1 parent 762c6a0 commit 3a6481d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions examples/css3/src/main.scss
Expand Up @@ -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;
Expand Down
5 changes: 4 additions & 1 deletion frameworks/compass/stylesheets/compass/css3/_box-shadow.scss
Expand Up @@ -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,
Expand Down

0 comments on commit 3a6481d

Please sign in to comment.