Browse files

Add placeholder mixin

  • Loading branch information...
1 parent 1c2420f commit 32df8a7cb3c003b8183c77f8d18e705fdac4ad28 @jayj committed Oct 15, 2012
Showing with 14 additions and 1 deletion.
  1. +14 −1 less/mixins.less
View
15 less/mixins.less
@@ -135,6 +135,19 @@
outline-offset: -2px;
}
+// Placeholder text
+// -------------------------
+.placeholder(@color: @placeholderText, @textShadow: none) {
+ &:-moz-placeholder {
+ color: @color;
+ text-shadow: @textShadow;
+ }
+ &::-webkit-input-placeholder {
+ color: @color;
+ text-shadow: @textShadow;
+ }
+}
+
// Fonts
// --------------------------------------------------
#font {
@@ -299,7 +312,7 @@
// Gradients
// --------------------------------------------------
#gradient {
- .horizontal(@startColor: #555, @endColor: #333, @colorStop: 100%) {
+ .horizontal(@startColor: #555, @endColor: #333, @colorStop: 0%) {
background-color: @endColor;
background-image: -moz-linear-gradient(left, @startColor @colorStop, @endColor); // FF 3.6+
background-image: -webkit-linear-gradient(left, @startColor @colorStop, @endColor); // Safari 5.1+, Chrome 10+

0 comments on commit 32df8a7

Please sign in to comment.