Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed style of navbar menu #7724 #371

Merged
merged 2 commits into from
May 13, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 17 additions & 8 deletions static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -472,27 +472,38 @@ section.products{
font-size: 17px;
line-height: 39px;
padding: 8px 10px;
text-transform: uppercase;
font-weight: 300;
font-size: 16px;
}
.main-navigation li:hover a.main-link{
background: #eee;
border-radius: 1px;
color: #373435;
color: #06A2DC;
text-decoration: none;
}
.header-submenu li{
padding: 5px;
}
.header-submenu li a:hover{
color: #06A2DC;
text-decoration: none;
}
.main-navigation li .container {
width: 100%;
position: absolute;
color: #373435;
background: #F7F7F7 ;
background: #fff ;
top: auto;
display: none;
zoom: 1;
left: 15px;
z-index: 10;
margin: 0 auto;
width: 1140px;
padding: 15px 10px;
height: 250px;
overflow: hidden;
border-top: 6px solid #4B6A84;
border-bottom: 6px solid #4B6A84;
padding: 20px 0;
}
.main-navigation li:hover .container{
display: block;
Expand All @@ -504,9 +515,7 @@ section.products{
}
.main-navigation ul#nav-list{
background-color: #fefefe;
border-top: 1px solid #DDD;
border-bottom: 1px solid #DDD;
margin-bottom: 8px;
padding: 15px 0;
}
.logo-container{
padding-bottom: 10px;
Expand Down
4 changes: 2 additions & 2 deletions templates/webshop/_helpers.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,13 @@
<a class="main-link" href="{{ menuitem.link }}" target="{{ menuitem.target }}">{{ menuitem.title }}</a>
{% if menuitem.children %}
<!-- Dropdown Menu Starts-->
<div class="container menbg">
<div class="container header-submenu">
<div class="row">
{% for child in menuitem.children %}
<div class="col-md-2">
<ul class="list-unstyled">
<li>
<a href="{{ child.link }}"><strong>{{ child.title }}</strong></a>
<a href="{{ child.link }}">{{ child.title }}</a>
</li>
{% for grandchild in child.children %}
<li><a href="{{ grandchild.link }}" target="{{ grandchild.target }}">{{ grandchild.title }}</a></li>
Expand Down