Skip to content

Commit 01c5606

Browse files
ingvermartijnrusschen
authored andcommitted
More convenient examples navigation (Hacker0x01#1523)
Using `position: sticky` if supported for more always visible navbar
1 parent 179ee16 commit 01c5606

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs-site/src/examples.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@
1515
}
1616
}
1717

18+
@supports (position: sticky) {
19+
.examples__navigation {
20+
overflow-y: scroll;
21+
max-height: 100vh;
22+
position: sticky;
23+
top: 0;
24+
}
25+
}
26+
1827
.examples__navigation-item {
1928
border-bottom: 1px solid #e4e4e4;
2029

0 commit comments

Comments
 (0)