Browse Source

fix glitch after click on switch with form-control class #318

LostCrew 11 năm trước cách đây
mục cha
commit
3ebdecaf4c

+ 4 - 0
dist/css/bootstrap2/bootstrap-switch.css

@@ -495,3 +495,7 @@
   filter: alpha(opacity=0);
   z-index: -1;
 }
+.bootstrap-switch input[type='radio'].form-control,
+.bootstrap-switch input[type='checkbox'].form-control {
+  height: auto;
+}

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/css/bootstrap2/bootstrap-switch.min.css


+ 4 - 0
dist/css/bootstrap3/bootstrap-switch.css

@@ -200,3 +200,7 @@
   filter: alpha(opacity=0);
   z-index: -1;
 }
+.bootstrap-switch input[type='radio'].form-control,
+.bootstrap-switch input[type='checkbox'].form-control {
+  height: auto;
+}

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/css/bootstrap3/bootstrap-switch.min.css


+ 4 - 0
src/less/bootstrap2/bootstrap-switch.less

@@ -188,5 +188,9 @@
     left: 0;
     .opacity(0);
     z-index: -1;
+
+    &.form-control {
+      height: auto;
+    }
   }
 }

+ 4 - 0
src/less/bootstrap3/bootstrap-switch.less

@@ -193,5 +193,9 @@
     left: 0;
     .opacity(0);
     z-index: -1;
+
+    &.form-control {
+      height: auto;
+    }
   }
 }

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác