forked from gfwilliams/MakeTomatoes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tinydash.css
145 lines (139 loc) · 2.48 KB
/
tinydash.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
/* Copyright (c) 2017, Gordon Williams, MPLv2 License. https://github.com/espruino/TinyDash */
body {
background-color: #000;
}
.td {
position: absolute;
/*border: 2px solid #555;*/
color: #fff;
font: 12px sans-serif;
background-color: #222;
}
.td span {
color: #888;
position: absolute; left: 8px; top: 8px;
}
.td_scrollable::-webkit-scrollbar-track {
background-color: #222;
}
.td_scrollable::-webkit-scrollbar {
width: 12px;
background-color: #000;
}
.td_scrollable::-webkit-scrollbar-thumb {
border-radius: 10px;
background-color: #555;
}
.td_label {
display: table;
text-align: center;
}
.td_label span {
display: table-cell;
vertical-align: middle;
font-size: 20px;
}
.td_btn {
}
.td_btn_a {
margin-top: 20px;
margin-left: auto; margin-right: auto; /* centered */
font-size: 30px;
font-weight: bolder;
color: #555;
border: 2px solid;
border-radius: 16px;
width: 34px;
height: 34px;
padding: 10px;
cursor: pointer;
user-select: none;
}
.td_btn_a:hover { background-color: #036; }
.td_btn[pressed="1"] .td_btn_a { color: #09F; }
.td_btn[pressed="1"] .td_btn_a:hover { background-color: #06B; }
.td_toggle_a {
margin-top: 20px;
margin-left: auto; margin-right: auto; /* centered */
border: 2px solid #fff;
border-radius: 16px;
width: 50px;
height: 28px;
}
.td_toggle_a:hover {
background-color: #06B;
}
.td_toggle_b {
background-color: #fff;
border: 2px solid #fff;
border-radius: 8px;
width: 16px;
height: 16px;
margin: 4px;
}
.td_toggle[pressed="1"] .td_toggle_b {
margin-left: 26px;
}
.td_val {
text-align: center;
}
.td_val div {
display:inline-block;
}
.td_val_a {
margin-top: 20px;
font-size: 20px;
color: #09F;
}
.td_val_b {
margin-left: 10px;
margin-right: 10px;
font-size: 20px;
color: #09F;
cursor: pointer;
user-select: none;
}
.td_val_b:hover {
color:#fff;
}
.td_gauge {
text-align: center;
}
.td_gauge canvas {
width: 100%;
height: 100%;
}
.td_gauge_a {
position: absolute;
left: 0px; right: 0px; top: 50%;
font-size: 40px;
color: #09F;
}
.td_graph {
text-align: center;
}
.td_graph canvas {
width: 100%;
height: 100%;
}
.td_log_a {
position: absolute;
top: 24px;
left: 4px;
right: 4px;
bottom: 4px;
padding: 4px;
background-color: #000;
overflow: auto;
}
.td_modal {
background-color: rgba(0,0,0,0.75);
border: 2px solid white;
cursor: pointer;
user-select: none;
}
.td_modal span {
left: 50%; top: 50%;
transform: translate(-50%, -50%);
font-size: 40px;
}