Skip to content

Commit 93112f3

Browse files
committed
docs: ensure tooltips accomodate sticky header when scrolled
1 parent aceb9e0 commit 93112f3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/custom.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,6 @@ body {
5959
.code-tooltip:after { content: attr(data-title); text-align: left; font-size: 100%; }
6060
/* :after text will be announced by AT, this adds a separation between textContent and :after text */
6161
.code-tooltip:before { content: ': '; font-size: 0; }
62+
.code-tooltip {
63+
scroll-margin-top: 150px;
64+
}

0 commit comments

Comments
 (0)