mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 21:36:40 -10:00
1763 lines
37 KiB
CSS
1763 lines
37 KiB
CSS
/* The palette, from the JustBlack VS Code theme: black, one lime accent. */
|
|
:root {
|
|
--devvm-bg: #000000;
|
|
--devvm-surface: #0f111a;
|
|
--devvm-border: #20474b;
|
|
--devvm-text: #eeeeee;
|
|
--devvm-text-secondary: #8f93a2;
|
|
--devvm-muted: #666666;
|
|
--devvm-accent: #7fff00;
|
|
--devvm-accent-soft: #c3e88d;
|
|
/* The logo's prompt on light backgrounds (static/branding/): the lime's hue at half its lightness, 4.9:1
|
|
on white, where the lime is 1.2:1. */
|
|
--devvm-accent-dark: #408000;
|
|
/* The blue of commands (cd) in Hextra's syntax highlighting. */
|
|
--devvm-blue: #0086b3;
|
|
/* The red of the JustBlack theme's errors, only for what the art shows as compromised. */
|
|
--devvm-red: #ff5370;
|
|
|
|
/* Hextra's primary shades are made from these: #7fff00. */
|
|
--primary-hue: 90deg;
|
|
--primary-saturation: 100%;
|
|
--primary-lightness: 50%;
|
|
|
|
/* Hextra's dark background. */
|
|
--hx-color-dark: var(--devvm-bg);
|
|
|
|
/* Hextra's navbar: its 3.5rem, and 8px more, so the 43px logo has about 10px above and below it. */
|
|
--hextra-navbar-height: calc(3.5rem + 8px);
|
|
|
|
/* Fonts: Instrument Sans for text, Martian Mono for code, Departure Mono for the home page's hero. */
|
|
--hx-font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
|
|
--hx-font-mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
--devvm-font-pixel: "Departure Mono", var(--hx-font-mono);
|
|
}
|
|
|
|
/* Code: Martian Mono narrower than its default, and no ligatures, so flags look as typed. */
|
|
code,
|
|
pre,
|
|
kbd {
|
|
font-stretch: 87.5%;
|
|
font-variant-ligatures: none;
|
|
}
|
|
|
|
/* Martian Mono's regular reads heavy next to the text: lighter, and smoothed as the text is. */
|
|
.hextra-code-block pre,
|
|
code {
|
|
font-weight: 350;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
.content :not(pre) > code {
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
html.dark body {
|
|
background-color: var(--devvm-bg);
|
|
color: var(--devvm-text);
|
|
}
|
|
|
|
/* Code blocks on every page: a flat surface, not a tinted one. */
|
|
html.dark .hextra-code-block pre {
|
|
background-color: var(--devvm-surface);
|
|
border-color: var(--devvm-border);
|
|
filter: none;
|
|
}
|
|
|
|
html.dark .highlight .chroma .gp {
|
|
color: var(--devvm-accent);
|
|
}
|
|
|
|
html.dark .highlight .chroma .go {
|
|
color: var(--devvm-text-secondary);
|
|
}
|
|
|
|
/* The logo in the navbar, on every page: the branding page's SVG for dark backgrounds, at its own size
|
|
(hugo.yaml's navbar.logo), its pixels kept sharp. Its alt text is the site's title. */
|
|
.hextra-nav-container nav > a:first-child > img {
|
|
image-rendering: pixelated;
|
|
}
|
|
|
|
/* The home page: Hextra's home layout wraps its content in this one div. */
|
|
#content > .hx\:items-start {
|
|
max-width: 64rem;
|
|
margin: 0 auto;
|
|
padding-top: 2rem;
|
|
}
|
|
|
|
/* The hero's art, under the buttons: centered in the column. */
|
|
#content > .hx\:items-start > .devvm-art {
|
|
align-self: center;
|
|
}
|
|
|
|
/* Departure Mono: one weight, sized in 11px steps so its pixels stay whole. */
|
|
#content > .hx\:items-start > h1 {
|
|
font-family: var(--devvm-font-pixel);
|
|
font-weight: 400;
|
|
font-synthesis: none;
|
|
font-size: 44px;
|
|
letter-spacing: 0;
|
|
line-height: 1.2;
|
|
background-image: none;
|
|
color: var(--devvm-text);
|
|
-webkit-text-fill-color: currentColor;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
#content > .hx\:items-start > h1 {
|
|
font-size: 55px;
|
|
}
|
|
}
|
|
|
|
#content > .hx\:items-start > p {
|
|
color: var(--devvm-text-secondary);
|
|
margin: 1rem 0;
|
|
line-height: 1.75;
|
|
}
|
|
|
|
#content > .hx\:items-start > p > a {
|
|
color: var(--devvm-accent);
|
|
text-decoration: underline;
|
|
text-underline-offset: 3px;
|
|
}
|
|
|
|
#content > .hx\:items-start > p > a:hover {
|
|
color: var(--devvm-accent-soft);
|
|
}
|
|
|
|
#content > .hx\:items-start > h2,
|
|
.devvm-feature > h2 {
|
|
color: var(--devvm-text);
|
|
font-family: var(--devvm-font-pixel);
|
|
font-size: 22px;
|
|
font-weight: 400;
|
|
font-synthesis: none;
|
|
margin: 4rem 0 1.25rem;
|
|
}
|
|
|
|
/* The home page's section headings' icons (an icon attribute on the heading, the heading render hook):
|
|
lime, with each icon pixel two screen pixels, as each of Departure Mono's pixels is at 22px, so their
|
|
lines are as heavy as the letters'. Lowered by two pixels, so the drawing is centered on the capitals. */
|
|
#content > .hx\:items-start > h2 > .devvm-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
vertical-align: -4px;
|
|
color: var(--devvm-accent);
|
|
}
|
|
|
|
#content > .hx\:items-start > .hextra-code-block {
|
|
width: 100%;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
/* The badge, above the headline. */
|
|
#content > .hx\:items-start > a.hx\:rounded-full {
|
|
font-family: var(--devvm-font-pixel);
|
|
font-size: 11px;
|
|
font-synthesis: none;
|
|
background-color: transparent;
|
|
border-color: var(--devvm-border);
|
|
color: var(--devvm-text-secondary);
|
|
}
|
|
|
|
#content > .hx\:items-start > a.hx\:rounded-full:hover {
|
|
border-color: var(--devvm-accent);
|
|
color: var(--devvm-text);
|
|
}
|
|
|
|
/* Hero buttons: lime with black text, then an outlined one. */
|
|
/* Departure Mono at 22px, its next size up from 11px, with less padding than Hextra's.
|
|
Bold: the font has none, and a synthesized one blurs its pixels, so a 1px shadow thickens each stroke. */
|
|
#content > .hx\:items-start > p > a.not-prose {
|
|
font-family: var(--devvm-font-pixel);
|
|
font-size: 22px;
|
|
font-weight: 400;
|
|
font-synthesis: none;
|
|
text-shadow: 1px 0 0 currentColor;
|
|
line-height: 1;
|
|
padding: 0.75rem 1.5rem;
|
|
background-color: var(--devvm-accent);
|
|
border: 1px solid var(--devvm-accent);
|
|
color: var(--devvm-bg);
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* A button's icon (hero-button's icon): 24px, so each icon pixel is two screen pixels, as each of
|
|
Departure Mono's pixels is at 22px, before the text and on its baseline. */
|
|
#content > .hx\:items-start > p > a.not-prose > .devvm-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
margin-right: 0.5rem;
|
|
vertical-align: -3px;
|
|
}
|
|
|
|
/* The buttons' row: spaced both ways when they wrap. */
|
|
#content > .hx\:items-start > p:has(> a.not-prose) {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
#content > .hx\:items-start > p > a.not-prose:hover {
|
|
background-color: var(--devvm-accent-soft);
|
|
border-color: var(--devvm-accent-soft);
|
|
color: var(--devvm-bg);
|
|
}
|
|
|
|
#content > .hx\:items-start > p > a.not-prose + a.not-prose {
|
|
background-color: transparent;
|
|
border-color: var(--devvm-border);
|
|
color: var(--devvm-text);
|
|
}
|
|
|
|
#content > .hx\:items-start > p > a.not-prose + a.not-prose:hover {
|
|
border-color: var(--devvm-accent);
|
|
color: var(--devvm-accent);
|
|
}
|
|
|
|
/* What it does: a subheading, then bullets marked with a lime dash. */
|
|
#content > .hx\:items-start > h3 {
|
|
color: var(--devvm-text);
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
margin: 2rem 0 0.25rem;
|
|
}
|
|
|
|
#content > .hx\:items-start > ul,
|
|
.devvm-beside-text > ul,
|
|
.devvm-feature > ul {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
#content > .hx\:items-start > ul > li,
|
|
.devvm-beside-text > ul > li,
|
|
.devvm-feature > ul > li {
|
|
position: relative;
|
|
padding-left: 1.5rem;
|
|
margin: 0.5rem 0;
|
|
color: var(--devvm-text-secondary);
|
|
line-height: 1.75;
|
|
}
|
|
|
|
#content > .hx\:items-start > ul > li::before,
|
|
.devvm-beside-text > ul > li::before,
|
|
.devvm-feature > ul > li::before {
|
|
content: "-";
|
|
position: absolute;
|
|
left: 0;
|
|
color: var(--devvm-accent);
|
|
font-family: var(--hx-font-mono);
|
|
}
|
|
|
|
#content > .hx\:items-start > h2 + h3 {
|
|
margin-top: 0;
|
|
}
|
|
|
|
#content > .hx\:items-start > p > code,
|
|
#content > .hx\:items-start > ul > li > code,
|
|
.devvm-beside-text > ul > li code,
|
|
.devvm-feature > ul > li code {
|
|
color: var(--devvm-accent-soft);
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
#content > .hx\:items-start > ul > li > a,
|
|
.devvm-beside-text > ul > li > a,
|
|
.devvm-feature > ul > li > a {
|
|
color: var(--devvm-accent);
|
|
text-decoration: underline;
|
|
text-underline-offset: 3px;
|
|
}
|
|
|
|
#content > .hx\:items-start > ul > li > a:hover,
|
|
.devvm-beside-text > ul > li > a:hover,
|
|
.devvm-feature > ul > li > a:hover {
|
|
color: var(--devvm-accent-soft);
|
|
}
|
|
|
|
/* A section's text with its art beside it (the beside shortcode): the art below the text, then, from
|
|
1024px, to its right, each half the column's width and centered on the other. */
|
|
.devvm-beside {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
width: 100%;
|
|
}
|
|
|
|
.devvm-beside > .devvm-art {
|
|
margin: 0;
|
|
}
|
|
|
|
@media (min-width: 1024px) {
|
|
.devvm-beside {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
align-items: center;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.devvm-beside > .devvm-art {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
/* The home page's feature cards (the features and feature shortcodes): one centered column, then, from
|
|
1024px, two columns of cards, each card as tall as its
|
|
content. On narrow screens the columns' boxes drop out (display: contents), and each card's order
|
|
style stacks the cards in the order the page lists them. Black, not the surface color, so the art's
|
|
panels stand out. */
|
|
#content > .hx\:items-start > .devvm-features {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
align-self: center;
|
|
width: 100%;
|
|
max-width: calc(728px + 3rem + 2px);
|
|
margin-top: 4rem;
|
|
}
|
|
|
|
.devvm-bento-column {
|
|
display: contents;
|
|
}
|
|
|
|
.devvm-bento-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.devvm-bento-card > .devvm-feature {
|
|
flex: 1;
|
|
}
|
|
|
|
.devvm-feature {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 1.5rem;
|
|
background-color: var(--devvm-bg);
|
|
border: 1px solid var(--devvm-border);
|
|
border-radius: 0.5rem;
|
|
}
|
|
|
|
.devvm-feature > h2 {
|
|
margin: 0 0 1rem;
|
|
}
|
|
|
|
/* Quick start and What's supported: three short cards under the section's heading, each a heading and a
|
|
sentence, and Quick start's with a terminal as their art. One column, then three per row from 1024px. */
|
|
#content > .hx\:items-start > .devvm-features.devvm-features-3 {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr);
|
|
margin-top: 0;
|
|
}
|
|
|
|
/* Quick start's cards, after the install tabs: a gap between the two. */
|
|
#content > .hx\:items-start > .devvm-install + .devvm-features.devvm-features-3 {
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
@media (min-width: 1024px) {
|
|
#content > .hx\:items-start > .devvm-features.devvm-features-3 {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
max-width: none;
|
|
}
|
|
}
|
|
|
|
.devvm-feature > h3 {
|
|
color: var(--devvm-text);
|
|
font-family: var(--devvm-font-pixel);
|
|
font-size: 22px;
|
|
font-weight: 400;
|
|
font-synthesis: none;
|
|
margin: 0 0 0.75rem;
|
|
}
|
|
|
|
/* The feature cards' title icons (the feature shortcode's icon): in the title's own color, with each icon
|
|
pixel two screen pixels, as the section headings' are, lowered to center on the capitals. */
|
|
.devvm-feature > h2 > .devvm-icon,
|
|
.devvm-feature > h3 > .devvm-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
margin-right: 0.75rem;
|
|
vertical-align: -4px;
|
|
}
|
|
|
|
.devvm-feature > p {
|
|
margin: 0;
|
|
color: var(--devvm-text-secondary);
|
|
line-height: 1.75;
|
|
}
|
|
|
|
.devvm-feature > p > a {
|
|
color: var(--devvm-accent);
|
|
text-decoration: underline;
|
|
text-underline-offset: 3px;
|
|
}
|
|
|
|
.devvm-feature > p > a:hover {
|
|
color: var(--devvm-accent-soft);
|
|
}
|
|
|
|
/* The art as wide as its card, at whatever scale that takes. */
|
|
.devvm-feature > .devvm-art {
|
|
width: 100%;
|
|
margin: auto 0 0;
|
|
padding-top: 1.5rem;
|
|
}
|
|
|
|
/* A three-column card's terminal, 254 wide, at most twice its size, so it isn't huge in one column. */
|
|
.devvm-features-3 .devvm-feature > .devvm-art {
|
|
max-width: 508px;
|
|
}
|
|
|
|
@media (min-width: 1024px) {
|
|
#content > .hx\:items-start > .devvm-features.devvm-bento {
|
|
flex-direction: row;
|
|
align-items: flex-start;
|
|
max-width: none;
|
|
}
|
|
|
|
.devvm-bento-column {
|
|
display: flex;
|
|
flex: 1 1 0;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
min-width: 0;
|
|
}
|
|
}
|
|
|
|
/* The edit link's box at the bottom of the table of contents: Hextra gives it a #111 shadow above,
|
|
which shows as a gray band on the black background. */
|
|
.hextra-toc .hx\:sticky.hx\:bottom-0 {
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* The sections' art (docs/assets/home/, the art shortcode): text on Departure Mono's 7x14 cell at 11px,
|
|
drawn twice its size so each of the font's pixels is two of the screen's. */
|
|
.devvm-art {
|
|
width: 728px;
|
|
max-width: 100%;
|
|
margin: 0.75rem 0 0.5rem;
|
|
}
|
|
|
|
.devvm-art svg {
|
|
display: block;
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.devvm-art text {
|
|
font-family: var(--devvm-font-pixel);
|
|
font-size: 11px;
|
|
font-synthesis: none;
|
|
white-space: pre;
|
|
fill: var(--devvm-text-secondary);
|
|
}
|
|
|
|
.devvm-art .f {
|
|
fill: var(--devvm-blue);
|
|
}
|
|
|
|
.devvm-art .t {
|
|
fill: var(--devvm-text);
|
|
}
|
|
|
|
.devvm-art .m {
|
|
fill: var(--devvm-text-secondary);
|
|
}
|
|
|
|
.devvm-art .d {
|
|
fill: var(--devvm-muted);
|
|
}
|
|
|
|
.devvm-art .a {
|
|
fill: var(--devvm-accent);
|
|
}
|
|
|
|
/* Compromised: only what an attack has reached. */
|
|
.devvm-art .r {
|
|
fill: var(--devvm-red);
|
|
}
|
|
|
|
/* Shapes: panels on the surface color, text on lime chips in the background's, the bare background. */
|
|
.devvm-art rect,
|
|
.devvm-art polygon {
|
|
shape-rendering: crispEdges;
|
|
}
|
|
|
|
.devvm-art .s {
|
|
fill: var(--devvm-surface);
|
|
}
|
|
|
|
.devvm-art .k,
|
|
.devvm-art .bg {
|
|
fill: var(--devvm-bg);
|
|
}
|
|
|
|
/* Outlines (the globe): 1px lines, pixel-hard like the font. */
|
|
.devvm-art .o {
|
|
fill: none;
|
|
stroke: var(--devvm-text);
|
|
stroke-width: 1;
|
|
shape-rendering: crispEdges;
|
|
}
|
|
|
|
/* The art's animations, slow and in the palette's colors, each marked by a class in the SVG:
|
|
.pulse dims and brightens a lime arrow every 3 s, .pulse-2 and .pulse-3 a step later, so the pulse runs
|
|
along it; .pulse-slow does the same every 4 s; .lit (a text's fill) and .lit-chip (a chip's opacity) light
|
|
up for most of a 4 s loop, .lit-1 to .lit-4 one after another; .blink is a cursor, on and off every 2 s;
|
|
.mover is a block that travels a path: .mover-token the token's, .mover-egress the proxy's; .attack-1 to
|
|
.attack-4 light up one after another, .path-1 to .path-4 draw down after each and .reach-1 to .reach-4
|
|
change colour as each arrives, in an 8 s story. */
|
|
@keyframes devvm-pulse {
|
|
0%,
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
|
|
50% {
|
|
opacity: 0.45;
|
|
}
|
|
}
|
|
|
|
@keyframes devvm-light {
|
|
0% {
|
|
fill: var(--devvm-muted);
|
|
}
|
|
|
|
10%,
|
|
70% {
|
|
fill: var(--devvm-accent);
|
|
}
|
|
|
|
85%,
|
|
100% {
|
|
fill: var(--devvm-muted);
|
|
}
|
|
}
|
|
|
|
@keyframes devvm-light-chip {
|
|
0% {
|
|
opacity: 0.35;
|
|
}
|
|
|
|
10%,
|
|
70% {
|
|
opacity: 1;
|
|
}
|
|
|
|
85%,
|
|
100% {
|
|
opacity: 0.35;
|
|
}
|
|
}
|
|
|
|
@keyframes devvm-blink {
|
|
0%,
|
|
49% {
|
|
opacity: 1;
|
|
}
|
|
|
|
50%,
|
|
100% {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
/* The token: right along its line and under the proxy, then down past the arrow to the API. */
|
|
@keyframes devvm-mover-token {
|
|
0% {
|
|
transform: translate(0, 0);
|
|
opacity: 0;
|
|
}
|
|
|
|
5% {
|
|
transform: translate(0, 0);
|
|
opacity: 1;
|
|
}
|
|
|
|
60% {
|
|
transform: translate(114px, 0);
|
|
}
|
|
|
|
85% {
|
|
transform: translate(114px, 21px);
|
|
opacity: 1;
|
|
}
|
|
|
|
92%,
|
|
100% {
|
|
transform: translate(114px, 21px);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
/* A request: under the proxy, down to the allowlist and back, then out along the arrow. */
|
|
@keyframes devvm-mover-egress {
|
|
0% {
|
|
transform: translate(0, 0);
|
|
opacity: 0;
|
|
}
|
|
|
|
5% {
|
|
transform: translate(0, 0);
|
|
opacity: 1;
|
|
}
|
|
|
|
20% {
|
|
transform: translate(43px, 0);
|
|
}
|
|
|
|
35% {
|
|
transform: translate(43px, 28px);
|
|
}
|
|
|
|
50% {
|
|
transform: translate(43px, 0);
|
|
}
|
|
|
|
85% {
|
|
transform: translate(126px, 0);
|
|
opacity: 1;
|
|
}
|
|
|
|
92%,
|
|
100% {
|
|
transform: translate(130px, 0);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.devvm-art .pulse {
|
|
animation: devvm-pulse 3s ease-in-out infinite;
|
|
}
|
|
|
|
.devvm-art .pulse-2 {
|
|
animation-delay: 0.3s;
|
|
}
|
|
|
|
.devvm-art .pulse-3 {
|
|
animation-delay: 0.6s;
|
|
}
|
|
|
|
.devvm-art .pulse-slow {
|
|
animation: devvm-pulse 4s ease-in-out infinite;
|
|
}
|
|
|
|
.devvm-art .lit {
|
|
animation: devvm-light 4s ease-in-out infinite both;
|
|
}
|
|
|
|
.devvm-art .lit-chip {
|
|
animation: devvm-light-chip 4s ease-in-out infinite both;
|
|
}
|
|
|
|
.devvm-art .lit-2 {
|
|
animation-delay: 0.5s;
|
|
}
|
|
|
|
.devvm-art .lit-3 {
|
|
animation-delay: 1s;
|
|
}
|
|
|
|
.devvm-art .lit-4 {
|
|
animation-delay: 1.5s;
|
|
}
|
|
|
|
.devvm-art .blink {
|
|
animation: devvm-blink 2s linear infinite;
|
|
}
|
|
|
|
.devvm-art .mover-token {
|
|
animation: devvm-mover-token 3s linear infinite;
|
|
}
|
|
|
|
.devvm-art .mover-egress {
|
|
animation: devvm-mover-egress 4s linear infinite;
|
|
}
|
|
|
|
/* Blast radius's story, 8 s, with every part in place all along: only colours change and paths draw.
|
|
Attack n's chip lights from gray to lime at 0.4, 1.6, 2.8 and 4 s, taking 0.4 s. Its path in the VM
|
|
draws itself down from 0.2 to 0.8 s after it lights, and from 0.8 to 1.2 s after, the folder it reaches
|
|
turns red and the cross at the VM's border turns lime. All of it holds from 5.2 s, goes back to its
|
|
resting colours from 6.6 s as the paths draw back up, and rests from 7.2 s before it starts again.
|
|
Each step has its own keyframes, so that all of them end together. The SVG draws each part in its end
|
|
colour, which --lit names, and --rest is its colour before its step. */
|
|
.devvm-art .attack,
|
|
.devvm-art .reach {
|
|
--rest: var(--devvm-muted);
|
|
--lit: var(--devvm-accent);
|
|
}
|
|
|
|
.devvm-art .reach.r {
|
|
--rest: var(--devvm-text);
|
|
--lit: var(--devvm-red);
|
|
}
|
|
|
|
.devvm-art .path {
|
|
transform-box: fill-box;
|
|
transform-origin: top;
|
|
}
|
|
|
|
@keyframes devvm-attack-1 {
|
|
0%,
|
|
5% {
|
|
fill: var(--rest);
|
|
}
|
|
|
|
10%,
|
|
82.5% {
|
|
fill: var(--lit);
|
|
}
|
|
|
|
90%,
|
|
100% {
|
|
fill: var(--rest);
|
|
}
|
|
}
|
|
|
|
@keyframes devvm-attack-2 {
|
|
0%,
|
|
20% {
|
|
fill: var(--rest);
|
|
}
|
|
|
|
25%,
|
|
82.5% {
|
|
fill: var(--lit);
|
|
}
|
|
|
|
90%,
|
|
100% {
|
|
fill: var(--rest);
|
|
}
|
|
}
|
|
|
|
@keyframes devvm-attack-3 {
|
|
0%,
|
|
35% {
|
|
fill: var(--rest);
|
|
}
|
|
|
|
40%,
|
|
82.5% {
|
|
fill: var(--lit);
|
|
}
|
|
|
|
90%,
|
|
100% {
|
|
fill: var(--rest);
|
|
}
|
|
}
|
|
|
|
@keyframes devvm-attack-4 {
|
|
0%,
|
|
50% {
|
|
fill: var(--rest);
|
|
}
|
|
|
|
55%,
|
|
82.5% {
|
|
fill: var(--lit);
|
|
}
|
|
|
|
90%,
|
|
100% {
|
|
fill: var(--rest);
|
|
}
|
|
}
|
|
|
|
@keyframes devvm-path-1 {
|
|
0%,
|
|
7.5% {
|
|
transform: scaleY(0);
|
|
}
|
|
|
|
15%,
|
|
82.5% {
|
|
transform: scaleY(1);
|
|
}
|
|
|
|
90%,
|
|
100% {
|
|
transform: scaleY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes devvm-path-2 {
|
|
0%,
|
|
22.5% {
|
|
transform: scaleY(0);
|
|
}
|
|
|
|
30%,
|
|
82.5% {
|
|
transform: scaleY(1);
|
|
}
|
|
|
|
90%,
|
|
100% {
|
|
transform: scaleY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes devvm-path-3 {
|
|
0%,
|
|
37.5% {
|
|
transform: scaleY(0);
|
|
}
|
|
|
|
45%,
|
|
82.5% {
|
|
transform: scaleY(1);
|
|
}
|
|
|
|
90%,
|
|
100% {
|
|
transform: scaleY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes devvm-path-4 {
|
|
0%,
|
|
52.5% {
|
|
transform: scaleY(0);
|
|
}
|
|
|
|
60%,
|
|
82.5% {
|
|
transform: scaleY(1);
|
|
}
|
|
|
|
90%,
|
|
100% {
|
|
transform: scaleY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes devvm-reach-1 {
|
|
0%,
|
|
15% {
|
|
fill: var(--rest);
|
|
}
|
|
|
|
20%,
|
|
82.5% {
|
|
fill: var(--lit);
|
|
}
|
|
|
|
90%,
|
|
100% {
|
|
fill: var(--rest);
|
|
}
|
|
}
|
|
|
|
@keyframes devvm-reach-2 {
|
|
0%,
|
|
30% {
|
|
fill: var(--rest);
|
|
}
|
|
|
|
35%,
|
|
82.5% {
|
|
fill: var(--lit);
|
|
}
|
|
|
|
90%,
|
|
100% {
|
|
fill: var(--rest);
|
|
}
|
|
}
|
|
|
|
@keyframes devvm-reach-3 {
|
|
0%,
|
|
45% {
|
|
fill: var(--rest);
|
|
}
|
|
|
|
50%,
|
|
82.5% {
|
|
fill: var(--lit);
|
|
}
|
|
|
|
90%,
|
|
100% {
|
|
fill: var(--rest);
|
|
}
|
|
}
|
|
|
|
@keyframes devvm-reach-4 {
|
|
0%,
|
|
60% {
|
|
fill: var(--rest);
|
|
}
|
|
|
|
65%,
|
|
82.5% {
|
|
fill: var(--lit);
|
|
}
|
|
|
|
90%,
|
|
100% {
|
|
fill: var(--rest);
|
|
}
|
|
}
|
|
|
|
.devvm-art .attack,
|
|
.devvm-art .path,
|
|
.devvm-art .reach {
|
|
animation-duration: 8s;
|
|
animation-timing-function: ease-in-out;
|
|
animation-iteration-count: infinite;
|
|
animation-fill-mode: both;
|
|
}
|
|
|
|
.devvm-art .attack-1 {
|
|
animation-name: devvm-attack-1;
|
|
}
|
|
|
|
.devvm-art .attack-2 {
|
|
animation-name: devvm-attack-2;
|
|
}
|
|
|
|
.devvm-art .attack-3 {
|
|
animation-name: devvm-attack-3;
|
|
}
|
|
|
|
.devvm-art .attack-4 {
|
|
animation-name: devvm-attack-4;
|
|
}
|
|
|
|
.devvm-art .path-1 {
|
|
animation-name: devvm-path-1;
|
|
}
|
|
|
|
.devvm-art .path-2 {
|
|
animation-name: devvm-path-2;
|
|
}
|
|
|
|
.devvm-art .path-3 {
|
|
animation-name: devvm-path-3;
|
|
}
|
|
|
|
.devvm-art .path-4 {
|
|
animation-name: devvm-path-4;
|
|
}
|
|
|
|
.devvm-art .reach-1 {
|
|
animation-name: devvm-reach-1;
|
|
}
|
|
|
|
.devvm-art .reach-2 {
|
|
animation-name: devvm-reach-2;
|
|
}
|
|
|
|
.devvm-art .reach-3 {
|
|
animation-name: devvm-reach-3;
|
|
}
|
|
|
|
.devvm-art .reach-4 {
|
|
animation-name: devvm-reach-4;
|
|
}
|
|
|
|
/* Quick start's terminals (step-cd, step-pick and step-agent), each on a loop of its own. A command is
|
|
typed out: its .type cover shrinks from the right a cell at a time while its .caret moves along, both in
|
|
--chars steps across --width, then the caret blinks. The styles here are each part's end state, which
|
|
shows when there's no motion, and the keyframes start from the beginning. step-cd types from 0.6 to 2.4 s
|
|
of 6 s and step-agent from 0.4 to 1.6 s of 4 s. step-pick's 8 s: devvm typed from 0.4 to 1.4 s, the new VM's
|
|
summary at 1.8 s, Customize it? [y/N] at 2.6 s, then enter at 4.4 s, lit as it's pressed. */
|
|
.devvm-art .type {
|
|
transform: scaleX(0);
|
|
transform-box: fill-box;
|
|
transform-origin: right;
|
|
animation: devvm-type var(--duration) steps(var(--chars), jump-end) infinite;
|
|
}
|
|
|
|
.devvm-art .caret {
|
|
transform: translateX(var(--width));
|
|
animation: devvm-caret var(--duration) steps(var(--chars), jump-end) infinite;
|
|
}
|
|
|
|
.devvm-art .caret-blink {
|
|
animation: devvm-caret-blink var(--duration) step-end infinite;
|
|
}
|
|
|
|
.devvm-art .type-cd,
|
|
.devvm-art .caret-cd,
|
|
.devvm-art .caret-blink-cd {
|
|
--duration: 6s;
|
|
--chars: 17;
|
|
--width: 119px;
|
|
}
|
|
|
|
.devvm-art .type-agent,
|
|
.devvm-art .caret-agent,
|
|
.devvm-art .caret-blink-agent {
|
|
--duration: 4s;
|
|
--chars: 6;
|
|
--width: 42px;
|
|
}
|
|
|
|
.devvm-art .type-pick,
|
|
.devvm-art .caret-pick,
|
|
.devvm-art .caret-blink-pick,
|
|
.devvm-art .pick-summary,
|
|
.devvm-art .pick-ask,
|
|
.devvm-art .key {
|
|
--duration: 8s;
|
|
--chars: 5;
|
|
--width: 35px;
|
|
}
|
|
|
|
.devvm-art .type-pick {
|
|
animation-name: devvm-type-pick;
|
|
}
|
|
|
|
.devvm-art .caret-pick {
|
|
animation-name: devvm-caret-pick;
|
|
}
|
|
|
|
.devvm-art .caret-blink-pick {
|
|
opacity: 0;
|
|
animation-name: devvm-caret-pick-blink;
|
|
}
|
|
|
|
.devvm-art .pick-summary {
|
|
animation: devvm-pick-summary var(--duration) step-end infinite;
|
|
}
|
|
|
|
.devvm-art .pick-ask {
|
|
animation: devvm-pick-ask var(--duration) step-end infinite;
|
|
}
|
|
|
|
/* A key's loop starts where its press is, 4.4 s into the 8 s: a negative delay starts it that far before
|
|
its press, so it's dim from the page's start. */
|
|
.devvm-art .key {
|
|
animation: devvm-key var(--duration) ease-out infinite;
|
|
}
|
|
|
|
.devvm-art .key-1 {
|
|
animation-delay: -3.6s;
|
|
}
|
|
|
|
@keyframes devvm-type {
|
|
0%,
|
|
10% {
|
|
transform: scaleX(1);
|
|
}
|
|
|
|
40%,
|
|
100% {
|
|
transform: scaleX(0);
|
|
}
|
|
}
|
|
|
|
@keyframes devvm-caret {
|
|
0%,
|
|
10% {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
40%,
|
|
100% {
|
|
transform: translateX(var(--width));
|
|
}
|
|
}
|
|
|
|
/* Solid while it types, then on and off. */
|
|
@keyframes devvm-caret-blink {
|
|
0%,
|
|
56%,
|
|
72%,
|
|
88% {
|
|
opacity: 1;
|
|
}
|
|
|
|
48%,
|
|
64%,
|
|
80%,
|
|
96% {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes devvm-type-pick {
|
|
0%,
|
|
5% {
|
|
transform: scaleX(1);
|
|
}
|
|
|
|
17.5%,
|
|
100% {
|
|
transform: scaleX(0);
|
|
}
|
|
}
|
|
|
|
@keyframes devvm-caret-pick {
|
|
0%,
|
|
5% {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
17.5%,
|
|
100% {
|
|
transform: translateX(var(--width));
|
|
}
|
|
}
|
|
|
|
@keyframes devvm-caret-pick-blink {
|
|
0% {
|
|
opacity: 1;
|
|
}
|
|
|
|
22.5%,
|
|
100% {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes devvm-pick-summary {
|
|
0% {
|
|
opacity: 0;
|
|
}
|
|
|
|
22.5%,
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes devvm-pick-ask {
|
|
0% {
|
|
opacity: 0;
|
|
}
|
|
|
|
32.5%,
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* A key, from its press: lit at once, then dim, and dim until its next press. */
|
|
@keyframes devvm-key {
|
|
0%,
|
|
5% {
|
|
opacity: 1;
|
|
}
|
|
|
|
12%,
|
|
100% {
|
|
opacity: 0.35;
|
|
}
|
|
}
|
|
|
|
/* No motion when the visitor asks for less: everything shows as drawn, and the travelling blocks go. */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.devvm-art * {
|
|
animation: none !important;
|
|
}
|
|
|
|
.devvm-art .mover {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* Diagrams (mermaid code blocks, themed in layouts/_partials/scripts/mermaid.html): at their own size,
|
|
centered, scrolled sideways when wider than the page. */
|
|
.content pre.mermaid {
|
|
display: flex;
|
|
justify-content: safe center;
|
|
overflow-x: auto;
|
|
margin: 1.5rem 0;
|
|
padding: 0;
|
|
font-family: var(--devvm-font-pixel);
|
|
font-size: 14px;
|
|
font-synthesis: none;
|
|
}
|
|
|
|
.content pre.mermaid svg {
|
|
flex: none;
|
|
}
|
|
|
|
/* Labels' lines on the font's cell, 18px at 14px, not the page's line height. Mermaid measures them in
|
|
the page, so their boxes fit. */
|
|
.content pre.mermaid foreignObject p {
|
|
margin: 0;
|
|
line-height: 18px;
|
|
}
|
|
|
|
.content pre.mermaid rect {
|
|
shape-rendering: crispEdges;
|
|
}
|
|
|
|
/* The install shortcode (layouts/_shortcodes/install.html): Hextra's tabs, a tab per operating system, on
|
|
a blue line with the selected one in lime. */
|
|
.devvm-install {
|
|
width: 100%;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
/* No gutter for a scrollbar the two tabs never need, so their line is as wide as the code. */
|
|
.devvm-install .hextra-scrollbar {
|
|
scrollbar-gutter: auto;
|
|
}
|
|
|
|
.devvm-install [role="tablist"] {
|
|
margin-top: 0;
|
|
border-color: var(--devvm-border);
|
|
}
|
|
|
|
html.dark .devvm-install .hextra-tabs-toggle {
|
|
color: var(--devvm-text-secondary);
|
|
}
|
|
|
|
html.dark .devvm-install .hextra-tabs-toggle:hover {
|
|
color: var(--devvm-text);
|
|
border-color: var(--devvm-border);
|
|
}
|
|
|
|
html.dark .devvm-install .hextra-tabs-toggle[data-state="selected"] {
|
|
color: var(--devvm-accent);
|
|
border-color: var(--devvm-accent);
|
|
}
|
|
|
|
.devvm-install .hextra-tabs-panel {
|
|
padding-top: 1rem;
|
|
}
|
|
|
|
.devvm-install .hextra-tabs-panel > p {
|
|
margin: 0.75rem 0 0;
|
|
}
|
|
|
|
.devvm-install .hextra-tabs-panel > p > a {
|
|
color: var(--devvm-accent);
|
|
text-decoration: underline;
|
|
text-underline-offset: 3px;
|
|
}
|
|
|
|
.devvm-install .hextra-tabs-panel > p > a:hover {
|
|
color: var(--devvm-accent-soft);
|
|
}
|
|
|
|
/* On the home page, the tabs' text and its code as the page's own. */
|
|
#content > .hx\:items-start > .devvm-install .hextra-tabs-panel > p {
|
|
color: var(--devvm-text-secondary);
|
|
}
|
|
|
|
#content > .hx\:items-start > .devvm-install .hextra-tabs-panel > p > code {
|
|
color: var(--devvm-accent-soft);
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
/* Pixel icons ({{< icon >}}): 12 pixels in 0.75em, so one icon pixel is one screen pixel in 16px text
|
|
and two in 32px. The icon's bottom sits on the text's baseline, and its top row is empty, so the drawing
|
|
stands about as tall as a capital letter. */
|
|
.devvm-icon {
|
|
display: inline-block;
|
|
width: 0.75em;
|
|
height: 0.75em;
|
|
flex-shrink: 0;
|
|
vertical-align: baseline;
|
|
}
|
|
|
|
/* The docs' section cards (layouts/_shortcodes/section-card.html): the icon at twice its pixels, centered
|
|
on the title's line, dimmed as Hextra dims its cards' icons, and lime on hover. Each card's title at its
|
|
top, so a row's titles line up whatever their text's length. */
|
|
.hextra-card .devvm-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
align-self: center;
|
|
}
|
|
|
|
html.dark .hextra-card:hover .hextra-card-icon .devvm-icon {
|
|
color: var(--devvm-accent);
|
|
}
|
|
|
|
.hextra-card:not(:has(img)) > div {
|
|
margin-top: 0;
|
|
}
|
|
|
|
/* The OS tabs' icons, a space before the name. */
|
|
.hextra-tabs-toggle .devvm-icon {
|
|
margin-right: 0.4em;
|
|
}
|
|
|
|
/* Icons in tables, whose text is smaller than 16px: 12px, so each pixel stays one screen pixel. */
|
|
.content table .devvm-icon {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
|
|
/* ✓ and ✗ before a table cell's word ({{< yes >}}, {{< no >}}): the check in lime, the cross muted. */
|
|
.devvm-yes,
|
|
.devvm-no {
|
|
margin-right: 0.25em;
|
|
}
|
|
|
|
.devvm-yes {
|
|
color: var(--devvm-accent);
|
|
}
|
|
|
|
.devvm-no {
|
|
color: var(--devvm-text-secondary);
|
|
}
|
|
|
|
/* Callouts (GitHub's > [!NOTE], > [!TIP] and > [!WARNING], the blockquote alert render hook): a panel on
|
|
the surface color, with a line down its left side and a title in the type's color: blue for a note, the
|
|
soft lime for a tip and the lime for a warning. */
|
|
.content .devvm-callout {
|
|
margin-top: 1.5rem;
|
|
padding: 0.75rem 1rem;
|
|
background-color: var(--devvm-surface);
|
|
border: 1px solid var(--devvm-border);
|
|
border-left: 2px solid var(--devvm-callout-color);
|
|
border-radius: 0.25rem;
|
|
color: var(--devvm-text);
|
|
--devvm-callout-color: var(--devvm-blue);
|
|
}
|
|
|
|
.content .devvm-callout-tip {
|
|
--devvm-callout-color: var(--devvm-accent-soft);
|
|
}
|
|
|
|
.content .devvm-callout-warning {
|
|
--devvm-callout-color: var(--devvm-accent);
|
|
}
|
|
|
|
.content .devvm-callout > p,
|
|
.content .devvm-callout > ul {
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.content .devvm-callout > :first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.content .devvm-callout-title {
|
|
color: var(--devvm-callout-color);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* The Copy page menu beside each docs page's title (hugo.yaml's params.page.contextMenu): its buttons in
|
|
a box with the site's border, their text secondary and lime on hover, and its list on the surface color,
|
|
as a callout is. */
|
|
html.dark .hextra-page-context-menu > div {
|
|
border-color: var(--devvm-border);
|
|
}
|
|
|
|
html.dark .hextra-page-context-menu > div:hover {
|
|
border-color: var(--devvm-accent);
|
|
}
|
|
|
|
html.dark .hextra-page-context-menu-copy,
|
|
html.dark .hextra-page-context-menu-toggle,
|
|
html.dark .hextra-page-context-menu-dropdown [role="menuitem"],
|
|
html.dark .hextra-page-context-menu-dropdown [role="menuitem"] > div {
|
|
color: var(--devvm-text-secondary);
|
|
}
|
|
|
|
html.dark .hextra-page-context-menu-copy:hover,
|
|
html.dark .hextra-page-context-menu-toggle:hover,
|
|
html.dark .hextra-page-context-menu-toggle[aria-expanded="true"],
|
|
html.dark .hextra-page-context-menu-dropdown [role="menuitem"]:hover,
|
|
html.dark .hextra-page-context-menu-dropdown [role="menuitem"]:focus-visible,
|
|
html.dark .hextra-page-context-menu-dropdown [role="menuitem"]:hover > div,
|
|
html.dark .hextra-page-context-menu-dropdown [role="menuitem"]:focus-visible > div {
|
|
background-color: transparent;
|
|
color: var(--devvm-accent);
|
|
}
|
|
|
|
html.dark .hextra-page-context-menu-dropdown {
|
|
background-color: var(--devvm-surface);
|
|
border-color: var(--devvm-border);
|
|
}
|
|
|
|
/* The 404 page (layouts/404.html): one centered column, the heading in Departure Mono like the home
|
|
page's, the art at twice its size, then the search box and the links as the home page's buttons. */
|
|
.devvm-404 {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
max-width: calc(448px + 3rem);
|
|
margin: 0 auto;
|
|
text-align: center;
|
|
color: var(--devvm-text-secondary);
|
|
}
|
|
|
|
.devvm-404 > h1 {
|
|
font-family: var(--devvm-font-pixel);
|
|
font-size: 55px;
|
|
font-weight: 400;
|
|
font-synthesis: none;
|
|
line-height: 1.2;
|
|
color: var(--devvm-text);
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.devvm-404 > .devvm-art {
|
|
width: 448px;
|
|
margin: 1.5rem 0;
|
|
}
|
|
|
|
.devvm-404 > p {
|
|
line-height: 1.75;
|
|
}
|
|
|
|
.devvm-404-search {
|
|
width: 100%;
|
|
max-width: 20rem;
|
|
margin: 1.5rem 0;
|
|
}
|
|
|
|
/* Hextra's search box, as wide as the column and with its label at every width: Hextra shows only the
|
|
icon on small screens. */
|
|
.devvm-404-search .hextra-search-trigger {
|
|
width: 100%;
|
|
justify-content: flex-start;
|
|
gap: 0.5rem;
|
|
padding: 0.5rem 0.75rem;
|
|
background-color: var(--devvm-surface);
|
|
border: 1px solid var(--devvm-border);
|
|
color: var(--devvm-text-secondary);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.devvm-404-search .hextra-search-trigger-icon {
|
|
width: 1rem;
|
|
height: 1rem;
|
|
}
|
|
|
|
.devvm-404-search .hextra-search-trigger-label {
|
|
display: inline;
|
|
}
|
|
|
|
/* As wide as the two buttons, past the column's width, so they stay side by side; they wrap only where
|
|
the screen is narrower. */
|
|
.devvm-404-links {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: 0.75rem;
|
|
width: max-content;
|
|
max-width: calc(100vw - 3rem);
|
|
}
|
|
|
|
.devvm-404-links > a {
|
|
font-family: var(--devvm-font-pixel);
|
|
font-size: 22px;
|
|
font-synthesis: none;
|
|
line-height: 1;
|
|
padding: 0.75rem 1.5rem;
|
|
border: 1px solid var(--devvm-accent);
|
|
border-radius: 9999px;
|
|
background-color: var(--devvm-accent);
|
|
color: var(--devvm-bg);
|
|
text-shadow: 1px 0 0 currentColor;
|
|
}
|
|
|
|
/* Their icons, at 24px as the home page's buttons have them. */
|
|
.devvm-404-links > a > .devvm-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
margin-right: 0.5rem;
|
|
vertical-align: -3px;
|
|
}
|
|
|
|
.devvm-404-links > a:hover {
|
|
border-color: var(--devvm-accent-soft);
|
|
background-color: var(--devvm-accent-soft);
|
|
}
|
|
|
|
.devvm-404-links > a + a {
|
|
border-color: var(--devvm-border);
|
|
background-color: transparent;
|
|
color: var(--devvm-text);
|
|
}
|
|
|
|
.devvm-404-links > a + a:hover {
|
|
border-color: var(--devvm-accent);
|
|
background-color: transparent;
|
|
color: var(--devvm-accent);
|
|
}
|
|
|
|
/* The title's icon: 12px, so each icon pixel is one screen pixel. */
|
|
.content .devvm-callout-title > .devvm-icon {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
|
|
/* The branding page (content/branding.md, layouts/branding.html): the home page's look, from the rules
|
|
above, as the page uses Hextra's home layout's wrapper. Its text logo in Departure Mono, at 22px, so
|
|
the box-drawing characters line up as the logo's. */
|
|
.devvm-branding > div > .hextra-code-block pre,
|
|
.devvm-branding > div > .hextra-code-block code {
|
|
font-family: var(--devvm-font-pixel);
|
|
font-size: 22px;
|
|
font-weight: 400;
|
|
font-synthesis: none;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* Downloads (the brand-assets and brand-asset shortcodes): tiles, one per row, then two from 768px; the
|
|
social card's take the whole row. */
|
|
.devvm-brand-assets {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr);
|
|
gap: 1.5rem;
|
|
width: 100%;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.devvm-brand-assets:not(.devvm-brand-assets-wide) {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
.devvm-brand-asset {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin: 0;
|
|
border: 1px solid var(--devvm-border);
|
|
border-radius: 0.5rem;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* The preview on its background, the image at its own size, pixels kept square. */
|
|
.devvm-brand-preview {
|
|
display: flex;
|
|
flex: 1;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 12rem;
|
|
padding: 2rem;
|
|
}
|
|
|
|
.devvm-brand-preview-dark {
|
|
background-color: var(--devvm-bg);
|
|
}
|
|
|
|
.devvm-brand-preview-light {
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
.devvm-brand-preview img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
image-rendering: pixelated;
|
|
}
|
|
|
|
.devvm-brand-preview img.devvm-brand-preview-full {
|
|
width: 100%;
|
|
}
|
|
|
|
.devvm-brand-asset > figcaption {
|
|
padding: 1rem 1.5rem 1.25rem;
|
|
background-color: var(--devvm-surface);
|
|
border-top: 1px solid var(--devvm-border);
|
|
}
|
|
|
|
.devvm-brand-title {
|
|
display: block;
|
|
margin-bottom: 0.75rem;
|
|
color: var(--devvm-text);
|
|
font-family: var(--devvm-font-pixel);
|
|
font-size: 22px;
|
|
font-synthesis: none;
|
|
}
|
|
|
|
/* Each file's link: Departure Mono at 11px, in a thin rounded box that turns lime on hover. */
|
|
.devvm-brand-files {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.devvm-brand-files a {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 4px 10px;
|
|
border: 1px solid var(--devvm-border);
|
|
border-radius: 9999px;
|
|
color: var(--devvm-text-secondary);
|
|
font-family: var(--devvm-font-pixel);
|
|
font-size: 11px;
|
|
font-synthesis: none;
|
|
line-height: 14px;
|
|
}
|
|
|
|
.devvm-brand-files a:hover {
|
|
border-color: var(--devvm-accent);
|
|
color: var(--devvm-accent);
|
|
}
|
|
|
|
.devvm-brand-files .devvm-icon {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
|
|
/* The palette (the palette shortcode): swatches, two to a row, then three from 768px and four from 1024px.
|
|
Each is a button that copies its hex, and says so on hover and once copied. */
|
|
.devvm-swatches {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 1rem;
|
|
width: 100%;
|
|
margin: 1.5rem 0 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.devvm-swatches {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1024px) {
|
|
.devvm-swatches {
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
/* Not the home page's list items: no dash, no indent. */
|
|
#content > .hx\:items-start > ul.devvm-swatches > li {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
#content > .hx\:items-start > ul.devvm-swatches > li::before {
|
|
content: none;
|
|
}
|
|
|
|
.devvm-swatch {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 0 0 0.75rem;
|
|
border: 1px solid var(--devvm-border);
|
|
border-radius: 0.5rem;
|
|
overflow: hidden;
|
|
background-color: var(--devvm-surface);
|
|
color: var(--devvm-text-secondary);
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.devvm-swatch:hover,
|
|
.devvm-swatch:focus-visible {
|
|
border-color: var(--devvm-accent);
|
|
}
|
|
|
|
.devvm-swatch-color {
|
|
display: block;
|
|
height: 4.5rem;
|
|
margin-bottom: 0.75rem;
|
|
border-bottom: 1px solid var(--devvm-border);
|
|
}
|
|
|
|
.devvm-swatch-name {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
gap: 0.5rem;
|
|
padding: 0 0.75rem;
|
|
color: var(--devvm-text);
|
|
font-family: var(--devvm-font-pixel);
|
|
font-size: 22px;
|
|
font-synthesis: none;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
/* "copy" on hover and focus, "copied" in lime once it has. */
|
|
.devvm-swatch-state {
|
|
font-size: 11px;
|
|
color: var(--devvm-text-secondary);
|
|
opacity: 0;
|
|
}
|
|
|
|
.devvm-swatch:hover .devvm-swatch-state,
|
|
.devvm-swatch:focus-visible .devvm-swatch-state,
|
|
.devvm-swatch[data-copied] .devvm-swatch-state {
|
|
opacity: 1;
|
|
}
|
|
|
|
.devvm-swatch[data-copied] .devvm-swatch-state {
|
|
color: var(--devvm-accent);
|
|
}
|
|
|
|
.devvm-swatch > code {
|
|
margin-top: 0.25rem;
|
|
padding: 0 0.75rem;
|
|
color: var(--devvm-accent-soft);
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.devvm-swatch-use {
|
|
margin-top: 0.5rem;
|
|
padding: 0 0.75rem;
|
|
font-size: 0.875rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* The fonts (the font-sample shortcode): a card each, the name in lime, then a line of text in the font. */
|
|
.devvm-font {
|
|
width: 100%;
|
|
margin-top: 1.5rem;
|
|
padding: 1.5rem;
|
|
border: 1px solid var(--devvm-border);
|
|
border-radius: 0.5rem;
|
|
color: var(--devvm-text-secondary);
|
|
line-height: 1.75;
|
|
}
|
|
|
|
.devvm-font-name {
|
|
color: var(--devvm-accent);
|
|
text-decoration: underline;
|
|
text-underline-offset: 3px;
|
|
}
|
|
|
|
.devvm-font-name:hover {
|
|
color: var(--devvm-accent-soft);
|
|
}
|
|
|
|
.devvm-font-sample {
|
|
margin: 0.5rem 0 0.75rem;
|
|
color: var(--devvm-text);
|
|
font-size: 2rem;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
/* Departure Mono at 33px, a multiple of 11px, so its pixels stay whole. */
|
|
.devvm-font-pixel .devvm-font-sample {
|
|
font-size: 33px;
|
|
font-synthesis: none;
|
|
}
|
|
|
|
.devvm-font-mono .devvm-font-sample {
|
|
font-stretch: 87.5%;
|
|
font-weight: 350;
|
|
}
|
|
|
|
.devvm-font > p {
|
|
margin: 0;
|
|
}
|
|
|
|
.devvm-font > .devvm-brand-files {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.devvm-font > p > a {
|
|
color: var(--devvm-accent);
|
|
text-decoration: underline;
|
|
text-underline-offset: 3px;
|
|
}
|