Support for dark theme

- dark theme colors
- dark theme screenshot
This commit is contained in:
Ivan Mikheykin
2018-10-17 22:33:27 +03:00
parent 4d952a841b
commit 0a8463e2ed
32 changed files with 191 additions and 52 deletions
@@ -1,12 +1,10 @@
$font-size-sm: 12px !default;
.status-heatmap-canvas-wrapper {
// position: relative;
cursor: crosshair;
.datapoints-warning span {
background-color: white;
background-color: $warning-bg;
color: $text-color;
padding: 1px;
}
}
@@ -16,14 +14,14 @@ $font-size-sm: 12px !default;
.axis .tick {
text {
fill: #52545c;
color: #52545c;
font-size: 11px;
fill: $text-color;
color: $text-color;
font-size: $font-size-tick;
}
line {
opacity: 0.4;
stroke: #767980;
stroke: $text-color-weak;
}
}
@@ -37,20 +35,27 @@ $font-size-sm: 12px !default;
}
}
.status-heatmap-tooltip {
.statusmap-tooltip {
white-space: nowrap;
font-size: $font-size-sm;
background-color: #dde4ed;
color: #52545c;
background-color: $graph-tooltip-bg;
color: $text-color;
.discrete-item {
color: #52545c;
padding: 1px;
font-weight: bold;
text-shadow: 0 0 0.2em #FFF, 0 0 0.2em #FFF, 0 0 0.2em #FFF;
}
}
.status-heatmap-histogram rect {
fill: #767980;
.statusmap-histogram rect {
fill: $text-color-weak;
}
.status-heatmap-crosshair {
line {
stroke: darken(red,15%);
stroke: darken($red,15%);
stroke-width: 1;
}
}
@@ -61,14 +66,11 @@ $font-size-sm: 12px !default;
stroke: rgba(102, 102, 102, 0.8);
}
.status-heatmap-legend-wrapper {
// @include clearfix();
margin: 0 10px;
//padding-top: 10px;
svg {
//width: 100%;
//max-width: 1300px;
height: 24px;
float: left;
white-space: nowrap;
@@ -85,19 +87,19 @@ $font-size-sm: 12px !default;
.axis .tick {
text {
fill: #52545c;
color: #52545c;
font-size: 11px;
fill: $text-color;
color: $text-color;
font-size: $font-size-tick;
}
line {
opacity: 0.4;
stroke: #767980;
stroke: $text-color-weak;
}
.domain {
opacity: 0.4;
stroke: #767980;
stroke: $text-color-weak;
}
}
}
+9
View File
@@ -0,0 +1,9 @@
// Dark variables
$text-color: #d8d9da; // $gray-4
$text-color-weak: #8e8e8e; // $gray-2
$graph-tooltip-bg: #141414; // $dark-1
$warning-bg: #333333; // $dark-4
$theme-name: dark;
$white: #fff;
$red: #d44a3a;
+10
View File
@@ -0,0 +1,10 @@
// Light variables
$text-color: #52545c; // $gray-1
$text-color-weak: #767980; // $gray-2
$graph-tooltip-bg: #dde4ed; // $gray-5
$warning-bg: #e9edf2; // $gray-6
$theme-name: light;
$white: #fff;
$red: #d44939;
+3
View File
@@ -0,0 +1,3 @@
$font-size-sm: 12px !default;
$font-size-tick: 11px;
+3
View File
@@ -0,0 +1,3 @@
@import "variables";
@import "variables.dark";
@import "statusmap"
+3
View File
@@ -0,0 +1,3 @@
@import "variables";
@import "variables.light";
@import "statusmap"