grafana/public/sass/components/_panel_singlestat.scss
mammuthus 0cfdd726f7
Singlestat value: vertical alignment fix
There is a problem with vertical alignment of Singlestat value - it's a bit lower then it has to be.
This hack fix it.
2018-05-20 21:28:53 +03:00

31 lines
522 B
SCSS

.singlestat-panel {
position: relative;
display: table;
width: 100%;
height: 100%;
}
.singlestat-panel-value-container {
line-height: 1;
display: table-cell;
vertical-align: middle;
text-align: center;
z-index: 1;
font-size: 3em;
font-weight: bold;
margin: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding-bottom: 10px;
}
.singlestat-panel-prefix {
padding-right: 20px;
}
#flotGagueValue0 {
font-weight: bold; //please dont hurt me for this!
}