blob: 52230ee2d871a87dbac76273b678551a56f28839 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
// Thresholds graph
$threshColorLighten: 5%;
.threshold-chart__wrapper {
position: relative;
.threshold__label {
position: absolute;
top: 38%;
transform: translateY(-50%);
font-weight: 700;
&.low {
margin-left: 0;
}
&.high {
right: 5px;
}
}
@include mediaQuery(large) {
max-width: 1000px;
}
}
.threshold-chart {
position: relative;
line-height: 0;
padding: .8em 0 2em 0;
margin: 0 2.5em 1em 2.5em;
//margin: 0 auto;
.threshold__marker {
position: absolute;
top: 13px;
bottom: -15px;
width: 4px;
background-color: $black;
@include slowTransition-all;
.threshold__value {
position: absolute;
bottom: 3px;
right: 5px;
margin: 0;
color: $black;
padding: 3px 6px;
font-weight: 400;
font-size: 1em;
white-space: nowrap;
}
}
.threshold {
display: inline-block;
background-color: $thresh-normal;
min-width: 10%;
min-height: 25px;
margin: 0 -3px;
&.thresh__normal {
min-width: 60%;
}
}
.threshold__marker,
.threshold {
&.thresh__low-critical {
background-color: $thresh-critical;
}
&.thresh__low-warn {
background-color: $thresh-warning;
}
&.thresh__high-warn {
background-color: $thresh-warning;
}
&.thresh__high-critical {
background-color: $thresh-critical;
}
&.thresh__normal {
background-color: $thresh-normal;
}
}
}
|