Skip to content

Commit

Permalink
feat: add custom css
Browse files Browse the repository at this point in the history
  • Loading branch information
dogodo-cc committed May 24, 2024
1 parent e76e80d commit 0986d17
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions @config/theme/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

:root {
/* 增大侧边栏的宽度 */
--vp-sidebar-width: 332px;
}
1 change: 1 addition & 0 deletions @config/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import DefaultTheme from 'vitepress/theme'
import versionList from './versions-list.vue'
import feedback from './feedback.vue'
import { github, branch } from '../config'
import './custom.css'

export default function(version: string) {
return {
Expand Down
9 changes: 9 additions & 0 deletions @config/theme/versions-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,13 @@ function changeVersion(e) {
border-radius: 6px;
}
}
/* 针对小屏设备 */
@media (max-width: 480px) {
.history-version-list {
margin-left: 10px;
& .current {
display: none;
}
}
}
</style>

0 comments on commit 0986d17

Please sign in to comment.