-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
121 lines (101 loc) · 2.11 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
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
@import url("automaton.css");
:root {
--fa-sel-stroke: #00ff00;
--sel-fill: #0000ff10;
--sel-stroke: #0000ff;
--handle-fill: #ff00ff;
}
/* App layout */
#app-container {
display: grid;
width: 100%;
grid-template-columns: 1fr max(16rem, min(25%, 24rem));
grid-template-rows: max-content 1fr;
grid-template-areas:
"canvas drag-items "
"canvas config-menu"
"canvas global-menu"
"analysis analysis ";
gap: 1rem 1rem;
}
#canvas {
border: 1px solid black;
grid-area: canvas;
height: 75vh;
width: 100%;
}
.state {
cursor: move;
pointer-events: visibleFill;
}
.selected {
stroke: var(--fa-sel-stroke);
}
.selection {
stroke-width: 1;
stroke: var(--sel-stroke);
fill: var(--sel-fill);
}
#add-state {
padding: 8px;
display: flex;
align-items: center;
text-align: center;
cursor: move;
user-select: none;
grid-area: drag-items;
}
.statelike {
box-sizing: border-box;
/* Using px here to correspond to SVG units */
width: 74px;
height: 74px;
border: 2px solid var(--fa-stroke);
border-radius: 100%;
}
.draggable {
position: fixed;
}
#config-menu-container {
grid-area: config-menu;
width: 100%;
}
#line-choice:not(:checked)~#line-options {
display: none;
}
.control-handle {
stroke: none;
fill: var(--handle-fill);
cursor: crosshair;
}
#config-menu-container:not(.none) > #config-menu-hint,
#config-menu-container.none > #common-menu,
#config-menu-container:not(.trans-conf) > #trans-config,
#config-menu-container:not(.state-conf) > #state-config,
#config-menu-container:not(.mult) > #mult-warning {
display: none;
}
#global-menu-container {
grid-area: global-menu;
display: flex;
align-items: baseline;
gap: 1rem;
flex-wrap: wrap;
}
#analysis-container {
grid-area: analysis;
}
#analysis-error:empty {
display: none;
}
#analysis-error:not(:empty)~* {
display: none;
}
#help-regex {
display: grid;
grid-template-columns: min-content auto;
column-gap: 1rem;
}
#help-regex > dd {
margin-left: 0;
}