hyper/lib/components/style-sheet.tsx

25 lines
592 B
TypeScript
Raw Normal View History

import React from 'react';
2023-06-26 01:29:50 -08:00
import type {StyleSheetProps} from '../hyper';
2017-06-11 02:42:39 -08:00
2020-03-10 03:16:00 -08:00
export default class StyleSheet extends React.PureComponent<StyleSheetProps> {
render() {
const {borderColor} = this.props;
2017-06-11 02:42:39 -08:00
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>
);
2017-06-11 02:42:39 -08:00
}
}