fix navbar

This commit is contained in:
Torsten Ruger 2017-07-12 12:34:13 +03:00
parent 3b9ce398e5
commit 4073b7dae2
2 changed files with 28 additions and 20 deletions

View File

@ -4,18 +4,17 @@
font-size: .7em font-size: .7em
font-weight: 600 font-weight: 600
line-height: 320% line-height: 320%
a.nav-link
color: #55595c li
a.active.nav-link, a.nav-link hover padding-top: 11px
font-weight: bold padding-right: 11px
a.nav-link hover a.nav-link
font-weight: bold color: #55595c
.nav
a
font-size: 1.3em !important font-size: 1.3em !important
li a.active.nav-link, a.nav-link hover
padding-top: 11px font-weight: bold
padding-right: 11px a.nav-link hover
font-weight: bold
.navbar-brand .navbar-brand
img.desktop img.desktop
width: 250px width: 250px

View File

@ -1,16 +1,25 @@
%nav.navbar.navbar-fixed-top.navbar-light %nav.navbar.fixed-top.navbar-toggleable-sm.navbar-light
%button.navbar-toggler.hidden-md-up{"aria-controls" => "navbarResponsive", "aria-expanded" => "false", "aria-label" => "Toggle navigation", "data-target" => "#navbarResponsive", "data-toggle" => "collapse", :type => "button"} %button.navbar-toggler.navbar-toggler-right{"aria-controls" => "navbarNav",
#navbarResponsive.collapse.navbar-toggleable-sm "aria-expanded" => "false",
"aria-label" => "Toggle navigation",
"data-target" => "#navbarResponsive",
"data-toggle" => "collapse",
:type => "button"}
%span.navbar-toggler-icon
#navbarResponsive.collapse.navbar-collapse
%a.navbar-brand{:href => page_path(:index) } %a.navbar-brand{:href => page_path(:index) }
= image_tag "logos/web_logo.png" , class: :desktop = image_tag "logos/web_logo.png" , class: :desktop
= image_tag "logos/web_logo_mobile.png" , class: :mobile = image_tag "logos/web_logo_mobile.png" , class: :mobile
%ul.nav.navbar-nav.float-sm-right %ul.navbar-nav.ml-auto
%li.nav-item= link_to "Course" , page_path(:course) , class: "nav-link" - { "Course" => page_path(:course) , "Camp" => page_path(:camp) ,
%li.nav-item= link_to "Camp" , page_path(:camp) , class: "nav-link" "Q & A" => page_path(:answers) }.each do | menu, slug|
%li.nav-item= link_to "Q & A" , page_path(:answers) , class: "nav-link" %li.nav-item{class: (request.path == slug) && "active" }
=link_to menu , slug ,class: "nav-link"
-unless user_signed_in? -unless user_signed_in?
%li.nav-item= link_to "Apply" , page_path(:apply) , class: "nav-link" %li.nav-item
%li.nav-item= link_to "|" , page_path(:apply) , class: "nav-link" = link_to "Apply" , page_path(:apply) , class: "nav-link"
%li.nav-item
= link_to "|" , page_path(:apply) , class: "nav-link"
-if user_signed_in? -if user_signed_in?
%li.nav-item= link_to "|" , edit_user_registration_path , class: "nav-link" %li.nav-item= link_to "|" , edit_user_registration_path , class: "nav-link"
- { "Profile" => edit_user_registration_path , "Resume" => resume_path , - { "Profile" => edit_user_registration_path , "Resume" => resume_path ,