| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 1 | // Threshold graphs |
| 2 | $thresh-critical: $status-error; | ||||
| 3 | $thresh-warning: $accent-03--02; | ||||
| 4 | $thresh-normal: $accent-02--02; | ||||
| 5 | |||||
| Derick Montague | 1f690f3 | 2019-06-23 12:20:17 -0500 | [diff] [blame] | 6 | .sensors { |
| 7 | max-width: 1196px; | ||||
| Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 8 | } |
| 9 | |||||
| Derick Montague | 1f690f3 | 2019-06-23 12:20:17 -0500 | [diff] [blame] | 10 | .sensors__table { |
| 11 | display: block; | ||||
| 12 | border-collapse: collapse; | ||||
| Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 13 | } |
| 14 | |||||
| Derick Montague | 1f690f3 | 2019-06-23 12:20:17 -0500 | [diff] [blame] | 15 | .sensors__thead { |
| 16 | display: block; | ||||
| 17 | } | ||||
| 18 | |||||
| 19 | .sensors__thead-row { | ||||
| 20 | display: block; | ||||
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 21 | background: $background-05; |
| 22 | color: $primary-light; | ||||
| Derick Montague | 1f690f3 | 2019-06-23 12:20:17 -0500 | [diff] [blame] | 23 | margin-bottom: 1rem; |
| 24 | |||||
| Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 25 | @include mediaQuery(medium) { |
| Derick Montague | 1f690f3 | 2019-06-23 12:20:17 -0500 | [diff] [blame] | 26 | display: flex; |
| 27 | margin-bottom: 0; | ||||
| Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 28 | } |
| Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 29 | } |
| 30 | |||||
| Derick Montague | 1f690f3 | 2019-06-23 12:20:17 -0500 | [diff] [blame] | 31 | .sensors__thead-cell { |
| 32 | display: block; | ||||
| 33 | padding: 1rem; | ||||
| 34 | font-weight: 700; | ||||
| 35 | |||||
| 36 | &:not(:first-child) { | ||||
| 37 | display: none; | ||||
| 38 | } | ||||
| 39 | |||||
| 40 | @include mediaQuery(medium) { | ||||
| 41 | flex: 1; | ||||
| 42 | |||||
| 43 | &:not(:first-child) { | ||||
| 44 | display: block; | ||||
| 45 | flex-grow: 0; | ||||
| 46 | flex-shrink: 0; | ||||
| 47 | flex-basis: 0; | ||||
| 48 | min-width: 16%; | ||||
| 49 | } | ||||
| 50 | } | ||||
| 51 | } | ||||
| 52 | |||||
| 53 | .sensors__tbody { | ||||
| 54 | display: block; | ||||
| 55 | } | ||||
| 56 | |||||
| 57 | .sensors__tbody-row { | ||||
| 58 | display: flex; | ||||
| 59 | flex-direction: column; | ||||
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 60 | border: 1px solid $border-color-01; |
| Derick Montague | 1f690f3 | 2019-06-23 12:20:17 -0500 | [diff] [blame] | 61 | margin-bottom: 1rem; |
| 62 | |||||
| 63 | @include mediaQuery(medium) { | ||||
| 64 | display: flex; | ||||
| 65 | flex-direction: row; | ||||
| 66 | margin-bottom: 0; | ||||
| 67 | } | ||||
| 68 | } | ||||
| 69 | |||||
| 70 | .sensors__tbody-header { | ||||
| 71 | display: block; | ||||
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 72 | background: $background-02; |
| Derick Montague | 1f690f3 | 2019-06-23 12:20:17 -0500 | [diff] [blame] | 73 | padding: 0.5rem 1rem; |
| 74 | font-weight: 700; | ||||
| Derick Montague | 1f690f3 | 2019-06-23 12:20:17 -0500 | [diff] [blame] | 75 | |
| 76 | @include mediaQuery(medium) { | ||||
| 77 | flex: 1; | ||||
| 78 | align-items: center; | ||||
| 79 | background: transparent; | ||||
| 80 | font-weight: 400; | ||||
| 81 | margin-top: 0.5rem; | ||||
| 82 | margin-bottom: 0.5rem; | ||||
| 83 | } | ||||
| 84 | } | ||||
| 85 | |||||
| 86 | .sensors__tbody-cell { | ||||
| 87 | display: flex; | ||||
| 88 | justify-content: space-between; | ||||
| 89 | padding: 0.5rem 1rem; | ||||
| 90 | @include fontCourierBold; | ||||
| 91 | |||||
| 92 | @include mediaQuery(medium) { | ||||
| 93 | flex-grow: 0; | ||||
| 94 | flex-shrink: 0; | ||||
| 95 | flex-basis: 0; | ||||
| 96 | align-items: center; | ||||
| 97 | min-width: 16%; | ||||
| 98 | justify-content: flex-start; | ||||
| 99 | margin-top: 0.5rem; | ||||
| 100 | margin-bottom: 0.5rem; | ||||
| 101 | } | ||||
| 102 | } | ||||
| 103 | |||||
| 104 | .sensors__tbody-cell__title { | ||||
| Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 105 | font-weight: 300; |
| Derick Montague | 1f690f3 | 2019-06-23 12:20:17 -0500 | [diff] [blame] | 106 | |
| Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 107 | @include mediaQuery(medium) { |
| 108 | display: none; | ||||
| 109 | } | ||||
| 110 | } | ||||
| 111 | |||||
| Derick Montague | 1f690f3 | 2019-06-23 12:20:17 -0500 | [diff] [blame] | 112 | .sensors__tbody-unit { |
| 113 | display: inline-block; | ||||
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 114 | color: $text-01; |
| Derick Montague | 1f690f3 | 2019-06-23 12:20:17 -0500 | [diff] [blame] | 115 | margin-left: 0.5em; |
| 116 | font-weight: 700; | ||||
| 117 | text-transform: uppercase; | ||||
| Gunnar Mills | 615a2f8 | 2019-04-17 14:30:39 -0500 | [diff] [blame] | 118 | |
| Gunnar Mills | 615a2f8 | 2019-04-17 14:30:39 -0500 | [diff] [blame] | 119 | @include mediaQuery(medium) { |
| Derick Montague | 1f690f3 | 2019-06-23 12:20:17 -0500 | [diff] [blame] | 120 | margin-left: 0; |
| Gunnar Mills | 615a2f8 | 2019-04-17 14:30:39 -0500 | [diff] [blame] | 121 | } |
| 122 | } | ||||
| 123 | |||||
| Derick Montague | 1f690f3 | 2019-06-23 12:20:17 -0500 | [diff] [blame] | 124 | .sensors__tbody-degree { |
| 125 | display: inline-block; | ||||
| 126 | margin-left: -8px; | ||||
| 127 | } | ||||
| 128 | |||||
| 129 | .sensors__tbody-current { | ||||
| 130 | background: darken($thresh-normal, 3%); | ||||
| 131 | |||||
| 132 | .sensors__tbody-cell__title { | ||||
| Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 133 | font-weight: 700; |
| Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 134 | } |
| Derick Montague | 1f690f3 | 2019-06-23 12:20:17 -0500 | [diff] [blame] | 135 | } |
| 136 | |||||
| 137 | .sensors__tbody-current--critical { | ||||
| 138 | background: $thresh-critical; | ||||
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 139 | color: $primary-light; |
| Derick Montague | 1f690f3 | 2019-06-23 12:20:17 -0500 | [diff] [blame] | 140 | |
| 141 | .sensors__tbody-unit { | ||||
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 142 | color: $primary-light; |
| Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 143 | } |
| Derick Montague | 1f690f3 | 2019-06-23 12:20:17 -0500 | [diff] [blame] | 144 | } |
| 145 | |||||
| 146 | .sensors__tbody-current--warn { | ||||
| 147 | background: $thresh-warning; | ||||
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 148 | color: $primary-dark; |
| Derick Montague | 1f690f3 | 2019-06-23 12:20:17 -0500 | [diff] [blame] | 149 | |
| 150 | .sensors__tbody-unit { | ||||
| Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 151 | color: $primary-dark; |
| Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 152 | } |
| 153 | } | ||||