Adrian,
I came across the ".box" styles just yesterday when I was writing a new
maincss.css file.
After redefining the screenlet, screenlet-title-bar and screenlet-body there
was still some screen not correctly styled (like catalog main screen) and
then I did discover the .box styles.
I had to copy the rules to the .box also.
So definitively a +1 for this.
-Bruno
2008/7/11 Adrian Crum <
[hidden email]>:
> The maincss.css style sheet contains 11 styles starting with ".box" - I
> would like to see those go away. Here's why...
>
> Long ago, those styles were combined to create screenlets. The problem was,
> some developers would use some of the .box styles to style things that were
> not screenlets (or screenlet elements). So, any attempt to restyle
> screenlets would unintentionally restyle unrelated screen elements.
>
> Today, we do things differently - CSS styles style containers and their
> contained elements. For example, screenlet title bars have one style that
> styles all of its contained elements. The bottom line is, three styles
> (screenlet, screenlet-title-bar, screenlet-body) replace those previous 11
> styles. So, it would be best to use the screenlet styles instead.
>
> I'm not suggesting that we embark on a massive effort to remove those
> styles. Like before, just try to replace them when you come across them. In
> time, they can be removed from the maincss.css style sheet.
>
> Let me know what you think.
>
> -Adrian
>
>
>
>
>