Skip to content

Commit

Permalink
chore: 更改深色模式样式,修复文章目录 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Xecades committed Jul 27, 2024
1 parent 07af1a8 commit 49bdceb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
16 changes: 6 additions & 10 deletions docs/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
font-weight: 600;
} */

.md-typeset a {
color: #005b9c;
}

.md-typeset h1, .md-typeset h2 {
font-weight: 600;
}
Expand Down Expand Up @@ -39,7 +35,7 @@ html .md-footer-meta.md-typeset a:is(:focus,:hover) {
[data-md-color-scheme="default"] {
--md-primary-fg-color: rgb(0, 63, 136);
--md-primary-bg-color: #FFFFFF;
--md-typeset-a-color: #555555;
--md-typeset-a-color: #005B9C;
--md-default-fg-color: #000000;
--md-footer-fg-color: #000000;
--md-footer-bg-color: #EFEFEF;
Expand All @@ -54,12 +50,12 @@ html .md-footer-meta.md-typeset a:is(:focus,:hover) {
--md-default-bg-color--light: #161616;
--md-default-bg-color--lighter: #161616;
--md-default-bg-color--lightest: #161616;
--md-default-fg-color: rgba(255,255,255);
--md-default-fg-color--light: rgba(255,255,255,0.85);
--md-default-fg-color--lighter: rgba(255,255,255,0.8);
--md-default-fg-color--lightest: rgba(255,255,255,0.6);
--md-default-fg-color: rgb(227, 227, 227);
--md-default-fg-color--light: rgba(227,227,227,0.85);
--md-default-fg-color--lighter: rgba(227,227,227,0.8);
--md-default-fg-color--lightest: rgba(227,227,227,0.6);
--md-primary-fg-color: rgb(0, 63, 136);
--md-typeset-a-color: #d3d3d3;
--md-typeset-a-color: #53B7FF;
--md-footer-fg-color: #fff;
--md-footer-bg-color: #0d0d0d;
--md-footer-fg-color: #FFFFFF;
Expand Down
4 changes: 2 additions & 2 deletions overrides/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@
</div>
</div>
{% if page and page.meta and page.meta.fold_toc %}
<script src="js/toc.js" defer></script>
<link rel="stylesheet" href="css/fold_toc.css">
<script src="../js/toc.js" defer></script>
<link rel="stylesheet" href="../css/fold_toc.css">
{% endif %}
{% endif %}
{% endblock %}
Expand Down

0 comments on commit 49bdceb

Please sign in to comment.