-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
88 lines (70 loc) · 1.09 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
* {
box-sizing: border-box;
}
body {
margin: 0px;
background-color: gray;
}
body.edit {
background-color: black;
}
#pieces {
display: none;
}
#controls, #canvas {
position: absolute;
left: 0;
top: 0;
}
#palette {
position: absolute;
left: 0;
top: 50%;
transform: translate(0, -50%);
}
#buttons {
position: absolute;
left: 50%;
top: 0;
transform: translate(-50%, 0);
}
#controls, #canvas {
width: 100vw;
height: 100vh;
}
#palette, #buttons {
background-color: rgba(0, 0, 0, .5);
}
body:not(.edit) #palette, body:not(.edit) #controls {
display: none;
}
#palette use {
cursor: pointer;
fill: white;
}
#palette use.disabled {
fill: #444;
}
#palette use:hover {
fill: lightgray;
}
#controls .edge {
fill: rgba(127, 127, 127, .7);
}
#controls .edge.impossible {
fill: rgba(255, 0, 0, 1);
}
#controls .candidate {
fill: gray;
}
#buttons > * {
vertical-align: middle;
}
#buttons > span {
cursor: pointer;
color: white;
}
#buttons > .disabled {
color: gray;
cursor: default;
}