-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.scss
74 lines (71 loc) · 1.55 KB
/
index.scss
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
$background: #333333;
$grey-light: #909090;
$grey-med: #808080;
$grey-dark: #707070;
body {
background: $background;
color: #ffffff;
}
.content {
display: flex;
justify-content: center;
position: relative;
.control-bar {
position: absolute;
top: 0px;
left: 0px;
}
.board {
width: 80vmin;
border: solid 10px $grey-light;
display: grid;
background: $grey-light;
align-items: center;
justify-items: center;
grid-template-columns: repeat(var(--nr-columns), 1fr);
.inner-cell {
width: 100%;
aspect-ratio: 1;
grid-column: span var(--span);
}
.inner-cell:hover {
background: $grey-med;
}
.inner-cell[data-state="Blue"] {
background: blue;
}
.inner-cell[data-state="Red"] {
background: red;
}
.dot {
width: 100%;
aspect-ratio: 1;
background: black;
}
.bar {
width: 100%;
height: 100%;
background: $grey-med;
}
.bar:hover {
background: $grey-dark;
}
.bar[data-state="Blue"] {
background: blue;
}
.bar[data-state="Red"] {
background: red;
}
.hbar {
height: 50%;
grid-column: span var(--span);
}
.vbar {
width: 50%;
}
}
.board,
.board * {
border-radius: 5px;
}
}