[PATCH 2 of 3] style: use monospace on all multi-line form inputs

Thomas De Schampheleire thomas.de_schampheleire at nokia.com
Sun May 6 12:45:26 UTC 2018


# HG changeset patch
# User Thomas De Schampheleire <thomas.de_schampheleire at nokia.com>
# Date 1525610073 -7200
#      Sun May 06 14:34:33 2018 +0200
# Node ID 16ce6cd1d641cfe0bb18c4b78e00441aee2308ea
# Parent  9005c37dbe21a96ef514bf6f786a5f679b3cacf9
style: use monospace on all multi-line form inputs

Multi-line form input (textarea) is used for PR comments, PR descriptions,
repository descriptions and 'HTML/CSS/Javascript customization block'.
In the first three cases, the rendered result is displayed in monospace, so
the corresponding textarea should be as well.
As the expected content of the HTML/CSS/Javascript block is code, it makes
perfect sense to use monospace there too.

diff --git a/kallithea/public/less/style.less b/kallithea/public/less/style.less
--- a/kallithea/public/less/style.less
+++ b/kallithea/public/less/style.less
@@ -194,6 +194,7 @@ table.changesets {
 
 /* textareas should be at least 100px high and 400px wide */
 textarea.form-control {
+  font-family: @font-family-monospace;
   min-height: 100px;
   min-width: 400px;
 }


More information about the kallithea-general mailing list