Changeset 6894


Ignore:
Timestamp:
14 Oct 2011, 08:01:30 (13 years ago)
Author:
Henrik Bettermann
Message:

Let's provide a real YUI base theme which can be customized.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/browser
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/resources.py

    r6820 r6894  
    269269
    270270#: A basic theme based on jQuery only (crappy yet).
    271 waeuptheme_base = ResourceInclusion(
     271waeuptheme_empty = ResourceInclusion(
    272272    waeup_sirp, 'empty.css',
    273273    depends=[humanity])
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/static/waeup-base.css

    r6806 r6894  
    55and resources.py respectively. */
    66
    7 #hd { background-color:#5D0265; }
    8 .block .hd { background-color:#5D0265; color:#fff; border-bottom:10px solid #262626; }
     7#hd { background-color:#003366; }
     8.block .hd { background-color:#003366; color:#fff; border-bottom:10px solid #262626; }
    99.block .bd h1 { font-size:153.9%; color:green; margin-bottom:0.5em;}
    10 .block .bd h2 { font-size:153.9%; color:#5D0265; margin-bottom:0.5em;}
    11 .block .bd h3 { font-size:130%; color:#5D0265; margin-bottom:0.5em;}
     10.block .bd h2 { font-size:153.9%; color:#003366; margin-bottom:0.5em;}
     11.block .bd h3 { font-size:130%; color:#003366; margin-bottom:0.5em;}
    1212.spaces .hd { background-color:transparent; }
    13 .spaces .hd ul li { background-color:#5D0265; }
    14 a { color:#5D0265; }
     13.spaces .hd ul li { background-color:#003366; }
     14a { color:#003366; }
    1515.tabs .hd ul li a:hover { background-color:#8d0399; }
    1616
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/theming.py

    r6009 r6894  
    3030from waeup.sirp.browser.interfaces import ITheme
    3131from waeup.sirp.browser.resources import (
    32     waeuptheme_red1, waeuptheme_gray1, waeuptheme_base,
     32    waeuptheme_red1, waeuptheme_gray1, waeuptheme_empty,
     33    waeup_base_css,
    3334    )
     35
     36class WAeUPThemeBase(grok.GlobalUtility):
     37    grok.implements(ITheme)
     38    grok.name('base waeup theme')
     39
     40    description = u"Base Theme"
     41
     42    def getResources(self):
     43        return [waeup_base_css]
    3444
    3545class WAeUPThemeRed1(grok.GlobalUtility):
     
    5161        return [waeuptheme_gray1]
    5262
    53 class WAeUPThemeBase(grok.GlobalUtility):
     63class WAeUPThemeEmpty(grok.GlobalUtility):
    5464    """A theme based on jQuery only.
    5565
     
    5767    """
    5868    grok.implements(ITheme)
    59     grok.name('base theme')
    60     description = u'Base Theme'
     69    grok.name('empty theme')
     70    description = u'Empty Theme'
    6171
    6272    def getResources(self):
    63         return [waeuptheme_base]
     73        return [waeuptheme_empty]
    6474
    6575def get_all_themes():
Note: See TracChangeset for help on using the changeset viewer.