Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lwmfjc committed Jan 25, 2025
1 parent 0540d47 commit 32b7fc6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions css/book-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ strong, .cm-strong , .markdown strong,

/*去除code默认样式(obsidian)*/
span.cm-inline-code,
.cm-inline-code:not(.cm-formatting),:not(pre)>code{
.cm-inline-code:not(.cm-formatting),:not(pre)>code ,mark code {
/*obsidian里面需要的*/
--inline-code-background-light: initial;
--code-background: initial;
Expand All @@ -84,7 +84,7 @@ span.cm-inline-code,
}

/*去除code默认样式(markdown)*/
.markdown p code {
.markdown p code ,.markdown code {
font-family: inherit;
background: inherit ;
font-size: inherit ;
Expand Down Expand Up @@ -125,6 +125,13 @@ hr,.markdown hr {
background-color: rgba(0,0,0,0.05);
margin : 1em 2em ;
}

/*缩小多行代码字体*/
pre:has(code) {
white-space: pre-wrap;
word-break: break-all;
font-size: 0.7em;
}
/*
img {
display: block;
Expand Down

0 comments on commit 32b7fc6

Please sign in to comment.