summaryrefslogtreecommitdiff
path: root/addons/website/static/src
diff options
context:
space:
mode:
authorbth-openerp <bth@tinyerp.com>2013-08-29 11:59:18 +0530
committerbth-openerp <bth@tinyerp.com>2013-08-29 11:59:18 +0530
commit93c9f491b3fe752cea35fce6ebc2dd0a3ddeecaf (patch)
treeecbf776d7b6761febccf3c82996faa8062865ed7 /addons/website/static/src
parent15a0a2e1595992b025c809e3d4d0b5079c8dac15 (diff)
[IMP]Improved code for fixed topbar navigation menu.
bzr revid: bth@tinyerp.com-20130829062918-12dvjv0e8y0lkrty
Diffstat (limited to 'addons/website/static/src')
-rw-r--r--addons/website/static/src/css/website.css6
-rw-r--r--addons/website/static/src/xml/website.xml5
2 files changed, 7 insertions, 4 deletions
diff --git a/addons/website/static/src/css/website.css b/addons/website/static/src/css/website.css
index 00724eae9ae..bfea9600568 100644
--- a/addons/website/static/src/css/website.css
+++ b/addons/website/static/src/css/website.css
@@ -181,6 +181,9 @@ header.navbar-fixed-top {
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
font-weight: 900;
}
+.navbar {
+ margin-bottom: 0px;
+}
.navbar-form {
padding: 0;
margin-top: 0;
@@ -191,12 +194,13 @@ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
}
header {
margin-bottom: 0px;
+ margin-top: -10px;
min-height: 40px;
}
header .collapse ul {
margin-top: 5px;
}
-.navbar-nav>li>a {
+#website-top-view .navbar-nav>li>a {
padding:10px 15px 10px;
}
/* -- Hack for nav header -- */
diff --git a/addons/website/static/src/xml/website.xml b/addons/website/static/src/xml/website.xml
index 0761f92ea0a..ea835d0280c 100644
--- a/addons/website/static/src/xml/website.xml
+++ b/addons/website/static/src/xml/website.xml
@@ -3,7 +3,7 @@
-->
<templates id="template" xml:space="preserve">
<t t-name="website.editorbar">
- <nav class="navbar-inverse navbar-fixed-top" role="navigation">
+ <div class="navbar-inverse navbar-fixed-top">
<div id="website-top-view">
<form class="navbar-form navbar-left">
<button data-action="edit" class="btn btn-primary">Edit</button>
@@ -24,7 +24,6 @@
</li>
</ul>
</div>
-
<div id="website-top-edit">
<form class="navbar-form navbar-left">
<button data-action="save" class="btn btn-primary">Save</button>
@@ -34,7 +33,7 @@
<li><button data-action="snippet" class="btn btn-primary">Building Blocks</button></li>
</ul>
</div>
- </nav>
+ </div>
</t>
<t t-name="website.mobile_preview">