-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 优化部分过时内容
- Loading branch information
Showing
30 changed files
with
452 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* .vitepress\theme\index.ts */ | ||
import DefaultTheme from 'vitepress/theme' | ||
import mediumZoom from 'medium-zoom' | ||
import { onMounted, watch, nextTick } from 'vue' | ||
import { useData, useRoute } from 'vitepress' | ||
import 'vitepress-markdown-timeline/dist/theme/index.css' | ||
import './style/index.css' | ||
|
||
export default { | ||
extends: DefaultTheme, | ||
/** 响应式图片缩放 */ | ||
setup () { | ||
const route = useRoute() | ||
const initZoom = () => { | ||
// 响应式的图片放大缩小 | ||
// mediumZoom('[data-zoomable]', { background: 'var(--vp-c-bg)' }); // 默认 | ||
mediumZoom('.main img', { background: 'var(--vp-c-bg)' }) // 不显式添加{data-zoomable}的情况下为所有图像启用此功能 | ||
} | ||
onMounted(() => { | ||
initZoom() | ||
}) | ||
watch( | ||
() => route.path, | ||
() => nextTick(() => initZoom()) | ||
) | ||
const { frontmatter } = useData() | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@import './var.css'; | ||
@import './vp-code-group.css'; | ||
@import './mathjax3.css'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
mjx-container { | ||
display: inline-block; | ||
margin: auto 2px -2px; | ||
} | ||
|
||
mjx-container>svg { | ||
margin: auto; | ||
display: inline-block; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* var.css */ | ||
/* */ | ||
:root { | ||
/* 主题色,浅色模式,深紫色调 */ | ||
/* 鼠标滑过高亮色,代码块高亮色,加粗高亮色 */ | ||
--vp-c-brand-1: #5224b6; | ||
/* --vp-c-brand-1-2: #5224b6; */ | ||
--vp-c-brand-2: #352984; | ||
--vp-c-brand-3: #6d68c1; | ||
/* 主页logo大图底色 设置右图像渐变 */ | ||
--vp-home-hero-image-background-image: linear-gradient(-45deg, #f6abe9 50%, #ebe0ba 50%); | ||
--vp-home-hero-image-filter: blur(150px); | ||
} | ||
|
||
/* 主题色,浅色模式,深紫色调 */ | ||
.dark { | ||
--vp-c-brand-1: #C8ABFA; | ||
--vp-c-brand-2: #3c30a4; | ||
--vp-c-brand-3: #352984; | ||
} | ||
|
||
/* 移除链接跳转下划线 */ | ||
.vp-doc a { | ||
text-decoration: none; | ||
} | ||
|
||
/* 提示框背景颜色 */ | ||
:root { | ||
--vp-custom-block-tip-bg: var(--vp-c-green-soft); | ||
--vp-home-hero-name-color: transparent; | ||
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #6B7BF8, #F68BC6); | ||
} | ||
|
||
/* 提示框 */ | ||
.custom-block.tip { | ||
border-color: var(--vp-c-green-2); | ||
} | ||
|
||
/* 警告框 */ | ||
.custom-block.warning { | ||
/* border-color: #d97706; */ | ||
border-color: var(--vp-c-yellow-2); | ||
} | ||
|
||
/* 危险框 */ | ||
.custom-block.danger { | ||
/* border-color: #f43f5e; */ | ||
border-color: var(--vp-c-red-2); | ||
} | ||
|
||
/** 响应式图片缩放覆盖范围 */ | ||
/** 最顶层 */ | ||
.medium-zoom-overlay { | ||
z-index: 20; | ||
} | ||
|
||
.medium-zoom-image { | ||
z-index: 9999 !important; | ||
/* 给的值是21,但是实测盖不住,直接999 */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* .vitepress\theme\style\vp-code-group.css */ | ||
|
||
/* 代码块tab */ | ||
.vp-code-group .tabs { | ||
padding-top: 30px; | ||
} | ||
|
||
/* 代码块tab-顶部小圆点 */ | ||
.vp-code-group .tabs::before { | ||
background: #fc625d; | ||
border-radius: 50%; | ||
box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b; | ||
content: ' '; | ||
height: 12px; | ||
width: 12px; | ||
left: 12px; | ||
margin-top: -20px; | ||
position: absolute; | ||
} | ||
|
||
|
||
/* 代码组 */ | ||
.vp-code-group { | ||
color: var(--vp-c-black-soft); | ||
border-radius: 8px; | ||
box-shadow: 0 10px 30px 0 rgb(0 0 0 / 40%); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# 正在编写中,咕咕咕~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# 目录 | ||
|
||
> 咕咕咕~ | ||
> 正在编写中,咕咕咕~ | ||
## 标准API | ||
|
||
|
Oops, something went wrong.