summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-05-03 05:13:27 +0200
committerDylan William Hardison <dylan@hardison.net>2017-05-03 05:13:27 +0200
commit8be2b9a50d3b7bc88b3b40654f95e5269378da8d (patch)
tree3189a9aadcf6e16b0826bb2c78899da177eaa83a
parent96ef286867ca2e8b81e5c4f0e3e1bc180e84539c (diff)
downloadbugzilla-8be2b9a50d3b7bc88b3b40654f95e5269378da8d.tar.gz
bugzilla-8be2b9a50d3b7bc88b3b40654f95e5269378da8d.tar.xz
Bug 1361464 - Restore previous comment fonts, conditionally select "Fira" for Windows clients
-rw-r--r--extensions/BugModal/web/bug_modal.css8
-rw-r--r--js/global.js3
2 files changed, 9 insertions, 2 deletions
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
+});