Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ikenxuan committed Oct 12, 2024
1 parent c416391 commit 6c21fc5
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 66 deletions.
7 changes: 7 additions & 0 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ export default
'@nolebase/*',
'axios'
]
},
css: {
preprocessorOptions: {
scss: {
api: 'modern'
}
}
}
},
vue: {
Expand Down
1 change: 0 additions & 1 deletion .vitepress/theme/components/ChangeLogs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,5 @@ export default {
.loading, .error {
text-align: left;
font-size: 30px;
color: #000000;
}
</style>
76 changes: 20 additions & 56 deletions .vitepress/theme/style/blur.css
Original file line number Diff line number Diff line change
@@ -1,80 +1,44 @@
/* .vitepress\theme\style\blur.css */
:root {

/* 首页导航 */
.VPNavBar {
/* 首页下滑后导航透明 */
.VPNavBar:not(.has-sidebar):not(.home.top) {
background-color: rgba(255, 255, 255, 0);
backdrop-filter: blur(15px);
backdrop-filter: blur(20px);
}

/* 文档页导航两侧 */
.VPNavBar:not(.home) {
/* 搜索框透明 */
.DocSearch-Button {
background-color: rgba(255, 255, 255, 0);
backdrop-filter: blur(15px);
backdrop-filter: blur(20px);
}

@media (min-width: 960px) {

/* 文档页导航两侧 */
.VPNavBar:not(.home) {
background-color: rgba(255, 255, 255, 0);
backdrop-filter: blur(15px);
}
/* Feature透明 */
.VPFeature {
border: none;
box-shadow: 0 10px 30px 0 rgb(0 0 0 / 15%);
background-color: transparent;
}

/* 首页下滑后导航两侧 */
.VPNavBar:not(.has-sidebar):not(.home.top) {
background-color: rgba(255, 255, 255, 0);
backdrop-filter: blur(15px);
}
/* 文档页侧边栏顶部透明 */
.curtain {
background-color: rgba(255, 255, 255, 0);
backdrop-filter: blur(20px);
}

@media (min-width: 960px) {

/* 文档页导航中间 */
/* 文档页导航中间透明 */
.VPNavBar:not(.home.top) .content-body {
background-color: rgba(255, 255, 255, 0);
backdrop-filter: blur(15px);
}

/* 首页下滑后导航中间 */
.VPNavBar:not(.has-sidebar):not(.home.top) .content-body {
background-color: rgba(255, 255, 255, 0);
backdrop-filter: blur(15px);
backdrop-filter: blur(20px);
}
}


/* 分割线 */

@media (min-width: 960px) {

/* 文档页分割线 */
/* .VPNavBar:not(.home.top) .divider-line {
background-color: rgba(255, 255, 255, 0);
backdrop-filter: blur(15px);
} */

/* 首页分割线 */
/* .VPNavBar:not(.has-sidebar):not(.home.top) .divider {
background-color: rgba(255, 255, 255, 0);
backdrop-filter: blur(15px);
} */
}

/* 搜索框 VPNavBarSearchButton.vue */
.DocSearch-Button {
background-color: rgba(255, 255, 255, 0);
backdrop-filter: blur(15px);
}


/* 移动端大纲栏 */
/* 移动端大纲栏透明 */
.VPLocalNav {
background-color: rgba(255, 255, 255, 0);
backdrop-filter: blur(15px);
/* 隐藏分割线 */
/* border-bottom: 5px solid var(--vp-c-gutter); */
border-bottom: 0px;
backdrop-filter: blur(20px);
}

}
40 changes: 40 additions & 0 deletions .vitepress/theme/style/hidden.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/* .vitepress\theme\style\hidden.css */
:root {

/* 文档页Logo出文字下横条 */
.VPNavBar.has-sidebar .title {
width: 0px;
}

/* 页脚横条隐藏 */
.VPFooter {
border-top: none;
}

/* 手机端菜单栏顶部横条隐藏 */
.VPNavBar.screen-open {
border-bottom: none;
}

/* 手机端菜单栏菜单分割线隐藏 */
.VPNavScreenMenuLink {
border-bottom: none;
}

/* 手机端菜单组隐藏 */
.VPNavScreenMenuGroup {
border-bottom: none;
}

/* 手机端大纲栏横条隐藏 */
.VPLocalNav {
border-bottom: none;
}

}


/* 导航栏下划线隐藏 */
.divider {
display: none;
}
1 change: 1 addition & 0 deletions .vitepress/theme/style/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@import './marker.css';
@import './vp-code.css';
@import './rainbow.css';
@import './hidden.css';

@import '../font/HarmonyOS_Sans_SC_Medium/font.css';
@import '../font/HarmonyOS_Sans_SC_Regular/font.css';
Expand Down
2 changes: 1 addition & 1 deletion docs/start/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
## 这是什么

_**这是一个基于 [抖音](https://www.douyin.com)[bilibili](https://www.bilibili.com)[快手](https://www.kuaishou.com) 的 WEB API 编写的<mark>自用</mark>辅助插件,提供对 Bot 的视频解析功能,**_<br>
注意是<mark>自用!</mark>基本随缘更新<br>
<h1><mark>注意是自用!</mark></h1><br>基本随缘更新<br>
通过接口获取数据并渲染图片返回
<p>
<img src="https://img.shields.io/badge/-Node.js-3C873A?style=flat&logo=Node.js&logoColor=white" alt="Nodejs" style="display: inline-block;" />&nbsp;
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"dependencies": {
"@nolebase/markdown-it-bi-directional-links": "2.5.0",
"@nolebase/markdown-it-unlazy-img": "^2.5.0",
"@nolebase/markdown-it-unlazy-img": "^2.6.1",
"@nolebase/vitepress-plugin-enhanced-mark": "2.5.0",
"@nolebase/vitepress-plugin-enhanced-readabilities": "2.5.0",
"@nolebase/vitepress-plugin-git-changelog": "2.5.0",
Expand All @@ -16,9 +16,9 @@
"@nolebase/vitepress-plugin-meta": "2.5.0",
"@nolebase/vitepress-plugin-page-properties": "2.5.0",
"@nolebase/vitepress-plugin-thumbnail-hash": "2.5.0",
"@shikijs/vitepress-twoslash": "^1.20.0",
"@theojs/lumen": "^3.3.2",
"@types/node": "^22.7.3",
"@shikijs/vitepress-twoslash": "^1.22.0",
"@theojs/lumen": "^3.5.0",
"@types/node": "^22.7.5",
"@vite-pwa/vitepress": "^0.5.3",
"@vitejs/plugin-vue": "^5.1.4",
"@vueuse/core": "^10.11.1",
Expand All @@ -33,15 +33,15 @@
"marked": "^14.1.2",
"medium-zoom": "^1.1.0",
"ncu": "^0.2.1",
"sass": "^1.79.3",
"typescript": "^5.6.2",
"sass": "^1.79.5",
"typescript": "^5.6.3",
"vite": "^5.4.8",
"vite-plugin-pwa": "^0.20.5",
"vitepress": "^1.3.4",
"vitepress": "^1.4.0",
"vitepress-markdown-timeline": "^1.2.1",
"vitepress-plugin-codeblocks-fold": "^1.2.28",
"vitepress-plugin-comment-with-giscus": "^1.1.15",
"vitepress-plugin-group-icons": "^1.2.4",
"vue": "^3.5.9"
"vue": "^3.5.12"
}
}

0 comments on commit 6c21fc5

Please sign in to comment.