minicpm5-webgpu / src /index.css
fatih-can's picture
Sync from fcan-dev/minicpm5_mlc_frontend via hub-sync
f565ab5 verified
Raw History Blame Contribute Delete
1.95 kB
@import "tailwindcss";
@plugin "@tailwindcss/typography";
html,
body,
#root {
height: 100%;
}
body {
@apply bg-zinc-50 text-zinc-900 antialiased dark:bg-zinc-950 dark:text-zinc-100;
}
/*
* Reserve the scrollbar gutter on the two surfaces that scroll the conversation
* and hold the composer. Without it the scrollbar shares its content box with
* the text column, so the bar is painted over the message cards instead of
* beside them, and the composer loses its right inset while the bar is shown.
* Reserving the gutter keeps that inset intact in both states.
*/
.scroll-gutter {
scrollbar-gutter: stable;
}
/*
* A thin scrollbar that follows the zinc palette and stays invisible until the
* pointer is over the scrolling surface. The gutter is still reserved (above),
* so revealing the bar never shifts the content column.
*
* Firefox takes the two properties directly; WebKit and Blink need the
* pseudo-elements. Scoped to elements that ask for the gutter class so it never
* reaches the page itself.
*/
.scroll-gutter {
scrollbar-width: thin;
scrollbar-color: transparent transparent;
}
.scroll-gutter:hover {
scrollbar-color: var(--color-zinc-300) transparent;
}
.dark .scroll-gutter:hover {
scrollbar-color: var(--color-zinc-700) transparent;
}
.scroll-gutter::-webkit-scrollbar {
width: 10px;
height: 10px;
}
.scroll-gutter::-webkit-scrollbar-track {
background: transparent;
}
.scroll-gutter::-webkit-scrollbar-thumb {
border: 3px solid transparent;
border-radius: 9999px;
background-clip: content-box;
@apply bg-transparent;
}
.scroll-gutter:hover::-webkit-scrollbar-thumb {
@apply bg-zinc-400/60 dark:bg-zinc-600/70;
}
.scroll-gutter:hover::-webkit-scrollbar-thumb:hover {
@apply bg-zinc-500/70 dark:bg-zinc-500/80;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
}
}