-
Notifications
You must be signed in to change notification settings - Fork 0
/
threematch.css
361 lines (299 loc) · 6.24 KB
/
threematch.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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
/*
* Maine Campus Crush
*
* A Bejewled clone for public higher education in Maine.
* Client based on http://www.emanueleferonato.com/2011/10/07/complete-bejeweled-prototype-made-wiht-jquery/
* Server based on https://mashe.hawksey.info/2014/07/google-sheets-as-a-database-insert-with-apps-script-using-postget-methods-with-ajax-example/
*
* February 1, 2015 - Stephen Houser
*
* Copyright (C) 2015 Stephen Houser
* This work is licensed inder a Creative Commons Attribution-Noncommercial-Share
* Alike 3.0 United States License (CC BY-NC-SA 3.0 US)
* http://creativecommons.org/licenses/by-nc-sa/3.0/us/
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* As long as you retain this notice you can do whatever you want with this stuff.
* If we meet some day, and you think this stuff is worth it, you can buy me a beer
* in return.
* ----------------------------------------------------------------------------
*/
* {
margin: 0;
}
html, body {
background-color: black;
margin: 0;
padding: 0;
}
a {
color: white;
outline: none;
}
#splash {
display: none;
}
#header {
width: 100%;
color: white;
}
#header .left {
position: absolute;
top: 10px;
left: 5%;
font-size: x-large;
}
#header .right {
position: absolute;
top: 10px;
right: 5%;
font-size: x-large;
}
#header .center {
text-align: center;
font-size: 350%;
}
#header .center a {
text-decoration: none;
}
#footer {
position: absolute;
bottom: 10px;
left: 10px;
color: grey;
}
#gamefield {
position: relative;
margin: auto;
width: 50%;
height: 90%;
min-width: 320px;
/* overflow: hidden; */
-webkit-user-select: none; /* prevent from selecting text */
/* debug */
/* background-color: grey; */
}
.gem {
position: absolute;
margin: 5px;
border: 3px solid white;
border-radius: 5px;
cursor: pointer;
background-size: 90%; /*52px;*/
background-repeat: no-repeat;
background-position: center;
}
/* unsed at the moment.
intended for highlighting the selected tile
*/
.selected {
border-color: black;
}
@-webkit-keyframes marker {
from {
-webkit-transform: scale(0.95, 0.95);
}
to {
-webkit-transform: scale(1.025, 1.025);
}
}
@-moz-keyframes marker {
from {
-moz-transform: scale(0.95, 0.95);
}
to {
-moz-transform: scale(1.025, 1.025);
}
}
#marker {
display: none;
border: 7px solid white;
z-index: 1;
-webkit-animation: marker 250ms infinite alternate;
-moz-animation: markern 250ms infinite alternate;
}
.jeweltype0 {
background-color: white;
background-image: url(icon.png);
}
.jeweltype1 {
background-color: #60C659;
background-image: url(uma.png);
}
.jeweltype2 {
background-color: maroon;
background-image: url(umf.png);
}
.jeweltype3 {
background-color: gold;
background-image: url(umfk.png);
}
.jeweltype4 {
background-color: green;
background-image: url(umm.png);
}
.jeweltype5 {
background-color: #75B2DD;
background-image: url(umaine.png) ;
}
.jeweltype6 {
background-color: rgba(0, 56, 147, 0.6);
background-image: url(usm.png);
}
.jeweltype7 {
background-color: gold;
background-image: url(umpi.png);
}
.jeweltype8 {
background-color: white;
background-image: url(ums.png);
}
#about, #playfor, #leaderboard, #gameover {
display: none;
}
#playfor {
padding: 5px;
cursor : pointer;
}
.no-close .ui-dialog-titlebar-close {
display: none;
}
#about ul, #playfor ul {
width: 100%;
margin: 0 auto;
padding: 0;
text-align: center;
}
#about ul li, #playfor ul li {
display: inline-block;
margin: 2px auto;
background-image: none;
border: 2px solid grey;
border-radius: 5px;
width: 45%;
max-width: 150px;
vertical-align: top;
}
#about ul li a, #playfor ul li a {
display: block
}
#leaderboard {
padding: 0px;
}
#leaderboard ul {
width: 100%;
padding: 0px;
}
#leaderboard ul li {
background-repeat: no-repeat;
border-radius: 5px;
height: 44px;
background-size: 44px;
margin-bottom: 3px;
}
#leaderboard ul li p {
display: inline-block;
vertical-align: middle;
}
ul#myscores li {
height: 32px;
}
ul#myscores li p {
margin-top: 5px;
margin-left: 10px;
}
ul#teamscores li p {
margin-left: 48px;
font-weight: bold;
font-size: x-large;
}
ul#myscores li .score,
ul#teamscores li .score {
float: right;
display: inline-block;
margin: 5px;
font-weight: normal;
}
/* jQuery UI settings */
.ui-dialog .ui-dialog-title {
text-align: center;
}
/* Center jQuery buttons on dialogs */
.ui-dialog .ui-dialog-buttonpane {
margin: 0px;
padding: 0px;
text-align: center;
}
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
float: none;
}
/* iPhone 4 and 4s ----------- */
/*
@media only screen
and (max-device-height : 480px) {
#header .left, #header .right {
top: 0px;
font-size: large;
}
#header .center {
font-size: large;
}
}
*/
/* iPhone > =5 ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
#header .left, #header .right {
font-size: large;
}
#header .center {
font-size: xx-large;
}
#gamefield {
width: 98%;
min-width: 310px;
height: 98%;
}
.gem {
margin: 3px;
background-size: 95%;
border: 2px solid white;
}
#marker {
border: 5px solid white;
}
}
/* iPads (portrait and landscape) ----------- */
/*
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px) {
}
*/
/* iPads (landscape) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : landscape) {
#gamefield {
width: 43%;
}
}
/* iPads (portrait) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait) {
#gamefield {
margin-top: 20px;
width: 80%;
}
}
/* iPhone 4 ----------- */
/*
@media
only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5) {
}
*/