Skip to content

Commit

Permalink
修复 Katex 公式编号样式
Browse files Browse the repository at this point in the history
  • Loading branch information
ctaoist committed Jan 19, 2022
1 parent 22f44fb commit 81926a2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
19 changes: 19 additions & 0 deletions block-container.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,25 @@ code[class*="language-"], pre[class*="language-"] {
/* Override BS Inline-code style */
}

.katex-display .tag {
margin-right: inherit;
padding: inherit;
line-height: inherit;
border: none !important;
box-shadow: none;

}

.katex-display .tag:hover {
background: none;
}

.katex-display .tag span {
margin-left: 0;
font-size: inherit;
font-family: inherit;
}

.mermaid {
max-width: 960px;
margin:0 auto;
Expand Down
3 changes: 1 addition & 2 deletions header.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@

<script src="{{$.themeBaseUrl}}/topbar.js"></script>
<script src="{{$.themeBaseUrl}}/search.js"></script>
{{if not $.curIsPost}}
<link href="{{$.themeBaseUrl}}/style.css" rel="stylesheet">
{{end}}

<style>
#search-results .post-tags a {
font-size: 0.85rem;
Expand Down
1 change: 0 additions & 1 deletion post.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ <h1 id="post-title" data-toc-skip>{{if .post.Title}} {{.post.Title}} {{else}} Un

<script src="{{$.themeBaseUrl}}/blog.js"></script>
<link href="{{$.themeBaseUrl}}/prism-dark.css" rel="stylesheet">
<link href="{{$.themeBaseUrl}}/style.css" rel="stylesheet">
<link href="{{$.themeBaseUrl}}/block-container.css" rel="stylesheet">

<!-- markdown 调用markdown来解析得到html -->
Expand Down
4 changes: 0 additions & 4 deletions prism-dark.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
html[mode=dark] pre[class*="language-"], html[mode=dark] :not(pre) > code[class*="language-"] {
background: hsl(30, 20%, 25%);
}

/* Code blocks */
html[mode=dark] pre[class*="language-"] {
padding: 1em;
Expand Down

0 comments on commit 81926a2

Please sign in to comment.