Browse Source

Fixes minor UI bug with 2px border

There's two 1px adjacent borders, depending on which side the switch is on. Just hide the extra border, depending on which side we're on.

by sporkmonger
Stein, Peter 11 năm trước cách đây
mục cha
commit
7df7b6708a
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      static/stylesheets/bootstrap-switch.css

+ 6 - 0
static/stylesheets/bootstrap-switch.css

@@ -140,6 +140,12 @@
 
   filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
 }
+.has-switch .switch-on label {
+  border-right: none;
+}
+.has-switch .switch-off label {
+  border-left: none;
+}
 .has-switch label:hover,
 .has-switch label:focus,
 .has-switch label:active,