0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

Fixes #6935: Use standard decimal points for .opacity() mixin

This commit is contained in:
Mark Otto 2013-02-28 19:46:49 -08:00
parent 0dea8b0c74
commit b19eb88b5a
8 changed files with 15 additions and 12 deletions

View File

@ -3095,7 +3095,7 @@ button.close {
.nav li.dropdown.open a:hover .caret {
border-top-color: #fff;
border-bottom-color: #fff;
.opacity(100);
.opacity(1);
}
// Dropdowns in stacked tabs
@ -3839,6 +3839,7 @@ button.close {
.modal-backdrop.fade {
opacity: 0;
filter: alpha(opacity=0);
}
.modal-backdrop.fade.in {

View File

@ -41,7 +41,7 @@
&[disabled],
fieldset[disabled] & {
cursor: default;
.opacity(65);
.opacity(.65);
.box-shadow(none);
}

View File

@ -75,7 +75,7 @@
left: 0;
bottom: 0;
width: 15%;
.opacity(50);
.opacity(.5);
font-size: 20px;
color: #fff;
text-align: center;
@ -105,7 +105,7 @@
&:focus {
color: #fff;
text-decoration: none;
.opacity(90);
.opacity(.9);
}
// Toggles

View File

@ -10,13 +10,13 @@
line-height: @line-height-base;
color: #000;
text-shadow: 0 1px 0 rgba(255,255,255,1);
.opacity(20);
.opacity(.2);
&:hover,
&:focus {
color: #000;
text-decoration: none;
cursor: pointer;
.opacity(50);
.opacity(.5);
}
}

View File

@ -291,8 +291,10 @@
// Opacity
.opacity(@opacity) {
opacity: @opacity / 100;
filter: ~"alpha(opacity=@{opacity})"; // IE8
opacity: @opacity;
// IE8 filter
@opacity-ie: @opacity * 100;
filter: ~"alpha(opacity=@{opacity-ie})";
}

View File

@ -67,8 +67,8 @@
z-index: @zindex-modal-background - 10;
background-color: #000;
// Fade for backdrop
&.fade { opacity: 0; }
&.fade.in { .opacity(50);}
&.fade { .opacity(0); }
&.fade.in { .opacity(.5); }
}
// Modal header

View File

@ -265,7 +265,7 @@
.nav li.dropdown.open a:hover .caret {
border-top-color: #fff;
border-bottom-color: #fff;
.opacity(100);
.opacity(1);
}
// Dropdowns in stacked tabs

View File

@ -13,7 +13,7 @@
line-height: 1.4;
.opacity(0);
&.in { .opacity(100); }
&.in { .opacity(1); }
&.top { margin-top: -3px; padding: 5px 0; }
&.right { margin-left: 3px; padding: 0 5px; }
&.bottom { margin-top: 3px; padding: 5px 0; }