فهرست منبع

enable font awesome in form controls

the form controls are preconfigured to use glyhicons but lack the support for FA icons
Florian Schaeffer 10 سال پیش
والد
کامیت
17fbe16151
1فایلهای تغییر یافته به همراه17 افزوده شده و 1 حذف شده
  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;
+}