Skip to content
This repository has been archived by the owner on Oct 16, 2019. It is now read-only.

Commit

Permalink
Default value for .opacity and .rgba-background
Browse files Browse the repository at this point in the history
  • Loading branch information
neoascetic committed Jul 30, 2012
1 parent fbd2946 commit 3213450
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions css3.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
//
// Opacity
//
.opacity(@level) {
@opacity: .5;

.opacity(@level: @opacity) {
opacity: @level;
}

Expand All @@ -25,7 +27,9 @@
//
// Background
//
.rgba-background(@color, @aplha) {
@rgba-background: .5;

.rgba-background(@color, @aplha: @rgba-background) {
background: @color;

@hue: hue(@color);
Expand Down

0 comments on commit 3213450

Please sign in to comment.