[OGDev] Common categories/locales
Kake L Pugh
kake at earth.li
Mon Mar 19 21:12:28 GMT 2007
On Mon 19 Mar 2007, Kake L Pugh <kake at earth.li> wrote:
> I wouldn't say that's a workaround - I'd say that's the correct way to
> do it! Well, modulo the "main-navbar" thing; it would be better to
> give each navbar "module" its own id. I don't understand why you're
> special-casing the categories/locales - surely people are just as
> likely to want to style other elements of the navbar as they are to
> want to style these particular elements. But anyway, yes, I'll move
> them into the navbar, if this is the only reason you left them out.
OK, this is now done. The common categories and locales are in
navbar_categories.tt and navbar_locales.tt, which are INCLUDEd in navbar.tt
as described in the mail I started this thread with.
Also, every navbar "module" now has a CSS id (apart from "site name" and
"revision", which instead have classes for historical reasons - I'd like to
change this if people don't mind), so you can style as much as you wish.
Before I made these changes, there was quite a lot of very specific CSS
stuff for things like common_categories_title, common_category_link, etc -
you don't need to do this since you can access those elements with e.g.
div#navbar_categories div.navbar_group_title {
color: green;
}
div#navbar_locales ul a {
color: red;
}
(For the interested, CSS changes are documented in README.CSS)
Kake
More information about the OpenGuides-Dev
mailing list