Przeglądaj źródła

enable font awesome in form controls

the form controls are preconfigured to use glyhicons but lack the support for FA icons
Florian Schaeffer 10 lat temu
rodzic
commit
17fbe16151
1 zmienionych plików z 17 dodań i 1 usunięć
  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;
+}