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
{{ message }}
Repository navigation
properdocs-theme-mkdocs: don’t unconditionally add Bootstrap styles to tables #80
The built-in theme properdocs-theme-mkdocs has JavaScript that adds the Bootstrap classes table, table-striped, and table-hover to all <table> tags. This behavior is unconditional for all tables, whether in page content or replaced template blocks, and it’s difficult to turn off.
All three of these tables end up with the classes table, table-striped, and table-hover, and therefore all the Bootstrap table fanciness. (See js/base.sj:83.)
Expected behavior
The Bootstrap table class additions are optional somehow. For example, add class plain to opt out of the additional classes:
I get why the classes are added to Markdown tables, but it doesn’t make sense to me in theme, which is at the HTML level already, i.e. if one wanted a table like that it’s easy to add the classes.
My own use case is a self-styled table in the footer. My workaround is to remove the offending classes manually if class no-boot is also present:
Activity