Przeglądaj źródła

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 lat temu
rodzic
commit
7df7b6708a
1 zmienionych plików z 6 dodań i 0 usunięć
  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,