Files
James Russo 87ce26de8a fix(docs): namespace custom CSS variables to prevent Mintlify collision (#285)
The `Copy page` dropdown panel rendered with a transparent background in
light mode because `docs/custom.css` defined `--background-light: #ffffff`
on `:root`. Mintlify's Maple theme owns that variable as a Tailwind color
(space-separated RGB used via `rgb(var(--background-light)/<alpha>)`), so
the hex override produced invalid CSS like `rgb(#ffffff/1)` and the
dropdown's `bg-background-light` class fell back to transparent. Dark
mode was unaffected because the dropdown panel uses `bg-background-dark`,
which custom.css didn't redefine.

Namespaced every custom variable with `--hf-` to make collisions
impossible, and updated the two consumers (`pre`, `::selection`, link
color in custom.css; `.tpl-card:hover` border in template-gallery.css).
2026-04-15 14:07:34 -07:00

26 lines
450 B
CSS

.tpl-card video {
width: 100%;
aspect-ratio: 16/9;
object-fit: cover;
display: block;
}
.tpl-card.portrait video {
aspect-ratio: 9/16;
}
.tpl-card:hover {
transform: translateY(-2px);
border-color: var(--hf-border-color-light, #d0cfcb);
}
.tpl-label {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 2.5rem 0.75rem 0.75rem;
background: linear-gradient(transparent, rgba(0,0,0,0.75));
pointer-events: none;
}