Skip to content

Commit

Permalink
chore: 修复移动端侧边栏遮挡 添加下载页公告
Browse files Browse the repository at this point in the history
  • Loading branch information
jiazengp committed Feb 11, 2024
1 parent 8ed0209 commit 82202c0
Show file tree
Hide file tree
Showing 4 changed files with 375 additions and 486 deletions.
18 changes: 14 additions & 4 deletions .vitepress/theme/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ html.dark .vp-doc figure figcaption {
margin-top: var(--vp-layout-top-height);
}

.banner > .text > a {
color: var(--vp-c-brand-1);
text-decoration: underline;
text-underline-offset: 2px;
transition:
color 0.25s,
opacity 0.25s;
}

.reached-top {
top: var(--vp-layout-top-height) !important;
}
Expand Down Expand Up @@ -216,9 +225,10 @@ html.dark .vp-doc figure figcaption {
opacity: 100;
}
}

.VPSidebar {
animation: slide-enter-left 1s both 1;
-webkit-animation-timing-function: cubic-bezier(0.333, 0, 0.667, 1);
@media (min-width: 960px) {
.VPSidebar {
animation: slide-enter-left 1s both 1;
-webkit-animation-timing-function: cubic-bezier(0.333, 0, 0.667, 1);
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"sass": "^1.70.0",
"typescript": "^5.3.3",
"unocss": "^0.58.4",
"vitepress": "1.0.0-rc.40",
"vitepress": "1.0.0-rc.42",
"vue": "^3.4.15",
"vue-router": "^4.2.5"
},
Expand Down
Loading

0 comments on commit 82202c0

Please sign in to comment.