-
Notifications
You must be signed in to change notification settings - Fork 3
/
lyne-solver.css
154 lines (139 loc) · 2.59 KB
/
lyne-solver.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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
@charset "utf-8";
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
font-size: 16px;
font-family: sans-serif;
}
html {
color: #efebdf;
background-color: #1e1e1e;
background-size: 12.5vmax 12.5vmax;
background-image:
linear-gradient(45deg, #1e1e1e 33%, transparent 33%),
linear-gradient(135deg, #1e1e1e 33%, transparent 33%),
linear-gradient(225deg, #1e1e1e 33%, transparent 33%),
linear-gradient(315deg, #1e1e1e 33%, transparent 33%),
linear-gradient(0deg, #3b3b39, #3b3b39)
;
}
textarea {
background-image: none;
background-color: #1e1e1e;
color: inherit;
border-color: currentColor;
}
a,
:link,
:visited {
color: #4ab2ff;
text-decoration: none;
}
#svgdefs {
/* For some reason, using display:none in this SVG will prevent the clip-path from working correctly. */
/* display: none; */
/* Workaround: */
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
}
article {
display: flex;
flex-direction: row;
flex-wrap: wrap;
width: 100%;
height: 100%;
}
article > section:first-child {
flex-grow: 1;
flex-shrink: 1;
flex-basis: 8em;
display: flex;
flex-direction: column;
}
article > section:last-child {
flex-grow: 1024;
flex-shrink: 1;
flex-basis: 14em;
}
article > section:first-child > * {
flex-grow: 0;
flex-shrink: 0;
display: block;
width: auto;
margin-left: 0;
margin-right: 0;
}
article > section > textarea#puzzleinput {
flex-grow: 1;
box-sizing: content-box;
min-height: 5.1em;
min-width: 4em;
min-width: 7.1ch;
width: auto;
font-family: "Inconsolata", monospace;
font-size: 1.5em;
line-height: 1em;
}
article > section > div#messages {
min-height: 2.2em;
line-height: 1.1em;
margin: 1ex 0;
white-space: pre-wrap;
white-space: pre-line;
}
article > section > p {
margin: 0;
margin-top: 1ex;
}
div#messages.busy:before {
content: "⌛"; /* HOURGLASS */
/*content: "⏳";*/ /* HOURGLASS WITH FLOWING SAND */
display: inline-block;
width: 1em;
height: 1em;
line-height: 1em;
text-align: center;
animation: spinner 2000ms infinite linear;
}
@keyframes spinner {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
article > section > svg#svgsolution {
flex-grow: 1;
flex-shrink: 1;
}
#svgsolutioncontainer {
display: block;
width: 100%;
height: 100vh;
max-width: 100vw;
position: relative;
}
#svgsolutioncontainer > svg {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: auto;
height: auto;
max-width: 100vw;
max-height: 100vh;
}
#svgsolutioncontainer > svg .edge {
stroke-width: 0.125px;
display: none;
}
#svgsolutioncontainer.hidearrows > svg .edge {
marker-mid: none;
}