-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
G
committed
Dec 18, 2023
1 parent
7c49824
commit 942d1fa
Showing
2 changed files
with
27 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,31 @@ | ||
import { createStyles } from 'antd-style'; | ||
|
||
const useStyles = createStyles(() => ({ | ||
layout_wrapper: { | ||
display: 'flex', | ||
width: '100%', | ||
height: '100vh', | ||
overflowX: 'hidden', | ||
'.ant-layout-content': { | ||
height: 'calc(100vh - 48px)', | ||
boxSizing: 'border-box', | ||
flex: '1', | ||
padding: '12px', | ||
const useStyles = createStyles(({ token }) => { | ||
console.log(token); | ||
return { | ||
layout_wrapper: { | ||
display: 'flex', | ||
width: '100%', | ||
height: '100vh', | ||
overflowX: 'hidden', | ||
background: token.colorBgContainer, | ||
'.ant-layout-content': { | ||
height: 'calc(100vh - 48px)', | ||
boxSizing: 'border-box', | ||
flex: '1', | ||
padding: '12px', | ||
overflowX: 'hidden', | ||
}, | ||
'.ant-layout-sider': { | ||
height: 'calc(100vh)', | ||
borderInlineEnd: '1px solid rgba(5, 5, 5, 0.06)', | ||
marginInlineEnd: '-1px', | ||
}, | ||
'.ant-layout': { | ||
background: token.colorBgContainer, | ||
}, | ||
}, | ||
'.ant-layout-sider': { | ||
height: 'calc(100vh)', | ||
borderInlineEnd: '1px solid rgba(5, 5, 5, 0.06)', | ||
marginInlineEnd: '-1px', | ||
}, | ||
}, | ||
})); | ||
}; | ||
}); | ||
|
||
export default useStyles; |