From 9adf10ba137faa66874b8a76267d1872f439744c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 17 Jan 2018 01:44:38 +0100 Subject: [PATCH] css: ability to inflate spacing of .m-table by putting .m-big on it. --- css/m-components.css | 18 +++++++++++++++ doc/css/components-test.rst | 44 +++++++++++++++++++++++++++++++++++++ doc/css/components.rst | 3 +++ 3 files changed, 65 insertions(+) diff --git a/css/m-components.css b/css/m-components.css index d0b7b80f..8d6b18f9 100644 --- a/css/m-components.css +++ b/css/m-components.css @@ -764,6 +764,9 @@ table.m-table { 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; } @@ -795,6 +798,9 @@ table.m-table tfoot th, table.m-table tfoot td { 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; } @@ -813,6 +819,18 @@ table.m-table td.m-dim, table.m-table th.m-dim { 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, diff --git a/doc/css/components-test.rst b/doc/css/components-test.rst index dbfd6edb..870f2059 100644 --- a/doc/css/components-test.rst +++ b/doc/css/components-test.rst @@ -781,6 +781,50 @@ Table with paragraphs +`"Big" tables`_ +--------------- + +.. raw:: html + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Community
edition
Premium
support
SupportCommunity-basedGuaranteed
response time
Commercial useYes
MIT license
Yes
MIT license
Price
+ Images ====== diff --git a/doc/css/components.rst b/doc/css/components.rst index 81f74f1a..25f8637a 100644 --- a/doc/css/components.rst +++ b/doc/css/components.rst @@ -595,6 +595,9 @@ using the color classes from above: +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:`

` elements inside :html:``, they are neither indented nor justified. -- 2.30.2