From fec74d640dbd65edc151b74276b393731b92cd23 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Wed, 19 Jan 2022 20:18:00 +0100 Subject: [PATCH] =?UTF-8?q?Nov=C3=A1=20struktura=20tabulek=20s=20ingredien?= =?UTF-8?q?cemi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sass/_tables.scss | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/sass/_tables.scss b/sass/_tables.scss index 7f449c9..b840ed2 100644 --- a/sass/_tables.scss +++ b/sass/_tables.scss @@ -1,25 +1,39 @@ table { - border: 1px solid $border; - border-radius:3px; - background:$secondary; - padding:0; - clear:both; + clear: both; thead { + display: flex; + flex-direction: column; th { - padding:1em; - border-bottom:1px dashed $border; + width: 100%; + padding: .5em; + font-size: 1.5em; + } + + th:nth-child(2) { + padding: 0; } } tbody { + display: flex; + flex-direction: column; + background-color: $secondary; + border: 1px solid $border; + border-radius: .25rem; + padding: 1em .7em; tr { + width: 100%; + display: flex; + justify-content: space-between; + } - td { - padding:.5em .8em; - } + td { + padding: .65em .8em; } + + td:nth-child(2) { text-align: right } } }