Skip to content

Commit

Permalink
fix: contrast ratio of highlight style
Browse files Browse the repository at this point in the history
  • Loading branch information
reuixiy committed Nov 3, 2019
1 parent a72f314 commit 22480e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions assets/scss/_common/_highlight/light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@
/* LiteralNumberIntegerLong */ .chroma .il { color: #009999 }
/* LiteralNumberOct */ .chroma .mo { color: #009999 }
/* OperatorWord */ .chroma .ow { color: #0000aa }
/* Comment */ .chroma .c { color: #aaaaaa }
/* CommentHashbang */ .chroma .ch { color: #aaaaaa }
/* CommentMultiline */ .chroma .cm { color: #aaaaaa }
/* CommentSingle */ .chroma .c1 { color: #aaaaaa }
/* Comment */ .chroma .c { color: #696969 }
/* CommentHashbang */ .chroma .ch { color: #696969 }
/* CommentMultiline */ .chroma .cm { color: #696969 }
/* CommentSingle */ .chroma .c1 { color: #696969 }
/* CommentSpecial */ .chroma .cs { color: #0000aa }
/* CommentPreproc */ .chroma .cp { color: #4c8317 }
/* CommentPreprocFile */ .chroma .cpf { color: #4c8317 }
/* GenericDeleted */ .chroma .gd { color: #aa0000 }
/* GenericError */ .chroma .gr { color: #aa0000 }
/* GenericHeading */ .chroma .gh { color: #000080 }
/* GenericInserted */ .chroma .gi { color: #00aa00 }
/* GenericOutput */ .chroma .go { color: #888888 }
/* GenericPrompt */ .chroma .gp { color: #555555 }
/* GenericOutput */ .chroma .go { color: #5f5f5f }
/* GenericPrompt */ .chroma .gp { color: #424242 }
/* GenericSubheading */ .chroma .gu { color: #800080 }
/* GenericTraceback */ .chroma .gt { color: #aa0000 }
/* TextWhitespace */ .chroma .w { color: #bbbbbb }
/* TextWhitespace */ .chroma .w { color: #797979 }
2 changes: 1 addition & 1 deletion assets/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@
@import "_common/_highlight/light.scss";
.chroma {
color: var(--color-contrast-high);
background-color: alpha(var(--color-contrast-lower), 0.75);
background-color: alpha(var(--color-contrast-lower), 0.5);
}
{{ if .Site.Params.enableDarkMode }}
@import "_common/_highlight/dark.scss";
Expand Down

0 comments on commit 22480e6

Please sign in to comment.