carpentries / varnish

Template for pkgdown site
https://carpentries.github.io/varnish/
Other
7 stars 29 forks source link

First column in tables is right-aligned #72

Closed zkamvar closed 1 year ago

zkamvar commented 1 year ago

From @marklcrowe,

I'm having troubles getting tables made with the 'pipe' character to display nicely - whatever I do, the first column is narrow and highly indented

screenshot of a table with the first column right-justified and all other columns with left-justification

It turns out the issue is that the CSS was originally coded to include 100px of left padding for all tables, not just the schedule table:

https://github.com/carpentries/varnish/blob/6c4cf36140b21ec75ba97d8d45e3d8c57110e20a/source/stylesheets/schedule.scss#L23-L28

This can be fixed by specifying that this modification is only for tables within .schedule class elements.