UNPKG

@atlaskit/css-reset

Version:

A base stylesheet for the Atlassian Design System.

22 lines (20 loc) • 821 B
/* * Feature-gated harmonized scrollbar appearance. * Only colors change. Size, visibility and overlay behavior stay browser managed, so the * operating system preference (for example macOS "When scrolling") is honored and applies * live. Custom WebKit scrollbar sizing is never drawn as an overlay, so it is not used. * * The track is transparent so it matches every surface, which lets the colors be set once on * the root and inherited. A per-element var() would make every element's style depend on * inherited custom properties. */ @layer atlaskit-scrollbar-harmonisation { :root[data-scrollbar-harmonisation] { scrollbar-color: var(--ds-background-accent-gray-subtle, #8c8f97) transparent; } @media (forced-colors: active) { :root[data-scrollbar-harmonisation] { scrollbar-color: auto; } } }