Skip to content

Commit 1f3c153

Browse files
committed
Add scroll padding for anchor links on mobile
As the menu bar is fixed and overlaps the content we need to add scroll padding for the links to be visible.
1 parent 2a0bbb7 commit 1f3c153

File tree

1 file changed

+4
-0
lines changed
  • lib/rdoc/generator/template/rails/resources/css

1 file changed

+4
-0
lines changed

lib/rdoc/generator/template/rails/resources/css/panel.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
}
66

77
@media (max-width: 599px) {
8+
html {
9+
scroll-padding-top: 50px;
10+
}
11+
812
.panel_mobile_button {
913
display: block;
1014
height: 40px;

0 commit comments

Comments
 (0)