Responsive header for not connected pages too
This commit is contained in:
parent
569411acb8
commit
99570c9c07
3 changed files with 23 additions and 8 deletions
|
|
@ -117,6 +117,16 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.not-connected-menu {
|
||||||
|
.navbar-left {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.navbar-right,
|
||||||
|
.navbar-right li {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: $grid-float-breakpoint-max) {
|
@media (max-width: $grid-float-breakpoint-max) {
|
||||||
|
|
||||||
.navbar-nav.hidden-xs {
|
.navbar-nav.hidden-xs {
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,4 @@
|
||||||
.container-fluid
|
.container-fluid
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
.navbar-header
|
= render "layouts/header_not_connected"
|
||||||
|
|
||||||
.collapse.navbar-collapse#navbar-collapse
|
|
||||||
= render "layouts/header_not_connected"
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,12 @@
|
||||||
%ul.nav.navbar-nav.navbar-right
|
.not-connected-menu
|
||||||
- if AppConfig.settings.enable_registrations? && !current_page?(controller: "/registrations", action: :new)
|
.navbar-header.navbar-left
|
||||||
%li= link_to t("devise.shared.links.sign_up"), new_user_registration_path, class: "login"
|
.hidden-xs
|
||||||
%li= link_to t("devise.shared.links.sign_in"), new_user_session_path, class: "login"
|
= link_to AppConfig.settings.pod_name, root_path, class: "navbar-brand"
|
||||||
|
.visible-xs#header-title
|
||||||
|
= link_to(image_tag("branding/logos/asterisk_white_mobile.png", class: "img-responsive"),
|
||||||
|
root_path, class: "navbar-brand")
|
||||||
|
|
||||||
|
%ul.nav.navbar-nav.navbar-right
|
||||||
|
- if AppConfig.settings.enable_registrations? && !current_page?(controller: "/registrations", action: :new)
|
||||||
|
%li= link_to t("devise.shared.links.sign_up"), new_user_registration_path, class: "login"
|
||||||
|
%li= link_to t("devise.shared.links.sign_in"), new_user_session_path, class: "login"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue