From 634d85acefe3777132ec4aa3acabb0d5a821efeb Mon Sep 17 00:00:00 2001 From: Olexii Bulhakov Date: Thu, 1 Feb 2024 11:05:27 +0200 Subject: [PATCH] Fixed transpared table headers --- docs/_sass/custom/custom.scss | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/docs/_sass/custom/custom.scss b/docs/_sass/custom/custom.scss index c1c73ce..b59acb9 100644 --- a/docs/_sass/custom/custom.scss +++ b/docs/_sass/custom/custom.scss @@ -25,6 +25,7 @@ h4, display: none; } } + @media (prefers-color-scheme: dark) { img[src$="gh-light-mode-only"] { display: none; @@ -39,26 +40,34 @@ h4, th, td { min-width: 1rem; - &:first-of-type { border-left: $border $border-color; } } + .table-wrapper { max-width: 1200px; margin: 0 auto; overflow-x: unset; - outline: $border $body-background-color; - outline-offset: -3px; } thead { position: sticky; top: 0; z-index: 1; - outline: $border $body-background-color; - outline-offset: -1px; & th { - border-bottom-width: 2px; + box-shadow: 0px -2px $body-background-color, 2px 0px $body-background-color, + 2px -2px $body-background-color; + } +} + +tbody { + tr { + &:last-of-type { + th, + td { + border-bottom: $border $border-color; + } + } } }