wiki:BluePrint/CSS

Version 14 (modified by Fran Boon, 16 years ago) ( diff )

--

BluePrint CSS

This page hosts the detailed specification for the Blueprint for the CSS Cleanup.

The CSS could do with cleaning up to remove unused styles & some updating to give us maximal usability.

Filesystem Layout

The overall Layout is determined by: views/layout.html.

The main CSS file is: static/styles/S3/sahana.css with some supplementary styles in static/styles.

The styles are separated into different folders depending on which layer they come from, to ease debugging & maintenance as framework components get updated.

For production installs (t2.debug==False), they get consolidated into two file for faster downloads:

  • static/styles/S3/sahana.min.css
  • static/styles/gis/gis.min.css

This consolidation is done as part of the Release Process.

appadmin

Web2Py's appadmin (Database administration) inherits the Layout of the application.
Our layout isn't designed to accomodate the 3 menu options in the top-right: design, state, db
2 possible solutions here:

  • rewrite controllers/appadmin.py so that these 3 are the module options & return these & the list of enabled modules.
    • means more maintenance work whenever this is updated upstream
  • rewrite views/layout.html & static/styles/S3/sahana.css to move the appadmin way of doing things

Currently the left-hand navbar has only 2 levels of hierarchy: Modules & Module Options
Some modules (e.g. DVI) need more.
This is also discussed in the BluePrintFramework


BluePrints

Note: See TracWiki for help on using the wiki.