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