Separate sintax from style
This commit is contained in:
parent
6e341272f5
commit
d78444cd19
@ -1,5 +1,3 @@
|
|||||||
/* Bear */
|
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: Verdana, sans-serif;
|
font-family: Verdana, sans-serif;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
@ -132,92 +130,3 @@ h3.blog-filter {
|
|||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Chroma */
|
|
||||||
|
|
||||||
/* Background */ .bg { color: #f8f8f2; background-color: #282a36; }
|
|
||||||
/* PreWrapper */ .chroma { color: #f8f8f2; background-color: #282a36; }
|
|
||||||
/* Other .chroma .x { } */
|
|
||||||
/* Error .chroma .err { } */
|
|
||||||
/* CodeLine .chroma .cl { } */
|
|
||||||
/* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit }
|
|
||||||
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
|
|
||||||
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
|
|
||||||
/* LineHighlight */ .chroma .hl { background-color: #ffffcc }
|
|
||||||
/* LineNumbersTable */ .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #929292 }
|
|
||||||
/* LineNumbers */ .chroma .ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #929292 }
|
|
||||||
/* Line */ .chroma .line { display: flex; }
|
|
||||||
/* Keyword */ .chroma .k { color: #ff79c6 }
|
|
||||||
/* KeywordConstant */ .chroma .kc { color: #ff79c6 }
|
|
||||||
/* KeywordDeclaration */ .chroma .kd { color: #8be9fd; font-style: italic }
|
|
||||||
/* KeywordNamespace */ .chroma .kn { color: #ff79c6 }
|
|
||||||
/* KeywordPseudo */ .chroma .kp { color: #ff79c6 }
|
|
||||||
/* KeywordReserved */ .chroma .kr { color: #ff79c6 }
|
|
||||||
/* KeywordType */ .chroma .kt { color: #8be9fd }
|
|
||||||
/* Name .chroma .n { } */
|
|
||||||
/* NameAttribute */ .chroma .na { color: #50fa7b }
|
|
||||||
/* NameBuiltin */ .chroma .nb { color: #8be9fd; font-style: italic }
|
|
||||||
/* NameBuiltinPseudo .chroma .bp { } */
|
|
||||||
/* NameClass */ .chroma .nc { color: #50fa7b }
|
|
||||||
/* NameConstant .chroma .no { } */
|
|
||||||
/* NameDecorator .chroma .nd { } */
|
|
||||||
/* NameEntity .chroma .ni { } */
|
|
||||||
/* NameException .chroma .ne { } */
|
|
||||||
/* NameFunction */ .chroma .nf { color: #50fa7b }
|
|
||||||
/* NameFunctionMagic .chroma .fm { } */
|
|
||||||
/* NameLabel */ .chroma .nl { color: #8be9fd; font-style: italic }
|
|
||||||
/* NameNamespace .chroma .nn { } */
|
|
||||||
/* NameOther .chroma .nx { } */
|
|
||||||
/* NameProperty .chroma .py { } */
|
|
||||||
/* NameTag */ .chroma .nt { color: #ff79c6 }
|
|
||||||
/* NameVariable */ .chroma .nv { color: #8be9fd; font-style: italic }
|
|
||||||
/* NameVariableClass */ .chroma .vc { color: #8be9fd; font-style: italic }
|
|
||||||
/* NameVariableGlobal */ .chroma .vg { color: #8be9fd; font-style: italic }
|
|
||||||
/* NameVariableInstance */ .chroma .vi { color: #8be9fd; font-style: italic }
|
|
||||||
/* NameVariableMagic .chroma .vm { } */
|
|
||||||
/* Literal .chroma .l { } */
|
|
||||||
/* LiteralDate .chroma .ld { } */
|
|
||||||
/* LiteralString */ .chroma .s { color: #f1fa8c }
|
|
||||||
/* LiteralStringAffix */ .chroma .sa { color: #f1fa8c }
|
|
||||||
/* LiteralStringBacktick */ .chroma .sb { color: #f1fa8c }
|
|
||||||
/* LiteralStringChar */ .chroma .sc { color: #f1fa8c }
|
|
||||||
/* LiteralStringDelimiter */ .chroma .dl { color: #f1fa8c }
|
|
||||||
/* LiteralStringDoc */ .chroma .sd { color: #f1fa8c }
|
|
||||||
/* LiteralStringDouble */ .chroma .s2 { color: #f1fa8c }
|
|
||||||
/* LiteralStringEscape */ .chroma .se { color: #f1fa8c }
|
|
||||||
/* LiteralStringHeredoc */ .chroma .sh { color: #f1fa8c }
|
|
||||||
/* LiteralStringInterpol */ .chroma .si { color: #f1fa8c }
|
|
||||||
/* LiteralStringOther */ .chroma .sx { color: #f1fa8c }
|
|
||||||
/* LiteralStringRegex */ .chroma .sr { color: #f1fa8c }
|
|
||||||
/* LiteralStringSingle */ .chroma .s1 { color: #f1fa8c }
|
|
||||||
/* LiteralStringSymbol */ .chroma .ss { color: #f1fa8c }
|
|
||||||
/* LiteralNumber */ .chroma .m { color: #bd93f9 }
|
|
||||||
/* LiteralNumberBin */ .chroma .mb { color: #bd93f9 }
|
|
||||||
/* LiteralNumberFloat */ .chroma .mf { color: #bd93f9 }
|
|
||||||
/* LiteralNumberHex */ .chroma .mh { color: #bd93f9 }
|
|
||||||
/* LiteralNumberInteger */ .chroma .mi { color: #bd93f9 }
|
|
||||||
/* LiteralNumberIntegerLong */ .chroma .il { color: #bd93f9 }
|
|
||||||
/* LiteralNumberOct */ .chroma .mo { color: #bd93f9 }
|
|
||||||
/* Operator */ .chroma .o { color: #ff79c6 }
|
|
||||||
/* OperatorWord */ .chroma .ow { color: #ff79c6 }
|
|
||||||
/* Punctuation .chroma .p { } */
|
|
||||||
/* Comment */ .chroma .c { color: #7c90d0 }
|
|
||||||
/* CommentHashbang */ .chroma .ch { color: #7c90d0 }
|
|
||||||
/* CommentMultiline */ .chroma .cm { color: #7c90d0 }
|
|
||||||
/* CommentSingle */ .chroma .c1 { color: #7c90d0 }
|
|
||||||
/* CommentSpecial */ .chroma .cs { color: #7c90d0 }
|
|
||||||
/* CommentPreproc */ .chroma .cp { color: #ff79c6 }
|
|
||||||
/* CommentPreprocFile */ .chroma .cpf { color: #ff79c6 }
|
|
||||||
/* Generic .chroma .g { } */
|
|
||||||
/* GenericDeleted */ .chroma .gd { color: #ff5555 }
|
|
||||||
/* GenericEmph */ .chroma .ge { text-decoration: underline }
|
|
||||||
/* GenericError .chroma .gr { } */
|
|
||||||
/* GenericHeading */ .chroma .gh { font-weight: bold }
|
|
||||||
/* GenericInserted */ .chroma .gi { color: #50fa7b; font-weight: bold }
|
|
||||||
/* GenericOutput */ .chroma .go { color: #44475a }
|
|
||||||
/* GenericPrompt .chroma .gp { } */
|
|
||||||
/* GenericStrong .chroma .gs { } */
|
|
||||||
/* GenericSubheading */ .chroma .gu { font-weight: bold }
|
|
||||||
/* GenericTraceback .chroma .gt { } */
|
|
||||||
/* GenericUnderline */ .chroma .gl { text-decoration: underline }
|
|
||||||
/* TextWhitespace .chroma .w { } */
|
|
||||||
|
91
assets/syntax.css
Normal file
91
assets/syntax.css
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
/* This style is a variant of Dracula that is more accessible to people with poor eyesight */
|
||||||
|
/* See https://web.dev/color-and-contrast-accessibility/ */
|
||||||
|
/* And https://xyproto.github.io/splash/docs/dracula.html */
|
||||||
|
/* And https://github.com/alecthomas/chroma/blob/a40c95e447a577322e20eac58f2f7c0d026665b0/styles/dracula.xml */
|
||||||
|
|
||||||
|
/* Background */ .bg { color: #f8f8f2; background-color: #282a36; }
|
||||||
|
/* PreWrapper */ .chroma { color: #f8f8f2; background-color: #282a36; }
|
||||||
|
/* Other .chroma .x { } */
|
||||||
|
/* Error .chroma .err { } */
|
||||||
|
/* CodeLine .chroma .cl { } */
|
||||||
|
/* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit }
|
||||||
|
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
|
||||||
|
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
|
||||||
|
/* LineHighlight */ .chroma .hl { background-color: #ffffcc }
|
||||||
|
/* LineNumbersTable */ .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #929292 }
|
||||||
|
/* LineNumbers */ .chroma .ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #929292 }
|
||||||
|
/* Line */ .chroma .line { display: flex; }
|
||||||
|
/* Keyword */ .chroma .k { color: #ff79c6 }
|
||||||
|
/* KeywordConstant */ .chroma .kc { color: #ff79c6 }
|
||||||
|
/* KeywordDeclaration */ .chroma .kd { color: #8be9fd; font-style: italic }
|
||||||
|
/* KeywordNamespace */ .chroma .kn { color: #ff79c6 }
|
||||||
|
/* KeywordPseudo */ .chroma .kp { color: #ff79c6 }
|
||||||
|
/* KeywordReserved */ .chroma .kr { color: #ff79c6 }
|
||||||
|
/* KeywordType */ .chroma .kt { color: #8be9fd }
|
||||||
|
/* Name .chroma .n { } */
|
||||||
|
/* NameAttribute */ .chroma .na { color: #50fa7b }
|
||||||
|
/* NameBuiltin */ .chroma .nb { color: #8be9fd; font-style: italic }
|
||||||
|
/* NameBuiltinPseudo .chroma .bp { } */
|
||||||
|
/* NameClass */ .chroma .nc { color: #50fa7b }
|
||||||
|
/* NameConstant .chroma .no { } */
|
||||||
|
/* NameDecorator .chroma .nd { } */
|
||||||
|
/* NameEntity .chroma .ni { } */
|
||||||
|
/* NameException .chroma .ne { } */
|
||||||
|
/* NameFunction */ .chroma .nf { color: #50fa7b }
|
||||||
|
/* NameFunctionMagic .chroma .fm { } */
|
||||||
|
/* NameLabel */ .chroma .nl { color: #8be9fd; font-style: italic }
|
||||||
|
/* NameNamespace .chroma .nn { } */
|
||||||
|
/* NameOther .chroma .nx { } */
|
||||||
|
/* NameProperty .chroma .py { } */
|
||||||
|
/* NameTag */ .chroma .nt { color: #ff79c6 }
|
||||||
|
/* NameVariable */ .chroma .nv { color: #8be9fd; font-style: italic }
|
||||||
|
/* NameVariableClass */ .chroma .vc { color: #8be9fd; font-style: italic }
|
||||||
|
/* NameVariableGlobal */ .chroma .vg { color: #8be9fd; font-style: italic }
|
||||||
|
/* NameVariableInstance */ .chroma .vi { color: #8be9fd; font-style: italic }
|
||||||
|
/* NameVariableMagic .chroma .vm { } */
|
||||||
|
/* Literal .chroma .l { } */
|
||||||
|
/* LiteralDate .chroma .ld { } */
|
||||||
|
/* LiteralString */ .chroma .s { color: #f1fa8c }
|
||||||
|
/* LiteralStringAffix */ .chroma .sa { color: #f1fa8c }
|
||||||
|
/* LiteralStringBacktick */ .chroma .sb { color: #f1fa8c }
|
||||||
|
/* LiteralStringChar */ .chroma .sc { color: #f1fa8c }
|
||||||
|
/* LiteralStringDelimiter */ .chroma .dl { color: #f1fa8c }
|
||||||
|
/* LiteralStringDoc */ .chroma .sd { color: #f1fa8c }
|
||||||
|
/* LiteralStringDouble */ .chroma .s2 { color: #f1fa8c }
|
||||||
|
/* LiteralStringEscape */ .chroma .se { color: #f1fa8c }
|
||||||
|
/* LiteralStringHeredoc */ .chroma .sh { color: #f1fa8c }
|
||||||
|
/* LiteralStringInterpol */ .chroma .si { color: #f1fa8c }
|
||||||
|
/* LiteralStringOther */ .chroma .sx { color: #f1fa8c }
|
||||||
|
/* LiteralStringRegex */ .chroma .sr { color: #f1fa8c }
|
||||||
|
/* LiteralStringSingle */ .chroma .s1 { color: #f1fa8c }
|
||||||
|
/* LiteralStringSymbol */ .chroma .ss { color: #f1fa8c }
|
||||||
|
/* LiteralNumber */ .chroma .m { color: #bd93f9 }
|
||||||
|
/* LiteralNumberBin */ .chroma .mb { color: #bd93f9 }
|
||||||
|
/* LiteralNumberFloat */ .chroma .mf { color: #bd93f9 }
|
||||||
|
/* LiteralNumberHex */ .chroma .mh { color: #bd93f9 }
|
||||||
|
/* LiteralNumberInteger */ .chroma .mi { color: #bd93f9 }
|
||||||
|
/* LiteralNumberIntegerLong */ .chroma .il { color: #bd93f9 }
|
||||||
|
/* LiteralNumberOct */ .chroma .mo { color: #bd93f9 }
|
||||||
|
/* Operator */ .chroma .o { color: #ff79c6 }
|
||||||
|
/* OperatorWord */ .chroma .ow { color: #ff79c6 }
|
||||||
|
/* Punctuation .chroma .p { } */
|
||||||
|
/* Comment */ .chroma .c { color: #7c90d0 }
|
||||||
|
/* CommentHashbang */ .chroma .ch { color: #7c90d0 }
|
||||||
|
/* CommentMultiline */ .chroma .cm { color: #7c90d0 }
|
||||||
|
/* CommentSingle */ .chroma .c1 { color: #7c90d0 }
|
||||||
|
/* CommentSpecial */ .chroma .cs { color: #7c90d0 }
|
||||||
|
/* CommentPreproc */ .chroma .cp { color: #ff79c6 }
|
||||||
|
/* CommentPreprocFile */ .chroma .cpf { color: #ff79c6 }
|
||||||
|
/* Generic .chroma .g { } */
|
||||||
|
/* GenericDeleted */ .chroma .gd { color: #ff5555 }
|
||||||
|
/* GenericEmph */ .chroma .ge { text-decoration: underline }
|
||||||
|
/* GenericError .chroma .gr { } */
|
||||||
|
/* GenericHeading */ .chroma .gh { font-weight: bold }
|
||||||
|
/* GenericInserted */ .chroma .gi { color: #50fa7b; font-weight: bold }
|
||||||
|
/* GenericOutput */ .chroma .go { color: #44475a }
|
||||||
|
/* GenericPrompt .chroma .gp { } */
|
||||||
|
/* GenericStrong .chroma .gs { } */
|
||||||
|
/* GenericSubheading */ .chroma .gu { font-weight: bold }
|
||||||
|
/* GenericTraceback .chroma .gt { } */
|
||||||
|
/* GenericUnderline */ .chroma .gl { text-decoration: underline }
|
||||||
|
/* TextWhitespace .chroma .w { } */
|
@ -14,6 +14,9 @@ copyright = "John Doe (CC BY 4.0)"
|
|||||||
[markup.highlight]
|
[markup.highlight]
|
||||||
lineNos = true
|
lineNos = true
|
||||||
lineNumbersInTable = false
|
lineNumbersInTable = false
|
||||||
|
# This allows Bear Cub to use a variation of Dracula that is more accessible
|
||||||
|
# to people with poor eyesight
|
||||||
|
# See https://web.dev/color-and-contrast-accessibility/
|
||||||
noClasses = false
|
noClasses = false
|
||||||
|
|
||||||
# Multi-lingual mode config
|
# Multi-lingual mode config
|
||||||
|
@ -11,8 +11,11 @@
|
|||||||
{{- partial "seo_tags.html" . -}}
|
{{- partial "seo_tags.html" . -}}
|
||||||
<meta name="referrer" content="no-referrer-when-downgrade" />
|
<meta name="referrer" content="no-referrer-when-downgrade" />
|
||||||
|
|
||||||
{{ $css := resources.Get "style.css" | minify }}
|
{{ $style := resources.Get "style.css" | minify }}
|
||||||
<link href="{{ $css.RelPermalink }}" rel="stylesheet">
|
<link href="{{ $style.RelPermalink }}" rel="stylesheet">
|
||||||
|
|
||||||
|
{{ $syntax := resources.Get "syntax.css" | minify }}
|
||||||
|
<link href="{{ $syntax.RelPermalink }}" rel="stylesheet">
|
||||||
|
|
||||||
{{ with .OutputFormats.Get "rss" -}}
|
{{ with .OutputFormats.Get "rss" -}}
|
||||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user