mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 21:36:40 -10:00
The hero names Lima as the default and smolvm and Docker as experimental. A three-step quick start replaces the recording, followed by a What's supported row (toolchains, coding agents, backends), feature-card bullets for devvm code and devcontainer.json, a link to what devvm doesn't protect, a short FAQ and the install commands again at the bottom. Claims now match their pages: .git protection is macOS only, and the VM also gets the agents' config read-only. The features shortcode takes columns="3" and feature takes level="3". Contributing's home page notes describe the page's sections and drop the recording. Co-Authored-By: Claude Opus 5.5 <[email protected]>
470 lines
12 KiB
CSS
470 lines
12 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 blue of commands (cd) in Hextra's syntax highlighting. */
|
||
--devvm-blue: #0086b3;
|
||
|
||
/* 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 30px more for the logo. */
|
||
--hextra-navbar-height: calc(3.5rem + 30px);
|
||
|
||
/* 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 site's title, "devvm", at 22px in a 1px box (the weight of
|
||
Departure's 11px box lines), with an 11px box-drawing lock on its bottom-right corner. The prompt and
|
||
the lock are decoration: screen readers get "devvm". */
|
||
.hextra-nav-container nav > a:first-child > span {
|
||
position: relative;
|
||
display: inline-block;
|
||
font-family: var(--devvm-font-pixel);
|
||
font-size: 22px;
|
||
font-weight: 400;
|
||
font-synthesis: none;
|
||
line-height: 1;
|
||
/* Right, in 11px characters (half a 22px one, 0.5ch): one space, then the lock's 1.5 inside the box. */
|
||
padding: 6px 1.25ch 6px 11px;
|
||
border: 1px solid currentColor;
|
||
border-radius: 3px;
|
||
}
|
||
|
||
/* The prompt, then the width of an 11px space: half of a 22px one. */
|
||
.hextra-nav-container nav > a:first-child > span::before {
|
||
margin-right: 0.5ch;
|
||
content: "❯";
|
||
content: "❯" / "";
|
||
}
|
||
|
||
/* The lock: ┤ on the right border, ██ over the corner, each half a cell past the border's line. */
|
||
.hextra-nav-container nav > a:first-child > span::after {
|
||
position: absolute;
|
||
right: calc(-0.5ch - 0.5px);
|
||
bottom: calc(-0.5lh - 0.5px);
|
||
font-size: 11px;
|
||
line-height: normal;
|
||
white-space: pre;
|
||
content: "╭┤\A██";
|
||
content: "╭┤\A██" / "";
|
||
}
|
||
|
||
/* 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;
|
||
}
|
||
|
||
/* 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);
|
||
max-width: 42rem;
|
||
margin: 1rem 0;
|
||
line-height: 1.75;
|
||
}
|
||
|
||
/* The subtitle: as wide as the page, under the headline. */
|
||
#content > .hx\:items-start > p.not-prose {
|
||
max-width: none;
|
||
}
|
||
|
||
#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;
|
||
}
|
||
|
||
#content > .hx\:items-start > .asciinema-player,
|
||
#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;
|
||
}
|
||
|
||
/* 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-feature > ul {
|
||
max-width: 42rem;
|
||
margin: 0;
|
||
padding: 0;
|
||
list-style: none;
|
||
}
|
||
|
||
#content > .hx\:items-start > 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-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-feature > ul > li code {
|
||
color: var(--devvm-accent-soft);
|
||
font-size: 0.85em;
|
||
}
|
||
|
||
#content > .hx\:items-start > 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-feature > ul > li > a:hover {
|
||
color: var(--devvm-accent-soft);
|
||
}
|
||
|
||
/* The home page's feature cards (the features and feature shortcodes): one centered column, then two per
|
||
row from 1024px, where each card still fits its art at 364px. Black, not the surface color, so the
|
||
art's panels stand out; the art at the bottom, so cards in a row line up. */
|
||
#content > .hx\:items-start > .devvm-features {
|
||
display: grid;
|
||
grid-template-columns: minmax(0, calc(728px + 3rem + 2px));
|
||
justify-content: center;
|
||
gap: 1.5rem;
|
||
align-self: stretch;
|
||
margin-top: 4rem;
|
||
}
|
||
|
||
.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;
|
||
}
|
||
|
||
/* What's supported: three short cards without art, under the section's heading, each a heading and a
|
||
sentence. One column, then three per row from 1024px. */
|
||
#content > .hx\:items-start > .devvm-features-3 {
|
||
margin-top: 0;
|
||
}
|
||
|
||
@media (min-width: 1024px) {
|
||
#content > .hx\:items-start > .devvm-features.devvm-features-3 {
|
||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||
}
|
||
}
|
||
|
||
.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;
|
||
}
|
||
|
||
.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 at Departure Mono's own size (11px, one screen pixel to each of the font's), or twice it where
|
||
one column is wide enough. */
|
||
.devvm-feature > .devvm-art {
|
||
width: 364px;
|
||
margin: auto auto 0;
|
||
padding-top: 1.5rem;
|
||
}
|
||
|
||
@media (min-width: 52rem) {
|
||
.devvm-feature > .devvm-art {
|
||
width: 728px;
|
||
}
|
||
}
|
||
|
||
@media (min-width: 1024px) {
|
||
#content > .hx\:items-start > .devvm-features {
|
||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||
}
|
||
|
||
.devvm-feature > .devvm-art {
|
||
width: 364px;
|
||
}
|
||
}
|
||
|
||
/* 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 recording's player (asciinema's theme="devvm"): the iTerm2 profile it was recorded in, green on
|
||
black with xterm's 16 colors. On .ap-player itself: the player's stylesheet loads later and sets its
|
||
defaults there. */
|
||
.ap-player.asciinema-player-theme-devvm {
|
||
--term-color-foreground: #00ff00;
|
||
--term-color-background: #000000;
|
||
--term-color-0: #000000;
|
||
--term-color-1: #bb0000;
|
||
--term-color-2: #00bb00;
|
||
--term-color-3: #bbbb00;
|
||
--term-color-4: #0000bb;
|
||
--term-color-5: #bb00bb;
|
||
--term-color-6: #00bbbb;
|
||
--term-color-7: #bbbbbb;
|
||
--term-color-8: #555555;
|
||
--term-color-9: #ff5555;
|
||
--term-color-10: #55ff55;
|
||
--term-color-11: #ffff55;
|
||
--term-color-12: #5555ff;
|
||
--term-color-13: #ff55ff;
|
||
--term-color-14: #55ffff;
|
||
--term-color-15: #ffffff;
|
||
}
|
||
|
||
.asciinema-player .ap-player {
|
||
border: 1px solid var(--devvm-border);
|
||
border-radius: 0.5rem;
|
||
}
|
||
|
||
/* 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);
|
||
}
|
||
|
||
/* 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;
|
||
}
|