-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
158 lines (152 loc) · 3.52 KB
/
style.css
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
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300,200,600,900,700);
html, body {
height: 100%;
padding: 0;
margin: 0;
font-family: "Source Sans Pro", sans-serif;
}
#connect {
width: 40%; /* Ширина блока */
position: fixed; /* Фиксированное позиционирование поверх других блоков */
top: 50%; /* Расположение по вертикали */
left: 50%; /* Расположение по горизонтали */
transform: translate(-50%, -50%); /* Центрирование блока */
background: white; /* Фон, если нужно */
padding: 20px; /* Внутренний отступ, если нужно */
box-shadow: 0 0 3px rgba(0, 0, 0, 0.5); /* Тень для визуального выделения, если нужно */
z-index: 1000; /* Убедитесь, что блок выше других элементов */
background: #333333;
color:#fff;
}
.dimmed {
filter: blur(5px); /* Делает другие элементы мутными */
pointer-events: none; /* Отключает взаимодействие с другими элементами */
}
.hidden {
display: none;
}
#main-column {
min-height: 100%;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
color: #cdcfce;
}
#main-column > div {
display: flex;
flex-direction: column;
justify-content: flex-start;
flex: 1 1 auto;
}
#main-column > #about {
flex: 0 1 0;
}
#main-column > div#sensorValues {
flex: 2 1 0;
}
#main-column > div#sensorData {
flex: 3 1 0;
padding: 0;
margin: 0;
}
.dashboard > div {
padding: 1rem;
}
.dashboard > div:nth-child(1) {
background: #333333;
}
.dashboard > div:nth-child(2) {
background: #383838;
}
.dashboard > div:nth-child(3) {
background: #3d3d3d;
}
.dashboard > div h1, .dashboard > div h2 {
margin: 0 0 0.2rem 0;
}
.dashboard > div a {
text-decoration: none;
}
.mkr-link {
color: #2b908f;
}
.j5-link {
color: #ecdb43;
}
.dashboard > div p {
margin: 0;
}
div#about h1 span:nth-of-type(1) {
color: #2b908f;
font-weight: 400;
}
div#about h1 span:nth-of-type(2) {
color: #90ee7e;
}
div#sensorValues {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
div#sensorValues div.sensor-values {
display: flex;
flex: 1;
flex-direction: column;
flex-wrap: nowrap;
text-align: center;
}
div#sensorValues div.sensor-values > div {
font-size: 4em;
font-weight: 200;
}
div#sensorValues div.sensor-values > label {
font-size: 1.5em;
}
div#sensorValues div.sensor-values div.volts {
color: #2b908f;
}
div#sensorValues div.sensor-values div.amps {
color: #90ee7e;
}
div#sensorValues div.sensor-values div.moisture {
color: #f45b5b;
}
div#sensorValues div.sensor-values div.moisture span {
margin-left: 10px;
font-size: 0.4em;
}
@media screen and (max-width: 800px) {
div#about {
display: none;
}
div#sensorValues {
flex-direction: column;
font-size: 0.8em;
align-items: center;
}
div#sensorValues div.sensor-values {
flex-direction: row;
align-items: flex-end;
}
div#sensorValues div.sensor-values label {
margin-left: 10px;
margin-bottom: 10px;
}
}
@media screen and (max-height: 700px) {
div#about {
display: none;
}
div#sensorValues {
flex-direction: row;
font-size: 0.5em;
}
div#sensorValues div.sensor-values > label {
font-size: 1em;
}
}