Skip to content
Browse files

fixes an issue where anchor headers on the guidelines page were obscu…

…red by the navbar
  • Loading branch information...
1 parent d37156f commit 58f0d0145c285a10d95c874bfee680965e27c7e2 @jkonowitch jkonowitch committed Jan 28, 2013
Showing with 10 additions and 1 deletion.
  1. +9 −0 app/assets/stylesheets/guidelines.css.less
  2. +1 −1 app/views/guidelines/show.html.erb
View
9 app/assets/stylesheets/guidelines.css.less
@@ -1,3 +1,12 @@
// Place all the styles related to the guidelines controller here.
// They will automatically be included in application.css.
// You can use Less here: http://lesscss.org/
+
+// http://stackoverflow.com/questions/9047703/fixed-position-navbar-obscures-anchors
+// https://github.com/twitter/bootstrap/issues/3316
+#guidelines {
+ h2 {
+ margin-top: -40px;
+ padding-top: 40px;
+ }
+}
View
2 app/views/guidelines/show.html.erb
@@ -1,4 +1,4 @@
-<div class="row">
+<div class="row" id="guidelines">
<div class="span3 sidebar">
<ul class="nav nav-list sidenav affix">
<li><a href="#registration">Registration</a><li>

0 comments on commit 58f0d01

Please sign in to comment.
Something went wrong with that request. Please try again.