PTMagic/Monitor/wwwroot/assets/scss/_charts.scss

285 lines
5.5 KiB
SCSS
Raw Normal View History

2018-05-22 10:11:50 +02:00
/* =============
Charts
============= */
/* Morris chart */
.morris-hover.morris-default-style {
border-radius: 5px;
padding: 10px 12px;
background: $white;
border: none;
color: $dark !important;
.morris-hover-point {
color: $dark !important;
}
}
.chart-detail-list {
li {
margin: 0 10px;
h5{
font-size: 15px;
}
}
}
.pieLabel {
div {
font-size: 14px !important;
}
}
.jqstooltip {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
}
.chart {
position: relative;
display: inline-block;
width: 110px;
height: 110px;
margin-top: 20px;
margin-bottom: 20px;
text-align: center;
canvas {
position: absolute;
top: 0;
left: 0;
}
}
.chart.chart-widget-pie {
margin-top: 5px;
margin-bottom: 5px;
}
.percent {
display: inline-block;
line-height: 110px;
z-index: 2;
font-weight: 600;
font-size: 18px;
color: $white;
&:after {
content: '%';
margin-left: 0.1em;
font-size: .8em;
}
}
#flotTip {
padding: 8px 12px;
background-color: $white;
z-index: 100;
color: $dark;
opacity: 0.9;
font-size: 13px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.legend {
tr {
height: 20px;
}
}
.legend div:first-of-type {
background-color: transparent !important;
}
.legendLabel {
padding-left: 5px !important;
line-height: 10px;
padding-right: 10px;
color: $muted;
}
/* Sparkline chart */
.jqstooltip {
background-color: $white !important;
padding: 5px 10px !important;
border-radius: 3px;
}
.jqsfield {
font-size: 12px !important;
line-height: 18px !important;
color: $dark !important;
}
/* C3 chart */
.c3-tooltip td>span {
background: $dark;
}
.c3-tooltip td {
border-left: none;
}
.c3-tooltip {
box-shadow: 0 0 8px 0 #777;
opacity: 1;
}
.c3-chart-arcs-title {
font-size: 18px;
font-weight: 600;
}
.c3-tooltip tr {
border: none !important;
}
.c3-tooltip th {
background-color: $dark;
}
.c3 text {
fill: rgba($white, 0.5);
font-size: 14px;
}
.c3 line,
.c3 path {
stroke: rgba($white, 0.5);
}
/* Chartist chart */
.ct-golden-section:before {
float: none;
}
.ct-grid {
stroke: rgba($white, 0.2);
}
.ct-chart {
height: 300px;
.ct-label {
fill: #a3afb7;
color: #a3afb7;
font-size: 12px;
line-height: 1;
}
}
.ct-chart.simple-pie-chart-chartist {
.ct-label {
color: $white;
fill: $white;
font-size: 16px;
}
}
.ct-chart .ct-series.ct-series-a .ct-bar, .ct-chart .ct-series.ct-series-a .ct-line, .ct-chart .ct-series.ct-series-a .ct-point, .ct-chart .ct-series.ct-series-a .ct-slice-donut {
stroke: $primary;
}
.ct-chart .ct-series.ct-series-b .ct-bar, .ct-chart .ct-series.ct-series-b .ct-line, .ct-chart .ct-series.ct-series-b .ct-point, .ct-chart .ct-series.ct-series-b .ct-slice-donut {
stroke: $pink;
}
.ct-chart .ct-series.ct-series-c .ct-bar, .ct-chart .ct-series.ct-series-c .ct-line, .ct-chart .ct-series.ct-series-c .ct-point, .ct-chart .ct-series.ct-series-c .ct-slice-donut {
stroke: $info;
}
.ct-chart .ct-series.ct-series-d .ct-bar, .ct-chart .ct-series.ct-series-d .ct-line, .ct-chart .ct-series.ct-series-d .ct-point, .ct-chart .ct-series.ct-series-d .ct-slice-donut {
stroke: $custom;
}
.ct-chart .ct-series.ct-series-e .ct-bar, .ct-chart .ct-series.ct-series-e .ct-line, .ct-chart .ct-series.ct-series-e .ct-point, .ct-chart .ct-series.ct-series-e .ct-slice-donut {
stroke: $dark;
}
.ct-chart .ct-series.ct-series-f .ct-bar, .ct-chart .ct-series.ct-series-f .ct-line, .ct-chart .ct-series.ct-series-f .ct-point, .ct-chart .ct-series.ct-series-f .ct-slice-donut {
stroke: $purple;
}
.ct-chart .ct-series.ct-series-g .ct-bar, .ct-chart .ct-series.ct-series-g .ct-line, .ct-chart .ct-series.ct-series-g .ct-point, .ct-chart .ct-series.ct-series-g .ct-slice-donut {
stroke: $success;
}
.ct-series-a .ct-area, .ct-series-a .ct-slice-pie {
fill: $primary;
}
.ct-series-b .ct-area, .ct-series-b .ct-slice-pie {
fill: $pink;
}
.ct-series-c .ct-area, .ct-series-c .ct-slice-pie {
fill: $info;
}
.ct-series-d .ct-area, .ct-series-d .ct-slice-pie {
fill: $custom;
}
.chartist-tooltip {
position: absolute;
display: inline-block;
opacity: 0;
min-width: 10px;
padding: 2px 10px;
border-radius: 3px;
background: $white;
color: $dark;
text-align: center;
pointer-events: none;
z-index: 1;
-webkit-transition: opacity .2s linear;
-moz-transition: opacity .2s linear;
-o-transition: opacity .2s linear;
transition: opacity .2s linear;
}
.chartist-tooltip.tooltip-show {
opacity: 1;
}
/* Circliful charts */
.circliful-chart {
margin: 0 auto;
}
.circle-text, .circle-info, .circle-text-half, .circle-info-half {
font-size: 12px;
font-weight: 600;
}
/* === Nvd3 Charts === */
.nvd3 text {
fill: rgba($white, 0.3);
}
.nvd3 .nv-axis line,
.nvd3 .nv-axis path {
stroke: rgba($white, 0.1);
}
.nvd3 .nv-discretebar .nv-groups text,
.nvd3 .nv-multibarHorizontal .nv-groups text {
fill: rgba($white, 0.5);
}
.multi-chart .nv-legend-symbol {
fill: $white !important;
fill-opacity: 0;
stroke: $white !important;
}
/* Ricksaw Charts */
#legend {
background: $dark;
position: absolute;
top: 0;
right: 15px;
}
#legend .line {
color: #333;
}
.rickshaw_graph .detail .x_label {
color: $dark;
}
.rickshaw_graph .detail {
background: rgba($white,.1);
}
.rickshaw_graph {
svg {
max-width: 100%;
}
}
.rickshaw_legend {
.label {
font-family: inherit;
letter-spacing: 0.01em;
font-weight: 600;
color: $white;
}
}