Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 24 additions & 31 deletions third_party/highlight/github-dark.css
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
pre code.hljs {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there visual changes associated with this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generated before-after screenshots and compared them, the only visible difference seems to be a 1-2 pixels change in the code block's overall height (or rather a change in its bottom margin's size). It doesn't really affect the layout in any other way, I don't think it is important to counter it.

display: block;
overflow-x: auto;
padding: 1em
}
code.hljs {
padding: 3px 5px
}
/*!
Theme: GitHub Dark
Description: Dark theme as seen on github.com
Expand All @@ -8,12 +16,10 @@
Outdated base version: https://github.com/primer/github-syntax-dark
Current colors taken from GitHub's CSS
*/

.hljs {
color: #c9d1d9;
background: #0d1117;
background: #0d1117
}

.hljs-doctag,
.hljs-keyword,
.hljs-meta .hljs-keyword,
Expand All @@ -22,17 +28,15 @@
.hljs-type,
.hljs-variable.language_ {
/* prettylights-syntax-keyword */
color: #ff7b72;
color: #ff7b72
}

.hljs-title,
.hljs-title.class_,
.hljs-title.class_.inherited__,
.hljs-title.function_ {
/* prettylights-syntax-entity */
color: #d2a8ff;
color: #d2a8ff
}

.hljs-attr,
.hljs-attribute,
.hljs-literal,
Expand All @@ -44,82 +48,71 @@
.hljs-selector-class,
.hljs-selector-id {
/* prettylights-syntax-constant */
color: #79c0ff;
color: #79c0ff
}

.hljs-regexp,
.hljs-string,
.hljs-meta .hljs-string {
/* prettylights-syntax-string */
color: #a5d6ff;
color: #a5d6ff
}

.hljs-built_in,
.hljs-symbol {
/* prettylights-syntax-variable */
color: #ffa657;
color: #ffa657
}

.hljs-comment,
.hljs-code,
.hljs-formula {
/* prettylights-syntax-comment */
color: #8b949e;
color: #8b949e
}

.hljs-name,
.hljs-quote,
.hljs-selector-tag,
.hljs-selector-pseudo {
/* prettylights-syntax-entity-tag */
color: #7ee787;
color: #7ee787
}

.hljs-subst {
/* prettylights-syntax-storage-modifier-import */
color: #c9d1d9;
color: #c9d1d9
}

.hljs-section {
/* prettylights-syntax-markup-heading */
color: #1f6feb;
font-weight: bold;
font-weight: bold
}

.hljs-bullet {
/* prettylights-syntax-markup-list */
color: #f2cc60;
color: #f2cc60
}

.hljs-emphasis {
/* prettylights-syntax-markup-italic */
color: #c9d1d9;
font-style: italic;
font-style: italic
}

.hljs-strong {
/* prettylights-syntax-markup-bold */
color: #c9d1d9;
font-weight: bold;
font-weight: bold
}

.hljs-addition {
/* prettylights-syntax-markup-inserted */
color: #aff5b4;
background-color: #033a16;
background-color: #033a16
}

.hljs-deletion {
/* prettylights-syntax-markup-deleted */
color: #ffdcd7;
background-color: #67060c;
background-color: #67060c
}

.hljs-char.escape_,
.hljs-link,
.hljs-params,
.hljs-property,
.hljs-punctuation,
.hljs-tag {
/* purposely ignored */

}
169 changes: 94 additions & 75 deletions third_party/highlight/github.css
Original file line number Diff line number Diff line change
@@ -1,99 +1,118 @@
/*

github.com style (c) Vasily Polovnyov <[email protected]>

*/

.hljs {
pre code.hljs {
display: block;
overflow-x: auto;
padding: 0.5em;
color: #333;
background: #f8f8f8;
padding: 1em
}

.hljs-comment,
.hljs-quote {
color: #998;
font-style: italic;
code.hljs {
padding: 3px 5px
}
/*!
Theme: GitHub
Description: Light theme as seen on github.com
Author: github.com
Maintainer: @Hirse
Updated: 2021-05-15

Outdated base version: https://github.com/primer/github-syntax-light
Current colors taken from GitHub's CSS
*/
.hljs {
color: #24292e;
background: #ffffff
}
.hljs-doctag,
.hljs-keyword,
.hljs-selector-tag,
.hljs-subst {
color: #333;
font-weight: bold;
.hljs-meta .hljs-keyword,
.hljs-template-tag,
.hljs-template-variable,
.hljs-type,
.hljs-variable.language_ {
/* prettylights-syntax-keyword */
color: #d73a49
}

.hljs-number,
.hljs-title,
.hljs-title.class_,
.hljs-title.class_.inherited__,
.hljs-title.function_ {
/* prettylights-syntax-entity */
color: #6f42c1
}
.hljs-attr,
.hljs-attribute,
.hljs-literal,
.hljs-meta,
.hljs-number,
.hljs-operator,
.hljs-variable,
.hljs-template-variable,
.hljs-tag .hljs-attr {
color: #008080;
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-id {
/* prettylights-syntax-constant */
color: #005cc5
}

.hljs-regexp,
.hljs-string,
.hljs-doctag {
color: #d14;
}

.hljs-title,
.hljs-section,
.hljs-selector-id {
color: #900;
font-weight: bold;
.hljs-meta .hljs-string {
/* prettylights-syntax-string */
color: #032f62
}

.hljs-subst {
font-weight: normal;
.hljs-built_in,
.hljs-symbol {
/* prettylights-syntax-variable */
color: #e36209
}

.hljs-type,
.hljs-class .hljs-title {
color: #458;
font-weight: bold;
.hljs-comment,
.hljs-code,
.hljs-formula {
/* prettylights-syntax-comment */
color: #6a737d
}

.hljs-tag,
.hljs-name,
.hljs-attribute {
color: #000080;
font-weight: normal;
.hljs-quote,
.hljs-selector-tag,
.hljs-selector-pseudo {
/* prettylights-syntax-entity-tag */
color: #22863a
}

.hljs-regexp,
.hljs-link {
color: #009926;
.hljs-subst {
/* prettylights-syntax-storage-modifier-import */
color: #24292e
}

.hljs-symbol,
.hljs-bullet {
color: #990073;
.hljs-section {
/* prettylights-syntax-markup-heading */
color: #005cc5;
font-weight: bold
}

.hljs-built_in,
.hljs-builtin-name {
color: #0086b3;
.hljs-bullet {
/* prettylights-syntax-markup-list */
color: #735c0f
}

.hljs-meta {
color: #999;
font-weight: bold;
.hljs-emphasis {
/* prettylights-syntax-markup-italic */
color: #24292e;
font-style: italic
}

.hljs-deletion {
background: #fdd;
.hljs-strong {
/* prettylights-syntax-markup-bold */
color: #24292e;
font-weight: bold
}

.hljs-addition {
background: #dfd;
/* prettylights-syntax-markup-inserted */
color: #22863a;
background-color: #f0fff4
}

.hljs-emphasis {
font-style: italic;
}

.hljs-strong {
font-weight: bold;
.hljs-deletion {
/* prettylights-syntax-markup-deleted */
color: #b31d28;
background-color: #ffeef0
}
.hljs-char.escape_,
.hljs-link,
.hljs-params,
.hljs-property,
.hljs-punctuation,
.hljs-tag {
/* purposely ignored */

}
Loading