-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathstyle.css
124 lines (107 loc) · 1.6 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
* {
margin: 0;
padding: 0;
}
html {
font-family: "Roboto", "Helvetica Neue", sans-serif;
}
body {
background: #445;
text-align: center;
color: white;
}
a {
color: cadetblue;
}
h1,
.btn {
margin: 1rem;
}
h1 {
position: absolute;
}
.btn {
background: cadetblue;
border-color: cadetblue;
color: #fff;
padding: 10px 20px;
font-size: 1rem;
border-radius: 4px;
}
#btn-disconnect {
background: none;
}
.lamp {
width: 40%;
min-width: 325px;
max-width: 430px;
position: fixed;
top: 0;
left: 50%;
transform: translate(-50%, 0);
}
.on,
.rays {
display: none;
}
footer {
position: absolute;
bottom: 1%;
left: 1%;
font-size: 0.8rem;
}
#stats {
bottom: 15%;
position: absolute;
left: 50%;
transform: translate(-50%, 0);
}
.hidden {
display: none;
}
#toggle {
position: absolute;
opacity: 0;
}
.btn-light {
display: inline-block;
font-size: 20px;
height: 30px;
width: 60px;
background: cadetblue;
border-radius: 1em;
}
.btn-light div {
height: 30px;
width: 30px;
border-radius: 1em;
background: #fff;
box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.3);
transition: all 300ms;
}
.btn-light input:checked + div {
-webkit-transform: translate3d(100%, 0, 0);
transform: translate3d(100%, 0, 0);
}
#device-info {
margin: 1rem;
}
@media only screen and (max-device-width: 600px) {
body {
font-size: 40px;
}
.lamp {
width: 80%;
max-width: 80%;
}
#not-connected > button {
font-size: 3rem;
border-radius: 10px;
padding: 20px 40px;
}
}
@media only screen and (min-width: 900px) {
#stats {
bottom: 5%;
}
}