/
style.css
71 lines (71 loc) · 1.49 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
#error{
position:fixed; top:0; left:0; width:100%;
background:#A00; color:white;
text-align:center;
font-size:1.2em;
padding:12px;
}
body{
max-width: 1200px;
font-family:sans-serif;
padding:20px;
background:#FFF;
color:#444;
}
#shortlink{
color: unset;
font-size: 0.4em
}
/* Grid Layout */
section{display:flex; flex-flow:row wrap}
section>*{
min-height:80px;
min-width:80px;
max-width:300px;
margin:3px;
padding:1em;
background:#BCD;
}
#add-room{font-size:3em; line-height:0}
/* Residents */
.residents>i{color:#555}
.residents>i::before{content:"("}
.residents>i::after{content:"x)"}
.residents>button{margin:2em 1em 0}
.residents>span::after{content:" €"}
.room{position:relative}
.room>button{position:absolute; top:0; right:0; scale:.75}
/* Customize Input Field */
.inpt{display:inline-table}
.inpt>input{width:5em}
.inpt>*{
display:table-cell;
padding:4px 6px;
border:1px solid #CCC;
}
.inpt>span{
color:#555;
background:#EEE;
vertical-align:middle;
border-left:0;
font-size:80%;
}
#soli-val{display:inline-block; width:2.5em}
#soli-val:after{content:"%"}
#soli{width:100%; padding:0; margin:1em 0 0}
/* Customize Button */
input:invalid{background:#FE8}
button:hover{background:#CCC}
button{
padding:4px 6px;
border:1px solid #CCC;
background:#EEE;
}
/* Dark Mode */
@media(prefers-color-scheme:dark){
body{background:#000; color:#FFF}
section>*{background:#123}
button{border:1px solid #444; background:#222; color:#FFF}
button:hover{background:#444}
.residents>i{color:#BBB}
}