From 87cab76c96a4f9dd253880b1299002d0316763d5 Mon Sep 17 00:00:00 2001 From: Ilija Eftimov Date: Sat, 11 Apr 2020 20:01:41 +0200 Subject: Add table styles --- static/css/dark.css | 4 ++++ static/css/main.css | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/static/css/dark.css b/static/css/dark.css index a48f9a9..6312c4b 100644 --- a/static/css/dark.css +++ b/static/css/dark.css @@ -32,6 +32,10 @@ a,a:hover { text-decoration: none; } +table tbody tr:nth-of-type(even) { + background-color: rgba(255, 255, 255, 0.15); +} + .site-description a, .site-description a:hover { color: #ddd; diff --git a/static/css/main.css b/static/css/main.css index fc0dd36..d78da1c 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -79,6 +79,41 @@ fieldset { padding: 0; } +table { + -ms-overflow-style: -ms-autohiding-scrollbar; + -webkit-overflow-scrolling: touch; + background-color: transparent; + margin-bottom: 1rem; + overflow-x: auto; + width: 100%; +} + +table th, +table td { + border-bottom: 1px solid #dee2e6; + padding: 0.75rem; + vertical-align: top; +} + +table thead th { + border-bottom: 2px solid #dee2e6; + vertical-align: bottom; +} + +table tbody + tbody { + border-top: 2px solid #dee2e6; +} + +table tbody tr:nth-of-type(even) { + background-color: rgba(0, 0, 0, 0.15); +} + +table th { + background-color: #212529; + border-color: #32383e; + color: #fff; +} + textarea { resize: vertical; } @@ -423,4 +458,12 @@ ul { margin: 0 10px 0 0; font-size: 14px; } + + table { + -ms-overflow-style: -ms-autohiding-scrollbar; + -webkit-overflow-scrolling: touch; + display: block; + overflow-x: auto; + width: 100%; + } } -- cgit v1.2.3