-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
177 lines (150 loc) · 2.98 KB
/
styles.css
File metadata and controls
177 lines (150 loc) · 2.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
.container {
display: flex;
flex-direction: column;
height: 100vh;
}
header {
background-color: #f4f4f4;
padding: 10px;
text-align: right;
}
.user-info {
display: inline-block;
}
.dashboard {
display: flex;
justify-content: space-around;
padding: 20px;
background-color: #f4f4f4;
}
.water-consumption, .alarm-message {
background-color: white;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
width: 30%;
text-align: center;
}
.status-chart {
padding: 10px;
border: 1px solid #ccc;
margin: 20px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
width: 30%; /* Take full width of the parent */
box-sizing: border-box;
display: flex;
flex-direction: column;
align-items: center; /* Center contents horizontally */
}
/* Directly style the canvas to be responsive */
#statusChart {
width: 100% !important; /* Ensure canvas takes full width of the container */
max-width: 400px; /* Optional: set a maximum width */
height: 400px !important; /* Set a reasonable height */
}
#waterChart {
width: 100%;
height: 100%;
margin: 0 auto;
}
.meter-display {
font-size: 40px;
margin: 20px 0;
}
.device-table {
padding: 20px;
flex: 1;
}
table {
width: 100%;
border-collapse: collapse;
}
table th, table td {
border: 1px solid #ddd;
padding: 8px;
text-align: center;
}
table th {
background-color: #f4f4f4;
}
#battery1 {
border-right-width: 0px;
}
#battery2 {
border-left-width: 0px;
}
.battery-container {
width: 40px;
height: 15px;
border: 2px solid #000;
border-radius: 3px;
position: relative;
display: inline-block;
vertical-align: middle;
margin-left: 5px;
margin-right: auto;
}
.battery-level {
height: 100%;
background-color: green;
position: absolute;
left: 0;
top: 0;
}
.battery-head {
width: 3px;
height: 6px;
background-color: #000;
position: absolute;
top: 50%;
transform: translateY(-50%);
right: -5px;
}
.low-battery {
background-color: red;
}
.medium-battery {
background-color: orange;
}
.high-battery {
background-color: green;
}
#searchBar {
width: 100%;
padding: 10px 40px 10px 20px;
margin-bottom: 20px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 30px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: border-color 0.3s, box-shadow 0.3s;
}
#searchBar:focus {
border-color: #007BFF;
box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
outline: none;
}
.search-container {
position: relative;
width: 30%;
}
.status-dot {
height: 10px;
width: 10px;
border-radius: 50%;
display: inline-block;
margin-right: 8px;
}
.online {
background-color: #28a745; /* Green */
}
.offline {
background-color: #dc3545; /* Red */
}