Skip to content

Commit

Permalink
Make highlights optional by default, no border-radius.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkaneda committed Mar 30, 2012
1 parent 6af980f commit e714d10
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions stylesheets/recipes/effect/_glass.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
@mixin effect-glass(
$color: #fff,
$reflectDegree: -45deg,
$border-radius: 4px
$border-radius: 0,
$include-highlight: true
)
{
position: relative;
Expand All @@ -29,10 +30,14 @@
left: 0;
border: transparent solid 1px;
@include border-radius($border-radius);
@include box-shadow(
inset $color 0 0 2px,
inset rgba($color,.4) 0 5px 10px
);

@if $include-highlight {
@include box-shadow(
inset rgba($color, .2) 0 0 1px,
inset rgba($color, .1) 0 5px 10px
);
}

@include background(
linear-gradient($reflectDegree, rgba($color,.12) 50%, rgba($color, 0) 50.5% ));
}
Expand Down

1 comment on commit e714d10

@MoOx
Copy link

@MoOx MoOx commented on e714d10 Aug 2, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make a PR :)

Please sign in to comment.