hexicon 0.3.0

Hexicon, for writing interactive fiction: builds a game, plays it in a terminal, tests it, documents it, and serves editors
/* The reference's look: hexicon doc writes this beside its pages. */

:root {
  --page: #fbfaf7;
  --text: #22252a;
  --muted: #5f6670;
  --rule: #dedad2;
  --link: #1f5e8c;
  --code: #f0ede6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #15181c;
    --text: #dde2e8;
    --muted: #9aa3ad;
    --rule: #2c3138;
    --link: #8fc1e8;
    --code: #1f2328;
  }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
}

main {
  max-width: 52em;
  margin: 0 auto;
  padding: 1.5em 1em 3em;
}

a {
  color: var(--link);
}

h1 {
  margin-bottom: 0.2em;
}

h1 .kind {
  font-size: 0.55em;
  font-weight: normal;
  color: var(--muted);
}

h2 {
  margin-top: 2em;
  border-bottom: 1px solid var(--rule);
}

h3 {
  margin: 1.4em 0 0.2em;
  font-size: 1em;
}

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
  background: var(--code);
  padding: 0.05em 0.3em;
  border-radius: 3px;
}

.crumbs,
.where,
.lede,
.from {
  color: var(--muted);
}

.where {
  margin-top: 0;
  font-size: 0.9em;
}

.file {
  font-family: Consolas, "Courier New", monospace;
}

dl.index dt {
  margin-top: 0.6em;
  font-weight: bold;
}

dl.index dd {
  margin-left: 1.5em;
}

ul.tree {
  list-style: none;
  padding-left: 0;
}

.inherited {
  font-size: 0.95em;
}

/* A class's inherited members, each class's closed until opened. */
details.inherited {
  border-top: 1px solid var(--rule);
  padding: 0.3em 0;
}

details.inherited > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.3em 0;
}

details.inherited[open] > summary {
  margin-bottom: 0.5em;
}

nav.bar {
  padding: 0.5em 1em;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95em;
}

nav.bar a {
  margin-right: 1.2em;
}

a.place {
  color: inherit;
}

pre.source {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.85em;
  line-height: 1.4;
  overflow-x: auto;
}

pre.source .line {
  display: block;
}

pre.source .line:target {
  background: var(--code);
}

pre.source a.n {
  display: inline-block;
  width: 4.5em;
  margin-right: 1em;
  color: var(--muted);
  text-align: right;
  text-decoration: none;
}

table.messages {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92em;
}

table.messages th,
table.messages td {
  padding: 0.3em 0.5em;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

nav.bar form.search {
  display: inline;
}

nav.bar input,
#query {
  font: inherit;
  padding: 0.15em 0.4em;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--page);
  color: var(--text);
}

#query {
  width: 100%;
  max-width: 30em;
  font-size: 1.1em;
}

ul.results {
  list-style: none;
  padding-left: 0;
}

ul.results li {
  margin: 0.3em 0;
}

ul.results .kind,
ul.results .what {
  color: var(--muted);
  font-size: 0.9em;
}