-
-
Save kaixinol/5db988752ebe83e3d0f1252f940ad094 to your computer and use it in GitHub Desktop.
Dark theme gist embed for blog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body.dark .gist { | |
| .gist-file { | |
| border-color: #555 #555 #444; | |
| } | |
| .gist-data { | |
| border-color: #555; | |
| .pl-s .pl-s1 { | |
| color: #a5c261; | |
| } | |
| } | |
| .gist-meta { | |
| color: #fff; | |
| background: var(--bg-color); | |
| a { | |
| color: #fff; | |
| } | |
| } | |
| .highlight { | |
| background: var(--bg-color); | |
| } | |
| /* White text */ | |
| .blob-num, .blob-code-inner, .pl-s2, .pl-stj, .pl-vo, .pl-id, .pl-ii { | |
| color: #fff; | |
| } | |
| /* Bold */ | |
| .pl-enti, .pl-mb, .pl-pdb { | |
| font-weight: 700; | |
| } | |
| /* Italic brown (comments) */ | |
| .pl-c, .pl-c span, .pl-pdc { | |
| color: #bc9458; | |
| font-style: italic; | |
| } | |
| /* Blue */ | |
| .pl-c1, .pl-pdc1, .pl-scp { | |
| color: #6c99bb; | |
| } | |
| /* Light yellow */ | |
| .pl-ent, | |
| .pl-eoa, | |
| .pl-eoai, | |
| .pl-eoai .pl-pde, | |
| .pl-ko, | |
| .pl-kolp, | |
| .pl-mc, | |
| .pl-mr, | |
| .pl-ms, | |
| .pl-s3, | |
| .pl-sok { | |
| color: #ffe5bb; | |
| } | |
| /* Regular font weight */ | |
| .pl-mdh, .pl-mdi, .pl-mdr { | |
| font-weight: 400; | |
| } | |
| /* Italic light yellow */ | |
| .pl-mi, .pl-pdi { | |
| color: #ffe5bb; | |
| font-style: italic; | |
| } | |
| /* Yellow-green */ | |
| .pl-sra, .pl-src, .pl-sre { | |
| color: #cc3; | |
| } | |
| /* Green background (code added) */ | |
| .pl-mdht, .pl-mi1 { | |
| color: #a5c261; | |
| background: rgba(0, 64, 0, 0.5); | |
| } | |
| /* Red background (code deleted) */ | |
| .pl-md, .pl-mdhf { | |
| color: #b83426; | |
| background: rgba(64, 0, 0, 0.5); | |
| } | |
| /* Pure red background */ | |
| .pl-ib, .pl-id, .pl-ii, .pl-iu { | |
| background: #b83426; | |
| } | |
| /* Orange-yellow background */ | |
| .pl-ms1 { | |
| background: #ffc66d; | |
| } | |
| /* Orange */ | |
| .highlight-text-html-basic .pl-ent, | |
| .pl-cce, | |
| .pl-cn, | |
| .pl-coc, | |
| .pl-enc, | |
| .pl-ens, | |
| .pl-k, | |
| .pl-kos, | |
| .pl-kou, | |
| .pl-mh .pl-pdh, | |
| .pl-mp, | |
| .pl-mp .pl-s3, | |
| .pl-mp1 .pl-sf, | |
| .pl-mq, | |
| .pl-mri, | |
| .pl-pde, | |
| .pl-pse, | |
| .pl-pse .pl-s2, | |
| .pl-s, | |
| .pl-st, | |
| .pl-stp, | |
| .pl-sv, | |
| .pl-v, | |
| .pl-va, | |
| .pl-vi, | |
| .pl-vpf, | |
| .pl-vpu, | |
| .pl-mdr { | |
| color: #cc7833; | |
| } | |
| /* Soft green */ | |
| .pl-cos, .pl-ml, .pl-pds, .pl-s1, .pl-sol, .pl-mb, .pl-pdb { | |
| color: #a5c261; | |
| } | |
| /* Yellow */ | |
| .pl-e, | |
| .pl-en, | |
| .pl-entl, | |
| .pl-mo, | |
| .pl-sc, | |
| .pl-sf, | |
| .pl-smi, | |
| .pl-smp, | |
| .pl-mdh, | |
| .pl-mdi { | |
| color: #ffc66d; | |
| } | |
| /* Red */ | |
| .pl-ef, | |
| .pl-enf, | |
| .pl-enm, | |
| .pl-entc, | |
| .pl-entm, | |
| .pl-eoac, | |
| .pl-eoac .pl-pde, | |
| .pl-eoi, | |
| .pl-mai .pl-sf, | |
| .pl-mm, | |
| .pl-pdv, | |
| .pl-smc, | |
| .pl-som, | |
| .pl-sr, | |
| .pl-enti { | |
| color: #b83426; | |
| } | |
| } | |
| /* Hide line numbers */ | |
| div.gist .blob-num { | |
| display: none; | |
| } | |
| /* Customize Gist container border and layout */ | |
| div.gist .gist-file { | |
| border: 1.5px solid var(--primary-color); | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| /* Control Gist data section: order determines if file meta is on top, radius sets bottom corners */ | |
| div.gist .gist-data { | |
| order: 2; | |
| border-radius: 0 0 4px 4px; | |
| } | |
| /* Control Gist meta section: order determines if file meta is on top, radius sets top corners */ | |
| div.gist .gist-meta { | |
| order: 1; | |
| border-radius: 4px 4px 0 0; | |
| border-bottom: 1px solid #555; | |
| } | |
| /* Define font family for code content */ | |
| div.gist .blob-code-inner { | |
| font-family: | |
| "RetroPixel", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, | |
| Consolas, "PingFang SC", "Microsoft YaHei", monospace; /* modify it */ | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment