From: Dylan William Hardison Date: Wed, 3 May 2017 03:13:27 +0000 (-0400) Subject: Bug 1361464 - Restore previous comment fonts, conditionally select "Fira" for Windows... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8be2b9a50d3b7bc88b3b40654f95e5269378da8d;p=thirdparty%2Fbugzilla.git Bug 1361464 - Restore previous comment fonts, conditionally select "Fira" for Windows clients --- diff --git a/extensions/BugModal/web/bug_modal.css b/extensions/BugModal/web/bug_modal.css index e3903ca03..4af850b99 100644 --- a/extensions/BugModal/web/bug_modal.css +++ b/extensions/BugModal/web/bug_modal.css @@ -598,7 +598,9 @@ h3.change-name { .comment-text { white-space: pre-wrap; - font: 13px/1.2 "Droid Sans Mono","Ubuntu Mono","Liberation Mono",Menlo,Monaco,"Fira Mono",monospace; + line-height: 1.2; + font-size: 13px; + font-family: "Droid Sans Mono",Menlo,Monaco,"Courier New",monospace; background: #fff; color: #222; margin: 1px 0 0 0; @@ -607,6 +609,10 @@ h3.change-name { border-top: 1px solid #ddd; } +body.platform-Win32 .comment-text, body.platform-Win64 .comment-text { + font-family: "Fira Mono", monospace; +} + .comment-text span.quote, .comment-text span.quote_wrapped { background: #eee !important; color: #444 !important; diff --git a/js/global.js b/js/global.js index 651d10241..04bc3fedf 100644 --- a/js/global.js +++ b/js/global.js @@ -19,6 +19,7 @@ var BUGZILLA = $('head').data('bugzilla'); $(function () { + $('body').addClass("platform-" + navigator.platform); $('.show_mini_login_form').on("click", function (event) { return show_mini_login_form($(this).data('qs-suffix')); }); @@ -190,4 +191,4 @@ $().ready(function() { $(window).on('pageshow', function(event) { $('.bz_autocomplete').attr('autocomplete', 'off'); }); -}); \ No newline at end of file +});