genericise sidebar vertical offset css as it relates to the subnav

This commit is contained in:
Mike Greiling 2017-03-22 18:01:28 -05:00
parent 25d779a321
commit eb56b700ad
2 changed files with 12 additions and 6 deletions

View file

@ -416,14 +416,16 @@
.page-with-layout-nav {
.right-sidebar {
top: ($header-height * 2) + 2;
top: ($header-height + 1) * 2;
}
.build-sidebar {
top: ($header-height * 3) + 3;
&.page-with-sub-nav {
.right-sidebar {
top: ($header-height + 1) * 3;
&.affix {
top: 0;
&.affix {
top: 0;
}
}
}
}

View file

@ -31,7 +31,11 @@ module NavHelper
end
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
def nav_control_class