Browse Source

try to fix rendering issue on chrome

Mattia Larentis 12 years ago
parent
commit
8cc04e118d
2 changed files with 8 additions and 8 deletions
  1. 4 4
      static/less/bootstrapSwitch.less
  2. 4 4
      static/stylesheets/bootstrapSwitch.css

+ 4 - 4
static/less/bootstrapSwitch.less

@@ -21,14 +21,14 @@
   line-height: 8px;
   .user-select(none);
 
-  min-width: 102px;
+  min-width: 100px;
 
   &.switch-mini {
     min-width: 72px;
   }
 
   &.switch-small {
-    min-width: 81px;
+    min-width: 80px;
   }
 
   &.switch-large {
@@ -105,7 +105,7 @@
     margin-top: -1px;
     margin-bottom: -1px;
     z-index: 100;
-    width: 33.333333%;
+    width: 34%;
     border-left: 1px solid @btnBorder;
     border-right: 1px solid @btnBorder;
 
@@ -115,7 +115,7 @@
   span {
     text-align: center;
     z-index: 1;
-    width: 33.333333%;
+    width: 33%;
 
     &.switch-left {
       .border-left-radius(4px);

+ 4 - 4
static/stylesheets/bootstrapSwitch.css

@@ -22,13 +22,13 @@
   -ms-user-select: none;
   -o-user-select: none;
   user-select: none;
-  min-width: 102px;
+  min-width: 100px;
 }
 .has-switch.switch-mini {
   min-width: 72px;
 }
 .has-switch.switch-small {
-  min-width: 81px;
+  min-width: 80px;
 }
 .has-switch.switch-large {
   min-width: 120px;
@@ -102,7 +102,7 @@
   margin-top: -1px;
   margin-bottom: -1px;
   z-index: 100;
-  width: 33.333333%;
+  width: 34%;
   border-left: 1px solid #cccccc;
   border-right: 1px solid #cccccc;
   color: #ffffff;
@@ -139,7 +139,7 @@
 .has-switch span {
   text-align: center;
   z-index: 1;
-  width: 33.333333%;
+  width: 33%;
 }
 .has-switch span.switch-left {
   -webkit-border-top-left-radius: 4px;