dees-domtools/ts/domtools.css.theme.ts

28 lines
528 B
TypeScript
Raw Normal View History

2020-09-12 13:11:10 +00:00
import { DomTools } from "./domtools.classes.domtools";
export const setupGlobalTheme = (domToolsInstance: DomTools) => {
const styles = `
/* width */
::-webkit-scrollbar {
width: 8px;
}
/* Track */
::-webkit-scrollbar-track {
background: #111;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #666;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #777;
}
`;
domToolsInstance.setGlobalStyles(styles);
};