aboutsummaryrefslogtreecommitdiff
path: root/lib/mixins.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2011-11-17 01:28:42 -0800
committerMark Otto <[email protected]>2011-11-17 01:28:42 -0800
commit4e6275d0fe0880d32633a2c139dad8d3e2745bb6 (patch)
tree575abe4b666c09cf30e542d2e57a159c13bd32bf /lib/mixins.less
parent159c7a7fdae4a3bd929ee9cc76aaa3b509a969dc (diff)
downloadbootstrap-4e6275d0fe0880d32633a2c139dad8d3e2745bb6.tar.xz
bootstrap-4e6275d0fe0880d32633a2c139dad8d3e2745bb6.zip
update property order and do some misc cleanup
Diffstat (limited to 'lib/mixins.less')
-rw-r--r--lib/mixins.less11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/mixins.less b/lib/mixins.less
index 670b17384..d77ecf621 100644
--- a/lib/mixins.less
+++ b/lib/mixins.less
@@ -9,9 +9,9 @@
&:before,
&:after {
display: table;
+ *display: inline;
content: "";
zoom: 1;
- *display: inline;
}
&:after {
clear: both;
@@ -27,8 +27,8 @@
// Sizing shortcuts
.size(@height: 5px, @width: 5px) {
- height: @height;
width: @width;
+ height: @height;
}
.square(@size: 5px) {
.size(@size, @size);
@@ -197,14 +197,16 @@
}
.border(@color: @white, @alpha: 1) {
border-color: hsla(hue(@color), saturation(@color), lightness(@color), @alpha);
- background-clip: padding-box;
+ -webkit-background-clip: padding-box;
+ -moz-background-clip: padding;
+ background-clip: padding-box;
}
}
// Gradient Bar Colors for buttons and alerts
.gradientBar(@primaryColor, @secondaryColor) {
- #gradient > .vertical(@primaryColor, @secondaryColor);
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
+ #gradient > .vertical(@primaryColor, @secondaryColor);
border-color: @secondaryColor @secondaryColor darken(@secondaryColor, 15%);
border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fadein(rgba(0,0,0,.1), 15%);
}
@@ -274,7 +276,6 @@
// Opacity
.opacity(@opacity: 100) {
filter: e(%("alpha(opacity=%d)", @opacity));
- -khtml-opacity: @opacity / 100;
-moz-opacity: @opacity / 100;
opacity: @opacity / 100;
}