Sfoglia il codice sorgente

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 anni fa
parent
commit
7df7b6708a
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  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,