Skip to content

Commit

Permalink
Add warsic color
Browse files Browse the repository at this point in the history
  • Loading branch information
FangCunWuChang committed Nov 29, 2023
1 parent 9214ffa commit 5dee17e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="./styles/purple.css">
<link rel="stylesheet" type="text/css" href="./styles/warsic.css">
<link rel="stylesheet"
href="https://fastly.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/default.min.css">
<script src="https://fastly.jsdelivr.net/gh/highlightjs/[email protected]/build/highlight.min.js"></script>
Expand Down
8 changes: 7 additions & 1 deletion styles/purple.css
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ body {

.content table tr:nth-child(2n),
.content thead {
background-color: #fcfcfc;
background-color: var(--side-bar-bg-color);
}

/* 粗体 */
Expand Down Expand Up @@ -343,6 +343,7 @@ body {
/* Code fences */
/* border, bg, font */
.content .hljs {
background-color: var(--side-bar-bg-color);
border: 1px solid var(--border);
border-radius: 5px;
font-size: 0.9rem;
Expand All @@ -360,6 +361,11 @@ body {
border-radius: 0.25rem;
}

.content .hljs code,
.content .hljs tt {
background-color: var(--side-bar-bg-color);
}

/* task list */
.content .contains-task-list {
padding-left: 0;
Expand Down
10 changes: 10 additions & 0 deletions styles/warsic.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@import "./purple.css";
.markdown-purple,
.purple {
--title-color: #4f7977;
--link-color: #4f7977;
--code-color: #4f7977;
--inline-code-bg: #e2eeee;
--border-quote: var(--border-quote-grey);
--header-weight: bold;
}

0 comments on commit 5dee17e

Please sign in to comment.