mirror of
https://github.com/timberjoegithub/grafana-statusmap.git
synced 2026-07-21 23:42:03 +00:00
Continuation of PR #93. - reworked layout for pagination controls on graph - use BucketMatrixPager for pagination logic and state
157 lines
2.6 KiB
SCSS
157 lines
2.6 KiB
SCSS
.status-heatmap-canvas-wrapper {
|
|
// position: relative;
|
|
cursor: crosshair;
|
|
|
|
// allow tooltips on hover of warning text
|
|
.datapoints-warning {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.datapoints-warning span {
|
|
background-color: $warning-bg;
|
|
color: $text-color;
|
|
padding: 1px;
|
|
}
|
|
}
|
|
|
|
.statusmap-panel {
|
|
position: relative;
|
|
|
|
.axis .tick {
|
|
text {
|
|
fill: $text-color;
|
|
color: $text-color;
|
|
font-size: $font-size-tick;
|
|
}
|
|
|
|
line {
|
|
opacity: 0.4;
|
|
stroke: $text-color-weak;
|
|
}
|
|
}
|
|
|
|
// This hack prevents mouseenter/mouseleave events get fired too often
|
|
svg {
|
|
pointer-events: none;
|
|
|
|
rect {
|
|
pointer-events: visiblePainted;
|
|
}
|
|
}
|
|
}
|
|
|
|
.statusmap-tooltip {
|
|
// from .grafana-tooltip
|
|
// '.grafana-tooltip a' makes links not readable for tooltip items.
|
|
position: absolute;
|
|
padding: 10px;
|
|
font-weight: 200;
|
|
border-radius: 5px;
|
|
max-width: 800px;
|
|
max-height: 600px;
|
|
overflow: hidden;
|
|
line-height: 14px;
|
|
z-index: 9999;
|
|
|
|
// more overrides
|
|
white-space: nowrap;
|
|
font-size: $font-size-sm;
|
|
background-color: $graph-tooltip-bg;
|
|
color: $text-color;
|
|
|
|
.discrete-item {
|
|
color: #ffffff;
|
|
padding: 1px;
|
|
font-weight: bold;
|
|
text-shadow: 0 0 0.2em #212124, 0 0 0.2em #212124, 0 0 0.2em #212124;
|
|
}
|
|
}
|
|
|
|
.statusmap-tooltip-frozen {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.statusmap-histogram rect {
|
|
fill: $text-color-weak;
|
|
}
|
|
|
|
.status-heatmap-crosshair {
|
|
line {
|
|
stroke: darken($red,15%);
|
|
stroke-width: 1;
|
|
}
|
|
}
|
|
|
|
.status-heatmap-selection {
|
|
stroke-width: 1;
|
|
fill: rgba(102, 102, 102, 0.4);
|
|
stroke: rgba(102, 102, 102, 0.8);
|
|
}
|
|
|
|
.width-c-40 {
|
|
width: 40.0rem!important
|
|
}
|
|
.width-c-50 {
|
|
width: 50.0rem!important
|
|
}
|
|
.width-c-60 {
|
|
width: 60.0rem!important
|
|
}
|
|
.width-c-70 {
|
|
width: 70.0rem!important
|
|
}
|
|
|
|
.statusmap-pagination {
|
|
// space between legend and pagination controls
|
|
margin-top: 5px;
|
|
label {
|
|
margin-right:0px;
|
|
}
|
|
input {
|
|
margin-right: 0px;
|
|
}
|
|
.last-in-group {
|
|
margin-right: 4px;
|
|
}
|
|
}
|
|
|
|
.pagination-buttons{text-align: right;}
|
|
|
|
.status-heatmap-legend-wrapper {
|
|
margin: 0 10px;
|
|
|
|
svg {
|
|
height: 24px;
|
|
float: left;
|
|
white-space: nowrap;
|
|
//padding-left: 10px; // DO NOT TOUCH THIS! legend will be clipped!
|
|
}
|
|
|
|
.status-heatmap-color-legend {
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.status-heatmap-legend-values {
|
|
display: inline-block;
|
|
}
|
|
|
|
.axis .tick {
|
|
text {
|
|
fill: $text-color;
|
|
color: $text-color;
|
|
font-size: $font-size-tick;
|
|
}
|
|
|
|
line {
|
|
opacity: 0.4;
|
|
stroke: $text-color-weak;
|
|
}
|
|
|
|
.domain {
|
|
opacity: 0.4;
|
|
stroke: $text-color-weak;
|
|
}
|
|
}
|
|
}
|