@atlaskit/css-reset
Version:
A base stylesheet for the Atlassian Design System.
5 lines • 1.14 kB
JavaScript
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
var _templateObject;
import evaluateInner from './utils/evaluate-inner';
var scrollbarStyles = evaluateInner(_templateObject || (_templateObject = _taggedTemplateLiteral(["/*\n * Feature-gated harmonized scrollbar appearance.\n * Only colors change. Size, visibility and overlay behavior stay browser managed, so the\n * operating system preference (for example macOS \"When scrolling\") is honored and applies\n * live. Custom WebKit scrollbar sizing is never drawn as an overlay, so it is not used.\n *\n * The track is transparent so it matches every surface, which lets the colors be set once on\n * the root and inherited. A per-element var() would make every element's style depend on\n * inherited custom properties.\n */\n@layer atlaskit-scrollbar-harmonisation {\n:root[data-scrollbar-harmonisation] {\n scrollbar-color: ", " transparent;\n}\n\n@media (forced-colors: active) {\n :root[data-scrollbar-harmonisation] {\n scrollbar-color: auto;\n }\n}\n}"])), "var(--ds-background-accent-gray-subtle, #8C8F97)");
export default scrollbarStyles;