forked from jakesgordon/javascript-racer
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcommon.css
38 lines (33 loc) · 2.41 KB
/
common.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
/****************************************/
/* common styles used for v1 through v4 */
/****************************************/
::-webkit-scrollbar {
display: none;
}
body { font-family: Arial, Helvetica, sans-serif; background-color: #321; margin: 0px; overflow: hidden; }
#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: 1024px;
height: 512px; */
margin: 0px;
border: 0px solid white;
text-align: left;
font-size: small; font-weight: bold; color: #bbb; }
#canvas { position: relative; z-index: 0; /* width: 1024px; height: 512px; */ z-index: 0; background-color: #72D7EE;
padding: 0; margin: 0; }
#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; z-index: 1; width: 100%; /* width: 1024px; */ padding: 5px 0; font-family: Verdana, Geneva, sans-serif; font-size: 2em; background-color: rgba(40,40,50,0.5); color: black; border-bottom: 2px solid 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-radius: 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 #current_lap_time { float: left; }
#hud #last_lap_time { float: left; display: none; }
#hud #fast_lap_time { display: block; width: 12em; margin: 0 auto; text-align: center; 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); }