Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove deprecated/obsolete styling on main table/container (table id="layout")
- Loading branch information
Remove deprecated/obsolete styling on main table/container (table id="layout")
e83c9bf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change introduces an unpleasant 2px border around the whole page, at least for me and at least on Chrome and Firefox. I'm no CSS expert but now it seems that the UA built-in stylesheet border-spacing: 2px now takes place, where in the past it was zeroed-out by the old syles that where removed by this commit. Maybe border-spacing: 0px should be added to some element like table or table#layout to preserve the previous behaviour? Or are there better solutions?
e83c9bf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@extremecarver What do you think?
e83c9bf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes by default you will get:
display: table;
border-collapse: separate;
box-sizing: border-box;
text-indent: initial;
border-spacing: 2px;
border-color: gray;
with chrome. However if you need that 0px you can just get it back by adding a CSS insert with 0... However otherwise it's impossible to add any custom spacing/padding as this will overwrite it. It's not good in general to have hardcoded CSS in a theme that is supposed to be fully adaptable IMHO. The problem is that the table layout will be inherited downwards by other elements and also those you can then not overwrite further complicating it.
e83c9bf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, but if everyone now encounters this 2px border spacing (and doesn't want it) then i wonder if we shouldn't go back to the previous version since the 0px version is the one that most devs/users expect by default.
e83c9bf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@extremecarver , I agree that it's preferable to lave static CSS out from a customizable theme but, since this changes something that had been like this for a long time, I would at least put a note in the changelog telling strictly what to do to have the old behaviour. Something similar to the statement about the removal or display:block from div.widget ul li (another change in the behaviour I stubled upon, but it was documented so it was easy to fix).
e83c9bf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see the border spacing with my layout so I'm not sure how to verify. But the following CSS Insert in Atahualpa options should overwrite the browser default:
table#layout {border-spacing: 2px; border:0px;}
Actually maybe leave out border spacing, I'm not sure what was the default here.