blob: 2d5e2cefd33dbe115c9b14aaeb6c331e2f0e0afc [file] [log] [blame]
Michael Davisaeedf9e2017-04-06 14:35:56 -05001@mixin state-label {
2 text-transform: uppercase;
3 font-weight: 700;
4 font-size: .8em;
5}
6
7$title-minWidth: 210px;
8
Iftekharul Islam8947e702017-07-27 10:28:07 -05009.header__actions-bar {
10 padding-left: 1.5em;
Michael Davisaeedf9e2017-04-06 14:35:56 -050011 font-weight: 700;
Iftekharul Islam8947e702017-07-27 10:28:07 -050012 .sensor__heading-current {
13 padding-right: 1em;
Michael Davisaeedf9e2017-04-06 14:35:56 -050014 }
15}
16
Iftekharul Islam8947e702017-07-27 10:28:07 -050017.sensor__heading-current {
18 margin: 0;
19 @include mediaQuery(medium) {
20 margin-left: 10px;
21 margin-right: 10px;
22 }
Michael Davisaeedf9e2017-04-06 14:35:56 -050023}
24
Iftekharul Islam8947e702017-07-27 10:28:07 -050025.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 Islam8947e702017-07-27 10:28:07 -050065 .sensor__title {
Michael Davisaeedf9e2017-04-06 14:35:56 -050066 font-weight: 700;
Iftekharul Islam8947e702017-07-27 10:28:07 -050067 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;
Iftekharul Islam8947e702017-07-27 10:28:07 -050079 }
80 .sensor__reading {
81 @include fontCourierBold;
82 display: block;
83 padding: .3em .8em;
84 @include mediaQuery(medium) {
85 display: inline-block;
86 padding: 0;
87 }
88 }
89 .sensor__current {
90 background: darken($thresh-normal, 3%);
91 margin: 0;
92 @include mediaQuery(medium) {
93 background: $thresh-normal;
94 padding: .7em 1em;
95 margin-left: 10px;
96 margin-right: 10px;
97 }
98 .sensor__label {
99 font-weight: 700;
100 @include mediaQuery(medium) {
101 font-weight:300;
102 }
103 }
104 }
105 .sensor__critical {
106 background: $thresh-critical;
107 color: $white;
108 .content-label {
109 color: $white;
110 }
111 }
112 .sensor__warn {
113 background: $thresh-warning;
114 color: $black;
115 .content-label {
Michael Davisaeedf9e2017-04-06 14:35:56 -0500116 color: $black;
117 }
Michael Davisaeedf9e2017-04-06 14:35:56 -0500118 }
Iftekharul Islam8947e702017-07-27 10:28:07 -0500119
Michael Davisaeedf9e2017-04-06 14:35:56 -0500120}
121
122// Sensors
123
124#sensors, #sensors-overview {
Iftekharul Islam8947e702017-07-27 10:28:07 -0500125
Michael Davisaeedf9e2017-04-06 14:35:56 -0500126 .content__search {
127 max-width: 100%;
128 @media(min-width: 1300px) {
Iftekharul Islam8947e702017-07-27 10:28:07 -0500129 max-width: 70%;
Michael Davisaeedf9e2017-04-06 14:35:56 -0500130 }
131 }
132 .toggle-filter {
Michael Davisaeedf9e2017-04-06 14:35:56 -0500133 margin-right: 0;
134 }
135}
136
Iftekharul Islam8947e702017-07-27 10:28:07 -0500137//end sensor details