init
This commit is contained in:
42
src/global.style.ts
Normal file
42
src/global.style.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
import { createStyles } from 'antd-style';
|
||||
|
||||
const useStyles = createStyles(({}) => {
|
||||
return {
|
||||
colorWeak: {
|
||||
filter: 'invert(80%)',
|
||||
},
|
||||
'ant-layout': {
|
||||
minHeight: '100vh',
|
||||
},
|
||||
'ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed': {
|
||||
left: 'unset',
|
||||
},
|
||||
canvas: {
|
||||
display: 'block',
|
||||
},
|
||||
body: {
|
||||
textRendering: 'optimizeLegibility',
|
||||
WebkitFontSmoothing: 'antialiased',
|
||||
MozOsxFontSmoothing: 'grayscale',
|
||||
},
|
||||
'ul,ol': {
|
||||
listStyle: 'none',
|
||||
},
|
||||
'@media(max-width: 768px)': {
|
||||
'ant-table': {
|
||||
width: '100%',
|
||||
overflowX: 'auto',
|
||||
'&-thead > tr, &-tbody > tr': {
|
||||
'> th, > td': {
|
||||
whiteSpace: 'pre',
|
||||
'> span': {
|
||||
display: 'block',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
export default useStyles;
|
||||
Reference in New Issue
Block a user