-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdemo.css
More file actions
113 lines (112 loc) · 1.95 KB
/
demo.css
File metadata and controls
113 lines (112 loc) · 1.95 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
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
*{
margin:0;
padding:0;
box-sizing:border-box;
}
body{
background-image:url(bg.jpg);
background-size:100% 100%;
}
.wrapper{
width:400px;
height:600px;
position:relative;
margin:20px auto;
border:2px solid black;
overflow:hidden;
border-radius:5px;
border:0;
z-index:1;
/* border:2px solid red; */
}
.top{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
/* border:1px solid red; */
z-index:2;
}
.start{
width:150px;
height:34px;
position:absolute;
top:50%;
left:50%;
transform:translate3d(-50%,-50%,0);
border:3px solid #000;
text-align:center;
line-height:34px;
border-radius:20px;
background:#9922ff;
box-shadow: 0 1px 5px #000;
border:0;
}
.start a{
text-decoration: none;
font-size:20px;
color:#fff;
font-weight:bold;
}
.main{
width:100%;
position:relative;
top:-150px;
}
.row{
width:400px;
height:150px;
}
.row div{
width:100px;
height:150px;
float:left;
border:1px solid black;
cursor:pointer;
background-color:#bbb;
}
.gameover{
display:none;
z-index:3;
width:100%;
height:100%;
position:absolute;
top:0;
left:0;
/* border:1px solid red; */
}
.gameover .gameover-image{
position:absolute;
left:50%;
top:50%;
transform:translate3d(-50%,-50%,0);
width:300px;
height:200px;
/* border:1px solid red; */
border-radius:5px;
background-image:url(gameover.jpg);
background-size: 100% 100%;
}
.gameover-image .btn{
position:absolute;
top:0;
right:0;
width:20px;
height:20px;
background-image:url(closeBtn.png);
background-size: 100% 100%;
cursor:pointer;
}
.gameover-image #score{
width:50px;
height:40px;
position:absolute;
top:40%;
left:45%;
/* border:1px solid red; */
text-align:center;
line-height:40px;
color:#fff;
font-size:20px;
}