mysociety / mysociety-docs-theme

Theme used for e.g. fixmystreet.org
1 stars 0 forks source link

pretty style for <table> elements #13

Closed davewhiteland closed 9 years ago

davewhiteland commented 9 years ago

Current style renders tables with no borders.

I don't think there are any tables in the docs which are not tabulated data, so a border would be nice.

Fancy-pantsy zebra striped rows and whatnot left to designers' discretion.

zarino commented 9 years ago

Looks like, if you give your table a class of "table" then it will have borders:

<table class="table">
  <tr>
    <td>I have</td>
    <td></td>
  <tr>
  <tr>
    <td colspan="2">borders!</td>
  </tr>
</table>

https://github.com/mysociety/mysociety-docs-theme/blob/30be94a907f0c291d3364a575f3956f9c80e9aed/sass/global.scss#L491-L503

davewhiteland commented 9 years ago

thanks for spotting this @zarino!