Add editor structure outline to the developer guide on the website

This commit is contained in:
Keavon Chambers
2025-07-12 23:09:29 -07:00
parent 765092fbe9
commit d6d1bbb1e6
18 changed files with 426 additions and 558 deletions
+3 -4
View File
@@ -11,17 +11,17 @@
--color-walnut: #473a3a;
--color-slate: #3a4047;
--color-crimson: #803847;
--color-lilac: #cabdc8;
--color-lilac: #e5e0eb;
// --color-lime: #c5e0af;
--color-lemon: #efe2b2;
--color-peach: #ebb29f;
--color-ale: #cd8f7a;
// --color-flamingo: #d2697c;
--color-flamingo: #d2697c;
--color-seaside: #b0d6cb;
--color-seaside-rgb: 176, 214, 203;
// --color-cove: #83c0b9;
// --color-sage: #91b99a;
// --color-storm: #627088;
--color-storm: #495875;
--max-width: 1200px;
--max-width-plus-padding: calc(var(--max-width) + 40px * 2);
@@ -313,7 +313,6 @@ body > .page {
}
details[open] summary::before {
// content: "▼";
transform: rotate(90deg);
}
}
@@ -0,0 +1,106 @@
.structure-outline {
font-family: monospace;
font-size: 18px;
line-height: 1.5;
margin-top: 20px;
ul {
list-style-type: none;
padding-left: 20px;
li {
margin-top: 0;
span {
line-height: 1.5;
display: inline-block;
}
}
}
.tree-node {
padding-left: calc(10px + 8px);
position: relative;
user-select: none;
cursor: pointer;
&::before {
content: "";
background: url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><polygon fill="%2316323f" points="4,0 1,0 6,5 1,10 4,10 9,5 4,0" /></svg>\
');
position: absolute;
margin: auto;
top: 0;
bottom: 0;
left: 0;
width: 10px;
height: 10px;
}
&.expanded::before {
transform: rotate(90deg);
}
a {
margin-left: 12px;
color: var(--color-crimson);
font-size: 12px;
font-family: Arial, sans-serif;
position: relative;
&:hover::after {
content: "↗";
margin-left: 4px;
position: absolute;
}
}
}
.tree-leaf {
margin-left: calc(10px + 8px);
&.field {
padding-left: 4px;
color: var(--color-storm);
}
&:not(.field) {
padding: 0 4px;
background: var(--color-fog);
}
}
.nested {
display: none;
}
.active {
display: block;
}
.warn {
margin-left: 12px;
color: var(--color-flamingo);
font-family: Arial, sans-serif;
font-size: 12px;
text-decoration: none;
font-style: italic;
}
}
.subsystem,
.submessage {
font-family: monospace;
line-height: 1.5;
padding: 0 4px;
}
.subsystem {
color: #ffffff;
background: var(--color-storm);
}
.submessage {
background: var(--color-lilac);
}