Files
onixbyte.com/theme/index.css
T
zihluwang 9d095eba1b feat(theme): add top placement for sections
- Add `placement: top|bottom` to the section frontmatter
- Override `DocContent` to render hoisted bands under the page title
- Derive the zebra stripe from list position so split bands stay continuous
- Opt marketing bands out of doc typography with `rp-not-doc`
- Point the legal and privacy contact address at legal@onixbyte.com
- Condense the products pages' body copy into their section frontmatter
2026-09-25 18:04:49 +08:00

35 lines
1.0 KiB
CSS

@import "tailwindcss";
:root {
--rp-c-brand: #0f766e;
--rp-c-brand-dark: #115e59;
--rp-c-brand-tint: rgba(15, 118, 110, 0.16);
/* Vertical rhythm for the marketing bands on the home, products and
services pages. */
--rp-site-section-gap: 4rem;
}
/* `HomeFeature` always renders its wrapper, even when the page declares no
`features`. Hide the empty shell so a hero-only page does not show a
stray empty band. */
.rp-home-feature:empty {
display: none;
border: 0;
padding: 0;
}
/* Marketing sections, driven by `frontmatter.sections`. A band is full-bleed
when it renders below the article and article-width when `placement: top`
puts it inside the doc column. */
.rp-site-section {
padding-block: var(--rp-site-section-gap);
}
/* Zebra striping. Chosen by `HomeSections` from the band's position in the
page's whole `sections` list rather than by `:nth-child`, so that bands
split across the top and bottom slots keep one continuous stripe. */
.rp-site-section--tinted {
background: var(--rp-c-bg-soft);
}