2017-09-10 05:35:10 -08:00
|
|
|
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> {
|
2017-09-10 05:35:10 -08:00
|
|
|
render() {
|
2023-01-01 00:16:48 -09:00
|
|
|
const {borderColor} = this.props;
|
2017-06-11 02:42:39 -08:00
|
|
|
|
|
|
|
|
return (
|
2018-03-17 04:51:36 -08:00
|
|
|
<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-09-10 05:35:10 -08:00
|
|
|
);
|
2017-06-11 02:42:39 -08:00
|
|
|
}
|
|
|
|
|
}
|