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 { ...@@ -5384,12 +5384,16 @@ body.node-type-community-page {
header.banner { header.banner {
margin-bottom: 0; } margin-bottom: 0; }
header.banner .nav-primary ul li {
border-left: none;
border-right: 1px solid #ed6637; }
header.banner.inverted { header.banner.inverted {
background: #f7f7f7; background: #f7f7f7;
margin-bottom: 20px; margin-bottom: 20px;
margin-top: -4px; } margin-top: -4px; }
header.banner.inverted .nav-primary ul { 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 { header.banner.inverted .nav-primary ul li, header.banner.inverted .nav-primary ul li:last-child {
border-color: #eaeaea; } border-color: #eaeaea; }
header.banner.inverted .nav-primary ul li a:link, header.banner.inverted .nav-primary ul li a:visited { header.banner.inverted .nav-primary ul li a:link, header.banner.inverted .nav-primary ul li a:visited {
...@@ -5403,7 +5407,6 @@ header.banner { ...@@ -5403,7 +5407,6 @@ header.banner {
background: #eaeaea; } background: #eaeaea; }
header.banner.inverted .header-search { header.banner.inverted .header-search {
overflow: hidden; overflow: hidden;
padding: 7px 0 7px 14px;
max-width: 240px; max-width: 240px;
float: right; } float: right; }
header.banner.inverted .header-search input[type="search"] { header.banner.inverted .header-search input[type="search"] {
......
...@@ -39,6 +39,14 @@ body.node-type-community-page { ...@@ -39,6 +39,14 @@ body.node-type-community-page {
header.banner { header.banner {
margin-bottom:0; margin-bottom:0;
.nav-primary {
ul {
li {
border-left: none;
border-right: 1px solid lighten($ubuntu-orange, 10%);
}
}
}
&.inverted { &.inverted {
background: $light_grey; background: $light_grey;
...@@ -47,7 +55,8 @@ header.banner { ...@@ -47,7 +55,8 @@ header.banner {
.nav-primary { .nav-primary {
ul { ul {
border-color:lighten($light_grey, 10%); border-color:lighten($light_grey, 10%);
margin-top:1px;
li { li {
&, &:last-child { &, &:last-child {
...@@ -77,7 +86,7 @@ header.banner { ...@@ -77,7 +86,7 @@ header.banner {
.header-search { .header-search {
overflow:hidden; overflow:hidden;
padding:7px 0 7px 14px; // padding:7px 0 7px 14px;
max-width:240px; max-width:240px;
float:right; float:right;
......
...@@ -266,7 +266,7 @@ function valencia_header_menu($vars) { ...@@ -266,7 +266,7 @@ function valencia_header_menu($vars) {
*/ */
function valencia_subheader_menu($vars) { function valencia_subheader_menu($vars) {
// Var with all HTML of the menu // Var with all HTML of the menu
$html = '<ul>'; $html = '';
foreach ($vars['links'] as $key => $link) { foreach ($vars['links'] as $key => $link) {
// To print every menu voice only one, see Drupal API // To print every menu voice only one, see Drupal API
...@@ -285,7 +285,6 @@ function valencia_subheader_menu($vars) { ...@@ -285,7 +285,6 @@ function valencia_subheader_menu($vars) {
} }
} }
$html .= '</ul>';
return $html; 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