Skip to content

Commit d77123f

Browse files
authored
Merge pull request #219 from p8/fix/mobile-anchor-links
Add scroll padding for anchor links on mobile
2 parents 2a0bbb7 + 1f3c153 commit d77123f

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)