-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
77 lines (66 loc) · 1.22 KB
/
style.css
File metadata and controls
77 lines (66 loc) · 1.22 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
* {
box-sizing: border-box;
}
body {
font-family: 'Courier New', Courier, monospace;
}
.grid {
position: relative;
border: 3px solid rgba(0, 0, 0, 0.4);
display: inline-block;
}
.cell {
display: inline-flex;
justify-content: center;
align-items: center;
border-right: 1px solid rgba(0, 0, 0, 0.4);
border-bottom: 1px solid rgba(0, 0, 0, 0.4);
background-color: rgba(0, 0, 0, 0);
font-size: small;
color: rgba(0, 0, 0, 0.8);
}
.cell:first-child {
border-left: 1px solid rgba(0, 0, 0, 0.4);
}
.row {
}
.row:first-child > .cell {
border-top: 1px solid rgba(0, 0, 0, 0.4);
}
.ship {
position: absolute;
background-color: rgba(0, 0, 0, 0.3);
border-radius: 50px;
}
.hit {
position: absolute;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
}
.hit::before {
content: '';
display: block;
width: 25px;
height: 25px;
border-radius: 100%;
background-color: rgb(255, 0, 0);
}
.miss {
position: absolute;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
}
.miss::before {
content: '';
display: block;
width: 25px;
height: 25px;
border-radius: 100%;
background-color: rgb(0, 0, 255);
}