mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 15:45:33 -04:00
syntax highlighting!
This commit is contained in:
@@ -485,7 +485,7 @@ body#home footer div#info a#source {
|
||||
}
|
||||
|
||||
|
||||
/* Fancy Waving Hand Emoji (TM) */
|
||||
/* Fancy Waving Hand Emoji (TM) – https://jarv.is/notes/css-waving-hand-emoji/ */
|
||||
|
||||
@keyframes wave {
|
||||
0% { transform: rotate( 0.0deg); }
|
||||
@@ -836,13 +836,77 @@ body#notes main#archive section.year div.title {
|
||||
body#notes main#single article div.meta {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
body#notes div#content code {
|
||||
white-space: normal;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Syntax Highlighting – modified from Monokai Light https://pypi.org/project/pygments-style-monokailight/ */
|
||||
|
||||
/* Error */ .highlight .err { color: #960050; }
|
||||
/* Keyword */ .highlight .k { color: #03748a }
|
||||
/* KeywordConstant */ .highlight .kc { color: #03748a }
|
||||
/* KeywordDeclaration */ .highlight .kd { color: #03748a }
|
||||
/* KeywordNamespace */ .highlight .kn { color: #e8003d }
|
||||
/* KeywordPseudo */ .highlight .kp { color: #03748a }
|
||||
/* KeywordReserved */ .highlight .kr { color: #03748a }
|
||||
/* KeywordType */ .highlight .kt { color: #03748a }
|
||||
/* Name */ .highlight .n { color: #111111 }
|
||||
/* NameAttribute */ .highlight .na { color: #489c44 }
|
||||
/* NameBuiltin */ .highlight .nb { color: #111111 }
|
||||
/* NameBuiltinPseudo */ .highlight .bp { color: #111111 }
|
||||
/* NameClass */ .highlight .nc { color: #489c44 }
|
||||
/* NameConstant */ .highlight .no { color: #03748a }
|
||||
/* NameDecorator */ .highlight .nd { color: #489c44 }
|
||||
/* NameEntity */ .highlight .ni { color: #111111 }
|
||||
/* NameException */ .highlight .ne { color: #489c44 }
|
||||
/* NameFunction */ .highlight .nf { color: #489c44 }
|
||||
/* NameFunctionMagic */ .highlight .fm { color: #111111 }
|
||||
/* NameLabel */ .highlight .nl { color: #111111 }
|
||||
/* NameNamespace */ .highlight .nn { color: #111111 }
|
||||
/* NameOther */ .highlight .nx { color: #489c44 }
|
||||
/* NameProperty */ .highlight .py { color: #111111 }
|
||||
/* NameTag */ .highlight .nt { color: #e8003d }
|
||||
/* NameVariable */ .highlight .nv { color: #111111 }
|
||||
/* NameVariableClass */ .highlight .vc { color: #111111 }
|
||||
/* NameVariableGlobal */ .highlight .vg { color: #111111 }
|
||||
/* NameVariableInstance */ .highlight .vi { color: #111111 }
|
||||
/* NameVariableMagic */ .highlight .vm { color: #111111 }
|
||||
/* Literal */ .highlight .l { color: #8145ec }
|
||||
/* LiteralDate */ .highlight .ld { color: #c17005 }
|
||||
/* LiteralString */ .highlight .s { color: #c17005 }
|
||||
/* LiteralStringAffix */ .highlight .sa { color: #c17005 }
|
||||
/* LiteralStringBacktick */ .highlight .sb { color: #c17005 }
|
||||
/* LiteralStringChar */ .highlight .sc { color: #c17005 }
|
||||
/* LiteralStringDelimiter */ .highlight .dl { color: #c17005 }
|
||||
/* LiteralStringDoc */ .highlight .sd { color: #c17005 }
|
||||
/* LiteralStringDouble */ .highlight .s2 { color: #c17005 }
|
||||
/* LiteralStringEscape */ .highlight .se { color: #8045ff }
|
||||
/* LiteralStringHeredoc */ .highlight .sh { color: #c17005 }
|
||||
/* LiteralStringInterpol */ .highlight .si { color: #c17005 }
|
||||
/* LiteralStringOther */ .highlight .sx { color: #c17005 }
|
||||
/* LiteralStringRegex */ .highlight .sr { color: #c17005 }
|
||||
/* LiteralStringSingle */ .highlight .s1 { color: #c17005 }
|
||||
/* LiteralStringSymbol */ .highlight .ss { color: #c17005 }
|
||||
/* LiteralNumber */ .highlight .m { color: #8145ec }
|
||||
/* LiteralNumberBin */ .highlight .mb { color: #8145ec }
|
||||
/* LiteralNumberFloat */ .highlight .mf { color: #8145ec }
|
||||
/* LiteralNumberHex */ .highlight .mh { color: #8145ec }
|
||||
/* LiteralNumberInteger */ .highlight .mi { color: #8145ec }
|
||||
/* LiteralNumberIntegerLong */ .highlight .il { color: #8145ec }
|
||||
/* LiteralNumberOct */ .highlight .mo { color: #8145ec }
|
||||
/* Operator */ .highlight .o { color: #e8003d }
|
||||
/* OperatorWord */ .highlight .ow { color: #e8003d }
|
||||
/* Punctuation */ .highlight .p { color: #111111 }
|
||||
/* Comment */ .highlight .c { color: #6b6859 }
|
||||
/* CommentHashbang */ .highlight .ch { color: #6b6859 }
|
||||
/* CommentMultiline */ .highlight .cm { color: #6b6859 }
|
||||
/* CommentSingle */ .highlight .c1 { color: #6b6859 }
|
||||
/* CommentSpecial */ .highlight .cs { color: #6b6859 }
|
||||
/* CommentPreproc */ .highlight .cp { color: #6b6859 }
|
||||
/* CommentPreprocFile */ .highlight .cpf { color: #6b6859 }
|
||||
/* GenericEmph */ .highlight .ge { font-style: italic }
|
||||
/* GenericStrong */ .highlight .gs { font-weight: bold }
|
||||
|
||||
|
||||
|
||||
/*! Error Styles */
|
||||
|
||||
@@ -862,16 +926,19 @@ body#error div#message {
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 1px 3px #e0e0e0, 0 1px 2px #888;
|
||||
}
|
||||
|
||||
body#error div#message h1 {
|
||||
margin: 16px 0;
|
||||
font-size: 22px;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
body#error div#message p {
|
||||
margin: 16px 0;
|
||||
font-size: 14px;
|
||||
line-height: 140%;
|
||||
}
|
||||
|
||||
body#error div#message a {
|
||||
color: #039be5;
|
||||
}
|
||||
@@ -882,4 +949,4 @@ body#error div#message a {
|
||||
margin-top: 16px;
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user