-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
58 lines (48 loc) · 861 Bytes
/
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
:root {
--board-width: 500px;
}
body {
font-family: Arial;
}
h1,
h2 {
font-family: Lato;
}
.board {
display: flex;
flex-direction: column-reverse;
flex-wrap: wrap;
justify-content: center;
align-items: center;
background: orange;
max-width: var(--board-width);
margin: 20px auto;
}
.row {
display: flex;
}
.row:nth-child(even) {
flex-direction: row-reverse;
}
.block {
width: calc(var(--board-width) / 10);
aspect-ratio: 1;
display: grid;
place-items: center;
background: #efefef;
outline: 1px solid rgb(119, 119, 119);
}
.block.active {
background: rgb(171, 157, 255) !important;
outline: 1px solid rgb(37, 37, 255);
color: blueviolet;
}
.block.ladder {
background: rgb(84, 238, 46) !important;
}
.block.snake {
background: rgb(255, 60, 60) !important;
}
.block:nth-child(odd) {
background: white;
}