-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
176 lines (161 loc) · 2.77 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
body {
width: 100%;
margin: 0;
color: black;
}
body.dark {
background-color: black;
color:#BBB
}
#messages {
width: 100%;
}
@media screen and (max-width: 25em) {
#messages {
width: calc(100% - 3em);
}
}
.title {
text-align: center;
white-space: nowrap;
font-size: 1.7em;
font-family: 'Corbel', 'Trebuchet MS', Arial, sans-serif;
margin-top: 0.5em;
}
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 900;
}
#game-container {
width: 100%;
overflow-x: hidden;
}
#game-container.small {
font-size: 0.72em;
}
#game-container.tiny {
font-size: 0.549em;
}
#game {
position: relative;
left: 0;
width: 100%;
}
#game.transition {
transition: left 1000ms ease;
left: -100%;
width: 200%;
}
#game.transition.slow {
transition: left 5000ms ease;
}
#game * {
box-sizing: content-box;
}
.level {
display: inline-flex;
width: 100%;
justify-content: center;
flex-wrap: wrap;
}
#game.transition .level {
width: 50%;
}
.bottle {
width: 3em;
height: 20em;
padding-top: 1em;
margin: 1em;
margin-top: 3em;
transition: margin 300ms, padding 500ms, border 500ms;
border: 0.25em solid black;
border-top: 0;
border-radius: 0 0 1.75em 1.75em;
position: relative;
display: inline-flex;
flex-direction: column-reverse;
vertical-align: text-bottom;
touch-action: manipulation;
}
.dark .bottle {
border-color: gray;
}
.capped {
padding-top: 0;
border-top: 1em solid black;
}
.selected-bottle {
margin-top: 1em;
margin-bottom: 2em;
}
.water {
width: 3em;
height: 0;
}
.water.detached {
position: absolute;
transform: translateY(2.04em);
z-index: -1;
}
.bottle .water:first-of-type, .water.detached.bottom {
border-radius: 0 0 1.75em 1.75em;
}
#level-no {
height: 2.5em;
font-size: 2.5em;
font-family: Verdana, Geneva, Tahoma, sans-serif;
color: #CCC;
position: absolute;
top: 0;
left: 0;
z-index: -1;
}
.dark #level-no {
color: #444;
}
#toolbar {
height: 2.5em;
position: absolute;
top: 0;
right: 0;
z-index: 1000;
}
#toolbar div {
display: inline-block;
cursor: pointer;
font-size: 2.5em;
height: 1.5em;
width: 1.5em;
padding: 0;
text-align: center;
touch-action: manipulation;
color: black
}
.dark #toolbar div {
color: #BBB
}
#toolbar div.inactive {
display: none;
}
#menu > div {
margin-top: 1em;
}
input[type="checkbox"] {
width: 2em;
height: 2em;
vertical-align: middle;
}
input[type="number"] {
font-size: 1em;
vertical-align: middle;
margin-top: -0.2em;
width: 5em;
}
select {
background-color: white;
font-size: 0.8em;
}