Skip to content

Instantly share code, notes, and snippets.

@nyanpasu64
Created July 4, 2021 19:44
Show Gist options
  • Save nyanpasu64/5e71d45a103bfa2be03aed6a5421cf13 to your computer and use it in GitHub Desktop.
Save nyanpasu64/5e71d45a103bfa2be03aed6a5421cf13 to your computer and use it in GitHub Desktop.
/*
Fix code blocks using a proper color scheme rather than inverting colors
(which produces thin text due to inverted gamma correction).
*/
.mx_EventTile_content .markdown-body pre,
.mx_EventTile_content .markdown-body code {
filter: none !important;
background-color: #333;
color: rgb(237, 243, 255);
}
// Taken from an unknown source (https://github.com/highlightjs/highlight.js/blob/main/src/styles/tomorrow-night-bright.css ?)
/* Tomorrow Night Bright Theme */
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
/* Tomorrow Comment */
.hljs-comment,
.hljs-quote {
color: #969896;
}
/* Tomorrow Red */
.hljs-variable,
.hljs-template-variable,
.hljs-tag,
.hljs-name,
.hljs-selector-id,
.hljs-selector-class,
.hljs-regexp,
.hljs-deletion {
color: #d54e53;
}
/* Tomorrow Orange */
.hljs-number,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params,
.hljs-meta,
.hljs-link {
color: #e78c45;
}
/* Tomorrow Yellow */
.hljs-attribute {
color: #e7c547;
}
/* Tomorrow Green */
.hljs-string,
.hljs-symbol,
.hljs-bullet,
.hljs-addition {
color: #b9ca4a;
}
/* Tomorrow Blue */
.hljs-title,
.hljs-section {
color: #7aa6da;
}
/* Tomorrow Purple */
.hljs-keyword,
.hljs-selector-tag {
color: #c397d8;
}
.mx_EventTile_content .markdown-body pre.hljs,
.mx_EventTile_content .markdown-body code.hljs {
/* display: block;
overflow-x: auto; */
/* background: black; */
color: #eaeaea;
/* padding: 0.5em; */
}
.hljs-emphasis {
font-style: italic;
}
.hljs-strong {
font-weight: bold;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment