cv-website

Personal website and CV
git clone https://git.in0rdr.ch/cv-website.git
Log | Files | Refs | Pull requests | README | LICENSE

_syntax-highlighting.scss (3740B)


      1 /**
      2 * Syntax highlighting styles
      3 */
      4 .highlight {
      5   margin: $base-spacing 0;
      6   padding: 0;
      7   box-shadow: 0px 0px 2px rgba($black-color, .1);
      8 
      9   .highlighter-rouge &, &, .hll, pre, code {
     10     background-color: lighten($light-gray-color, 15%) !important;
     11   }
     12 
     13   pre {
     14     margin: 0;
     15     padding: $base-spacing;
     16     white-space: pre;
     17     line-height: 23px;
     18     overflow-x: auto;
     19     margin-bottom: 0;
     20     word-break: inherit;
     21     word-wrap: inherit;
     22 
     23     &, code {
     24       color: $base-font-color;
     25     }
     26 
     27     code {
     28       white-space: pre;
     29       padding: 0 !important;
     30 
     31       * {
     32         white-space: nowrap; // this sets all children inside to nowrap
     33       }
     34     }
     35   }
     36 
     37   .c     { color: #998; font-style: italic } // Comment
     38   .err   { color: #a61717; background-color: #e3d2d2 } // Error
     39   .k     { font-weight: bold } // Keyword
     40   .o     { font-weight: bold } // Operator
     41   .cm    { color: #998; font-style: italic } // Comment.Multiline
     42   .cp    { color: #999; font-weight: bold } // Comment.Preproc
     43   .c1    { color: #998; font-style: italic } // Comment.Single
     44   .cs    { color: #999; font-weight: bold; font-style: italic } // Comment.Special
     45   .gd    { color: #000; background-color: #fdd } // Generic.Deleted
     46   .gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific
     47   .ge    { font-style: italic } // Generic.Emph
     48   .gr    { color: #a00 } // Generic.Error
     49   .gh    { color: #999 } // Generic.Heading
     50   .gi    { color: #000; background-color: #dfd } // Generic.Inserted
     51   .gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific
     52   .go    { color: #888 } // Generic.Output
     53   .gp    { color: #555 } // Generic.Prompt
     54   .gs    { font-weight: bold } // Generic.Strong
     55   .gu    { color: #aaa } // Generic.Subheading
     56   .gt    { color: #a00 } // Generic.Traceback
     57   .kc    { font-weight: bold } // Keyword.Constant
     58   .kd    { font-weight: bold } // Keyword.Declaration
     59   .kp    { font-weight: bold } // Keyword.Pseudo
     60   .kr    { font-weight: bold } // Keyword.Reserved
     61   .kt    { color: #458; font-weight: bold } // Keyword.Type
     62   .m     { color: #099 } // Literal.Number
     63   .s     { color: #d14 } // Literal.String
     64   .na    { color: #008080 } // Name.Attribute
     65   .nb    { color: #0086B3 } // Name.Builtin
     66   .nc    { color: #458; font-weight: bold } // Name.Class
     67   .no    { color: #008080 } // Name.Constant
     68   .ni    { color: #800080 } // Name.Entity
     69   .ne    { color: #900; font-weight: bold } // Name.Exception
     70   .nf    { color: #900; font-weight: bold } // Name.Function
     71   .nn    { color: #555 } // Name.Namespace
     72   .nt    { color: #000080 } // Name.Tag
     73   .nv    { color: #008080 } // Name.Variable
     74   .ow    { font-weight: bold } // Operator.Word
     75   .w     { color: #bbb } // Text.Whitespace
     76   .mf    { color: #099 } // Literal.Number.Float
     77   .mh    { color: #099 } // Literal.Number.Hex
     78   .mi    { color: #099 } // Literal.Number.Integer
     79   .mo    { color: #099 } // Literal.Number.Oct
     80   .sb    { color: #d14 } // Literal.String.Backtick
     81   .sc    { color: #d14 } // Literal.String.Char
     82   .sd    { color: #d14 } // Literal.String.Doc
     83   .s2    { color: #d14 } // Literal.String.Double
     84   .se    { color: #d14 } // Literal.String.Escape
     85   .sh    { color: #d14 } // Literal.String.Heredoc
     86   .si    { color: #d14 } // Literal.String.Interpol
     87   .sx    { color: #d14 } // Literal.String.Other
     88   .sr    { color: #009926 } // Literal.String.Regex
     89   .s1    { color: #d14 } // Literal.String.Single
     90   .ss    { color: #990073 } // Literal.String.Symbol
     91   .bp    { color: #999 } // Name.Builtin.Pseudo
     92   .vc    { color: #008080 } // Name.Variable.Class
     93   .vg    { color: #008080 } // Name.Variable.Global
     94   .vi    { color: #008080 } // Name.Variable.Instance
     95   .il    { color: #099 } // Literal.Number.Integer.Long
     96 }