"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/extras/langs-examples/_sass/_helpers.scss" (12 May 2020, 2134 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.

    1 //  v1.0.0 (2018-10-05) maintained by Tristano Ajmone
    2 // *****************************************************************************
    3 // *                                                                           *
    4 // *                  Sass/SCSS Mixins and Helpers Collection                  *
    5 // *                                                                           *
    6 // *****************************************************************************
    7 
    8 // =============================================================================
    9 //                          Fira Code Ligatures Mixin                           
   10 // =============================================================================
   11 // Written by Tristano Ajmone.
   12 // Enables Fira Code font (with ligatures) for a given language in Highlight
   13 // code blocks.
   14 // -----------------------------------------------------------------------------
   15 @mixin FiraCodeLigatures($language) {
   16     .listingblock pre[class=highlight][lang=#{$language}] {
   17         &>code {
   18             font-family: $FiraCode; // defined in '_fonts.scss'
   19         }
   20     }
   21  }
   22 // =============================================================================
   23 //                                Fontface Mixin                                
   24 // =============================================================================
   25 // Adapted from "fontface.scss", taken from the Sass Boilerplate project,
   26 // Copyright (c) 2013 Peter Mescalchin, MIT License:
   27 // 
   28 // https://github.com/magnetikonline/sass-boilerplate
   29 // -----------------------------------------------------------------------------
   30 @mixin fontFace($family,$src,$style: normal,$weight: normal) {
   31     @font-face {
   32         font-family: $family;
   33         src: url('#{$src}.eot'); // IE9 compat
   34         src: url('#{$src}.eot?#iefix') format('embedded-opentype'), // IE8 and below
   35              url('#{$src}.woff') format('woff'), // standards
   36              url('#{$src}.ttf') format('truetype'), // Safari, Android, iOS
   37              url('#{$src}.svg##{$family}') format('svg'); // legacy iOS
   38 
   39         font-style: $style;
   40         font-weight: $weight;
   41     }
   42 }