/** * @embedpdf/docs-kit — baseline styles for the kit's own hook classes. * Import ONCE in each site's global stylesheet: * * @import '@embedpdf/docs-kit/styles.css'; * * Brand colors ride the --dk-* token contract (see src/tokens.ts); what * lives here is the deliberately brand-shared surface styling — the dark * code panes' scrollbars, which browser defaults render as glowing gray * bars on the navy cards. A site may override any of it after the import. */ /* MUI-style inset pill scrollbar for every dark code surface. */ .dk-dark-scroll { scrollbar-width: thin; scrollbar-color: #2e3f6e transparent; } .dk-dark-scroll::-webkit-scrollbar { width: 10px; height: 10px; } .dk-dark-scroll::-webkit-scrollbar-track { background: transparent; } .dk-dark-scroll::-webkit-scrollbar-thumb { background: #2e3f6e; border-radius: 999px; border: 3px solid transparent; background-clip: content-box; } .dk-dark-scroll::-webkit-scrollbar-thumb:hover { background-color: #3d538f; } .dk-dark-scroll::-webkit-scrollbar-corner { background: transparent; } /* The "On this page" list scrolls inside the rail. Its overflow is signalled by the fade mask applies at whichever edge still has content, so the bar itself is redundant — and a full-height gutter down the page edge is exactly what the fade exists to avoid. */ .dk-rail-scroll { scrollbar-width: none; } .dk-rail-scroll::-webkit-scrollbar { width: 0; height: 0; } /* Entry animations for the search dialog (and any future kit overlay). */ @keyframes dk-fade-in { from { opacity: 0; } to { opacity: 1; } } @keyframes dk-slide-in { from { opacity: 0; transform: translateY(8px) scale(0.99); } to { opacity: 1; transform: translateY(0) scale(1); } } .dk-anim-fade { animation: dk-fade-in 120ms ease-out; } .dk-anim-slide { animation: dk-slide-in 160ms cubic-bezier(0.16, 1, 0.3, 1); } /* The mobile docs drawer enters from the left, mirroring where the sidebar sits once there is room for it. */ @keyframes dk-slide-in-left { from { transform: translateX(-100%); } to { transform: translateX(0); } } .dk-anim-slide-left { animation: dk-slide-in-left 220ms cubic-bezier(0.16, 1, 0.3, 1); } @media (prefers-reduced-motion: reduce) { .dk-anim-fade, .dk-anim-slide, .dk-anim-slide-left { animation: none; } }