Selaa lähdekoodia

enable font awesome in form controls

the form controls are preconfigured to use glyhicons but lack the support for FA icons
Florian Schaeffer 10 vuotta sitten
vanhempi
commit
17fbe16151
1 muutettua tiedostoa jossa 17 lisäystä ja 1 poistoa
  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;
+}