diff options
author | Emruz Hossain <hossainemruz@gmail.com> | 2022-06-15 22:44:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-15 22:44:56 +0300 |
commit | bf6f63976b8e672e03b64927f9148a12cf7724a2 (patch) | |
tree | d816ddd0120dc428df084b614ff53de7cffbcce9 | |
parent | 6c8ab46a73e104c7fdb6cb54f159cc1b7399c1e6 (diff) |
Fix CSS for gist (#606)
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
-rw-r--r-- | static/css/layouts/main.css | 38 |
1 files changed, 37 insertions, 1 deletions
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; |