Skip to content

Commit eddde5e

Browse files
Create style.css
1 parent 9ca0c8a commit eddde5e

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
body {
2+
display: flex;
3+
flex-direction: column;
4+
align-items: center;
5+
font-family: Arial, sans-serif;
6+
}
7+
8+
.header {
9+
display: flex;
10+
justify-content: space-between;
11+
width: 300px;
12+
margin-bottom: 20px;
13+
}
14+
15+
.grid-container {
16+
display: grid;
17+
grid-template-columns: repeat(10, 30px);
18+
grid-gap: 2px;
19+
}
20+
21+
.grid-item {
22+
width: 30px;
23+
height: 30px;
24+
border: 1px solid #ccc;
25+
text-align: center;
26+
line-height: 30px;
27+
cursor: pointer;
28+
}
29+
30+
.grid-item.revealed {
31+
background-color: #ddd;
32+
}
33+
34+
.grid-item.mine {
35+
background-color: #f00;
36+
color: #fff;
37+
}
38+
39+
.grid-item.flag {
40+
background-color: #00f;
41+
color: #fff;
42+
}

0 commit comments

Comments
 (0)