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