[IMP] Updated css for sidebar.
bzr revid: nicolas.vanhoren@openerp.com-20110411162239-70r6yom0hqnkbius
This commit is contained in:
parent
25a65bfc99
commit
0d42418698
|
@ -484,6 +484,7 @@ body.openerp {
|
|||
margin: 0;
|
||||
width:100%;
|
||||
border-collapse:collapse;
|
||||
height:100%;
|
||||
}
|
||||
|
||||
.openerp .view-manager-main-table tbody {
|
||||
|
@ -495,35 +496,59 @@ body.openerp {
|
|||
}
|
||||
|
||||
.openerp .view-manager-main-sidebar {
|
||||
vertical-align: top;
|
||||
width:0;
|
||||
padding:0;
|
||||
margin:0;
|
||||
}
|
||||
|
||||
.openerp .view-manager-main-sidebar .sidebar-main-div {
|
||||
.openerp .sidebar-main-div {
|
||||
padding:0;
|
||||
margin:0;
|
||||
width:180px;
|
||||
border-color: #1F1F1F;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
border-left-color: #D2CFCF;
|
||||
border-left-style: solid;
|
||||
border-left-width: 1px;
|
||||
height:100%;
|
||||
font-family: Ubuntu, Helvetica, sans-serif;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.openerp .view-manager-main-sidebar .sidebar-sub-div {
|
||||
border: solid 1px #1F1F1F;
|
||||
border-bottom-width: 0;
|
||||
.openerp .sidebar-main-div a {
|
||||
color: #555;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.openerp .sidebar-main-div a:hover {
|
||||
color: black;
|
||||
}
|
||||
|
||||
.openerp .view-manager-main-sidebar h2 {
|
||||
margin:0;
|
||||
font-family: Ubuntu, Helvetica, sans-serif;
|
||||
font-size: 1.15em;
|
||||
color: #8E8E8E;
|
||||
text-shadow: white 0px 1px 0px;
|
||||
padding-left: 10px;
|
||||
padding-right: 21px;
|
||||
height: 21px;
|
||||
background: url(../img/sideheader-a-bg.png) repeat-x;
|
||||
border-color: #D2CFCF;
|
||||
border-style: solid;
|
||||
border-top-width: 1px;
|
||||
border-bottom-width: 1px;
|
||||
border-left-width: 0;
|
||||
border-right-width: 0;
|
||||
}
|
||||
|
||||
.openerp .view-manager-main-sidebar ul {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-bottom: solid 1px #1F1F1F;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.openerp .view-manager-main-sidebar li {
|
||||
padding: 3px;
|
||||
display: block;
|
||||
padding: 3px 3px 3px 10px;
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 126 B |
|
@ -188,10 +188,10 @@ openerp.base.Sidebar = openerp.base.BaseWidget.extend({
|
|||
set_toolbar: function(toolbar) {
|
||||
this.sections = [];
|
||||
var self = this;
|
||||
_.each(["print", "action", "relate"], function(type) {
|
||||
if (toolbar[type].length == 0)
|
||||
_.each([["print", "Reports"], ["action", "Actions"], ["relate", "Links"]], function(type) {
|
||||
if (toolbar[type[0]].length == 0)
|
||||
return;
|
||||
var section = {elements:toolbar[type]};
|
||||
var section = {elements:toolbar[type[0]], label:type[1]};
|
||||
self.sections.push(section);
|
||||
});
|
||||
this.refresh();
|
||||
|
|
|
@ -530,6 +530,7 @@
|
|||
<t t-set="i" t-value="0"/>
|
||||
<t t-foreach="sections" t-as="section">
|
||||
<t t-if="section.elements.length > 0">
|
||||
<h2><t t-esc="section.label"/></h2>
|
||||
<ul>
|
||||
<t t-set="j" t-value="0"/>
|
||||
<t t-foreach="section.elements" t-as="element">
|
||||
|
|
Loading…
Reference in New Issue