Skip to content

Commit

Permalink
Add styles for diffs
Browse files Browse the repository at this point in the history
Closes #644
  • Loading branch information
yukiisbored committed Aug 1, 2023
1 parent f4d6f23 commit 141e42e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions source/_static/css/custom.css
Expand Up @@ -42,6 +42,28 @@ div.highlight:hover > pre::before {
opacity: 0;
}

html[data-theme="light"] .highlight .gi {
background-color: #ccffcc;
border: 1px solid #ccffcc;
}

html[data-theme="light"] .highlight .gd {
background-color: #ffcccc;
border: 1px solid #ffcccc;
color: inherit !important;
}

html[data-theme="dark"] .highlight .gi {
background-color: #005400;
border: 1px solid #005400;
}

html[data-theme="dark"] .highlight .gd {
background-color: #540000;
border: 1px solid #540000;
color: inherit !important;
}

.topic {
padding: 30px;
}
Expand Down

0 comments on commit 141e42e

Please sign in to comment.