Преглед на файлове

Merge pull request #108 from BdMdesigN/v.1.8

fixed Text Label bug
Stein, Peter преди 11 години
родител
ревизия
c89c7768a0
променени са 2 файла, в които са добавени 2 реда и са изтрити 7 реда
  1. 1 1
      static/js/bootstrap-switch.js
  2. 1 6
      static/stylesheets/bootstrap-switch.css

+ 1 - 1
static/js/bootstrap-switch.js

@@ -83,7 +83,7 @@
             }
             }
             
             
             if (textLabel) {
             if (textLabel) {
-              $label.html('<div class="text-label">' + textLabel + '</div>');
+              $label.html('' + textLabel + '');
             }
             }
 
 
             $div = $element.find(inputSelector).wrap($('<div>')).parent().data('animated', false);
             $div = $element.find(inputSelector).wrap($('<div>')).parent().data('animated', false);

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

@@ -117,11 +117,6 @@
   font-size: 16px;
   font-size: 16px;
   line-height: normal;
   line-height: normal;
 }
 }
-.has-switch .text-label {
-  text-align: center;
-  color: #000000;
-  font-size: 14px;
-}
 .has-switch label {
 .has-switch label {
   text-align: center;
   text-align: center;
   margin-top: -1px;
   margin-top: -1px;
@@ -130,7 +125,7 @@
   width: 34%;
   width: 34%;
   border-left: 1px solid #cccccc;
   border-left: 1px solid #cccccc;
   border-right: 1px solid #cccccc;
   border-right: 1px solid #cccccc;
-  color: #ffffff;
+  color: #000000;
   text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
   text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
   background-color: #f5f5f5;
   background-color: #f5f5f5;
   background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
   background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);