Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 1 | // Thresholds graph |
| 2 | |
| 3 | $threshColorLighten: 5%; |
| 4 | .threshold-chart__wrapper { |
| 5 | position: relative; |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 6 | .threshold__label { |
| 7 | position: absolute; |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 8 | top: 38%; |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 9 | 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 Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 26 | padding: .8em 0 2em 0; |
Michael Davis | 2d055fe | 2017-04-26 10:24:37 -0500 | [diff] [blame^] | 27 | margin: 0 2.5em 1em 2.5em; |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 28 | //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 Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 48 | |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 49 | .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 | } |