You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
811 B

  1. import { createStyles } from '@/theme'
  2. export const useStyle = createStyles(({ token, css, cx, prefixCls }, props: any) => {
  3. const prefix = `${prefixCls}-${token?.proPrefix}-layout`
  4. const container = {
  5. [prefix]: css`
  6. .ant-pro-global-header-logo,
  7. .ant-pro-layout-bg-list {
  8. user-select: none;
  9. }
  10. .ant-menu-inline-collapsed >.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item{
  11. padding-inline-start: 0;
  12. }
  13. `,
  14. }
  15. const pageContext = css`
  16. box-shadow: ${token.boxShadowSecondary};
  17. `
  18. const sideMenu = css`
  19. .ant-pro-base-menu-inline-group .ant-menu-item-group-title .anticon {
  20. margin-inline-end: 0;
  21. }
  22. `
  23. return {
  24. container: cx(container[prefix], props?.className),
  25. pageContext,
  26. sideMenu,
  27. }
  28. })