-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
96 lines (92 loc) · 1.83 KB
/
style.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
:root {
--grid-cols: 1;
--grid-rows: 1;
}
html {
/* background: url(assets/images/background.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover; */
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
'Open Sans', 'Helvetica Neue', sans-serif;
}
#gameTitle {
text-align: center;
}
#titleImg {
width: 500px;
height: auto;
}
#greeting {
padding-top: 40px;
/* margin: 40px auto 40px auto; */
text-align: center;
}
#name {
text-align: center;
display: block;
margin: 20px auto 20px auto;
border-radius: 5px;
border: 0.5px solid;
}
#startButton {
}
#gameScreen {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-between;
align-items: center;
align-content: center;
margin: 90px 190px 20px 190px;
}
#player01Board {
margin: 0;
display: grid;
grid-gap: 0px;
grid-template-rows: repeat(var(--grid-rows), 40px);
grid-template-columns: repeat(var(--grid-cols), 40px);
width: 400px;
height: 400px;
text-align: center;
}
#player02Board {
margin: 0;
display: grid;
grid-gap: 0px;
grid-template-rows: repeat(var(--grid-rows), 40px);
grid-template-columns: repeat(var(--grid-cols), 40px);
width: 400px;
height: 400px;
text-align: center;
}
.grid-item {
padding: 1em;
border: 0.5px solid black;
text-align: center;
vertical-align: middle;
display: flex;
justify-content: center;
align-items: center;
font-size: 120%;
font-weight: bold;
margin: 0px;
padding: 1px;
background-color: #51a2bf;
}
.hasShip {
background-color: #a6acad;
}
.shipShot {
background-color: red;
}
.hidden {
display: none;
visibility: hidden;
}
.afterGame {
text-align: center;
align-content: center;
align-items: center;
}