You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whilst working on styling tables in Thema (stencila/thema#207) I encountered an issue where the contents of the table were getting squished and looking cramped. Adding CSS to prevent line wraps causes the entire page to become as wide as the table.
Ideally I'd like to be able to have the best of both worlds, readable tables with lots of cells and an article without a horizontal overflow.
To do this we need to place the table within two wrapping elements like so:
I don't think we need to explicitly include the style declarations from Encoda's side, instead Encode should provide targetable wrapping elements for Thema to do as it pleases.
While this isn't strictly semantic, I think given the likelihood of the encoded articles containing large tables it would be nice to have structure which is easy to style in Thema without having to resort to using the JS helpers.
Whilst working on styling tables in Thema (stencila/thema#207) I encountered an issue where the contents of the table were getting squished and looking cramped. Adding CSS to prevent line wraps causes the entire page to become as wide as the table.
Ideally I'd like to be able to have the best of both worlds, readable tables with lots of cells and an article without a horizontal overflow.
To do this we need to place the table within two wrapping elements like so:
I don't think we need to explicitly include the
style
declarations from Encoda's side, instead Encode should provide targetable wrapping elements for Thema to do as it pleases.While this isn't strictly semantic, I think given the likelihood of the encoded articles containing large tables it would be nice to have structure which is easy to style in Thema without having to resort to using the JS helpers.
What do you think @nokome?
The text was updated successfully, but these errors were encountered: