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