forked from pdjstone/furby-web-bluetooth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
furble.css
124 lines (106 loc) · 2.82 KB
/
furble.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
@charset "utf-8";
:root {
--bg-primary: rgb(243, 0, 170);
}
body { font-family: sans }
#sensors li { font-size: 20pt }
button, input, select { font-size: 14pt }
input[type=number] { font-size: 20pt }
.row { display: flex; margin: .6em 0; align-items: center }
.row button, .row input, .row select { flex-grow: 1; margin: .2em; height: 3em}
body * { user-select: none }
#console {
position: fixed;
bottom: 0; left: 0;
background: #eee;
left:0;
right: 0;
padding: 0.5em;
padding-top: 0;
user-select: all;
}
#console > h3::before { content: '+'; display: inline-block; margin: 0 .5em; padding: 0; width: 1em }
#console.expanded > h3::before { content: '—' }
#out {
overflow-y: scroll;
height:2em;
transition-property: height;
transition-duration: 0.3s;
user-select: all;
}
#console.expanded #out {
height: 25em;
}
button#hamburger {
background-color: transparent;
border: none;
font-size: 25pt;
padding: .3em .8em;
color: white;
font-weight: bold;
float: left;
margin-left: -18px;
-margin-top: -10px;
margin-right: -10px }
body.keyboard #console { display: none }
#console h2 { margin: 0; padding: 0 }
#console .clip { float: right; display: none }
#console.expanded .clip { display: inline-block }
h1 { font-size: 15pt; margin: 0 0 0.3em 0}
progress { width: 100%; display:none }
.header { color: white;
background-color: var(--bg-primary);
margin:-.5em -.5em 1em -.5em;
height: 3.5em;
padding: .5em;
}
.header button { float: right; width: 30%; float: top; height: 3em }
#status {
position: absolute;
font-size: 20pt;
top:0;
left:0;
right: 0;
padding: .2em;
color: white;
text-align: center;
box-shadow: 0px 5px 5px rgba(0,0,0,0.2);
transform: translateX(-100%);
transition-property: transform;
transition-duration: 0.3s;
}
#status.on { transform: translateX(0);}
#status.error { background-color: rgb(226, 52, 52) }
#status.ok { background-color: rgb(53, 185, 0) }
#menu {
position: fixed;
left: 0;
top: 0;
bottom: 0;
color: white;
background-color: var(--bg-primary);
transform: translateX(-100%);
transition-property: transform;
transition-duration: 0.3s;
}
#menu h2 { padding: 0em 2em }
#menu a {
color: white;
font-weight: bold;
text-decoration: none;
display: block;
padding: 1em 2em;
}
#menu a.current {
background-color: white;
color: darkblue;
}
#hamburger:focus + #menu {
transform: translateX(0);
box-shadow: 5px 0px 5px rgba(0,0,0,0.3);
}
#menu ul { padding: 0 }
#menu li { list-style: none; padding: 0; margin: 0}
section { display: none}
section.current { display: block }
#actions input[type=number] { width: 2em; text-align: center; border: 2px solid var(--bg-primary); height: 2em}