-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
71 lines (64 loc) · 1.18 KB
/
index.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
* {
margin: 0px;
padding: 0px;
}
html, body {
width: 100%;
height: 100%;
overflow: hidden;
background: lightgrey;
}
#tetris {
position: relative;
margin: 150px auto 0px auto;
height: 600px;
width: 300px;
box-sizing: border-box;
border: 1px solid black;
overflow: hidden;
}
.square {
position: absolute;
width: 30px;
height: 30px;
box-sizing: border-box;
border-top: 2px solid white;
border-left: 2px solid white;
border-right: 2px solid black;
border-bottom: 2px solid black;
}
#info {
position: absolute;
left: 50%;
top: 30px;
margin-left: -150px;
height: 120px;
width: 300px;
box-sizing: border-box;
border: 1px solid black;
font-size: 0px;
}
#score {
position: relative;
width: 100px;
height: 100%;
display: inline-block;
line-height: 120px;
text-align: center;
float: left;
font-size: 30px;
color: black;
border-right: 1px solid black;
}
#next {
position: relative;
width: 197px;
height: 100%;
display: inline-block;
}
#show {
position: relative;
width: 100px;
height: 100px;
margin: 10px auto 0px auto;
}