Skip to content

Commit

Permalink
简单优化样式
Browse files Browse the repository at this point in the history
  • Loading branch information
cincly committed Dec 12, 2023
1 parent af280f4 commit c982b10
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions assets/css/prism.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

code[class*="language-"],
pre[class*="language-"] {
color: #f8f8f2;
color: #c7254e;
background: none;
text-shadow: 0 1px rgba(0, 0, 0, 0.3);
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
Expand Down Expand Up @@ -38,7 +38,6 @@ pre[class*="language-"] {

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #272822;
}

/* Inline code */
Expand Down
3 changes: 1 addition & 2 deletions dev/sass/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -846,8 +846,7 @@ a {
color: #AEB4BD; }
.night-mode .read-next-item .filter {
background-color: rgba(0, 0, 0, 0.6); }
.night-mode :not(pre) > code[class*="language-"], .night-mode pre[class*="language-"] {
background-color: #2D313A; }
.night-mode :not(pre) > code[class*="language-"], .night-mode pre[class*="language-"] { }
.night-mode code[class*="language-"], .night-mode pre[class*="language-"], .night-mode .token.punctuation,
.night-mode .token.operator, .night-mode .token.entity, .night-mode .token.url, .night-mode .language-css .token.string,
.night-mode .style .token.string, .night-mode .token.variable {
Expand Down
6 changes: 2 additions & 4 deletions dev/sass/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -859,9 +859,7 @@
background-color: rgba(0, 0, 0, .6);
}
}
:not(pre) > code[class*="language-"], pre[class*="language-"] {
background-color: $color-dark-secondary;
}
:not(pre) > code[class*="language-"], pre[class*="language-"] {}
code[class*="language-"], pre[class*="language-"], .token.punctuation,
.token.operator, .token.entity, .token.url, .language-css .token.string,
.style .token.string, .token.variable {
Expand All @@ -880,4 +878,4 @@
.token.keyword {
color: #61BDCF;
}
}
}

0 comments on commit c982b10

Please sign in to comment.