Introduce the FSM editor

This commit is contained in:
2024-02-06 21:20:02 +01:00
parent be1cd8b39f
commit 877b162eaa
6 changed files with 142 additions and 56 deletions

View File

@@ -103,19 +103,6 @@ button:focus-visible {
background-color: #2a2a2a;
}
@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
button {
background-color: #f9f9f9;
}
.accepting-node {
outline-color: #9370DB;
}
}
graph-editor {
display: block;
height: 600px;
@@ -169,8 +156,8 @@ graph-editor {
.context-menu {
position: absolute;
background: white;
border: 1px solid #ccc;
background: #313131;
border: 1px solid #222;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
min-width: 150px;
}
@@ -187,13 +174,33 @@ graph-editor {
}
.context-menu li:hover, .context-menu li:focus {
background-color: #f0f0f0;
background-color: #2a2a2a;
}
.context-menu li:active {
background-color: #e0e0e0;
background-color: #1a1a1a;
}
.context-menu .checked:after {
content: "✓";
float: right;
}
@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
button {
background-color: #f9f9f9;
}
.context-menu {
background: white;
border: 1px solid #ccc;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.context-menu li:hover, .context-menu li:focus {
background-color: #f0f0f0;
}
.context-menu li:active {
background-color: #e0e0e0;
}
}