Use correct body padding when not logged in to allow for top navigation bar
This commit is contained in:
parent
d86bf2bf9d
commit
aeb924cab9
|
@ -9,4 +9,9 @@ body {
|
||||||
@include media-breakpoint-down('md') {
|
@include media-breakpoint-down('md') {
|
||||||
padding-bottom: $navbar-height;
|
padding-bottom: $navbar-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.not-logged-in {
|
||||||
|
padding-top: $navbar-height;
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -20,7 +20,7 @@
|
||||||
= csrf_meta_tags
|
= csrf_meta_tags
|
||||||
= yield(:og)
|
= yield(:og)
|
||||||
= yield(:meta)
|
= yield(:meta)
|
||||||
%body
|
%body{ class: user_signed_in? ? '' : 'not-logged-in'}
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
= render 'navigation/main'
|
= render 'navigation/main'
|
||||||
- else
|
- else
|
||||||
|
|
Loading…
Reference in New Issue