Commit eb56b700 authored by Mike Greiling's avatar Mike Greiling

genericise sidebar vertical offset css as it relates to the subnav

parent 25d779a3
...@@ -416,14 +416,16 @@ ...@@ -416,14 +416,16 @@
.page-with-layout-nav { .page-with-layout-nav {
.right-sidebar { .right-sidebar {
top: ($header-height * 2) + 2; top: ($header-height + 1) * 2;
} }
.build-sidebar { &.page-with-sub-nav {
top: ($header-height * 3) + 3; .right-sidebar {
top: ($header-height + 1) * 3;
&.affix { &.affix {
top: 0; top: 0;
}
} }
} }
} }
......
...@@ -31,7 +31,11 @@ module NavHelper ...@@ -31,7 +31,11 @@ module NavHelper
end end
def layout_nav_class def layout_nav_class
"page-with-layout-nav" if defined?(nav) && nav class_name = ''
class_name << " page-with-layout-nav" if defined?(nav) && nav
class_name << " page-with-sub-nav" if content_for?(:sub_nav)
class_name
end end
def nav_control_class def nav_control_class
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment