From 17d07faf124e6a4881918871c77890f7930d548b Mon Sep 17 00:00:00 2001 From: Guillaume Denis Date: Thu, 19 Mar 2015 14:02:11 +0100 Subject: [PATCH] navbar: active elements styling + divider styling + DOM cleanup (markup fixed, indentation) --- ckanext/ozwillo_theme/fanstatic/ozwillo.css | 19 ++++ ckanext/ozwillo_theme/templates/header.html | 110 +++++++++----------- 2 files changed, 67 insertions(+), 62 deletions(-) diff --git a/ckanext/ozwillo_theme/fanstatic/ozwillo.css b/ckanext/ozwillo_theme/fanstatic/ozwillo.css index 0deb93a..4138cdb 100644 --- a/ckanext/ozwillo_theme/fanstatic/ozwillo.css +++ b/ckanext/ozwillo_theme/fanstatic/ozwillo.css @@ -114,6 +114,25 @@ padding-top: 80px; display: block; } +.navbar .dropdown-menu .divider { + margin: 5px 0; + border-bottom: 1px solid #e5e5e5; +} + +.navbar .nav li.dropdown.active>.dropdown-toggle { + background-color: #eeeeee; + box-shadow: none; + text-shadow: none; +} + +.navbar .dropdown-menu a:hover, .navbar .dropdown-menu a:focus { + background: #eeeeee; +} + +.navbar .dropdown-menu > .active > a, .navbar .dropdown-menu > .active > a:hover, .navbar .dropdown-menu > .active > a:focus { + background: #6e418e; +} + /* footer */ footer .t3-footnav { padding: 16px 0 0; diff --git a/ckanext/ozwillo_theme/templates/header.html b/ckanext/ozwillo_theme/templates/header.html index 7dd7634..4f0fb4d 100644 --- a/ckanext/ozwillo_theme/templates/header.html +++ b/ckanext/ozwillo_theme/templates/header.html @@ -2,72 +2,58 @@ {% set current_page = request.environ.CKAN_CURRENT_URL %} + \ No newline at end of file