genericise sidebar vertical offset css as it relates to the subnav
This commit is contained in:
parent
25d779a321
commit
eb56b700ad
2 changed files with 12 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue