Clean up other CSS styles that apply to elements without a class
simonw opened this issue · 3 comments
Following:
There are still some selectors in app.css
that apply to everything in a way that could interfere with what plugins need to do.
- Sort out labels
- Sort out header / footer
- Sort out that
a img
thing - Sort out table styles
Form-specific:
datasette/datasette/static/app.css
Lines 517 to 520 in 2170269
What's this about?
datasette/datasette/static/app.css
Lines 225 to 229 in 2170269
Also notable: header
and footer
are much less likely to be used separately by a plugin but they do currently carry styles:
datasette/datasette/static/app.css
Lines 268 to 277 in 2170269
datasette/datasette/static/app.css
Lines 333 to 335 in 2170269
Also tables carry some default styles:
datasette/datasette/static/app.css
Lines 455 to 478 in 2170269
That white-space: pre-wrap;
on <td>
has caught me out multiple times before.
I'm going to have those table styles only apply to table.rows-and-columns
.