Pārlūkot izejas kodu

enable font awesome in form controls

the form controls are preconfigured to use glyhicons but lack the support for FA icons
Florian Schaeffer 10 gadi atpakaļ
vecāks
revīzija
17fbe16151
1 mainītis faili ar 17 papildinājumiem un 1 dzēšanām
  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;
+}