From f75e6d57202da1c0283433398968e75cfa5a6af7 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Wed, 15 Apr 2020 21:37:13 +0800 Subject: [PATCH] theme: style tables --- theme/default/static/style.css | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/theme/default/static/style.css b/theme/default/static/style.css index 45064bd..3bb932a 100644 --- a/theme/default/static/style.css +++ b/theme/default/static/style.css @@ -145,6 +145,37 @@ blockquote { display: inline-block; } +/* Table */ +table { + border-spacing: 0; + border: 1px solid #cccccc; + margin-bottom: 10px; + margin-right: 10px; + border-radius: 4px; + max-width: 100%; + overflow-x: scroll; +} + +th, td { + padding: 15px; +} + +th:not(:first-child), td:not(:first-child) { + border-left: 1px solid #cccccc; +} + +thead { + background-color: #eeeeee; +} + +tr { + transition: background-color 0.2s ease-in-out; +} + +tr:hover { + background-color: #eeeeee; +} + /* Footer -- Not needed on desktop */ .footer { display: none;