1
0
Fork 0
mirror of https://github.com/NixOS/nix.dev.git synced 2024-10-18 14:32:43 -04:00

Merge pull request #668 from NixOS/yuki_is_bored/diff

Add styles for diffs
This commit is contained in:
Silvan Mosberger 2023-08-03 16:07:54 +02:00 committed by GitHub
commit 9c2ed679d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}