-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.css
More file actions
46 lines (39 loc) · 3.07 KB
/
common.css
File metadata and controls
46 lines (39 loc) · 3.07 KB
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
/****************************************/
body { font-family: Arial, Helvetica, sans-serif; }
#stats { border: 2px solid black; }
#controls { width: 28em; float: left; padding: 1em; font-size: 0.7em; }
#controls th { text-align: right; vertical-align: middle; }
#instructions { clear: left; float: left; width: 17em; padding: 1em; border: 1px solid black; box-shadow: 0 0 5px black; }
#racer { position: relative; z-index: 0; width: 640px; height: 480px; margin-left: 20em; border: 2px solid black; }
#canvas { position: absolute; z-index: 0; width: 640px; height: 480px; z-index: 0; background-color: #000000; }
#mute { background-position: 0px 0px; width: 32px; height: 32px; background: url(images/mute.png); display: inline-block; cursor: pointer; position: absolute; margin-left: 20em; }
#mute.on { background-position: -32px 0px; }
/**************************************************/
/* rudimentary heads up display (only used in v4) */
/**************************************************/
#hud { position: absolute; display: block; z-index: 2; width: 640px; padding: 3px 0; font-family: Verdana, Geneva, sans-serif; font-size: 0.8em; background-color: rgba(0,0,0,0.4); color: black; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; }
#hud .hud { background-color: rgba(255,255,255,0.6); padding: 5px; border: 1px solid black; margin: 0 5px; transition-property: background-color; transition-duration: 2s; -webkit-transition-property: background-color; -webkit-transition-duration: 2s; }
#hud #speed { float: right; }
#hud #km_remaining { float: right; }
#hud #smoothness { float: right; }
#hud #time_marker { float: left; }
#hud #seeds_collected { float: left; }
#hud #scale_factor { float: left; transition-property: background-color; transition-duration: 2s; -webkit-transition-property: background-color; -webkit-transition-duration: 2s; }
#hud .value { color: black; font-weight: bold; }
#hud .fastest { background-color: rgba(255,215,0,0.5); }
#frame { position: absolute; overflow: hidden; z-index: 1; width: 640px; height: 480px; padding: 5px 0; background-color: rgba(0,0,0,0.2); border: 35px solid black; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; }
#rotationFrame {
transform-origin: 50% 50%;
-ms-transform-origin: 50% 50%;
-webkit-transform-origin: 50% 50%;
-moz-transform-origin: 50% 50%;
-o-transform-origin: 50% 50%;
}
.buttons { height: 100px; width: 100px; vertical-align: middle; text-align: center;
padding: 3px 0; font-family: Verdana, Geneva, sans-serif; font-size: 0.8em;
background-color: rgba(255,255,255,0.2); color: black; box-sizing: border-box;
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; }
#left { position: absolute; z-index: 2; top: 370px; left: 5px; }
#slower { position: absolute; z-index: 2; top: 260px; left: 5px; }
#right { position: absolute; z-index: 2; top: 370px; left: 535px; }
#faster { position: absolute; z-index: 2; top: 260px; left: 535px; }