-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
96 lines (76 loc) · 1.08 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
body, label, div, span {
display: flex;
justify-content: center;
align-items: center;
}
body {
margin: 0;
min-height: 100vh;
background-color: #222;
}
@font-face {
font-family: Dense;
src: url("./assets/dense.otf");
}
/* CONTROL PANEL */
.controls {
flex-direction: column;
justify-content: flex-start;
padding: 20px;
height: 100vh;
background-color: #2a2a2a;
}
label, .player {
height: 30px;
margin-bottom: 20px;
}
/* GRID SIZE */
label {
color: #ffc;
font: 30px Dense;
}
label input {
margin-left: 10px;
}
/* PLAYER CONTROLLERS */
.player {
position: relative;
justify-content: space-between;
width: 100%;
height: 30px;
}
.player span {
color: #ffc;
font: 30px Dense;
}
.player-num {
width: 59px;
justify-content: flex-start;
}
.score {
justify-content: flex-end;
width: 20px;
}
.player input {
border: 0;
}
.col1 {
color: red;
}
.turn {
position: absolute;
color: #ffc;
right: -40px;
transition: .3s;
}
.p2-turn {
margin-top: 50px;
}
/* PLAY AREA */
.play-area {
flex-grow: 1;
}
canvas {
background-color: #111;
border-radius: 5px;
}