You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.1 KiB
46 lines
1.1 KiB
10 years ago
|
// Compatibility for browsers.
|
||
|
|
||
|
// rotate for ie8 and blow
|
||
|
.ie-rotate(@rotation) {
|
||
9 years ago
|
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation})";
|
||
9 years ago
|
}
|
||
|
|
||
9 years ago
|
// rotate for ie8 and blow
|
||
|
// degrees unit
|
||
|
.ie-rotate-via-degrees(@degrees) {
|
||
9 years ago
|
/* IE6-IE8 */
|
||
|
@radians: ~`parseInt("@{degrees}") * Math.PI * 2 / 360`;
|
||
|
@costheta: ~`Math.cos("@{radians}")`;
|
||
|
@sintheta: ~`Math.sin("@{radians}")`;
|
||
|
@negsintheta: ~`"@{sintheta}" * -1`;
|
||
9 years ago
|
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=@{costheta}, M12=@{negsintheta}, M21=@{sintheta}, M22=@{costheta})";
|
||
9 years ago
|
zoom: 1;
|
||
9 years ago
|
|
||
|
:root & {
|
||
|
filter: none;
|
||
|
}
|
||
9 years ago
|
}
|
||
|
|
||
9 years ago
|
// support rotate for all browsers
|
||
|
.cross-rotate(@degrees) {
|
||
|
.rotate(@degrees);
|
||
|
.ie-rotate-via-degrees(@degrees);
|
||
|
}
|
||
|
|
||
9 years ago
|
// Placeholder text
|
||
|
.placeholder(@color: @input-placeholder-color) {
|
||
|
// Firefox
|
||
|
&::-moz-placeholder {
|
||
|
color: @color;
|
||
|
opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526
|
||
|
}
|
||
|
// Internet Explorer 10+
|
||
|
&:-ms-input-placeholder {
|
||
|
color: @color;
|
||
|
}
|
||
|
// Safari and Chrome
|
||
|
&::-webkit-input-placeholder {
|
||
|
color: @color;
|
||
|
}
|
||
|
}
|