Bug 1538100 - fix font-weight on Linux to be slightly heavier, r=vbudhram, a=pascalc
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Mon, 25 Mar 2019 19:48:07 +0000
changeset 525849 d03bf065608b3254ff3d6c7934e18f3b10ee77bc
parent 525848 f83ea1d76d6e4a785c84bad975659e24c40f5c85
child 525850 329f98e8ad66162f5565e20ccf81493b74d4f26a
push id2032
push userffxbld-merge
push dateMon, 13 May 2019 09:36:57 +0000
treeherdermozilla-release@455c1065dcbe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvbudhram, pascalc
bugs1538100
milestone67.0
Bug 1538100 - fix font-weight on Linux to be slightly heavier, r=vbudhram, a=pascalc Differential Revision: https://phabricator.services.mozilla.com/D24608
browser/themes/shared/customizableui/panelUI.inc.css
--- a/browser/themes/shared/customizableui/panelUI.inc.css
+++ b/browser/themes/shared/customizableui/panelUI.inc.css
@@ -727,17 +727,24 @@ toolbarbutton[constrain-size="true"][cui
 
 .PanelUI-fxa-signin-instruction-callout {
   font-size: 1.3em;
   font-weight: normal;
   padding: .6em 0 .6em;
 }
 
 .PanelUI-fxa-signin-instruction-label {
+  /* Use 'lighter' font for this to de-emphasize it compared to the title.
+   * We use 300 on Linux because 100 is too light (lacks contrast with
+   * the background) for some fonts in combination with anti-aliasing. */
+%if defined(XP_MACOSX) || defined(XP_WIN)
   font-weight: lighter;
+%else
+  font-weight: 300;
+%endif
 }
 
 .fxa-avatar-subpanel {
   padding-top: 8px;
   padding-bottom: 4px;
 }
 
 .fxa-avatar-subpanel-description {