Skip to content

Commit

Permalink
Markdown: Usee #282828 for all inline code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Aug 18, 2014
1 parent 98bc0ac commit 92ef1cd
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions github-dark.css
Expand Up @@ -542,12 +542,11 @@
background-color: #282828 !important;
}
/* inline code */
pre, .markdown-body code, .list-browser-item.closed, #adv_code_search .search-page-label,
.content .verseblock-content, .content .sectionbody .dlist dt, #facebox pre, .commit-preview .message pre,
.content p > tt, .markdown-body tt, .markdown-format code, .commit-sha, .content .verseblock-content,
.content .sectionbody .dlist dt, .content p > tt, .content dl code, .content ul code, p code {
pre, .markdown-body code, .list-browser-item.closed, #adv_code_search .search-page-label, .content .verseblock-content,
.content .sectionbody .dlist dt, #facebox pre, .commit-preview .message pre, .content p > tt, .markdown-body tt,
.markdown-format code, .commit-sha, .content .verseblock-content, .content .sectionbody .dlist dt, .content p > tt,
.content dl code, .content ul code, p code, .markdown-body .highlight pre, .markdown-body pre {
background: #282828 !important;
border: #383838 !important;
}
/* === #333 === */
/* Panel background (#333) only */
Expand Down Expand Up @@ -1585,7 +1584,7 @@

/*[[pygments-theme]]*/
/* GitHub-Dark syntax highlighting */
.highlight, .highlight pre:not(.diff-line-pre),

This comment has been minimized.

Copy link
@silverwind

silverwind Aug 18, 2014

Author Member

This was causing a specificity issue with .markdown-body .highlight pre, so I had to remove it. I'm not sure it's safe to remove, but regular diffs look fine at least.

My goal, at least for the default style is to mimic GH's style, and these #111 inline blocks didn't match very well. I think the lighter blocks look much better.

Also, why the hell does stuff inside :not() even have specificity, it just doesn't make sense 😩.

.highlight, .highlight pre,
.highlight table { background-color:#111 !important; color:#d0d0d0 !important; }
.highlight .hll { background-color:#404040 !important; }
.highlight .err { color:#a61717 !important; background-color:#311 !important; }
Expand Down

0 comments on commit 92ef1cd

Please sign in to comment.