Browse Source

enable font awesome in form controls

the form controls are preconfigured to use glyhicons but lack the support for FA icons
Florian Schaeffer 10 years ago
parent
commit
17fbe16151
1 changed files with 17 additions and 1 deletions
  1. 17 1
      build/less/forms.less

+ 17 - 1
build/less/forms.less

@@ -79,4 +79,20 @@
 
 .icheck > label {
   padding-left: 0;
-}
+}
+
+/* support Font Awesome icons in form-control */
+.form-control-feedback.fa {
+    line-height: @input-height-base;
+}
+
+.input-lg + .form-control-feedback.fa,
+.input-group-lg + .form-control-feedback.fa,
+.form-group-lg .form-control + .form-control-feedback.fa {
+  line-height: @input-height-large;
+}
+.input-sm + .form-control-feedback.fa,
+.input-group-sm + .form-control-feedback.fa,
+.form-group-sm .form-control + .form-control-feedback.fa {
+  line-height: @input-height-small;
+}