pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/templates templates: normalize font size in CSS
details: https://anonhg.NetBSD.org/pkgsrc/rev/3ff11dd398d9
branches: trunk
changeset: 447571:3ff11dd398d9
user: nia <nia%pkgsrc.org@localhost>
date: Mon Feb 22 06:42:14 2021 +0000
description:
templates: normalize font size in CSS
My browser (Firefox) renders monospace and non-monospace text at different
sizes, which causes problems if they are mixed.
diffstat:
templates/main.css | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diffs (32 lines):
diff -r a46102ed753e -r 3ff11dd398d9 templates/main.css
--- a/templates/main.css Mon Feb 22 06:39:00 2021 +0000
+++ b/templates/main.css Mon Feb 22 06:42:14 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.css,v 1.2 2021/02/22 05:10:18 nia Exp $ */
+/* $NetBSD: main.css,v 1.3 2021/02/22 06:42:14 nia Exp $ */
body {
font-family: sans-serif;
@@ -6,6 +6,22 @@
color: #000;
}
+body, pre, code, samp {
+ font-size: 16px;
+}
+
+h1 {
+ font-size: 160%;
+}
+
+h2 {
+ font-size: 140%;
+}
+
+h3 {
+ font-size: 120%;
+}
+
a:link {
color: #d43900;
text-decoration: none;
Home |
Main Index |
Thread Index |
Old Index