返回 CodeWhale
hero.css
根目录 / web / components / ratatui / hero.css
1 .rat-hero { width: var(--container); margin: 0 auto 2.5rem; }
2 .rat-hero-frame { margin: 0; }
3 .rat-hero-terminal { overflow-x: auto; border-radius: var(--radius-surface); background: var(--surface); scrollbar-width: thin; scrollbar-color: var(--line-strong) var(--surface); }
4 .rat-hero-terminal:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
5 /* The buffer keeps its 1:2 cell grid at every size; never letterbox it. */
6 .rat-hero-terminal svg { display: block; width: 100%; min-width: 46rem; height: auto; }
7 /* Small screens get the real 40-column redraw, not a shrunken wide render. */
8 .rat-hero-narrow { display: none; }
9 @media (max-width: 760px) {
10 .rat-hero-wide { display: none; }
11 .rat-hero-narrow { display: block; }
12 .rat-hero-narrow svg { min-width: 0; }
13 }
14 .rat-hero-caption { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: baseline; justify-content: space-between; padding-top: .75rem; color: var(--muted); font-size: .8rem; line-height: 1.5; }
15 .rat-hero-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
16 .rat-hero-links a { color: var(--accent); text-underline-offset: .2em; white-space: nowrap; }
17 .rat-hero-links a:hover { text-decoration: underline; }
18 @media (max-width: 760px) {
19 .rat-hero { margin-bottom: 2rem; }
20 }
21
21 lines CSS