-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
126 lines (103 loc) · 1.94 KB
/
styles.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
* {
box-sizing: border-box;
}
:root {
--slotWidth: 50px;
--slotHeight: 50px;
--gridHeight: 6;
--gridWidth: 7;
--width : calc(var(--slotWidth) * var(--gridWidth));
--start-screen-width: 40%;
}
body {
font-family: 'Roboto', sans-serif;
}
.players-defaults {
width: var(--start-screen-width);
margin: 100px auto 0;
text-align: center;
}
.players-defaults > .defaults {
display: flex;
justify-content: space-between;
}
.player-color {
display: inline-block;
width: 40px;
height: 15px;
}
.default-view-controls > button + button {
margin-left: 20px;
}
form.form-view {
width: var(--start-screen-width);
margin: 100px auto 0;
}
.form-view > fieldset {
margin-bottom: 25px;
}
.form-view input {
margin-right: 20px;
}
.form-view .error-message {
color: red;
}
.game-view {
margin: 100px;
display: flex;
flex-direction: column;
align-items: center;
}
p.help-text {
font-size: 12px;
}
.grid {
display: flex;
width: calc(var(--slotWidth) * var(--gridWidth));
border: 1px solid gray;
}
.grid.game-over {
pointer-events: none;
}
.column {
display: flex;
flex-direction: column;
justify-content: flex-end;
width: var(--slotWidth);
height: calc(var(--slotHeight) * var(--gridHeight));
border-right: 1px solid gray;
cursor: pointer;
}
.column.filled {
pointer-events: none;
}
.column:last-child {
border-right: none;
}
.column:hover {
background: #f7f3ef;
}
.slot {
width: var(--slotWidth);
height: var(--slotHeight);
border-width: 5px;
border-style: solid;
border-radius: 50%;
}
.game-info {
margin-top: 15px;
width: var(--width);
}
.player-stats {
display: flex;
justify-content: space-between;
}
.reset-controls {
display: flex;
flex-direction: column;
justify-content: center;
margin-top: 25px;
}
.reset-controls > button + button {
margin-top: 10px;
}