From d6cd1d87cf23fb80a5dca1787d1412940951e8fe Mon Sep 17 00:00:00 2001 From: Bas Brands Date: Thu, 23 Apr 2020 10:29:07 +0200 Subject: [PATCH] MDL-68497 theme_boost: font smoothing for Firefox on Mac --- theme/boost/scss/preset/default.scss | 1 + theme/boost/style/moodle.css | 3 ++- theme/classic/scss/preset/default.scss | 5 +++++ theme/classic/style/moodle.css | 4 ++++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/theme/boost/scss/preset/default.scss b/theme/boost/scss/preset/default.scss index b31e52541a3..4ec4400df1c 100644 --- a/theme/boost/scss/preset/default.scss +++ b/theme/boost/scss/preset/default.scss @@ -91,6 +91,7 @@ $theme-colors: map-merge(( body { -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; } .navbar { diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index ce4c1469ced..2f322e25ede 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -18508,7 +18508,8 @@ span[data-flexitour="container"][x-placement="right"], span[data-flexitour="cont font-size: 4em; } body { - -webkit-font-smoothing: antialiased; } + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; } .navbar { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08); } diff --git a/theme/classic/scss/preset/default.scss b/theme/classic/scss/preset/default.scss index 4059751f6a3..ed3564774c8 100644 --- a/theme/classic/scss/preset/default.scss +++ b/theme/classic/scss/preset/default.scss @@ -81,6 +81,11 @@ $theme-colors: map-merge(( // Import Core moodle CSS @import "moodle"; +body { + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + // Preset CSS .navbar { box-shadow: 0 2px 4px rgba(0, 0, 0, .08); diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index 3ec06ae9779..ae9cf35bcb5 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -18688,6 +18688,10 @@ span[data-flexitour="container"][x-placement="right"], span[data-flexitour="cont height: 1em; font-size: 4em; } +body { + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; } + .navbar { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08); }