File tree 14 files changed +104
-71
lines changed
docs-base/.vitepress/theme
docs-locales/.vitepress/theme
docs-locales-root/.vitepress/theme
vitepress-theme-teeker/src/styles
14 files changed +104
-71
lines changed Original file line number Diff line number Diff line change 1
1
import Teeker from "vitepress-theme-teeker" ;
2
2
// import "vitepress-theme-teeker/index.css";
3
+ import "vitepress-theme-teeker/vp-plus/code-block.scss" ;
4
+ import "vitepress-theme-teeker/vp-plus/sidebar.scss" ;
5
+ import "vitepress-theme-teeker/vp-plus/nav.scss" ;
6
+ import "vitepress-theme-teeker/vp-plus/aside.scss" ;
7
+ // import "vitepress-theme-teeker/vp-plus/container.scss";
8
+ // import "vitepress-theme-teeker/vp-plus/blockquote.scss";
9
+ // import "vitepress-theme-teeker/vp-plus/rainbow.scss";
3
10
4
11
export default {
5
12
extends : Teeker ,
Original file line number Diff line number Diff line change 1
1
import Teeker from "vitepress-theme-teeker" ;
2
2
// import "vitepress-theme-teeker/index.css";
3
+ import "vitepress-theme-teeker/vp-plus/code-block.scss" ;
4
+ import "vitepress-theme-teeker/vp-plus/sidebar.scss" ;
5
+ import "vitepress-theme-teeker/vp-plus/nav.scss" ;
6
+ import "vitepress-theme-teeker/vp-plus/aside.scss" ;
7
+ // import "vitepress-theme-teeker/vp-plus/container.scss";
8
+ // import "vitepress-theme-teeker/vp-plus/blockquote.scss";
9
+ // import "vitepress-theme-teeker/vp-plus/rainbow.scss";
3
10
4
11
export default {
5
12
extends : Teeker ,
Original file line number Diff line number Diff line change 1
1
import Teeker from "vitepress-theme-teeker" ;
2
2
// import "vitepress-theme-teeker/index.css";
3
+ import "vitepress-theme-teeker/vp-plus/code-block.scss" ;
4
+ import "vitepress-theme-teeker/vp-plus/sidebar.scss" ;
5
+ import "vitepress-theme-teeker/vp-plus/nav.scss" ;
6
+ import "vitepress-theme-teeker/vp-plus/aside.scss" ;
7
+ // import "vitepress-theme-teeker/vp-plus/container.scss";
8
+ // import "vitepress-theme-teeker/vp-plus/blockquote.scss";
9
+ // import "vitepress-theme-teeker/vp-plus/rainbow.scss";
3
10
4
11
export default {
5
12
extends : Teeker ,
Original file line number Diff line number Diff line change 1
1
import Teeker from "vitepress-theme-teeker" ;
2
2
// import "vitepress-theme-teeker/index.css";
3
+ import "vitepress-theme-teeker/vp-plus/code-block.scss" ;
4
+ import "vitepress-theme-teeker/vp-plus/sidebar.scss" ;
5
+ import "vitepress-theme-teeker/vp-plus/nav.scss" ;
6
+ import "vitepress-theme-teeker/vp-plus/aside.scss" ;
3
7
// import "vitepress-theme-teeker/vp-plus/container.scss";
4
- import "vitepress-theme-teeker/vp-plus/blockquote.scss" ;
5
- import "vitepress-theme-teeker/vp-plus/rainbow.scss" ;
8
+ // import "vitepress-theme-teeker/vp-plus/blockquote.scss";
9
+ // import "vitepress-theme-teeker/vp-plus/rainbow.scss";
6
10
7
11
export default {
8
12
extends : Teeker ,
Original file line number Diff line number Diff line change 1
1
@use " ./common/tk" ;
2
- @use " ./common/vp" ;
3
2
@use " ./common/transition-dark" ;
4
3
@use " ./var/var" ;
5
4
Original file line number Diff line number Diff line change 1
1
@use " ../mixins/config" as * ;
2
2
@use " ../mixins/function" as * ;
3
3
4
- a .hover-color :hover {
5
- color : getCssVar (" theme-color" ) !important ;
6
- cursor : pointer !important ;
7
- }
8
-
9
4
/* 自定义页面样式 */
10
5
.#{$namespace } -page {
11
6
max-width : getCssVar (" page-width" );
@@ -42,6 +37,16 @@ a.hover-color:hover {
42
37
font-weight : 500 ;
43
38
}
44
39
40
+ /* 文章内容宽度加大 */
41
+ .VPContent .VPDoc.has-aside .content-container {
42
+ max-width : var (--vp-content-container , 688px );
43
+ }
44
+
45
+ a .hover-color :hover {
46
+ color : getCssVar (" theme-color" ) !important ;
47
+ cursor : pointer !important ;
48
+ }
49
+
45
50
::-webkit-scrollbar {
46
51
width : 4px ;
47
52
height : 4px ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ @use " ../mixins/function" as * ;
2
+
3
+ .VPDoc {
4
+ /* 右侧目栏录文字悬停和激活样式 */
5
+ .aside .aside-content .outline-link {
6
+ & :hover {
7
+ font-weight : 700 ;
8
+ }
9
+ & .active {
10
+ color : getCssVar (" theme-color" );
11
+ }
12
+ }
13
+ }
Original file line number Diff line number Diff line change
1
+ .vp-code {
2
+ /* shift + 鼠标点击代码块,会出现黑色边框,这里禁掉 */
3
+ outline : none ;
4
+ }
5
+
6
+ @media (max-width : 640px ) {
7
+ // 移动端代码块与文档宽度保持一致
8
+ .vp-doc div [class *= " language-" ],
9
+ .vp-block {
10
+ margin-left : 0 ;
11
+ margin-right : 0 ;
12
+ }
13
+ }
Original file line number Diff line number Diff line change
1
+ /* 搜索框透明 */
2
+ .DocSearch-Button {
3
+ background-color : transparent ;
4
+ }
Original file line number Diff line number Diff line change
1
+ /* 导航栏切换暗黑模式按钮样式调整 */
2
+ .Layout .VPNavBar .VPSwitchAppearance {
3
+ width : 22px !important ;
4
+ .check {
5
+ transform : none ;
6
+ }
7
+ }
Original file line number Diff line number Diff line change
1
+ @use " ../mixins/function" as * ;
2
+
3
+ /* 国际化下拉中,激活的语言颜色修改 */
4
+ .VPNav .VPNavBarTranslations .VPMenu {
5
+ .title {
6
+ color : getCssVar (" theme-color" );
7
+ }
8
+ }
Original file line number Diff line number Diff line change
1
+ @use " ./nav-search-button" ;
2
+ @use " ./nav-switch-button" ;
3
+ @use " ./nav-translation" ;
Original file line number Diff line number Diff line change
1
+ .VPSidebar {
2
+ .nav {
3
+ .item {
4
+ h2 .text {
5
+ /* 一级菜单字体加大 */
6
+ font-size : 18px ;
7
+ }
8
+
9
+ p .text {
10
+ font-size : 15px ;
11
+ }
12
+ }
13
+
14
+ .items {
15
+ /* 二级菜单添加间距 */
16
+ padding-left : 10px ;
17
+ }
18
+ }
19
+ }
You can’t perform that action at this time.
0 commit comments