-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
60 lines (51 loc) · 983 Bytes
/
styles.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
* {
box-sizing: border-box;
}
body {
margin: 0;
background-color: #333;
display: flex;
align-items: center;
font-size: 3rem;
flex-direction: column;
color: white;
}
.title {
margin: 20px;
}
.subtext {
color: #CCC;
font-size: 1.5rem;
margin-bottom: 10px;
}
.board {
display: inline-grid;
padding: 10px;
grid-template-columns: repeat(var(--size), 60px);
grid-template-rows: repeat(var(--size), 60px);
gap: 4px;
background-color: #777;
}
.board > * {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
color: white;
border: 2px solid #BBB;
user-select: none;
}
.board > [data-status="hidden"] {
background-color: #BBB;
cursor: pointer;
}
.board > [data-status="mine"] {
background-color: red;
}
.board > [data-status="number"] {
background-color: none;
}
.board > [data-status="marked"] {
background-color: yellow;
}