global.style.ts 883 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import { createStyles } from 'antd-style';
  2. const useStyles = createStyles(({}) => {
  3. return {
  4. colorWeak: {
  5. filter: 'invert(80%)',
  6. },
  7. 'ant-layout': {
  8. minHeight: '100vh',
  9. },
  10. 'ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed': {
  11. left: 'unset',
  12. },
  13. canvas: {
  14. display: 'block',
  15. },
  16. body: {
  17. textRendering: 'optimizeLegibility',
  18. WebkitFontSmoothing: 'antialiased',
  19. MozOsxFontSmoothing: 'grayscale',
  20. },
  21. 'ul,ol': {
  22. listStyle: 'none',
  23. },
  24. '@media(max-width: 768px)': {
  25. 'ant-table': {
  26. width: '100%',
  27. overflowX: 'auto',
  28. '&-thead > tr, &-tbody > tr': {
  29. '> th, > td': {
  30. whiteSpace: 'pre',
  31. '> span': {
  32. display: 'block',
  33. },
  34. },
  35. },
  36. },
  37. },
  38. };
  39. });
  40. export default useStyles;