Skip to content

Commit

Permalink
添加主页logo,优化移动端大纲栏毛玻璃效果
Browse files Browse the repository at this point in the history
  • Loading branch information
ikenxuan committed Aug 14, 2024
1 parent fb82218 commit 0a5229b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 22 deletions.
31 changes: 9 additions & 22 deletions docs/.vitepress/theme/style/blur.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,33 +60,20 @@
}
}

@media (min-width: 960px) {

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

/** 移动端 */
@media (max-width: 960px) {
.VPLocalNav {
position: sticky;
top: 0;
left: 0;
z-index: var(--vp-z-index-local-nav);
border-bottom: 1px solid var(--vp-c-gutter);
padding-top: var(--vp-layout-top-height, 0px);
width: 100%;
background-color: rgba(255, 255, 255, 0);
backdrop-filter: blur(10px);
}
}

/* 搜索框 VPNavBarSearchButton.vue */
.DocSearch-Button {
/* 移动端大纲栏 */
.VPLocalNav {
background-color: rgba(255, 255, 255, 0);
backdrop-filter: blur(10px);
/* 隐藏分割线 */
/* border-bottom: 5px solid var(--vp-c-gutter); */
border-bottom: 0px;
}

}
2 changes: 2 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ hero:
name: Karin
# text: 高性能、轻量级、易扩展
tagline: 基于 Kritor 标准进行开发的 Node.js 机器人框架
image:
src: /logo-2.png
actions:
- theme: brand
text: 快速上手
Expand Down
Binary file added docs/public/logo-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0a5229b

Please sign in to comment.