Browse Source

Merge pull request #11794 from grafana/11616-timepicker-buttons

fix dark/light theme date selector styling in timepicker control
Marcus Efraimsson 7 years ago
parent
commit
d0753949bc
1 changed files with 14 additions and 6 deletions
  1. 14 6
      public/sass/components/_timepicker.scss

+ 14 - 6
public/sass/components/_timepicker.scss

@@ -71,21 +71,29 @@
   td {
   td {
     padding: 1px;
     padding: 1px;
   }
   }
-  button.btn-sm {
+  button {
     @include buttonBackground($btn-inverse-bg, $btn-inverse-bg-hl);
     @include buttonBackground($btn-inverse-bg, $btn-inverse-bg-hl);
-    font-size: $font-size-sm;
     background-image: none;
     background-image: none;
     border: none;
     border: none;
-    padding: 5px 11px;
     color: $text-color;
     color: $text-color;
     &.active span {
     &.active span {
-      color: $blue;
+      color: $query-blue;
       font-weight: bold;
       font-weight: bold;
     }
     }
     .text-info {
     .text-info {
       color: $orange;
       color: $orange;
       font-weight: bold;
       font-weight: bold;
     }
     }
+    &.btn-sm {
+      font-size: $font-size-sm;
+      padding: 5px 11px;
+    }
+    &:hover {
+      color: $text-color-strong;
+    }
+    &[disabled] {
+      color: $text-color;
+    }
   }
   }
 }
 }
 
 
@@ -103,10 +111,10 @@
 }
 }
 
 
 .fa-chevron-left::before {
 .fa-chevron-left::before {
-  content: "\f053";
+  content: '\f053';
 }
 }
 .fa-chevron-right::before {
 .fa-chevron-right::before {
-  content: "\f054";
+  content: '\f054';
 }
 }
 
 
 .glyphicon-chevron-right {
 .glyphicon-chevron-right {