Bläddra i källkod

GC-590: use switchery

* remove unnecessary code
Yuki Takei 7 år sedan
förälder
incheckning
50e9abdc18
2 ändrade filer med 0 tillägg och 59 borttagningar
  1. 0 4
      lib/views/admin/global-notification.html
  2. 0 55
      resource/styles/scss/_admin.scss

+ 0 - 4
lib/views/admin/global-notification.html

@@ -26,10 +26,6 @@
     <tr class="clickable-row" data-href="{{ detailPageUrl }}" data-updatepost-id="{{ globalNotif._id.toString() }}">
       <td class="unclickable align-middle">
         <input type="checkbox" class="js-switch" data-size="small" data-id="{{ globalNotif._id.toString() }}" {% if globalNotif.isEnabled %}checked{% endif %} />
-        <!-- <label class="switch">
-          <input type="checkbox" class="isEnabledToggle" {% if globalNotif.isEnabled %}checked{% endif %}>
-          <span class="slider round"></span>
-        </label> -->
       </td>
       <td>
         {{ globalNotif.triggerPath }}

+ 0 - 55
resource/styles/scss/_admin.scss

@@ -57,61 +57,6 @@
       }
     }
 
-    /* slider checkbox */
-
-    /*
-    * Form Slider
-    */
-    .switch {
-      position: relative;
-      display: inline-block;
-      width: 30px;
-      height: 17px;
-    }
-
-    /* Hide default HTML checkbox */
-
-    .switch input {
-      display: none;
-    }
-
-    /* The slider */
-    .slider {
-      position: absolute;
-      cursor: pointer;
-      top: 0;
-      left: 0;
-      right: 0;
-      bottom: 0;
-      -webkit-transition: .4s;
-      transition: .4s;
-    }
-
-    .slider:before {
-      position: absolute;
-      content: "";
-      height: 13px;
-      width: 13px;
-      left: 2px;
-      bottom: 2px;
-      -webkit-transition: .4s;
-      transition: .4s;
-    }
-
-    input:checked+.slider:before {
-      -webkit-transform: translateX(13px);
-      -ms-transform: translateX(13px);
-      transform: translateX(13px);
-    }
-
-    /* Rounded sliders */
-    .slider.round {
-      border-radius: 34px;
-    }
-
-    .slider.round:before {
-      border-radius: 50%;
-    }
   }
 
   // Toggle Twitter Bootstrap button class when active