Link to article: Earthworm Series Navigator.
.earthworm {
--earthworm-segment-border-color: rgba(150,150,150,0.5);
font-weight: bold;
display: flex;
justify-content: center;
align-items: stretch;
margin: 1em 0;
clear: both;
min-height: 36px;
}
.earthworm a {
word-break: normal;
}
.earthworm__previous, .earthworm__hub, .earthworm__next {
display: flex;
align-items: center;
}
.earthworm p {
margin: 0 0.8em;
text-align: center;
}
.earthworm__previous, .earthworm__next {
border-top: 2px solid var(--earthworm-segment-border-color);
border-bottom: 2px solid var(--earthworm-segment-border-color);
position: relative;
}
.earthworm__hub {
margin: -3px 0;
border: 3px solid var(--earthworm-segment-border-color);
background: linear-gradient(10deg, rgba(150,150,150,0.1), rgba(150,150,150,0));
position: relative;
}
.earthworm__arrowhead {
width: auto;
height: calc(100% + 2px);
top: -2.5px;
display: block;
position: absolute;
border-style: solid;
border-color: var(--earthworm-segment-border-color);
}
.earthworm__arrowhead--left {
left: 0;
transform: scale(0.707) rotate(-45deg);
border-width: 2.8px 0 0 2.8px;
transform-origin: 0% 100%;
clip-path: polygon(0% 0%, 100% 0%, 0% 100%);
}
.earthworm__arrowhead--right {
right: 0;
transform: scale(0.707) rotate(45deg);
border-width: 2.8px 2.8px 0 0;
transform-origin: 100% 100%;
clip-path: polygon(0% 0%, 100% 0%, 100% 100%);
}
/* Hide segments that have url=/ AND (title= OR title=/) */
.earthworm__previous:has(a[href="/"]):is([data-title="\{\$previous-title\}"], [data-title="/"]),
.earthworm__next:has(a[href="/"]):is([data-title="\{\$next-title\}"], [data-title="/"]),
.earthworm__hub:is([data-title="\{\$next-title\}"], [data-title="/"]) a[href="/"] {
display: none;
}
/* Style href=/ links to look like plain text */
.earthworm a[href="/"] {
color: #333;
text-decoration: none;
cursor: text;
pointer-events: none;
}
/* Backwards compatibility: support old syntax */
.earthworm--old-syntax-first-true .earthworm__previous,
.earthworm--old-syntax-last-true .earthworm__next,
.earthworm--old-syntax-hub-no .earthworm__hub a {
display: none;
}
.croqstyle__documentation :is(h1, h2) {
font-family: Inter, sans-serif;
font-weight: bold;
}
.croqstyle__documentation h1 ~ h1 { margin-top: 6rem }
.croqstyle__documentation h1 ~ h2 { margin-top: 3rem }
.croqstyle__documentation #toc,
.croqstyle__description {
border: thin solid #ddd;
padding: 1em;
background-color: transparent;
}
/* Don't show it on this page to stop people clicking on the broken links */
.earthworm { display: none }
earthworm
earthworm--old-syntax-first-{$first}
earthworm--old-syntax-last-{$last}
earthworm--old-syntax-hub-{$hub}
{$class}
first
earthworm__previous
inner
earthworm__inner
image
earthworm__arrowhead
earthworm__arrowhead--left
arrow
earthworm__arrow
hub
earthworm__hub
last
earthworm__next
inner
earthworm__inner
image
earthworm__arrowhead
earthworm__arrowhead--right
arrow
earthworm__arrow
croqstyle__description
croqstyle__documentation
code
terminal
croqstyle__description
code
terminal
code
terminal
code
terminal