From 7b86d3a89fed74fef294f85ada866943e288e44e Mon Sep 17 00:00:00 2001 From: Antonin Bourguignon Date: Wed, 1 Aug 2012 19:54:43 +0200 Subject: [PATCH] [IMP] layout: separate .oe_link from the rest of the text, making them easier to spot to do so, .eo_link elements are now preceded with a long dash (em dash) to apply this layout to other elements than .eo_link, wrap it in a span and give it the class .oe_separate-from-text bzr revid: abo@openerp.com-20120801175443-vyo9t1gzyakr250t --- .../base_setup/static/src/css/base_setup.css | 20 +++++++++++++++++++ addons/crm/res_config_view.xml | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/addons/base_setup/static/src/css/base_setup.css b/addons/base_setup/static/src/css/base_setup.css index b15f226b23d..4e4b8a3c00a 100644 --- a/addons/base_setup/static/src/css/base_setup.css +++ b/addons/base_setup/static/src/css/base_setup.css @@ -1,4 +1,24 @@ +/* Remove bold from labels in config wizards */ .oe_form_configuration .oe_form_group td:last-child .oe_form_label_help, .oe_form_configuration .oe_form_group td:last-child .oe_form_label { font-weight: normal; } + +/* Separate .eo_link elements from the rest of the label's text */ +.oe_form_configuration .oe_form_group td:last-child .oe_link, +.oe_form_configuration .oe_form_group td:last-child .oe_separate-from-text { + position: relative; + left: 2em; +} +.oe_form_configuration .oe_form_group td:last-child .oe_link:before, +.oe_form_configuration .oe_form_group td:last-child .oe_separate-from-text:before { + content:"—"; + padding-right: 1em; + color: grey; + + /* Prevent the pseudo element's content to behave like its parent element */ + position: absolute; + right: 100%; + bottom: 0; /* Parent element's height can vary */ + pointer-events: none; +} diff --git a/addons/crm/res_config_view.xml b/addons/crm/res_config_view.xml index c077d71772d..c4e8b75f0d7 100644 --- a/addons/crm/res_config_view.xml +++ b/addons/crm/res_config_view.xml @@ -60,7 +60,7 @@ - +