Changes between Version 1 and Version 2 of DeveloperGuidelines/Minify


Ignore:
Timestamp:
10/06/14 17:14:51 (7 years ago)
Author:
Fran Boon
Comment:

Add note on SASS

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Minify

    v1 v2  
    11= Minify =
     2[[TOC]]
    23Browsers default to only downloading 2 files from the same origin at a time, so many files is very slow on high latency links.
    34
     
    3132!ToDo: Download/execute scripts asynchronously:
    3233* Projects/Advanced/Optimisation
     34
     35== Foundation ==
     36To update to a new version of Foundation:
     37* http://foundation.zurb.com/develop/download.html#customizeFoundation
     38* set Max-Width to 125em
     39* download 1 version with left-to-right (foundation.css/foundation.min.css), and one version with right-to-left support (foundation.rtl.css/foundation.rtl.min.css)
     40* copy the files into trunk (don't forget the JS)
     41
     42For custom SCSS builds:
     43* Python libsass [https://github.com/dahlia/libsass-python/issues/28 isn't working for Fran on Win32] currently, so the code in build.sahana.py isn't tested
     44* Separate the core Foundation (foundation.scss) from the custom styles (style.scss)
     45* For the custom style.scss, @include any required Foundation mixins, but omit the HTML classes using:
     46{{{
     47$include-html-classes: false;
     48$include-html-global-classes: false;
     49}}}
     50* Build CSS using Ruby SASS:
     51{{{
     52cd eden/private/templates/MYTHEME/scss
     53sass foundation.scss ../../../../static/themes/MYTHEME/foundation.css
     54sass style.scss ../../../../static/themes/MYTHEME/style.css
     55}}}