-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
101 lines (101 loc) · 1.61 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
97
98
99
100
101
html, body {
margin: 0 auto;
padding: .3em;
width: 95%;
background-color: rgba(77, 142, 207, 0.7);
text-align: center;
color: rgba(255,255,255, 1);
}
#main {
background-color: #4D8ECF;
}
.btn {
padding: 1em;
margin: 3em;
}
.btnReset {
padding: .5em;
margin-top: 5em;
background-color: rgba(196, 68, 68, 0.9);
}
.btnScores {
padding: .5em;
margin: 3em;
background-color: buttonface;
}
header, footer, .warn, .board, .initialInput, #highScores, #gameOver {
display: none;
}
#gameOver {
font-size: larger;
font-weight: bold;
}
a {
color: inherit;
text-decoration: underline;
}
a:hover {
color: inherit;
background: #ddd;
text-decoration: none;
border-radius: 99%;
}
table, td {
padding: .2em;
background-color: rgba(109, 165, 221, 0.9);
margin: 0 auto;
text-align: center;
}
div > table:first-of-type {
margin-bottom: 50px;
}
caption {
margin-bottom: 30px;
}
#player1Score, #player2Score {
margin-right: 2em;
margin-left: .5em;
}
#player1input, #player2input {
margin: 2em;
padding: 2em;
}
.friendly {
box-shadow:0px 0px 50px 30px #598fb0 ;
}
.enemy {
box-shadow:0px 0px 50px 30px #b06259 ;
}
td {
border:3px ridge #29e1fd;
min-height: 35px;
min-width: 35px;
}
.open {
cursor: crosshair;
}
.ship {
border: 2px dashed #29e1fd;
font-style: italic;
}
.miss {
background-color: #a0c0c0;
border: none;
cursor: default;
}
.hit {
background-color:rgba(178, 76, 76, 0.5);
cursor: default;
}
footer {
height: 0px;
}
/* stackoverflow.com/a/48030340/7491839 */
.warn, #highScores {
display: none;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
min-height: 100vh;
}