Dotclear


Ignore:
Timestamp:
01/31/15 13:02:01 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Use base64 inline url for png/svg images <= 2Kb (recommendation from  http://yellowlab.tools/ tools)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • themes/berlin/scss/init/_mixins-functions.scss

    r2670 r2949  
    33    $file-name, 
    44    $css-img-path: $css-img-path) { 
    5     background-image: url($css-img-path+'/'+$file-name+'.png'); 
    6     background-image: url($css-img-path+'/'+$file-name+'.svg'), none; 
     5    background-image: inline-image($file-name+'.png'); 
     6    background-image: inline-image($file-name+'.svg'), none; 
    77} 
    88 
     
    1313    $position: 50% 50%, 
    1414    $bg-color: transparent) { 
    15     background: url($css-img-path+'/'+$file-name+'.png') $repeat, $position, $bg-color; 
    16     background-image: url($css-img-path+'/'+$file-name+'.svg'), none; 
     15    background: inline-image($file-name+'.png') $repeat, $position, $bg-color; 
     16    background-image: inline-image($file-name+'.svg'), none; 
    1717} 
    1818 
Note: See TracChangeset for help on using the changeset viewer.

Sites map