From a374ea79374a59e633bb95681143ebb5838ee746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johann=20M=C3=BCller?= Date: Tue, 7 Apr 2015 16:17:38 +0200 Subject: [PATCH] [ADD] Module: Clean Navbar --- web_clean_navbar/__init__.py | 21 +++++++++ web_clean_navbar/__openerp__.py | 43 +++++++++++++++++++ .../static/src/css/clean_navbar.css | 36 ++++++++++++++++ web_clean_navbar/views/clean_navbar.xml | 10 +++++ 4 files changed, 110 insertions(+) create mode 100644 web_clean_navbar/__init__.py create mode 100644 web_clean_navbar/__openerp__.py create mode 100644 web_clean_navbar/static/src/css/clean_navbar.css create mode 100644 web_clean_navbar/views/clean_navbar.xml diff --git a/web_clean_navbar/__init__.py b/web_clean_navbar/__init__.py new file mode 100644 index 00000000..cf1a3dfb --- /dev/null +++ b/web_clean_navbar/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Odoo Addon, Open Source Management Solution +# Copyright (C) 2014-now Equitania Software GmbH(). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + diff --git a/web_clean_navbar/__openerp__.py b/web_clean_navbar/__openerp__.py new file mode 100644 index 00000000..dc180bcd --- /dev/null +++ b/web_clean_navbar/__openerp__.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Odoo Addon, Open Source Management Solution +# Copyright (C) 2014-now Equitania Software GmbH(). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + +{ + 'name': 'web_clean_navbar', + 'version': '1.0.0', + 'category': 'Backend', + 'description': """ + Better visibility for the main backend navigation-bar + """, + 'author': 'Equitania Software GmbH', + 'website': 'www.myodoo.de', + 'depends': [], + 'summary': 'backend, navigation', + #'init': [ + # 'eq_install_func.xml', + # ], + 'data': [ + 'views/clean_navbar.xml', + ], + 'demo': [], + 'css': ['base.css'], + 'installable': True, + 'auto_install': False, +} diff --git a/web_clean_navbar/static/src/css/clean_navbar.css b/web_clean_navbar/static/src/css/clean_navbar.css new file mode 100644 index 00000000..64778e33 --- /dev/null +++ b/web_clean_navbar/static/src/css/clean_navbar.css @@ -0,0 +1,36 @@ + +.navbar-inverse .navbar-nav > li > a { + color:white!important; /* ?? green */ +} + +ul.navbar-left li > a:hover, ul.navbar-right li > a:hover { + background-color:#777!important; /* ?? #F00 */ +} +ul.navbar-left li.active { + background-color:#fff!important; +} + +ul.navbar-left li.active > a, ul.navbar-right li.active > a { + + background-color:#444!important; + +background: rgba(119,119,119,1); +background: -moz-linear-gradient(top, rgba(119,119,119,1) 0%, rgba(68,68,68,1) 100%); +background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(119,119,119,1)), color-stop(100%, rgba(68,68,68,1))); +background: -webkit-linear-gradient(top, rgba(119,119,119,1) 0%, rgba(68,68,68,1) 100%); +background: -o-linear-gradient(top, rgba(119,119,119,1) 0%, rgba(68,68,68,1) 100%); +background: -ms-linear-gradient(top, rgba(119,119,119,1) 0%, rgba(68,68,68,1) 100%); +background: linear-gradient(to bottom, rgba(119,119,119,1) 0%, rgba(68,68,68,1) 100%); +filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#777777', endColorstr='#444444', GradientType=0 ); + +} + +.dropdown-menu > li > a:hover, .dropdown-menu > li > a:hover { + color:blue!important; +} + + +.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { + color:white!important; +} + diff --git a/web_clean_navbar/views/clean_navbar.xml b/web_clean_navbar/views/clean_navbar.xml new file mode 100644 index 00000000..6ccb7edc --- /dev/null +++ b/web_clean_navbar/views/clean_navbar.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file