aboutsummaryrefslogtreecommitdiff
path: root/src/style.css
blob: 2c15d2f0de0e92d6fa88f448b36c4a7218655b26 (plain) (blame)
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
:root {
	--light-blue: #B3E0F2;
	--dark-blue: #204C6D;
}

.container {
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;

	/* Take up half of the screen */
	position: absolute;
	height: 100%;
	width: 50%;

	/* Center all child elements */
	display: flex;
	align-items: center;
}

.left {
	justify-content: center;
}

.right {
	/* Take up the right side of the screen */
	margin-left: 50%;
	flex-direction: column;
}

#outer-board {
	border: 8px black solid;
	border-spacing: 8px;
	height: 80%;
}

#board {
 	border-collapse: collapse; /* Make all the cells snap together */
 	height: 100%;              /* Make sure height == width */
}

#board td {
	height: 70px;
	width: 70px;
}

#board tr:nth-child(even) td:nth-child(even), #board tr:nth-child(odd) td:nth-child(odd) {
	background: black;
}

#vertical-rule {
	position: absolute;
	height: 80%;
	border-left: 6px solid var(--light-blue);
	left: calc(50% - 3px); /* -3px offset because the left border is 6px */

	/* Vertically center */
	top: 0;
	bottom: 0;
	margin-top: auto;
	margin-bottom: auto;
}

#history-title {
	margin-top: 10%;
	margin-bottom: 5%;
}

#history {
	border-collapse: collapse;
}

#history tr td {
	text-align: center;
	height: 40px;
	width: 80px;
	font-size: 1.2em;
}

.turn-no {
	border-right: 3px solid var(--light-blue);
}

#resign {
	margin-top: 5%;
	background-color: var(--dark-blue);
	text-align: center;
	width: 400px;
}

#resign p {
	/* TODO: Make fonts work */
	font-family: "Saira Condensed";
	font-style: normal;
	font-weight: normal;
	font-size: 1.5em;
	color: white;
}