-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
94 lines (86 loc) · 1.45 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
* {
padding:0;
margin: 0;
}
html,body{
height: 100%;
width:100%;
}
canvas {
display: block;
}
body{
/*background: #e7e7e7;*/
color: #fff;
font-family: Verdana,Arial, sans-serif;
font-size: 18px;
}
h1{
font-size: 30px;
}
a{
color: #fff;
text-decoration:none;
}
a:hover{
text-decoration: underline;
}
.button{
background: #185da8;
border-radius: 5px;
display: block;
font-size: 18px;
margin-top: 20px;
border: none;
padding: 10px;
width: 120px;
color: #fff;
}
.button:hover{
background: #2488f5;
color: #fff;
text-decoration: none;
}
#game{
width: 700px;
height: 600px;
position: relative;
left: 50%;
top: 40px;
margin: 0 0 0 -350px;
background: linear-gradient(-180deg, #040024 0%, #07165C 97%);
}
.game-panel {
width: 700px;
height: 600px;
position: absolute;/* 将UI置于画布之上 */
}
.game-ui{
display: none;
padding: 55px;
box-sizing: border-box;
height: 100%;
}
.game-level {
margin-top: 10px;
font-size: 18px;
}
.game-desc {
font-size: 14px;
margin-top: 10px;
width: 330px;
}
[data-status="start"] .game-intro {
display: block;
padding-top: 180px;
background: url(./img/bg.png) no-repeat 430px 180px;
background-size: 200px;
}
[data-status="failed"] .game-failed,
[data-status="success"] .game-success,
[data-status="all-success"] .game-all-success {
display: block;
padding-top: 180px;
background: url(./img/bg-end.png) no-repeat 380px 190px;
background-size: 250px;
}