Browse Source

Fixing lint errors

djhvscf 5 years ago
parent
commit
3d36f939e7

+ 7 - 5
src/themes/bootstrap-table/_font.scss

@@ -1,7 +1,8 @@
 @font-face {
   font-family: 'bootstrap-table';
-  src:  url('fonts/bootstrap-table.eot?gmdfsp');
-  src:  url('fonts/bootstrap-table.eot?gmdfsp#iefix') format('embedded-opentype'),
+  src: url('fonts/bootstrap-table.eot?gmdfsp');
+  src:
+  url('fonts/bootstrap-table.eot?gmdfsp#iefix') format('embedded-opentype'),
   url('fonts/bootstrap-table.ttf?gmdfsp') format('truetype'),
   url('fonts/bootstrap-table.woff?gmdfsp') format('woff'),
   url('fonts/bootstrap-table.svg?gmdfsp#bootstrap-table') format('svg');
@@ -10,9 +11,10 @@
   font-display: block;
 }
 
-[class^="icon-"], [class*=" icon-"] {
+[class^="icon-"],
+[class*=" icon-"] {
   /* use !important to prevent issues with browser extensions that change fonts */
-  font-family: 'bootstrap-table' !important;
+  font-family: 'bootstrap-table', sans-serif !important;
   speak: none;
   font-style: normal;
   font-weight: normal;
@@ -78,4 +80,4 @@
 }
 .icon-sort-amount-asc:before {
   content: "\ea4c";
-}
+}

+ 15 - 18
src/themes/bootstrap-table/bootstrap-table.scss

@@ -7,7 +7,8 @@
 @import './font.scss';
 
 .bootstrap-table {
-  input, select {
+  input,
+  select {
     border-radius: 4px;
     background-color: #fff;
     border: 1px solid #ccc;
@@ -52,7 +53,6 @@
     color: $btn-active-background;
   }
 
-
   .fixed-table-toolbar {
     .columns > div {
       display: inline-block;
@@ -75,7 +75,8 @@
     .columns.btn-group {
       display: inline-block;
 
-      .btn, input {
+      .btn,
+      input {
         &:not(:first-child):not(:last-child) {
           border-radius: 0;
         }
@@ -108,20 +109,16 @@
       }
 
       button[name="search"],
-      button[name="clearSearch"]
-      {
+      button[name="clearSearch"] {
         border-top-left-radius: 0;
         border-bottom-left-radius: 0;
       }
 
       button[name="search"]:not(:last-child),
-      button[name="clearSearch"]:not(:last-child)
-      {
+      button[name="clearSearch"]:not(:last-child) {
         border-top-right-radius: 0;
         border-bottom-right-radius: 0;
       }
-
-
     }
   }
 
@@ -160,6 +157,7 @@
   }
 
   .pagination-detail {
+    float: left;
     .dropdown-item {
       min-width: 45px;
       text-align: center;
@@ -170,7 +168,8 @@
     border-collapse: collapse;
 
     &.table-bordered {
-      thead tr th, tbody tr td {
+      thead tr th,
+      tbody tr td {
         border: 1px solid #ddd;
       }
 
@@ -181,15 +180,12 @@
   }
 
   .float-right {
-    float: right
-  }
-
-  .pagination-detail {
-    float: left;
+    float: right;
   }
 
   .page-jump-to {
-    input, .btn {
+    input,
+    .btn {
       padding: 8px 12px;
     }
   }
@@ -231,7 +227,8 @@
     .btn-group {
       display: inline-block;
 
-      .btn, input {
+      .btn,
+      input {
         &:not(:first-child):not(:last-child) {
           border-radius: 0;
         }
@@ -311,4 +308,4 @@
 
 .float-left {
   float: left;
-}
+}