From 839ceca3e464570d43e15783b52b44e815588377 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Thu, 21 Mar 2013 17:47:41 +0100 Subject: [PATCH] [FIX] visible text in Chrome on Linux after applying text-to-icon @include text-to-icon makes the text invisible (and adds an icon), but some platform apparently don't apply the text's transparency (or visibility) to its shadow, leading to the invisible text's shadow still being noticeably visible (an interesting literary idea, an "invisible" man who still casts a shadow?) as if the text had not been erased. Furthermore, combined with the 1px font size it made the text look like some sort of screen smudge or glitch. Fix by erasing the text-shadow as well as the text. lp bug: https://launchpad.net/bugs/1158304 fixed bzr revid: xmo@openerp.com-20130321164741-iakau7g1kfq2mqu4 --- addons/web/static/src/css/base.css | 8 +++++--- addons/web/static/src/css/base.sass | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index 37fa190bc9f..385405e39ca 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -1269,7 +1269,7 @@ color: white; padding: 2px 4px; margin: 1px 6px 0 0; - border: 1px solid lightgrey; + border: 1px solid lightGray; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -moz-border-radius: 4px; -webkit-border-radius: 4px; @@ -1301,7 +1301,7 @@ transform: scale(1.1); } .openerp .oe_secondary_submenu .oe_active { - border-top: 1px solid lightgrey; + border-top: 1px solid lightGray; border-bottom: 1px solid #dedede; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 -1px 3px rgba(40, 40, 40, 0.2); @@ -1703,6 +1703,7 @@ font-size: 1px; letter-spacing: -1px; color: transparent; + text-shadow: none; font-weight: normal; -moz-box-shadow: none; -webkit-box-shadow: none; @@ -2283,7 +2284,7 @@ } .openerp .oe_form .oe_form_label_help[for] span, .openerp .oe_form .oe_form_label[for] span { font-size: 80%; - color: darkgreen; + color: darkGreen; vertical-align: top; position: relative; top: -4px; @@ -3017,6 +3018,7 @@ font-size: 1px; letter-spacing: -1px; color: transparent; + text-shadow: none; font-weight: normal; margin-right: 7px; } diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index 7ad8527c469..5fe5b1ceaf4 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -123,6 +123,7 @@ $sheet-padding: 16px font-size: 1px letter-spacing: -1px color: transparent + text-shadow: none font-weight: normal &:before font: 21px "mnmliconsRegular" @@ -133,6 +134,7 @@ $sheet-padding: 16px font-size: 1px letter-spacing: -1px color: transparent + text-shadow: none font-weight: normal &:before font: $size "entypoRegular"