Changes between Version 7 and Version 8 of DeveloperGuidelines/Themes


Ignore:
Timestamp:
06/23/12 17:02:11 (9 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Themes

    v7 v8  
    1414* {{{/private/templates/default/views/layout.html}}}
    1515* {{{/private/templates/default/views/load.html}}}
     16* {{{/static/img}}}
    1617in non-Debug mode:
    17 * {{{/static/themes/default/css/sahana.min.css}}}
     18* {{{/static/themes/default/eden.min.css}}}
    1819in Debug mode:
    1920* {{{/private/templates/default/css.cfg}}}
    20 * {{{/static/themes/default/css/layout.css}}}
     21* {{{/static/themes/default/layout.css}}}
    2122* {{{/static/themes/default/reset.css}}}
    2223* {{{/static/themes/default/layout.css}}}
     
    33341. Specify the Theme name in your template's {{{/private/templates/<templatename>/config.py}}}:
    3435 * {{{settings.base.theme = "themename"}}}
    35 1. Create new folders to hold the theme elements:
    36  * {{{/static/themes/<themename>/css}}} which will usually contain these files: {{{layout.css}}}, {{{style.css}}} (it is normally assumed that {{{/static/themes/default/css/widgets.css}}} is also used)
     361. Create a new folder to hold the theme elements:
     37 * {{{/static/themes/<themename>}}} which will usually contain these files: {{{layout.css}}}, {{{style.css}}} (it is normally assumed that {{{/static/themes/default/css/widgets.css}}} is also used)
    3738 * {{{/static/themes/<themename>/img}}}
    38391. If not already using a template create one: {{{/private/templates/<templatename>}}}
     
    4041 * {{{/private/templates/<templatename>/__init__.py}}} - this can be empty but must be present.
    4142 * {{{/private/templates/<templatename>/css.cfg}}} - list of CSS files to use in Debug mode, or be compressed together for the normal non-debug mode by the Build script ({{{static/scripts/tools/build.sahana.py}}}) into:
    42   * {{{/static/themes/<themename>/css/sahana.min.css}}}
     43  * {{{/static/themes/<themename>/eden.min.css}}}
    4344 * {{{/private/templates/<templatename>/views/layout.html}}} - overall layout of the HTML.
    4445
    45 NB Production sites who wish to compile their code either need to hardcode the theme name in their {{{views/layout.html}}} or upgrade to Web2Py version: 2.00.0 (2012-06-17 23:36:32) or newer
     46Note that all CSS files should be able to find their images both in debug mode & when compressed into eden.min.css
     47
     48NB Production sites who wish to compile their code either need to hardcode the theme name in their {{{views/layout.html}}} or upgrade to Web2Py version: 2.00.0 (2012-06-17 23:36:32), or newer.
    4649
    4750=== Ext Theme ===