margin-left: auto;
margin-right: auto;
}
+table.m-table.m-big {
+ margin-top: 1.75rem;
+}
div.m-scroll > table.m-table:last-child {
margin-bottom: 0.0625rem;
}
table.m-table th, table.m-table td {
padding: 0.5rem;
}
+table.m-table.m-big th, table.m-table.m-big td {
+ padding: 0.75rem 1rem;
+}
table.m-table th {
text-align: left;
}
border-left-width: 0.0625rem;
/* border-right-width: 0.0625rem; causes horizontal scrollbar */
}
+table.m-table.m-big td.m-default, table.m-table.m-big th.m-default,
+table.m-table.m-big td.m-primary, table.m-table.m-big th.m-primary,
+table.m-table.m-big td.m-success, table.m-table.m-big th.m-success,
+table.m-table.m-big td.m-warning, table.m-table.m-big th.m-warning,
+table.m-table.m-big td.m-danger, table.m-table.m-big th.m-danger,
+table.m-table.m-big td.m-info, table.m-table.m-big th.m-info,
+table.m-table.m-big td.m-dim, table.m-table.m-big th.m-dim {
+ padding-left: 0.9375rem;
+ padding-right: 0.9375rem;
+ border-left-width: 0.0625rem;
+/* border-right-width: 0.0625rem; causes horizontal scrollbar */
+}
table.m-table tr.m-default td, table.m-table td.m-default,
table.m-table tr.m-default th, table.m-table th.m-default,
</tr>
</table>
+`"Big" tables`_
+---------------
+
+.. raw:: html
+
+ <table class="m-table m-flat m-big">
+ <thead>
+ <tr>
+ <th></th>
+ <th class="m-text-center m-text m-big m-thin">Community<br />edition</th>
+ <th class="m-text-center m-text m-big"><div class="m-text m-success">Premium<br />support</div></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td class="m-text-right"><span class="m-text m-dim">Support</span></td>
+ <td class="m-text-center">Community-based</td>
+ <td class="m-text-center"><strong class="m-text m-success">Guaranteed<br />response time</strong></td>
+ </tr>
+ <tr>
+ <td class="m-text-right"><span class="m-text m-dim">Commercial use</span></td>
+ <td class="m-text-center"><strong>Yes</strong><br /><span class="m-text m-small m-dim">MIT license</span></td>
+ <td class="m-text-center"><div class="m-text m-success"><strong>Yes</strong><br /><span class="m-text m-small m-dim">MIT license</span></div></td>
+ </tr>
+ </tbody>
+ <tfoot>
+ <tr>
+ <td class="m-text-right m-text-middle"><span class="m-text m-dim">Price</span></td>
+ <td><div class="m-button m-flat m-fullwidth">
+ <a href="#">
+ <div class="m-big">Free</div>
+ <div class="m-small">Get started</div>
+ </a>
+ </div></td>
+ <td><div class="m-button m-success m-fullwidth">
+ <a href="#">
+ <div class="m-big">Contact us</div>
+ <div class="m-small">big.boss@the.brand</div>
+ </a>
+ </div></td>
+ </tr>
+ </tfoot>
+ </table>
+
Images
======
</tbody>
</table></div>
+Mark the table with :html:`.m-big` to inflate it with more spacing, for example
+when designing a high-level product category overview.
+
Similarly to `lists <{filename}/css/typography.rst#lists-diaries>`_, if using
:html:`<p>` elements inside :html:`<td>`, they are neither indented nor
justified.