]> source.dussan.org Git - gitea.git/commitdiff
Fix monospace font size for .mono CSS class (#13453)
authorCirno the Strongest <1447794+CirnoT@users.noreply.github.com>
Sat, 7 Nov 2020 12:54:38 +0000 (13:54 +0100)
committerGitHub <noreply@github.com>
Sat, 7 Nov 2020 12:54:38 +0000 (14:54 +0200)
web_src/less/helpers.less

index b62ce3494b81df71ff5943a827317591a9dd12f2..0fc5d573fb441600430ca59555959ebccc4a94b9 100644 (file)
@@ -4,7 +4,7 @@
 .js { justify-content: flex-start; }
 .je { justify-content: flex-end; }
 .sb { justify-content: space-between; }
-.mono { font-family: var(--fonts-monospace); }
+.mono { font-family: var(--fonts-monospace); font-size: .9em; /* compensate for monospace fonts being usually slighty larger */ }
 .rounded { border-radius: var(--border-radius) !important; }
 .word-break { word-wrap: break-word; word-break: break-all; }