-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
108 lines (88 loc) · 1.71 KB
/
styles.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
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html {
background-color: #222;
padding: 0;
margin: 0;
}
body {
color: #eee;
font-family: helvetica, arial, sans-serif;
margin: 0;
font-size: 10pt;
line-height: 1.3;
}
h1 {
color: #ccc;
font-size: 16px;
font-weight: normal;
text-transform: uppercase;
margin: 10px 0 6px 0;
}
a {
color: #0170ce;
text-decoration: none;
font-weight: bold;
}
a:hover {
color: #077fe5;
}
.panel {
margin-bottom: 32px;
padding: 8px;
background-color: rgba(0,0,0,0.5);
}
.option {
padding: 4px 0 4px 0;
}
label {
color: #fff;
font-weight: bold;
cursor: pointer;
}
#no-webgl-notice {
text-align: center;
font-size: 24px;
padding: 64px 24px;
color: #ffbc6c;
}
#rotate-to-play {
text-align: center;
margin-bottom: 48px;
}
/*
Display or hide certain elements depending on platform (mobile/desktop),
orientation (landscape/portrait) and webgl support.
The body classes .mobile or .desktop and .webgl or .no-webgl are set in
JavaScript in the lib/game/main.js
*/
@media all and (orientation:portrait) { body.mobile .landscape-only { display: none; } }
@media all and (orientation:landscape) { body.mobile .portrait-only { display: none; } }
body.mobile .desktop-only { display: none; }
body.desktop .mobile-only { display: none; }
body.webgl .no-webgl-only { display: none; }
body.no-webgl .webgl-only { display: none; }
body.desktop {
padding: 32px 0 128px 0;
width: 640px;
margin: 0 auto;
}
body.mobile {
padding: 0;
width: auto;
font-size: 8px;
}
body.desktop #canvas {
width: 640px;
height: 480px;
background-color: #000;
}
body.mobile #canvas {
position: fixed;
width: 100%;
height: 100%;
background-color: #000;
}