"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/extras/themes-resources/css-themes/hl-theme-boilerplate.scss" (12 May 2020, 3441 Bytes) of package /windows/www/highlight-3.57-x64.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) SASS/SCSS source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "hl-theme-boilerplate.scss": 3.53_vs_3.54.

    1 // v1.0 (2017/10/25)
    2 // ******************************************************************************
    3 // *                                                                            *
    4 // *                      Highlight SCSS-Theme Boilerplate                      *
    5 // *                                                                            *
    6 // ******************************************************************************
    7 // A Sass SCSS boilerplate for building custom CSS themes for Highlight.
    8 // By Tristano Ajmone, released into the public domain through the Unlicense:
    9 // -- http://unlicense.org
   10 
   11 // This template covers all of Highlight syntax elements.
   12 
   13 // ==============================================================================
   14 //                            Colors Scheme Definition                            
   15 // ==============================================================================
   16 // Define here the colors you'd like to assign to the Syntax Elements.
   17 // 
   18 // Example color scheme based on Wimer Hazenberg's "Base16 Monokai":
   19 // -- https://github.com/chriskempson/base16-builder/blob/master/schemes/monokai.yml
   20 
   21 $HL-CanvasBG:       #49483e; // base02 -- Fuscous Gray 
   22 $HL-Default:        #f8f8f2; // base05 -- Pearl white
   23 
   24 $HL-Border:         #a59f85; // base04 -- Tallow
   25 
   26 $HL-LineNum:        #75715e; // base03 -- Crocodile
   27 
   28 $HL-Number:         #fd971f; // base09 -- Orange
   29 $HL-Escape:         #fd971f; // base09 -- Orange
   30 $HL-Interpolation:  #cc6633; // base0F -- Bick-red
   31 $HL-String:         #a6e22e; // base0B -- Green
   32 $HL-PreProcessor:   #ae81ff; // base0E -- Lavender
   33 $HL-StringPreProc:  #a1efe4; // base0C -- Turquoise
   34 $HL-BlockComment:   #a59f85; // base04 -- Tallow
   35 $HL-LineComment:    $HL-BlockComment;
   36 $HL-Operator:       $HL-Default;
   37 $HL-Keywords1:      #f92672; // base08 -- Rose red
   38 $HL-Keywords2:      #f4bf75; // base0A -- Pale orange
   39 $HL-Keywords3:      #66d9ef; // base0D -- Sky Blue
   40 $HL-Keywords4:      #ae81ff; // base0E -- Lavender
   41 
   42 /*!
   43      Highlight Theme Boilerplate (public domain)
   44      By Tristano Ajmone, 2017.
   45 */
   46 
   47 // ==============================================================================
   48 //                                Theme Definition                               
   49 // ==============================================================================
   50 pre.hl {
   51     background-color: $HL-CanvasBG;
   52     color: $HL-Default;
   53     
   54     // Border and padding
   55     border-radius: 4px;
   56     border: 1px solid $HL-Border;
   57     padding: 1em;
   58     
   59     // Some basic styling, just in case you need it...
   60     overflow: auto;
   61     font-size: 16px;
   62     letter-spacing: 0.0625em; // 16 * 0.0625 = 1px
   63 }
   64 
   65 .hl {
   66     &.num {
   67         // Numbers
   68         color: $HL-Number;
   69     }
   70     &.esc {
   71         // Escape sequences 
   72         color: $HL-Escape;
   73     }
   74     &.ipl {
   75         // Interpolation sequences 
   76         color: $HL-Interpolation;
   77     }
   78     &.str {
   79         // Strings
   80         color: $HL-String;
   81     }
   82     &.ppc {
   83         // Preprocessor directives
   84         color: $HL-PreProcessor;
   85     }
   86     &.pps {
   87         // Strings within preprocessor directives
   88         color: $HL-StringPreProc;
   89     }
   90     &.com {
   91         // Block comments
   92         color: $HL-BlockComment;
   93         font-style: italic;
   94     }
   95     &.slc {
   96         // Single-line comments
   97         color: $HL-LineComment;
   98         font-style: italic;
   99     }
  100     &.lin {
  101         // Line numbers 
  102         color: $HL-LineNum;
  103     }
  104     &.opt {
  105         // Operators
  106         color: $HL-Operator;
  107     }
  108     &.kwa {
  109         // Keywords group 1
  110         color: $HL-Keywords1;
  111     }
  112     &.kwb {
  113         // Keywords group 2
  114         color: $HL-Keywords2;
  115     }
  116     &.kwc {
  117         // Keywords group 3
  118         color: $HL-Keywords3;
  119     }
  120     &.kwd {
  121         // Keywords group 4
  122         color: $HL-Keywords4;
  123     }
  124 }
  125