Commit 61bf9a67 authored by Riccardo Padovani's avatar Riccardo Padovani

Better implementation for header

parent 3542c744
......@@ -5384,12 +5384,16 @@ body.node-type-community-page {
header.banner {
margin-bottom: 0; }
header.banner .nav-primary ul li {
border-left: none;
border-right: 1px solid #ed6637; }
header.banner.inverted {
background: #f7f7f7;
margin-bottom: 20px;
margin-top: -4px; }
header.banner.inverted .nav-primary ul {
border-color: white; }
border-color: white;
margin-top: 1px; }
header.banner.inverted .nav-primary ul li, header.banner.inverted .nav-primary ul li:last-child {
border-color: #eaeaea; }
header.banner.inverted .nav-primary ul li a:link, header.banner.inverted .nav-primary ul li a:visited {
......@@ -5403,7 +5407,6 @@ header.banner {
background: #eaeaea; }
header.banner.inverted .header-search {
overflow: hidden;
padding: 7px 0 7px 14px;
max-width: 240px;
float: right; }
header.banner.inverted .header-search input[type="search"] {
......
......@@ -39,6 +39,14 @@ body.node-type-community-page {
header.banner {
margin-bottom:0;
.nav-primary {
ul {
li {
border-left: none;
border-right: 1px solid lighten($ubuntu-orange, 10%);
}
}
}
&.inverted {
background: $light_grey;
......@@ -47,7 +55,8 @@ header.banner {
.nav-primary {
ul {
border-color:lighten($light_grey, 10%);
border-color:lighten($light_grey, 10%);
margin-top:1px;
li {
&, &:last-child {
......@@ -77,7 +86,7 @@ header.banner {
.header-search {
overflow:hidden;
padding:7px 0 7px 14px;
// padding:7px 0 7px 14px;
max-width:240px;
float:right;
......
......@@ -266,7 +266,7 @@ function valencia_header_menu($vars) {
*/
function valencia_subheader_menu($vars) {
// Var with all HTML of the menu
$html = '<ul>';
$html = '';
foreach ($vars['links'] as $key => $link) {
// To print every menu voice only one, see Drupal API
......@@ -285,7 +285,6 @@ function valencia_subheader_menu($vars) {
}
}
$html .= '</ul>';
return $html;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment