diff --git a/app/assets/stylesheets/elements/_body.scss b/app/assets/stylesheets/elements/_body.scss index 8e4cfadb..9620b16d 100644 --- a/app/assets/stylesheets/elements/_body.scss +++ b/app/assets/stylesheets/elements/_body.scss @@ -9,4 +9,9 @@ body { @include media-breakpoint-down('md') { padding-bottom: $navbar-height; } + + &.not-logged-in { + padding-top: $navbar-height; + padding-bottom: 0; + } } \ No newline at end of file diff --git a/app/views/layouts/base.haml b/app/views/layouts/base.haml index aaaa6ecf..061f47b0 100644 --- a/app/views/layouts/base.haml +++ b/app/views/layouts/base.haml @@ -20,7 +20,7 @@ = csrf_meta_tags = yield(:og) = yield(:meta) - %body + %body{ class: user_signed_in? ? '' : 'not-logged-in'} - if user_signed_in? = render 'navigation/main' - else