From 6fabe27110bf4101799e103193dc467533972e20 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Mon, 30 Aug 2021 22:06:11 +0300 Subject: code.scss: add code block for hugo --- sass/code.scss | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/sass/code.scss b/sass/code.scss index b488d88..e38924f 100644 --- a/sass/code.scss +++ b/sass/code.scss @@ -13,3 +13,86 @@ .org-string { color: $carbs-green; } // font-lock-string-face .org-type { color: $carbs-orange; } // font-lock-type-face .org-warning { color: $carbs-red; } // font-lock-warning-face + +/* Background */ .chroma { background-color: $carbs-highlight } +/* Other */ .chroma .x { } +/* Error */ .chroma .err { color: $carbs-red; background-color: #e3d2d2 } +/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } +/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; } +/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #ffffcc } +/* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } +/* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } +/* Keyword */ .chroma .k { color: $carbs-color-fg; font-weight: bold } +/* KeywordConstant */ .chroma .kc { color: $carbs-color-fg; font-weight: bold } +/* KeywordDeclaration */ .chroma .kd { color: $carbs-color-fg; font-weight: bold } +/* KeywordNamespace */ .chroma .kn { color: $carbs-color-fg; font-weight: bold } +/* KeywordPseudo */ .chroma .kp { color: $carbs-color-fg; font-weight: bold } +/* KeywordReserved */ .chroma .kr { color: $carbs-color-fg; font-weight: bold } +/* KeywordType */ .chroma .kt { color: $carbs-blue; font-weight: bold } +/* Name */ .chroma .n { } +/* NameAttribute */ .chroma .na { color: $carbs-blue-alt } +/* NameBuiltin */ .chroma .nb { color: $carbs-blue } +/* NameBuiltinPseudo */ .chroma .bp { color: $carbs-grey } +/* NameClass */ .chroma .nc { color: $carbs-blue; font-weight: bold } +/* NameConstant */ .chroma .no { color: $carbs-blue-alt } +/* NameDecorator */ .chroma .nd { color: $carbs-blue-alt; font-weight: bold } +/* NameEntity */ .chroma .ni { color: $carbs-pink } +/* NameException */ .chroma .ne { color: $carbs-red; font-weight: bold } +/* NameFunction */ .chroma .nf { color: $carbs-red; font-weight: bold } +/* NameFunctionMagic */ .chroma .fm { } +/* NameLabel */ .chroma .nl { color: $carbs-red; font-weight: bold } +/* NameNamespace */ .chroma .nn { color: $carbs-grey } +/* NameOther */ .chroma .nx { } +/* NameProperty */ .chroma .py { } +/* NameTag */ .chroma .nt { color: $carbs-blue } +/* NameVariable */ .chroma .nv { color: $carbs-blue-alt } +/* NameVariableClass */ .chroma .vc { color: $carbs-blue-alt } +/* NameVariableGlobal */ .chroma .vg { color: $carbs-blue-alt } +/* NameVariableInstance */ .chroma .vi { color: $carbs-blue-alt } +/* NameVariableMagic */ .chroma .vm { } +/* Literal */ .chroma .l { } +/* LiteralDate */ .chroma .ld { } +/* LiteralString */ .chroma .s { color: $carbs-red } +/* LiteralStringAffix */ .chroma .sa { color: $carbs-red } +/* LiteralStringBacktick */ .chroma .sb { color: $carbs-red } +/* LiteralStringChar */ .chroma .sc { color: $carbs-red } +/* LiteralStringDelimiter */ .chroma .dl { color: $carbs-red } +/* LiteralStringDoc */ .chroma .sd { color: $carbs-red } +/* LiteralStringDouble */ .chroma .s2 { color: $carbs-red } +/* LiteralStringEscape */ .chroma .se { color: $carbs-red } +/* LiteralStringHeredoc */ .chroma .sh { color: $carbs-red } +/* LiteralStringInterpol */ .chroma .si { color: $carbs-red } +/* LiteralStringOther */ .chroma .sx { color: $carbs-red } +/* LiteralStringRegex */ .chroma .sr { color: $carbs-green } +/* LiteralStringSingle */ .chroma .s1 { color: $carbs-red } +/* LiteralStringSymbol */ .chroma .ss { color: $carbs-pink } +/* LiteralNumber */ .chroma .m { color: $carbs-blue-alt } +/* LiteralNumberBin */ .chroma .mb { color: $carbs-blue-alt } +/* LiteralNumberFloat */ .chroma .mf { color: $carbs-blue-alt } +/* LiteralNumberHex */ .chroma .mh { color: $carbs-blue-alt } +/* LiteralNumberInteger */ .chroma .mi { color: $carbs-blue-alt } +/* LiteralNumberIntegerLong */ .chroma .il { color: $carbs-blue-alt } +/* LiteralNumberOct */ .chroma .mo { color: $carbs-blue-alt } +/* Operator */ .chroma .o { color: $carbs-color-fg; font-weight: bold } +/* OperatorWord */ .chroma .ow { color: $carbs-color-fg; font-weight: bold } +/* Punctuation */ .chroma .p { } +/* Comment */ .chroma .c { color: $carbs-grey; font-style: italic } +/* CommentHashbang */ .chroma .ch { color: $carbs-grey; font-style: italic } +/* CommentMultiline */ .chroma .cm { color: $carbs-grey; font-style: italic } +/* CommentSingle */ .chroma .c1 { color: $carbs-grey; font-style: italic } +/* CommentSpecial */ .chroma .cs { color: $carbs-grey; font-weight: bold; font-style: italic } +/* CommentPreproc */ .chroma .cp { color: $carbs-grey; font-weight: bold; font-style: italic } +/* CommentPreprocFile */ .chroma .cpf { color: $carbs-grey; font-weight: bold; font-style: italic } +/* Generic */ .chroma .g { } +/* GenericDeleted */ .chroma .gd { color: $carbs-color-fg; background-color: #ffdddd } +/* GenericEmph */ .chroma .ge { color: $carbs-color-fg; font-style: italic } +/* GenericError */ .chroma .gr { color: $carbs-red } +/* GenericHeading */ .chroma .gh { color: $carbs-grey } +/* GenericInserted */ .chroma .gi { color: $carbs-color-fg; background-color: $carbs-green } +/* GenericOutput */ .chroma .go { color: $carbs-grey } +/* GenericPrompt */ .chroma .gp { color: $carbs-grey } +/* GenericStrong */ .chroma .gs { font-weight: bold } +/* GenericSubheading */ .chroma .gu { color: $carbs-grey } +/* GenericTraceback */ .chroma .gt { color: $carbs-red } +/* GenericUnderline */ .chroma .gl { text-decoration: underline } +/* TextWhitespace */ .chroma .w { color: $carbs-grey } -- cgit v1.2.3