From bf6f63976b8e672e03b64927f9148a12cf7724a2 Mon Sep 17 00:00:00 2001 From: Emruz Hossain Date: Thu, 16 Jun 2022 01:44:56 +0600 Subject: [PATCH] Fix CSS for gist (#606) Signed-off-by: hossainemruz --- static/css/layouts/main.css | 38 ++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/static/css/layouts/main.css b/static/css/layouts/main.css index bc96652..0303086 100644 --- a/static/css/layouts/main.css +++ b/static/css/layouts/main.css @@ -174,7 +174,7 @@ img.right { margin-right: 3px; } -/* ====== codeblocks ====== */ +/* ====== table ====== */ table { border-radius: 0.1rem; background: #e5e9f2; @@ -206,6 +206,42 @@ tbody tr:hover { background: #c0ccda; } +/* ====== don't apply css to tables inside gist ====== */ +.gist table { + border-radius: unset; + background: unset; + border: unset; + padding: unset; +} + +.gist table tr { + height: unset !important; +} + +.gist table th, +td { + padding: unset; + border-left: unset; + border-bottom: unset; +} + +.gist table thead tr { + background: unset; + color: unset; +} + +.gist tbody tr:nth-child(odd) { + background-color: unset; +} + +.gist tbody tr:hover { + background: unset; +} + +.gist table td, .gist table tc{ + border-right: 1px solid #eee; +} + figure { border: 1px solid #c0ccda; height: -webkit-fit-content;