Skip to content

Commit

Permalink
Fixed transpared table headers
Browse files Browse the repository at this point in the history
  • Loading branch information
bulhakovolexii committed Feb 1, 2024
1 parent 6dbce30 commit 634d85a
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions docs/_sass/custom/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ h4,
display: none;
}
}

@media (prefers-color-scheme: dark) {
img[src$="gh-light-mode-only"] {
display: none;
Expand All @@ -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;
}
}
}
}

0 comments on commit 634d85a

Please sign in to comment.