Skip to content

Commit dc2d351

Browse files
committed
修复升级依赖后的样式问题(不完全)
1 parent 9e5ff43 commit dc2d351

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

book/.vuepress/styles/config.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// you can change config here
2-
$colors: #c0392b, #d35400, #f39c12, #27ae60, #16a085, #2980b9, #8e44ad, #2c3e50,
3-
#7f8c8d !default;
4-
//$theme-colors: #3eaf7c, #2196f3, #f26d6d, #fb9b5f;
2+
$theme-color: #6a005f;
3+
$theme-colors: #3eaf7c, #2196f3, #f26d6d, #fb9b5f;
4+
$colors: #c0392b, #d35400, #f39c12, #27ae60, #16a085, #2980b9, #8e44ad, #2c3e50, #7f8c8d !default;

book/.vuepress/styles/index.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// place your custom styles here
2-
@import "./palette";
2+
@import "./config";
33

44
// 行内代码块,加粗,斜体都采用主题色
55
code, strong, em {
@@ -22,11 +22,6 @@ ol, ul {
2222
padding-inline-start: 2em;
2323
}
2424

25-
/* fix 侧边栏中文件与文件夹平级时,两者的竖向对齐不准(不晓得有没有副作用) */
26-
.vp-sidebar-heading, .vp-sidebar-link {
27-
margin-inline: unset;
28-
}
29-
3025
/* 表格居中对齐 */
3126
table {
3227
display: table;
@@ -39,6 +34,11 @@ table {
3934
margin: auto;
4035
}
4136

37+
/* 表格里的图片不能在页面中盲目扩张 */
38+
.theme-hope-content table img {
39+
max-width: 100%;
40+
}
41+
4242
/* markdown中有序列表中序号表示符,第 1~4 级依次设定为阿拉伯数字、小写英文字母、小写罗马字母、小写希腊字母 */
4343
ol {
4444
list-style-type: decimal;

book/.vuepress/styles/palette.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
// you can change colors here
2-
$theme-color: #6a005f;
3-
$font-family: 'Cambria, -apple-system, 华文中宋, "PingFang SC", "思源宋体 CN Medium", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif';
4-
$font-family-heading: $font-family;
1+
$vp-font: 'Cambria, -apple-system, 华文中宋, "PingFang SC", "思源宋体 CN Medium", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif';
2+
$vp-font-heading: $vp-font;

0 commit comments

Comments
 (0)