Tối ưu hóa
MỞ RỘNG KHUNG CONTENT:
/* docs/.vitepress/theme/global.css */
@media (min-width: 1440px) {
.VPSidebar {
padding-left: 20px !important;
width: 240px !important;
}
.VPNavBar .title {
padding-left: 10px !important;
width: 230px !important;
}
.VPContent.has-sidebar {
padding-left: 250px !important;
padding-right: 5vw !important;
}
.VPNavBar .curtain {
width: 100% !important;
}
.VPNavBar .content {
padding-left: 0px !important;
padding-right: 0px !important;
}
}
@media (min-width: 960px) {
.VPDoc {
padding: 32px 0 0 !important;
}
.VPNavBar .content {
padding-left: 0px !important;
padding-right: 0px !important;
}
}
.VPNavBar {
padding-right: 20px !important;
}
.VPNavBar .container {
margin: unset;
max-width: unset;
}
.VPDoc.has-aside .content-container {
max-width: 100% !important;
}
.aside {
max-width: 200px !important;
padding-left: 0 !important;
}
SỬA ĐỔI KIỂU GIỜ:
/* docs/.vitepress/theme/global.css */
.vp-doc hr {
margin: 16px 0;
border: none !important;
}
.vp-doc hr::before {
content: '';
display: block;
height: 30px;
background: url(https://images.bddxg.top/blog/logo.webp) repeat-x;
background-size: contain;
}
Hình nền thay đổi theo chủ đề
/* 应用在首页index.md内和关于页about.md内 */
.Layout:has(.VPHome) {
background: url('https://images.bddxg.top/blog/202402152108494.webp')
no-repeat;
background-size: cover;
background-attachment: fixed;
user-select: none;
transition: 0.5s ease-in-out;
}
.dark .Layout:has(.VPHome) {
background: url('https://images.bddxg.top/blog/202402152017530.webp')
no-repeat;
background-size: cover;
background-attachment: fixed;
user-select: none;
transition: 0.5s ease-in-out;
}