-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2048.css
64 lines (61 loc) · 1.46 KB
/
2048.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
#gridPanel{
width:480px; height:480px;
margin:0 auto; border-radius:10px;
background:#bbada0;
}
div>div{
width:100px; height:100px;
border-radius: 6px;
margin-top:16px; margin-left:16px;
float:left; background:#ccc0b3;
color:#fff; font-size:60px;
text-align: center;
line-height: 100px;
}
.n2{background-color:#eee3da}
.n4{background-color:#ede0c8}
.n8{background-color:#f2b179}
.n16{background-color:#f59563}
.n32{background-color:#f67c5f}
.n64{background-color:#f65e3b}
.n128{background-color:#edcf72}
.n256{background-color:#edcc61}
.n512{background-color:#9c0}
.n1024{background-color:#33b5e5}
.n2048{background-color:#09c}
.n4096{background-color:#a6c}
.n8192{background-color:#93c}
.n2,.n4{color:#776e65}
.n1024,.n2048,.n4096,.n8192{font-size:40px}
p{
width:480px; margin:0 auto;
font-size:40px; font-weight:bold;
font-family:Arial;
padding-top:15px;
}
#gameover{ display:none;
position:absolute;
top:0; left:0;
bottom:0; right:0;
/*width:100%; height:100%;*/
/*问题: opacity是继承的
解决: background:rgba()避免继承*/
background:rgba(55,55,55,.5);
}
#gameover>p{
width:300px; height:200px;
background:#fff;
position:absolute; top:50%;left:50%;
margin-top:-100px;
margin-left:-150px;
text-align:center; line-height:1.5em;
border-radius:10px;
border:1px solid #edcf72;
}
#gameover a{
padding:10px;
background:#9f8d77;
color:#fff;
border-radius: 6px;
text-decoration: none;
}