-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
115 lines (114 loc) · 2.66 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
body {
background-color: #212121;
font-family: Arial, sans-serif;
text-align: center;
margin-top: 50px;
}
canvas {
border: 1px solid black;
}
.gpio {
margin: 20px;
text-align: left;
}
.gpio label {
display: inline-block;
width: 100px;
}
.color-inputs {
margin-top: 20px;
}
button {
--button_radius: 0.75em;
--button_color: #e8e8e8;
--button_outline_color: #000000;
font-size: 17px;
font-weight: bold;
border: none;
border-radius: var(--button_radius);
background: var(--button_outline_color);
padding: 0;
cursor: pointer;
}
.button_top {
display: block;
box-sizing: border-box;
border: 2px solid var(--button_outline_color);
border-radius: var(--button_radius);
padding: 0.75em 1.5em;
background: var(--button_color);
color: var(--button_outline_color);
transition: transform 0.1s ease;
}
button:hover .button_top {
transform: translateY(-0.33em);
}
button:active .button_top {
transform: translateY(0);
}
.toggle-switch {
position: relative;
display: inline-block;
width: 80px;
height: 40px;
cursor: pointer;
}
.toggle-switch input[type="checkbox"] {
display: none;
}
.toggle-switch-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #ddd;
border-radius: 20px;
box-shadow: inset 0 0 0 2px #ccc;
transition: background-color 0.3s ease-in-out;
}
.toggle-switch-handle {
position: absolute;
top: 5px;
left: 5px;
width: 30px;
height: 30px;
background-color: #fff;
border-radius: 50%;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease-in-out;
}
.toggle-switch input[type="checkbox"]:checked + .toggle-switch-background {
background-color: #05c46b;
box-shadow: inset 0 0 0 2px #04b360;
}
.toggle-switch input[type="checkbox"]:checked + .toggle-switch-background .toggle-switch-handle {
transform: translateX(40px);
}
.input {
border: 2px solid #e8e8e8;
padding: 15px;
border-radius: 10px;
background-color: #212121;
font-size: small;
font-weight: bold;
text-align: center;
}
.input:focus {
outline-color: white;
background-color: #212121;
color: #e8e8e8;
box-shadow: 5px 5px #888888;
}
#gpioControls {
display: flex;
flex-direction: column;
align-items: center;
}
.color-circle {
width: 30px;
height: 30px;
border-radius: 50%;
margin-top: 10px;
display: inline-block;
}