-
Notifications
You must be signed in to change notification settings - Fork 10
/
light.css
484 lines (396 loc) · 7.57 KB
/
light.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
/*
* This file contains all default CSS rules for the light vscode them, used for various diagrams and graphs.
* Use the "antlr4.customcss" setting in vscode to specify your own file, if you like to override some rules.
*
* Most of the appearance is defined here, while only some adjustments for the dark theme exist in dark.css.
* This style sheet is also used for exported svg files.
*/
body {
padding-left: 20px;
}
svg {
background: rgba(0, 0, 0, 0.03);
}
/* ATN graphs */
.transition {
fill: none;
stroke: #AAA;
stroke-width: 2px;
}
.marker {
fill: #999;
stroke: none;
}
.stateLabel {
font: bold 11pt "Helvetica Neue", Arial, sans-serif;
fill: white;
text-anchor: middle;
pointer-events: none;
}
.stateTypeLabel {
font: bold 7pt monospace;
fill: #EEE;
text-anchor: middle;
pointer-events: none;
}
.linkLabel {
font: bold 9pt "Helvetica Neue", Arial, sans-serif;
fill: #606060;
text-anchor: middle;
pointer-events: none;
}
.state {
stroke: #505050;
stroke-width: 3px;
cursor: move;
pointer-events: all;
/*filter: url(#black-glow);*/
}
.state.BASIC {
fill: #AAA;
}
.state.START {
fill: #36bde0;
}
.state.BSTART {
fill: #f39900;
}
.state.PBSTART {
fill: #98c000;
}
.state.SBSTART {
fill: #607dbd;
}
.state.TSTART {
fill: #ffd300;
}
.state.STOP {
fill: #2baa5b;
}
.state.BEND {
fill: #c2c269;
}
.state.SLBACK {
fill: #608b4e;
}
.state.SLENTRY {
fill: #a260cb;
}
.state.PLBACK {
fill: #517979;
}
.state.LEND {
fill: #9b90c3;
}
.state.RULE {
fill: #b73645;
}
.state.RULE.recursive {
fill: #36bde0;
}
/* Railroad diagrams */
svg.railroad-diagram path {
/* The connection lines. */
stroke-width: 2;
stroke: darkgray;
fill: rgba(0, 0, 0, 0);
}
svg.railroad-diagram text {
/* All text except comments. */
font: bold 12px Hack, "Source Code Pro", monospace;
text-anchor: middle;
fill: #404040;
/* Use fill instead of color for svg text. */
}
svg.railroad-diagram text.comment {
/* Comment text */
font: italic 10px Hack, "Source Code Pro", monospace;
fill: #404040;
}
svg.railroad-diagram g.non-terminal rect {
/* The non-terminal boxes. */
stroke-width: 2;
stroke: #404040;
fill: rgba(255, 255, 255, 1);
}
svg.railroad-diagram g.terminal rect {
/* The terminal boxes. */
stroke-width: 2;
stroke: #404040;
fill: rgba(0, 0, 0, 0.1);
}
svg.railroad-diagram text.diagram-text {
/* Multiple choice text, not working atm. */
font-size: 12px Hack, "Source Code Pro", monospace;
fill: red;
}
svg.railroad-diagram path.diagram-text {
/* Multiple choice text, not working atm. */
stroke-width: 1;
stroke: red;
fill: red;
cursor: help;
}
svg.railroad-diagram g.diagram-text:hover path.diagram-text {
/* Multiple choice text, not working atm. */
fill: #f00;
}
/* Call graphs */
.node {
font: 200 10px "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.link {
stroke: #000;
stroke-opacity: .2;
fill: none;
pointer-events: none;
animation: fadeIn 0.25s ease-out 0.2s 1 normal backwards;
}
.module-1 {
fill: #0ca9fd;
}
.module-2 {
fill: #63bf8d;
}
.module-3 {
fill: #ff8801;
}
.module-4 {
fill: #b9fc34;
}
.module-5 {
fill: #90e0e0;
}
.module-6 {
fill: #b4a3f5;
}
.module-7 {
fill: #f92672;
}
.module-8 {
fill: #e9e901;
}
.module-9 {
fill: #83be69;
}
.module-10 {
fill: #f1d18c;
}
.node:hover {
fill: #000;
}
.node:hover,
.node-source,
.node-target {
font: 700 12px "Helvetica Neue", Helvetica, Arial, sans-serif;
cursor: pointer;
}
.node-source {
fill: #ff5711;
}
.node-target {
fill: #45aa73;
}
.link-source,
.link-target {
stroke-opacity: 1;
stroke-width: 2px;
animation: none;
}
.link-source {
stroke: #3dcd92;
}
.link-target {
stroke: #ff5711;
}
@keyframes fadeOut {
0% {
stroke-opacity: 0.2;
}
100% {
stroke-opacity: 0.075;
}
}
@keyframes fadeIn {
0% {
stroke-opacity: 0.075;
}
100% {
stroke-opacity: 0.2;
}
}
.link-dimmed {
stroke-opacity: 0.075;
animation: fadeOut 0.25s ease-out 0.1s 1 normal backwards;
}
/* Parse trees */
.tree-node {
stroke-width: 2;
stroke: #C0C0C0;
fill: rgba(255, 255, 255, 1);
}
.tree-root {
stroke-width: 2;
fill: #7db6dd;
stroke: #7db6dd;
}
.tree-leaf {
cursor: default;
stroke-width: 2;
fill: rgba(160, 171, 136, 1);
stroke: rgba(117, 119, 91, 1);
}
.tree-error {
stroke-width: 2;
fill: #dd8f7d;
stroke: rgba(188, 106, 122, 1);
}
.tree-node text {
cursor: default;
font: 16px "Helvetica Neue", sans-serif;
fill: rgba(41, 41, 41, 1);
stroke: none;
}
.tree-leaf text,
.tree-root text,
.tree-error text {
font: 16px "Helvetica Neue", sans-serif;
fill: #ffffff;
stroke: none;
}
.tree-link {
stroke-width: 2px;
fill: none;
stroke: rgba(128, 128, 128, 1);
}
g .token-value {
fill: #404040;
stroke: none;
font: 14pt "Source Code Pro", "Hack", "Consolas", "Andale Mono", monospace;
}
g .token-range {
fill: rgba(0, 77, 98, 1);
stroke: none;
font: 8pt "Source Code Pro", "Hack", "Consolas", "Andale Mono", monospace;
}
/* Internal elements, only used in vscode */
.header {
font-size: 12pt;
z-index: 9999;
top: 0;
left: 0;
right: 0;
height: 45px;
background-color: var(--background-color);
cursor: default;
user-select: none;
white-space: nowrap;
}
.graph-initial {
font-size: 30pt;
font-weight: 800;
vertical-align: middle;
}
.rule-index {
font-size: 8pt;
}
#container {
margin-top: 45px;
}
.action-box {
font: 10pt monospace;
margin-left: 15px;
padding: 5px;
border: dotted 1px #606060;
cursor: default;
}
.atn-graph-color {
color: rgba(206, 11, 70, 1);
}
.atn-graph-save-image {
background: rgba(206, 11, 70, 1) url('../misc/save.png');
vertical-align: middle;
margin-left: 5px;
width: 24px;
height: 24px;
display: inline-block;
cursor: pointer;
}
.rrd-color {
color: rgba(10, 188, 80, 1);
}
.rrd-save-image {
background: rgba(10, 188, 80, 1) url('../misc/save.png');
vertical-align: middle;
margin-left: 5px;
width: 24px;
height: 24px;
display: inline-block;
cursor: pointer;
}
.call-graph-color {
color: rgba(255, 191, 15, 1);
}
.call-graph-save-image {
background: rgba(255, 191, 15, 1) url('../misc/save.png');
vertical-align: middle;
margin-left: 5px;
width: 24px;
height: 24px;
display: inline-block;
cursor: pointer;
}
.parse-tree-color {
color: rgba(49, 112, 212, 1);
}
.parse-tree-save-image {
background: rgba(49, 112, 212, 1) url('../misc/save.png');
vertical-align: middle;
margin-left: 5px;
width: 24px;
height: 24px;
display: inline-block;
cursor: pointer;
}
.switch label {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
display: block;
position: absolute;
top: 0;
left: 0;
z-index: 10;
}
.switch input {
display: none;
}
.switch > span {
display: inline-block;
top: 3px;
transition: left 0.2s;
}
.switch-border {
height: 12px;
width: 24px;
position: relative;
border: 1px solid rgba(49, 112, 212, 0.75);
background-color: rgba(49, 112, 212, 0.75);
border-radius: 3.5em;
}
.switch-handle-top {
width: 12px;
height: 12px;
position: absolute;
left: 0px;
top: 0px;
z-index: 4;
background-color: white;
border-radius: 2.5em;
transition: left 0.2s;
}
.switch input:checked~.switch-handle-top {
top: 0px;
left: 12px;
}