]> git.ipfire.org Git - ipfire.org.git/commitdiff
docs: Bring back code highlighting
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 15 Dec 2023 13:29:18 +0000 (13:29 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 15 Dec 2023 13:29:35 +0000 (13:29 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/sass/_code-highlighting.sass
src/sass/main.sass

index ec5b905adfffced53896de2219277c1cd4b4d2d9..7ebe058bef10a4743b95cd1366df4e7bcbd16d86 100644 (file)
        .hll
                background-color: #ffffcc
 
-       /*
-               Comment, Comment.Hashbang, Comment.Multiline, Comment.PreprocFile,
-               Comment.Single, Comment.Special, Comment.Preproc
-       */
+       // Comment, Comment.Hashbang, Comment.Multiline, Comment.PreprocFile,
+       // Comment.Single, Comment.Special, Comment.Preproc
        .c, .ch, .cm, .cpf, .c1, .cs, .ch, .cp
-               color: $gray-400
+               color: $grey
                font-style: italic
 
-       /* Error */
+       // Error
        .err
                border: 1px solid $red
 
-       /* Keyword */
+       // Keyword
        .k, .kp, .kr, .kt
                color: $green
 
-       /* Keyword.Constant */
+       // Keyword.Constant
        .kc
                color: $cyan
 
-       /* Keyword.Declaration */
+       // Keyword.Declaration
        .kd
                color: $blue
 
-       /* Keyword.Namespace */
+       // Keyword.Namespace
        .kn
                color: $orange
 
-       /*
-               Literal.Number, Literal.Number.*
-       */
+       // Literal.Number, Literal.Number.*
        .m, .mb, .mf, .mh, .mi, .mo, .il
                color: $cyan
 
-       /* Literal.String, Literal.String.* */
+       // Literal.String, Literal.String.*
        .s, .sa, .sb, .sc, .dl, .s1, .s2, .sh
                color: $cyan
 
-       /* Literal.String.Doc */
+       // Literal.String.Doc
        .sd
                color: $red
                font-style: italic
 
-       /* Literal.String.Escape */
+       // Literal.String.Escape
        .se
-               color: $yellow
+               color: $red
                font-weight: bold
 
-       /* Literal.String.Interpol */
+       // Literal.String.Interpol
        .si
-               color: $yellow
+               color: $red
                font-weight: bold
 
-       /* Literal.String.Other */
+       // Literal.String.Other
        .sx
                color: $cyan
 
-       /* Literal.String.Regex */
+       // Literal.String.Regex
        .sr
                color: $cyan
 
-       /* Literal.String.Symbol */
+       // Literal.String.Symbol
        .ss
                color: $cyan
 
-       /* Name.Builtin */
+       // Name.Builtin
        .nb
                color: $red
 
-       /* Name.Builtin.Pseudo */
+       // Name.Builtin.Pseudo
        .bp
                color: $blue
 
-       /* Name.Class */
+       // Name.Class
        .nc
                color: $blue
 
-       /* Name.Decorator */
+       // Name.Decorator
        .nd
                color: $blue
 
-       /* Name.Entity */
+       // Name.Entity
        .ni
                color: $purple
 
-       /* Name.Exception */
+       // Name.Exception
        .ne
                color: $yellow
 
-       /* Name.Function */
+       // Name.Function
        .nf
                color: $blue
 
-       /* Operator.Word */
+       // Operator.Word
        .ow
                color: $green
                font-weight: bold
index 9a78cbf2a3e49833870959ccf0caad0ce13e8f67..8181224a6fbdf0f4212c6d4fa8ee7128152843b1 100644 (file)
@@ -90,6 +90,9 @@ $footer-padding:                              3rem 1.5rem 3rem
 // Import icons
 @import "_icons"
 
+// Import Code Highlighting
+@import "_code-highlighting"
+
 // Custom CSS
 
 html, body