Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 1 | @mixin state-label { |
| 2 | text-transform: uppercase; |
| 3 | font-weight: 700; |
| 4 | font-size: .8em; |
| 5 | } |
| 6 | |
| 7 | $title-minWidth: 210px; |
| 8 | |
Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 9 | .header__actions-bar { |
| 10 | padding-left: 1.5em; |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 11 | font-weight: 700; |
Iftekharul Islam | 0805441 | 2017-08-25 10:29:57 -0500 | [diff] [blame] | 12 | .sensor__reading { |
| 13 | margin-right: .3em; |
| 14 | } |
Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 15 | .sensor__heading-current { |
| 16 | padding-right: 1em; |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 17 | } |
| 18 | } |
| 19 | |
Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 20 | .sensor__heading-current { |
| 21 | margin: 0; |
| 22 | @include mediaQuery(medium) { |
| 23 | margin-left: 10px; |
| 24 | margin-right: 10px; |
| 25 | } |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 26 | } |
| 27 | |
Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 28 | .sensor__label { |
| 29 | float: left; |
| 30 | font-weight: 300; |
| 31 | @include mediaQuery(medium) { |
| 32 | display: none; |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | .sensor__title { |
| 37 | min-width: 30%; |
| 38 | margin-bottom: 0; |
| 39 | } |
| 40 | |
| 41 | .sensor__reading { |
| 42 | width: 100%; |
| 43 | text-align: right; |
| 44 | margin-bottom: 0; |
| 45 | display: none; |
| 46 | @include mediaQuery(medium) { |
| 47 | display: inline-block; |
| 48 | width: auto; |
Iftekharul Islam | db28a38 | 2017-11-02 13:16:17 -0500 | [diff] [blame] | 49 | min-width: calc(70% * (1 / 5) - 18px); |
Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 50 | } |
| 51 | } |
| 52 | |
| 53 | .sensor__readings-row { |
Gunnar Mills | 84e114a | 2018-11-14 13:44:41 -0600 | [diff] [blame^] | 54 | width: 100%; |
Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 55 | position: relative; |
| 56 | display: block; |
| 57 | margin: 0; |
| 58 | background: $white; |
| 59 | text-decoration: none; |
| 60 | border: 1px solid $medgrey; |
| 61 | background: lighten($lightgrey,1%); |
| 62 | margin-top: 1em; |
| 63 | @include mediaQuery(medium) { |
| 64 | padding: .3em 1em .3em 1.5em; |
| 65 | margin-top: 0; |
| 66 | border-top: 0; |
| 67 | background: transparent; |
| 68 | } |
Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 69 | .sensor__title { |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 70 | font-weight: 700; |
Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 71 | background: darken($lightgrey, 5%); |
| 72 | min-width: 100%; |
| 73 | padding: .8em; |
| 74 | @include mediaQuery(medium) { |
| 75 | min-width: 30%; |
| 76 | background: transparent; |
| 77 | padding: .5em .5em .5em 0; |
| 78 | } |
Iftekharul Islam | 0805441 | 2017-08-25 10:29:57 -0500 | [diff] [blame] | 79 | .icon__normal { |
| 80 | width: 0; |
| 81 | } |
Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 82 | } |
| 83 | .content-label { |
Iftekharul Islam | db28a38 | 2017-11-02 13:16:17 -0500 | [diff] [blame] | 84 | font-size: 1em; |
| 85 | margin-left: .8em; |
Michael Davis | b8a41c1 | 2017-08-14 14:59:46 -0500 | [diff] [blame] | 86 | color: $darkgrey; |
Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 87 | } |
| 88 | .sensor__reading { |
| 89 | @include fontCourierBold; |
| 90 | display: block; |
| 91 | padding: .3em .8em; |
| 92 | @include mediaQuery(medium) { |
| 93 | display: inline-block; |
| 94 | padding: 0; |
| 95 | } |
| 96 | } |
| 97 | .sensor__current { |
| 98 | background: darken($thresh-normal, 3%); |
| 99 | margin: 0; |
| 100 | @include mediaQuery(medium) { |
| 101 | background: $thresh-normal; |
Michael Davis | 1f370d5 | 2017-08-14 15:54:03 -0500 | [diff] [blame] | 102 | padding: .7em .3em; |
| 103 | margin-left: 10px; |
| 104 | min-width: 109px; |
| 105 | } |
| 106 | @include mediaQuery(large) { |
| 107 | background: $thresh-normal; |
Iftekharul Islam | 0805441 | 2017-08-25 10:29:57 -0500 | [diff] [blame] | 108 | padding: .7em; |
| 109 | margin-left: .3em; |
| 110 | margin-right: .3em; |
| 111 | min-width: 150px; |
Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 112 | } |
| 113 | .sensor__label { |
| 114 | font-weight: 700; |
| 115 | @include mediaQuery(medium) { |
| 116 | font-weight:300; |
| 117 | } |
| 118 | } |
| 119 | } |
| 120 | .sensor__critical { |
| 121 | background: $thresh-critical; |
| 122 | color: $white; |
| 123 | .content-label { |
| 124 | color: $white; |
| 125 | } |
| 126 | } |
| 127 | .sensor__warn { |
| 128 | background: $thresh-warning; |
| 129 | color: $black; |
| 130 | .content-label { |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 131 | color: $black; |
| 132 | } |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 133 | } |
Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 134 | |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 135 | } |
| 136 | |
| 137 | // Sensors |
| 138 | |
| 139 | #sensors, #sensors-overview { |
Iftekharul Islam | 8947e70 | 2017-07-27 10:28:07 -0500 | [diff] [blame] | 140 | |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 141 | .toggle-filter { |
Michael Davis | aeedf9e | 2017-04-06 14:35:56 -0500 | [diff] [blame] | 142 | margin-right: 0; |
| 143 | } |
| 144 | } |
| 145 | |
Gunnar Mills | 84e114a | 2018-11-14 13:44:41 -0600 | [diff] [blame^] | 146 | //end sensor details |