Topic: css discussions
Well , if i got it right the main idea of punbb is to be simple , fast & strong
you made it on the server side very well (as far as i tested)
but why to make css so complex ? the desgin of punbb is very simple and dont require such complex css
if you just change the way you think a little
for example
/* Float Clearing
-------------------------------------------------------------*/
.brd-page:after,
.brd .gen-content:after,
.brd .ct-box:after,
#brd-index .item-head:after,
#brd-index .main-item:after,
#brd-index ul.item-info:after,
.brd .frm-group:after,
.brd .mf-set:after,
.brd .sf-set:after,
.brd .mf-box:after,
.brd .sf-box:after,
.brd .mf-item:after,
.brd .txt-set:after,
.brd .txt-box:after,
.brd .frm-form label:after,
.brd fieldset:after,
.brd span.fld-input:after,
.brd .posthead:after,
.brd .postbody:after,
.brd .postfoot .post-options:after {
content: "";
display: block;
font-size: 0;
height: 0;
line-height: 0.0;
overflow:hidden;
visibility: hidden;
clear: both;
}
why not just do :
/* Float Clearing
-------------------------------------------------------------*/
.brd .clearfix:after {
content: "";
display: block;
font-size: 0;
height: 0;
line-height: 0.0;
overflow:hidden;
visibility: hidden;
clear: both;
}
and apply clearfix on each dom element you want
.brd .main-content .main-item li.info-lastpost cite
Tag key with 4 descendant selectors and Class overly qualified with tag
its way 2 much , you should make it simple
.brd .main-head .hn, .brd .main-foot .hn {
font-size: 1.084em;
padding-right: 10em;
}
why not to call is .category {} & .category h2 {}
will make css code much more simple
and here a quick review
http://punbb.informer.com/forums/style/ … Oxygen.css has 45 very inefficient rules, 108 inefficient rules, and 0 potentially inefficient uses of :hover out of 301 total rules.
this make loading slower
and also makes theme very hard hard to builld -> so there will be very few themes for punbb which will make punbb less popular
also 90% of code sets position:relative; which make you include special css file for IE 6 & IE 7
which is bad idea from the first place
and the last bad idea is to use div's for table data , just use table tag its will require less css hacks and will work better
and still will be XHTML Valid.
also making the forum to support rtl is impossible with this css , i ended up with rewriting all php files to replace div code to table and css change to support tables & rtl properties
i will be really happy to get developers comments.