]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix placeholder for FF by attaching input and textarea when we call the mixin
authorMark Otto <markotto@twitter.com>
Mon, 4 Jun 2012 15:33:42 +0000 (08:33 -0700)
committerMark Otto <markotto@twitter.com>
Mon, 4 Jun 2012 15:33:42 +0000 (08:33 -0700)
docs/assets/css/bootstrap.css
less/forms.less

index 23dbd76fc90fe8f679c67e4746f4c5c7b4e23132..e7e27061459befc3116d55fc8f8b876da7ee8a85 100644 (file)
@@ -1232,15 +1232,18 @@ select:focus:required:invalid:focus {
           box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
 }
 
-:-moz-placeholder {
+input:-moz-placeholder,
+textarea:-moz-placeholder {
   color: #999999;
 }
 
-:-ms-input-placeholder {
+input:-ms-input-placeholder,
+textarea:-ms-input-placeholder {
   color: #999999;
 }
 
-::-webkit-input-placeholder {
+input::-webkit-input-placeholder,
+textarea::-webkit-input-placeholder {
   color: #999999;
 }
 
index 1163fe9140525effc0ccb7c931710b920d8b2dc5..56f215d6cb1034f2230e28a01f65fc24ca6d572d 100644 (file)
@@ -343,7 +343,10 @@ select:focus:required:invalid {
 }
 
 // Placeholder text gets special styles; can't be bundled together though for some reason
-.placeholder();
+input,
+textarea {
+  .placeholder();
+}