]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1361464 - Restore previous comment fonts, conditionally select "Fira" for Windows...
authorDylan William Hardison <dylan@hardison.net>
Wed, 3 May 2017 03:13:27 +0000 (23:13 -0400)
committerDylan William Hardison <dylan@hardison.net>
Wed, 3 May 2017 03:13:27 +0000 (23:13 -0400)
extensions/BugModal/web/bug_modal.css
js/global.js

index e3903ca033a82713eef4072d9f5c0b1f55541364..4af850b9918c6fb752b618cf39c9d7bf81f07399 100644 (file)
@@ -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;
index 651d1024104fc9a1269354df9f7f54fc2de9a1c6..04bc3fedf92290ca835fc2fcfb7bf5e7c6a997bd 100644 (file)
@@ -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
+});