-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: editor css * fix: editor css * fix: editor css * fix: 选中颜色 * fix: 选中颜色 --------- Co-authored-by: yxh01132861 <[email protected]>
- Loading branch information
1 parent
edac767
commit f836b60
Showing
12 changed files
with
173 additions
and
129 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { css } from '@emotion/css'; | ||
|
||
const useStyle = () => { | ||
return { | ||
titleName: css` | ||
display: flex; | ||
`, | ||
|
||
titleNameText: css` | ||
display: flex; | ||
align-items: center; | ||
cursor: pointer; | ||
justify-content: space-between; | ||
max-width: 180px; | ||
`, | ||
|
||
titleNameTitle: css` | ||
overflow: hidden; | ||
white-space: nowrap; | ||
text-overflow: ellipsis; | ||
`, | ||
}; | ||
}; | ||
|
||
export default useStyle; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import { css } from '@emotion/css'; | ||
import { useAntdToken } from '../../../hooks'; | ||
|
||
const useStyle = () => { | ||
const { colorText, colorPrimaryTextActive } = useAntdToken(); | ||
|
||
return { | ||
navMenu: css` | ||
width: 100%; | ||
margin: 0; | ||
padding: 0; | ||
text-align: center; | ||
`, | ||
|
||
menuItem: css` | ||
position: relative; | ||
display: flex; | ||
flex-direction: column; | ||
padding: 10px 0; | ||
color: ${colorText}; | ||
text-align: center; | ||
cursor: pointer; | ||
&::before { | ||
position: absolute; | ||
top: 0; | ||
bottom: 0; | ||
left: -3px; | ||
display: block; | ||
width: 3px; | ||
border-radius: 0 100px 100px 0; | ||
visibility: hidden; | ||
transition: left 0.4s ease-in; | ||
content: ''; | ||
} | ||
`, | ||
|
||
menuItemActive: css` | ||
color: ${colorPrimaryTextActive}; | ||
&::before { | ||
left: 0; | ||
background: ${colorPrimaryTextActive}; | ||
visibility: visible; | ||
} | ||
`, | ||
|
||
menuItemIcon: css` | ||
padding: 4px 0; | ||
font-size: 18px; | ||
line-height: 1; | ||
`, | ||
|
||
menuItemTitle: css` | ||
padding: 2px 0; | ||
font-weight: bold; | ||
font-size: 12px; | ||
line-height: 1; | ||
white-space: nowrap; | ||
`, | ||
}; | ||
}; | ||
|
||
export default useStyle; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { css } from '@emotion/css'; | ||
import { useAntdToken } from '../../hooks'; | ||
|
||
const useStyle = () => { | ||
const { colorBgElevated } = useAntdToken(); | ||
|
||
return { | ||
sideNav: css` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
width: 46px; | ||
background-color: ${colorBgElevated}; | ||
`, | ||
|
||
sideNavMenu: css` | ||
margin-top: 0; | ||
`, | ||
|
||
sideNavBottom: css` | ||
margin-top: auto; | ||
padding-bottom: 25px; | ||
`, | ||
}; | ||
}; | ||
|
||
export default useStyle; |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.