Skip to content

Instantly share code, notes, and snippets.

@panphora
Created December 11, 2025 19:42
Show Gist options
  • Select an option

  • Save panphora/d66fea85b359a81b0343afd5f375002d to your computer and use it in GitHub Desktop.

Select an option

Save panphora/d66fea85b359a81b0343afd5f375002d to your computer and use it in GitHub Desktop.
html {
font-size: 19px;
}
html, body {
margin: auto;
background: #12171F;
-webkit-font-smoothing: antialiased;
}
body {
font-family: "Vollkorn", Palatino, Times;
color: #E8ECF0;
line-height: 1.4;
text-align: justify;
}
#write {
max-width: 960px;
margin: 0 auto;
margin-bottom: 2em;
line-height: 1.53;
padding-top: 40px;
}
@media only screen and (min-width: 1400px) {
#write {
max-width: 1100px;
}
}
@media print {
html {
font-size: 13px;
}
}
/* Typography
-------------------------------------------------------- */
#write>h1:first-child,
h1 {
margin-top: 1.6em;
font-weight: normal;
}
h1 {
font-size:3em;
color: #F5F7FA;
}
h2 {
margin-top:2em;
font-weight: normal;
color: #E8ECF0;
}
h3 {
font-weight: normal;
font-style: italic;
margin-top: 3em;
color: #D4DBE4;
}
h1,
h2,
h3{
text-align: center;
}
h2:after{
border-bottom: 1px solid #4A5568;
content: '';
width: 100px;
display: block;
margin: 0 auto;
height: 1px;
}
h1+h2, h2+h3 {
margin-top: 0.83em;
}
p,
.mathjax-block {
margin-top: 0;
-webkit-hypens: auto;
-moz-hypens: auto;
hyphens: auto;
}
ul {
list-style: square;
padding-left: 1.2em;
}
ol {
padding-left: 1.2em;
}
@media print {
ol {
padding-left: 40px;
}
}
blockquote {
margin-left: 1em;
padding-left: 1em;
border-left: 1px solid #4A5568;
color: #E8ECF0;
}
code,
pre {
font-family: "Consolas", "Menlo", "Monaco", monospace, serif;
font-size: .9em;
background: #1A2130;
color: #E2E8F0;
}
.md-fences{
margin-left: 1em;
padding-left: 1em;
border: 1px solid #2D3748;
padding-bottom: 8px;
padding-top: 6px;
margin-bottom: 1.5em;
background: #1A2130;
}
a {
color: #63B3ED;
text-decoration: none;
}
a:hover {
text-decoration: underline;
color: #90CDF4;
}
a img {
border: none;
}
h1 a,
h1 a:hover {
color: #F5F7FA;
text-decoration: none;
}
hr {
color: #2D3748;
height: 1px;
margin: 2em 0;
border-top: solid 1px #2D3748;
border-bottom: none;
border-left: 0;
border-right: 0;
}
.ty-table-edit {
background: #1A2130;
padding-top: 4px;
}
table {
margin-bottom: 1.333333rem
}
table th,
table td {
padding: 8px;
line-height: 1.333333rem;
vertical-align: top;
border-top: 1px solid #2D3748
}
table th {
font-weight: bold;
color: #F5F7FA;
}
table thead th {
vertical-align: bottom;
border-bottom: 2px solid #4A5568;
}
table caption+thead tr:first-child th,
table caption+thead tr:first-child td,
table colgroup+thead tr:first-child th,
table colgroup+thead tr:first-child td,
table thead:first-child tr:first-child th,
table thead:first-child tr:first-child td {
border-top: 0
}
table tbody+tbody {
border-top: 2px solid #4A5568
}
table tr:nth-child(even) {
background: #161D28;
}
.task-list{
padding:0;
}
.md-task-list-item {
padding-left: 1.6rem;
}
.md-task-list-item > input:before {
content: '\221A';
display: inline-block;
width: 1.33333333rem;
height: 1.6rem;
vertical-align: middle;
text-align: center;
color: #4A5568;
background-color: #12171F;
}
.md-task-list-item > input:checked:before,
.md-task-list-item > input[checked]:before{
color: #68D391;
}
.md-tag {
color: inherit;
font: inherit;
}
#write pre.md-meta-block {
min-height: 35px;
padding: 0.5em 1em;
}
#write pre.md-meta-block {
white-space: pre;
background: #1A2130;
border: 0px;
color: #718096;
width: 100vw;
max-width: calc(100% + 60px);
margin-left: -30px;
border-left: 30px #1A2130 solid;
border-right: 30px #1A2130 solid;
margin-bottom: 2em;
margin-top: -1.3333333333333rem;
padding-top: 26px;
padding-bottom: 10px;
line-height: 1.8em;
font-size: 0.9em;
font-size: 0.76em;
padding-left: 0;
}
.md-img-error.md-image>.md-meta{
vertical-align: bottom;
}
#write>h5.md-focus:before {
top: 2px;
}
.md-toc {
margin-top: 40px;
}
.md-toc-content {
padding-bottom: 20px;
}
.md-toc-content a {
color: #A0AEC0;
}
.md-toc-content a:hover {
color: #63B3ED;
}
.outline-expander:before {
color: inherit;
font-size: 14px;
top: auto;
content: "\f0da";
font-family: FontAwesome;
}
.outline-expander:hover:before,
.outline-item-open>.outline-item>.outline-expander:before {
content: "\f0d7";
}
/** source code mode */
#typora-source {
font-family: Courier, monospace;
color: #A0AEC0;
background: #12171F;
}
.html-for-mac #typora-sidebar {
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .35);
box-shadow: 0 6px 12px rgba(0, 0, 0, .35);
background: #161D28;
}
.cm-s-typora-default .cm-header,
.cm-s-typora-default .cm-property,
.CodeMirror.cm-s-typora-default div.CodeMirror-cursor {
color: #63B3ED;
}
.cm-s-typora-default .cm-atom, .cm-s-typora-default .cm-number {
color: #B794F4;
}
.typora-node .file-list-item-parent-loc,
.typora-node .file-list-item-time,
.typora-node .file-list-item-summary {
font-family: arial, sans-serif;
color: #718096;
}
.md-task-list-item>input {
margin-left: -1.3em;
margin-top: calc(1rem - 12px);
}
.md-mathjax-midline {
background: #1A2130;
}
.md-fences .code-tooltip {
bottom: -2em !important;
}
.dropdown-menu .divider {
border-color: #2D3748;
}
/* Selection highlight */
::selection {
background: #3182CE;
color: #F5F7FA;
}
/* Inline code */
code {
padding: 2px 6px;
border-radius: 3px;
color: #F6AD55;
}
/* Strong and emphasis */
strong {
color: #F5F7FA;
font-weight: bold;
}
em {
color: #D4DBE4;
}
/* Mark/highlight */
mark {
background: #744210;
color: #FEFCBF;
padding: 1px 4px;
border-radius: 2px;
}
/* Footnotes */
.footnotes {
border-top: 1px solid #2D3748;
padding-top: 1em;
margin-top: 2em;
color: #A0AEC0;
font-size: 0.9em;
}
sup.md-footnote {
color: #63B3ED;
}
/* Image captions */
.md-image>.md-meta {
color: #718096;
font-size: 0.85em;
}
/* Focus mode styles */
.on-focus-mode .md-end-block:not(.md-focus):not(.md-focus-container) * {
color: #4A5568 !important;
}
.on-focus-mode .md-end-block:not(.md-focus):not(.md-focus-container) img {
opacity: 0.5;
}
/* Sidebar styling */
#typora-sidebar {
background: #161D28;
color: #E8ECF0;
}
#typora-sidebar .file-list-item.file-library-node:not(.active):hover {
background: #1A2130;
}
#typora-sidebar .file-list-item.active {
background: #2D3748;
}
.file-tree-node.active>.file-node-background {
background: #2D3748;
}
/* Search panel */
#md-searchpanel {
background: #1A2130;
border-bottom: 1px solid #2D3748;
}
#md-searchpanel input {
background: #12171F;
color: #E8ECF0;
border: 1px solid #2D3748;
}
#md-searchpanel .btn {
background: #2D3748;
color: #E8ECF0;
}
/* Notification area */
#md-notification {
background: #1A2130;
color: #E8ECF0;
}
/* Scrollbar styling */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #12171F;
}
::-webkit-scrollbar-thumb {
background: #2D3748;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #4A5568;
}
/* Megamenu / Preferences styling */
.megamenu-menu-panel {
background: #161D28;
}
.megamenu-menu-list li a {
color: #E8ECF0;
}
.megamenu-menu-list li a:hover {
background: #1A2130;
}
/* Context menu */
.context-menu {
background: #1A2130;
border: 1px solid #2D3748;
}
.context-menu li:hover {
background: #2D3748;
}
/* Auto-complete popup */
.auto-complete-panel {
background: #1A2130;
border: 1px solid #2D3748;
}
.auto-complete-panel li {
color: #E8ECF0;
}
.auto-complete-panel li.active,
.auto-complete-panel li:hover {
background: #2D3748;
}
/* CodeMirror (source mode) enhancements */
.CodeMirror {
background: #12171F;
color: #E8ECF0;
}
.CodeMirror-gutters {
background: #161D28;
border-right: 1px solid #2D3748;
}
.CodeMirror-linenumber {
color: #4A5568;
}
.CodeMirror-selected {
background: #2D4A77 !important;
}
.CodeMirror-cursor {
border-left: 2px solid #63B3ED;
}
/* Syntax highlighting for code blocks - comprehensive overrides */
.md-fences,
.md-fences pre,
.md-fences code,
.md-fences .CodeMirror,
.md-fences .CodeMirror pre,
.md-fences .CodeMirror-code,
.md-fences .CodeMirror-line,
.cm-s-inner,
.cm-s-inner pre,
.cm-s-inner .CodeMirror-line {
color: #E2E8F0;
background: #1A2130;
}
.cm-s-inner .cm-keyword,
.md-fences .cm-keyword {
color: #F687B3 !important;
}
.cm-s-inner .cm-string,
.md-fences .cm-string {
color: #68D391 !important;
}
.cm-s-inner .cm-comment,
.md-fences .cm-comment {
color: #A0AEC0 !important;
}
.cm-s-inner .cm-variable,
.md-fences .cm-variable {
color: #E8ECF0 !important;
}
.cm-s-inner .cm-variable-2,
.md-fences .cm-variable-2 {
color: #90CDF4 !important;
}
.cm-s-inner .cm-variable-3,
.md-fences .cm-variable-3,
.cm-s-inner .cm-type,
.md-fences .cm-type {
color: #F6E05E !important;
}
.cm-s-inner .cm-def,
.md-fences .cm-def {
color: #F6AD55 !important;
}
.cm-s-inner .cm-operator,
.md-fences .cm-operator {
color: #FC8181 !important;
}
.cm-s-inner .cm-attribute,
.md-fences .cm-attribute {
color: #B794F4 !important;
}
.cm-s-inner .cm-tag,
.md-fences .cm-tag {
color: #FC8181 !important;
}
.cm-s-inner .cm-bracket,
.md-fences .cm-bracket {
color: #A0AEC0 !important;
}
.cm-s-inner .cm-number,
.md-fences .cm-number {
color: #B794F4 !important;
}
.cm-s-inner .cm-atom,
.md-fences .cm-atom {
color: #B794F4 !important;
}
.cm-s-inner .cm-builtin,
.md-fences .cm-builtin {
color: #63B3ED !important;
}
.cm-s-inner .cm-property,
.md-fences .cm-property {
color: #90CDF4 !important;
}
.cm-s-inner .cm-qualifier,
.md-fences .cm-qualifier {
color: #F6AD55 !important;
}
.cm-s-inner .cm-meta,
.md-fences .cm-meta {
color: #A0AEC0 !important;
}
.cm-s-inner .cm-header,
.md-fences .cm-header {
color: #63B3ED !important;
}
.cm-s-inner .cm-link,
.md-fences .cm-link {
color: #63B3ED !important;
}
.cm-s-inner .cm-error,
.md-fences .cm-error {
color: #FC8181 !important;
}
.cm-s-inner .cm-punctuation,
.md-fences .cm-punctuation {
color: #CBD5E0 !important;
}
/* Ensure no black or dark gray text in code */
.md-fences span[style*="color: rgb(0, 0, 0)"],
.md-fences span[style*="color: #000"],
.md-fences span[style*="color: #555"],
.md-fences span[style*="color: rgb(85, 85, 85)"],
.cm-s-inner span[style*="color: rgb(0, 0, 0)"],
.cm-s-inner span[style*="color: #000"],
.cm-s-inner span[style*="color: #555"],
.cm-s-inner span[style*="color: rgb(85, 85, 85)"] {
color: #E2E8F0 !important;
}
/* CodeMirror line number gutter fix */
.md-fences .CodeMirror-linenumber {
color: #718096 !important;
}
/* Definition lists */
dt {
font-weight: bold;
color: #F5F7FA;
}
dd {
color: #D4DBE4;
margin-left: 1em;
}
/* Abbreviation styling */
abbr {
border-bottom: 1px dotted #4A5568;
cursor: help;
}
/* Keyboard styling */
kbd {
background: #2D3748;
border: 1px solid #4A5568;
border-radius: 3px;
padding: 2px 6px;
font-size: 0.85em;
color: #E8ECF0;
box-shadow: 0 1px 0 #1A2130;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment