-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.css
78 lines (65 loc) · 1.04 KB
/
game.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
72
73
74
75
76
77
78
html {
padding: 0;
margin: 0;
font-family: monospace;
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: flex-start;
}
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
.p-X {
color: #496da9;
}
.p-O {
color: #ff7e7e;
}
.hidden {
display: none;
}
.qr-footer {
position: fixed;
}
.layer {
overflow: scroll;
width: 100%;
height: 100%;
}
.content {
display: inline-grid;
grid-gap: 0;
}
.content.finished {
cursor: pointer;
}
.field {
margin: 0;
padding: 0;
display: inline-flex;
justify-content: center;
align-items: center;
width: 50px;
height: 50px;
border: 1px solid var(--theme-contrast);
user-select: none;
background-color: var(--theme-primary);
}
.field.empty:hover {
background: #ccc;
cursor: pointer;
}
.content.finished > .field:not(.win) {
background: var(--theme-primary);
}
.field.win {
background: #eaeaea !important;
}
.field > span {
font-size: 50px;
}