Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Wisp X committed Nov 30, 2024
1 parent ef78d5a commit 554529e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 21 deletions.
20 changes: 0 additions & 20 deletions src/.vitepress/theme/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,26 +60,6 @@ provide('toggle-appearance', async ({ clientX: x, clientY: y }: MouseEvent) => {
color: white;
}
:root {
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #bd34fe 30%, #41d1ff);
--vp-home-hero-image-background-image: linear-gradient(-45deg, #bd34fe 50%, #47caff 50%);
--vp-home-hero-image-filter: blur(110px);
}
@media (min-width: 640px) {
:root {
--vp-home-hero-image-filter: blur(130px);
}
}
@media (min-width: 960px) {
:root {
--vp-home-hero-image-filter: blur(150px);
}
}
::view-transition-old(root),
::view-transition-new(root) {
animation: none;
Expand Down
29 changes: 29 additions & 0 deletions src/.vitepress/theme/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
/**
* 首页
------------------------------------------- */
:root {
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #bd34fe 30%, #41d1ff);

--vp-home-hero-image-background-image: linear-gradient(-45deg, #bd34fe 50%, #47caff 50%);
--vp-home-hero-image-filter: blur(110px);
}

@media (min-width: 640px) {
:root {
--vp-home-hero-image-filter: blur(130px);
}
}

@media (min-width: 960px) {
:root {
--vp-home-hero-image-filter: blur(150px);
}
}

/**
* 图片放大
------------------------------------------- */
.medium-zoom-overlay {
z-index: 30;
}
Expand All @@ -6,6 +32,9 @@
z-index: 31;
}

/**
* 图片圆角
------------------------------------------- */
img {
border-radius: 5px;
}
2 changes: 1 addition & 1 deletion src/zh/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ features:
- title: 图片审核
icon: 🔍
details: 为了防止他人上传违规图片,程序集成了阿里云、腾讯云、Nsfw.js 图片审核功能,可以选择发现违规图片后删除或直接拒绝上传。
---
---

0 comments on commit 554529e

Please sign in to comment.