-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
84 lines (68 loc) · 1.15 KB
/
index.css
File metadata and controls
84 lines (68 loc) · 1.15 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
body{
display: flex;
justify-content: center;
align-items: center;
}
main{
border: solid 1px black;
}
#g-table{
/* border: solid 1px red; */
}
#g-table td{
width: 30px;
height: 30px;
/* border: solid 1px red; */
background-color: #eeeeee;
text-align: center;
font-size: 22px;
font-weight: bold;
background-size: 100% 100%;
}
td[state=normal]{
background-image: url(img/blank.png);
}
td[state=open]{
background-color: #eeeeee;
}
td[state=explode]{
background-image: url(img/boom_ex.png);
}
td[state=bomb]{
background-image: url(img/boom_plain.png);
}
td[state=flag]{
background-image: url(img/flag.png);
}
td[state="1"]:before{
content: "1";
color: blue;
}
td[state="2"]:before{
content: "2";
color: green;
}
td[state="3"]:before{
content: "3";
color: yellow;
}
td[state='4']:before{
content: "4";
color: orange;
}
td[state="5"]:before{
content: "5";
color: skyblue;
}
td[state="6"]:before{
content: "6";
color: pink;
}
td[state="7"]:before{
content: "7";
color: brown;
}
td[state="8"]:before{
content: "8";
color: purple;
}