Skip to content

Commit

Permalink
Make table full width when mouse hovered (#379)
Browse files Browse the repository at this point in the history
* chore: make table full width when mouse hovered
 - remove table transparency when mouse hovered

* chore: implement feedback

* chore: move styling to docs-markdown

Co-authored-by: Temitayo Fadojutimi <[email protected]>
  • Loading branch information
adesege and adesege authored Jan 26, 2022
1 parent 3e7f905 commit 7cc5eb7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/css/docs/components/docs-markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,17 @@ blockquote .DocsMarkdown--header-anchor-positioner {
word-break: initial;
}

@media (hover: hover) {
.DocsMarkdown--table-wrap:hover {
width: calc(100% + var(--docs-body-sidebar-width));
}

.DocsMarkdown--table-wrap:hover table {
background-color: var(--background-color);
z-index: 1;
}
}

.DocsMarkdown--table-wrap tr > *:first-child {
position: sticky;
left: 0;
Expand Down

0 comments on commit 7cc5eb7

Please sign in to comment.