From: Shaun M. <sh...@ae...> - 2006-02-28 18:36:30
|
On 28 Feb 2006, at 15:22, Matthew McNaney wrote: > > Originally I did that, however I had problems because the content > might > contain the same tags. For example, the css would say > div.box h3 {} > > and that would work fine for the title. However if the {content} had a > h3 in it as well, I may not want it to use the same style. > Also with div.box-title I could put background-color, background- > image, > etc. in the div. Headings don't work that well with those type of > stylings. > > The same goes for the content area. I may want to color it and styling > on the <p> would cause goofiness. > Ah, I see. I guess I'm just more minimalist in my stylings. > >> The other thing that might be useful is adding insertion of a class >> for a category into the top of a template so you could have different >> css depending on the category. At the moment I don't think you can >> return the category name without it being a link in 0.10.x. > > On category listings? Not sure if I get what you are saying. > No, I was thinking it would be useful in say pagemaster or announce. If you could <div class="{category}">...</div> around the content then you'd possibly be able to style the page/announcement to fit in with the category and provide a bit of diversity. > >> I'd also like to see some standard classes defined for menus (first, >> last, selected, enabled, disabled etc) although perhaps those should >> be in menuman and then overridden? And for elements such as dates and >> bylines which are common across many modules. > > Good plan. Indicate where it is needed in code and I can implement. I'll dig out where I use them but certainly in Announce and Article for bylines and almost everywhere a date is it tends to be smalltext. Shaun aegis design - http://www.aegisdesign.co.uk aegis hosting - http://www.aegishosting.co.uk |