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)

Location:
themes/berlin/scss
Files:
8 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 
  • themes/berlin/scss/modules/_off-canvas.scss

    r2673 r2949  
    4444        display: block; 
    4545        background-color: $white; 
    46         background-image: url(img/icon_open-sidebar.png); 
    47         background-image: url(img/icon_open-sidebar.svg), none; 
     46        background-image: inline-image('icon_open-sidebar.png'); 
     47        background-image: inline-image('icon_open-sidebar.svg'), none; 
    4848        border: .1em solid $gray-dark; 
    4949        border-radius: .25em; 
     
    5252    #offcanvas-off { 
    5353        background-color: $gray-very-dark; 
    54         background-image: url(img/icon_close.png); 
    55         background-image: url(img/icon_close.svg), none; 
     54        background-image: inline-image('icon_close.png'); 
     55        background-image: inline-image('icon_close.svg'), none; 
    5656        border: 1px solid $white; 
    5757    } 
  • themes/berlin/scss/partials/_archive.scss

    r2846 r2949  
    7979/* par categorie */ 
    8080.arch-cat-list, .arch-sub-cat-list { 
    81     background: transparent url(img/vline.png) repeat-y; 
     81    background: transparent inline-image('vline.png') repeat-y; 
    8282    } 
    8383.arch-sub-cat-list { 
     
    8686.arch-cat-list li { 
    8787    padding: .2em .2em .2em 20px; 
    88     background: transparent url(img/hline.png) no-repeat left .82em; 
     88    background: transparent inline-image('hline.png') no-repeat left .82em; 
    8989    } 
    9090.arch-cat-list li:last-child { 
    91     background-image: url(img/last-hline.png); 
     91    background-image: inline-image('last-hline.png'); 
    9292    } 
    9393/* par tag */ 
  • themes/berlin/scss/partials/_content.scss

    r2644 r2949  
    55} 
    66.prev { 
    7     @include replace-text('icon_prev.png'); 
     7    @include replace-text(inline-image('icon_prev.png')); 
    88} 
    99.next { 
    10     @include replace-text('icon_next.png'); 
     10    @include replace-text(inline-image('icon_next.png')); 
    1111} 
    1212.prev, .next { 
  • themes/berlin/scss/partials/_global_layout.scss

    r2640 r2949  
    11body { 
    2     background: $gray-light url(img/bg_light.png); 
     2    background: $gray-light inline-image('bg_light.png'); 
    33    color: $primary-color; 
    44} 
  • themes/berlin/scss/partials/_header.scss

    r2643 r2949  
    106106    } 
    107107    &.open { 
    108     background-image: url(img/icon_close.png); 
    109     background-image: url(img/icon_close.svg), none; 
     108    background-image: inline-image('icon_close.png'); 
     109    background-image: inline-image('icon_close.svg'), none; 
    110110    } 
    111111} 
  • themes/berlin/scss/partials/_icons.scss

    r2947 r2949  
    1616} 
    1717.post-date { 
    18     background-image: url(img/icon_date.png); 
     18    background-image: inline-image('icon_date.png'); 
    1919} 
    2020.post-cat { 
    21     background-image: url(img/icon_category.png); 
     21    background-image: inline-image('icon_category.png'); 
    2222} 
    2323.post-tags-list { 
    24     background-image: url(img/icon_tags.png); 
     24    background-image: inline-image('icon_tags.png'); 
    2525    padding-left: 22px !important; 
    2626} 
    2727.comment_count { 
    28     background-image: url(img/icon_comments.png); 
     28    background-image: inline-image('icon_comments.png'); 
    2929} 
    3030.ping_count { 
    31     background-image: url(img/icon_trackbacks.png); 
     31    background-image: inline-image('icon_trackbacks.png'); 
    3232} 
    3333.attach_count { 
    34     background-image: url(img/icon_attach.png); 
     34    background-image: inline-image('icon_attach.png'); 
    3535} 
    3636.post-permalink { 
    37     background-image: url(img/icon_permalink.png); 
     37    background-image: inline-image('icon_permalink.png'); 
    3838} 
    3939.feed { 
    40     background-image: url(img/icon_feed.png); 
    41     background-image: url(img/icon_feed.svg), none; 
     40    background-image: inline-image('icon_feed.png'); 
     41    background-image: inline-image('icon_feed.svg'), none; 
    4242    background-size: .875em; 
    4343    padding-left: 1.25em; 
  • themes/berlin/scss/partials/_post.scss

    r2697 r2949  
    8181} 
    8282.post-attachments:before { 
    83     content: url(img/icon_attachments.png); 
    84     content: url(img/icon_attachments.svg); 
     83    content: inline-image('icon_attachments.png'); 
     84    content: inline-image('icon_attachments.svg'); 
    8585    display: block; 
    8686    position: absolute; 
     
    125125        } 
    126126        .ping { 
    127             background: #f3efed url(img/icon_trackbacks.png) no-repeat 1.5em 4em; 
     127            background: #f3efed inline-image('icon_trackbacks.png') no-repeat 1.5em 4em; 
    128128        } 
    129129            .comment-number { 
     
    150150} 
    151151.send-trackback { 
    152     background: #f3efed url(img/icon_trackbacks.png) no-repeat 1.5em 4em; 
     152    background: #f3efed inline-image('icon_trackbacks.png') no-repeat 1.5em 4em; 
    153153} 
    154154.field label { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map