[Gforge-devel] css-ification of gforge
Francisco Gimeno
kikov at kikov.org
Fri May 12 19:06:00 EDT 2006
Ok
that's a better idea.. I didn't want the previous way because then you have to
modify every theme. Maybe you can think it's a silly thing, and you can make
it in a couple of minutes for all themes at gforge.org.
Nevertheless, each company modifying and customizing a theme has to do that.
In the next migration to a new Gforge version ( that it could took place in
the following several years ), nobody is going to remember them: "ey, dude,
you have to add a file in your theme... "
> I'm changing this again; now I have split up the .css
> in two different files:
>
> a) themes/css/gforge-compat.css contains all style
> definitions removed from the code (and only these
> style information)
how did you make this?
H1 { font-size: x-large; font-family: <?php echo $site_fonts; ?>; }
>
> b) themes/css/gforge.css will contain some sort of
> basic stylesheet for new themes
>
> To adapt existing themes:
> - add <link rel="stylesheet" type="text/css"
> href="/themes/css/gforge.css" /> in your header()
> - if your header() is empty and your Theme.class
> is a subclass of Layout.class, nothing needs to be
> done
Ok.. for this, we think in the OOP.. Everyone modifying header() has to know,
that original header function could change.
>
> - an additional stylesheet can be placed in
> themes/<yourthemename>/css/theme.css; Layout.class
> will detect it and add the <link> tag to you html
> pages. If you wish to include other stylesheets, use
> the @import url() instruction in the additional
> stylesheet.
>
> I'll commit these changes; things should work now
> better than before; I've tried thhis with the gforge
> and osx theme .
>
> Comments/suggestions are welcome.
just those ;)
BR,
Francisco Gimeno
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://svr1.gforge.org/pipermail/gforge-devel/attachments/20060513/01afa64f/attachment.bin
More information about the Gforge-devel
mailing list