From 2c8d0d9a3f4e63586af619e1c2e57cafeb6591b5 Mon Sep 17 00:00:00 2001 From: Antoine Huvelle Date: Tue, 22 Nov 2011 11:46:09 +0100 Subject: [PATCH] Some changes in list and form font sizes bzr revid: ahu@openerp.com-20111122104609-m9kdnqptdo30faoe --- addons/web/static/src/css/base.css | 70 +++++++++++++++++++++-- addons/web/static/src/css/data_import.css | 2 +- 2 files changed, 66 insertions(+), 6 deletions(-) diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index d8f31af1d35..1d93249fba3 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -10,6 +10,7 @@ body.openerp { body.openerp, .openerp textarea, .openerp input, .openerp select, .openerp option, .openerp button, .openerp .ui-widget { font-family: Ubuntu, Helvetica, sans-serif; + font-size:85%; } .oe_box { @@ -29,6 +30,17 @@ body.openerp, .openerp textarea, .openerp input, .openerp select, .openerp optio .openerp .oe-listview .oe-number { text-align: right !important; } +.oe-listview-header-columns { + background: #ccc; /* Old browsers */ + background: -moz-linear-gradient(top, #ffffff 0%, #ebe9e9 100%); /* FF3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#ebe9e9)); /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, #ffffff 0%,#ebe9e9 100%); /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, #ffffff 0%,#ebe9e9 100%); /* Opera11.10+ */ + background: -ms-linear-gradient(top, #ffffff 0%,#ebe9e9 100%); /* IE10+ */ + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FFFFFF', endColorstr='#EBE9E9',GradientType=0 ); /* IE6-9 */ + background: linear-gradient(top, #ffffff 0%,#ebe9e9 100%); /* W3C */ +} + .openerp .oe_hide { display: none !important; } @@ -530,7 +542,7 @@ label.error { } .openerp h2.oe_view_title { - font-size: 175%; + font-size: 110%; font-weight: normal; margin: 2px 0; color: #252424; @@ -631,6 +643,10 @@ label.error { .openerp .searchview_group_content { padding-left: 10px; } +.openerp .searchview_group_content .oe_label, .openerp .searchview_group_content .oe_label_help { + font-weight:bold; + color:#4c4c4c; +} .openerp .searchview_extended_group { padding: 3px; @@ -738,15 +754,28 @@ label.error { } .openerp .oe-listview th.oe-sortable { cursor: pointer; + font-size:80%; + text-transform:uppercase; + padding:0px; + margin:0px; + padding-left:3px; + color:#333; } .openerp .oe-listview th.oe-sortable .ui-icon { - height: 1em; - display: inline; + height: 60%; + margin: -6px 0px 0px 0px; display: inline-block; + vertical-align:middle; } .openerp .oe-listview .oe-field-cell { cursor: pointer; + font-size:90% + margin-top: 0px; + margin-bottom: 0px; + padding-top: 0px; + padding-bottom: 0px; + font-size:80%; } .openerp .oe-listview .oe-field-cell progress { width: 100%; @@ -778,6 +807,7 @@ label.error { } .openerp .oe-list-pager .oe-pager-state { cursor: pointer; + font-size:90%; } .openerp .oe-listview .oe-group-name { @@ -794,6 +824,8 @@ label.error { .openerp .oe-listview .oe-list-footer { text-align: center; white-space: nowrap; + color:#444; + font-size:85%; } .openerp .oe-listview .oe-list-footer span { margin: 0 1em; @@ -854,7 +886,9 @@ label.error { border-radius: 0; -moz-border-radius: 0; -webkit-border-radius: 0; - line-height: 0.5em; + line-height: 0.8em; + font-size:0.85em; + color:#555; } .openerp .oe_form_notebook ul.ui-tabs-nav li { font-weight: bold; @@ -868,6 +902,13 @@ label.error { } /* Form */ +.openerp table.oe_frame td { + color: #4c4c4c; +} +.openerp td.oe_form_frame_cell { + padding: 2px; + position: relative; +} .openerp .oe_frame.oe_forms { clear: both; } @@ -900,10 +941,14 @@ label.error { } .openerp .oe_form_pager, .openerp .oe_list_pager { float: right; + font-size:80%; + color:gray; + font-weight:bold; } .openerp label.oe_label_help, .openerp label.oe_label { display: block; + font-size:85%; } .openerp label.oe_label_help { cursor: help; @@ -1055,10 +1100,14 @@ label.error { border: 0 solid #666; } .openerp .separator.horizontal { - font-weight: bold; + font-weight: bold; border-bottom-width: 1px; margin: 3px 4px 3px 1px; height: 15px; + font-size:90%; +} +.openerp .separator.horizontal:empty { + height: 5px; } .openerp .oe_form_frame_cell.oe_form_separator_vertical { border-left: 1px solid #666; @@ -1095,6 +1144,17 @@ label.error { background: white; min-width: 90px; } +.openerp tbody.ui-widget-content { + margin-bottom:10px; + border-spacing:4px; + /*border:1px solid red; + background-color:red; + color:red;*/ +} +.openerp .ui-widget-header { + background-image:none; + background-color:white; +} /* Sidebar */ .openerp .view-manager-main-table { diff --git a/addons/web/static/src/css/data_import.css b/addons/web/static/src/css/data_import.css index e5d1c9a910c..a63a52802f0 100644 --- a/addons/web/static/src/css/data_import.css +++ b/addons/web/static/src/css/data_import.css @@ -27,7 +27,7 @@ .openerp .oe-import fieldset.oe-closed table { display: none; } -.openerp .separator.horizontal { +.openerp .oe-import .separator.horizontal { font-weight: bold; border-bottom-width: 1px; margin: 6px 4px 6px 1px;