Skip to content

Commit

Permalink
fix opacity mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
cavis committed Nov 15, 2012
1 parent 90b99f2 commit b80ea1b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions stylesheets/compass_twitter_bootstrap/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,8 @@

// Opacity
@mixin ctb-opacity($opacity) {
opacity: $opacity / 100;
filter: alpha(opacity=$opacity);
opacity: $opacity;
filter: alpha(opacity=($opacity * 100));
}


Expand Down
2 changes: 1 addition & 1 deletion stylesheets/compass_twitter_bootstrap/_navs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
.nav li.dropdown.open a:hover .caret {
border-top-color: $white;
border-bottom-color: $white;
@include ctb-opacity(100);
@include ctb-opacity(1);
}

// Dropdowns in stacked tabs
Expand Down
4 changes: 2 additions & 2 deletions stylesheets_sass/compass_twitter_bootstrap/_mixins.sass
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@

// Opacity
=ctb-opacity($opacity)
opacity: $opacity / 100
filter: alpha(opacity = $opacity)
opacity: $opacity
filter: alpha(opacity = ($opacity * 100))

// BACKGROUNDS
// --------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion stylesheets_sass/compass_twitter_bootstrap/_navs.sass
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
.nav li.dropdown.open a:hover .caret
border-top-color: $white
border-bottom-color: $white
+ctb-opacity(100)
+ctb-opacity(1)

// Dropdowns in stacked tabs
.tabs-stacked .open > a:hover
Expand Down

0 comments on commit b80ea1b

Please sign in to comment.