Changes between Version 28 and Version 29 of DeveloperGuidelines/Themes


Ignore:
Timestamp:
02/23/18 11:52:19 (7 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Themes

    v28 v29  
    2929
    3030To create a new theme:
     311. If not already using a template create one: {{{/modules/templates/<templatename>}}}
     321. Create these files in your templates folder:
     33 * {{{/modules/templates/<templatename>/__init__.py}}} - this can be empty but must be present.
     34 * {{{/modules/templates/<templatename>/css.cfg}}} - list of CSS files to use in Debug mode, or be compressed together for the normal non-debug mode by
     35the Build script ({{{static/scripts/tools/build.sahana.py}}}) into:
     36  * {{{/static/themes/<themename>/eden.min.css}}}
    31371. Specify the Theme name in your template's {{{/modules/templates/<templatename>/config.py}}}:
    3238 * {{{settings.base.theme = "themename"}}}
    33391. Create a new folder to hold the theme elements:
    34  * {{{/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)
     40 * {{{/static/themes/<themename>}}} which will usually contain a file {{{style.css}}} (it is normally assumed that {{{/static/themes/default/css/widgets.css}}} is also used at a minimum, although using more of the default Foundation theme is recommended)
    3541 * {{{/static/themes/<themename>/img}}}
    36 1. If not already using a template create one: {{{/modules/templates/<templatename>}}}
    37 1. Create these files in your templates folder:
    38  * {{{/modules/templates/<templatename>/__init__.py}}} - this can be empty but must be present.
    39  * {{{/modules/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:
    40   * {{{/static/themes/<themename>/eden.min.css}}}
    4142 * {{{/modules/templates/<templatename>/views/layout.html}}} - overall layout of the HTML.
    4243