From 5166394508950033584da34385aa24f9065b7a60 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Sat, 8 Jan 2022 16:04:44 +1100 Subject: [PATCH] Sort out some more fonty stuff, mostly size --- static/gitweb.css | 25 +++++++------------------ static/gitweb.js | 6 +++--- 2 files changed, 10 insertions(+), 21 deletions(-) diff --git a/static/gitweb.css b/static/gitweb.css index 78bed54..69ced16 100644 --- a/static/gitweb.css +++ b/static/gitweb.css @@ -131,7 +131,6 @@ div.title_text { padding: 6px 0px; border: solid #d9d8d1; border-width: 0px 0px 1px; - font-family: monospace; } div.log_body { @@ -215,7 +214,7 @@ table { } table.diff_tree { - font-family: monospace; + font-family: monospace,m; } table.combined.diff_tree th { @@ -246,13 +245,11 @@ table.blame { table.blame td { padding: 0px 5px; - font-size: 100%; vertical-align: top; } th { padding: 2px 5px; - font-size: 100%; text-align: left; } @@ -287,7 +284,6 @@ tr.color3 { background-color: #fff6f6; } td { padding: 2px 5px; - font-size: 100%; vertical-align: top; } @@ -302,7 +298,7 @@ td.selflink { } td.sha1 { - font-family: monospace; + font-family: monospace,m; } .error { @@ -374,13 +370,12 @@ table.blame td.age0 { } td.pre, div.pre, div.diff { - font-family: monospace; - font-size: 12px; + font-family: monospace,m; white-space: pre; } td.mode { - font-family: monospace; + font-family: monospace,m; } /* progress of blame_interactive */ @@ -396,7 +391,7 @@ div#progress_info { /* format of (optional) objects size in 'tree' view */ td.size { - font-family: monospace; + font-family: monospace,m; text-align: right; } @@ -661,15 +656,9 @@ div.remote { /* float: right; */ position: absolute; top: 0px; right: 0px; - border: 1px solid green; - margin: 1px 1px 1px 1px; - padding-bottom: 2px; - width: 12px; - height: 10px; - font-size: 9px; + border: none; font-weight: bold; - text-align: center; - background-color: #fff0f0; + background-color: transparent; cursor: pointer; } diff --git a/static/gitweb.js b/static/gitweb.js index 85e8025..e6b45d1 100644 --- a/static/gitweb.js +++ b/static/gitweb.js @@ -694,10 +694,10 @@ function createChangeTZForm(documentFragment, tzSelected, tzCookieInfo, tzClassN div.className = 'popup'; /* '
X
' */ - var closeButton = document.createElement('div'); + var closeButton = document.createElement('button'); closeButton.className = 'close-button'; - closeButton.title = '(click on this box to close)'; - closeButton.appendChild(document.createTextNode('X')); + closeButton.title = '(click on this button to close)'; + closeButton.appendChild(document.createTextNode('×')); closeButton.onclick = closeTZFormHandler(documentFragment, tzClassName); div.appendChild(closeButton); -- 2.42.0