mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
24 lines
592 B
TypeScript
24 lines
592 B
TypeScript
import React from 'react';
|
|
import type {StyleSheetProps} from '../hyper';
|
|
|
|
export default class StyleSheet extends React.PureComponent<StyleSheetProps> {
|
|
render() {
|
|
const {borderColor} = this.props;
|
|
|
|
return (
|
|
<style jsx global>{`
|
|
::-webkit-scrollbar {
|
|
width: 5px;
|
|
}
|
|
::-webkit-scrollbar-thumb {
|
|
-webkit-border-radius: 10px;
|
|
border-radius: 10px;
|
|
background: ${borderColor};
|
|
}
|
|
::-webkit-scrollbar-thumb:window-inactive {
|
|
background: ${borderColor};
|
|
}
|
|
`}</style>
|
|
);
|
|
}
|
|
}
|