aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Bieg <[email protected]>2022-01-16 18:22:43 +0100
committerGitHub <[email protected]>2022-01-16 09:22:43 -0800
commit9e60142cc965a79aced702798966593950b000c0 (patch)
tree8ce56c79313ea8d3f421bde921b021ba2a3a6595
parent7b8f8ceffefec6c17c62d7c2629756e2ab9a7bd6 (diff)
CSS in HTML template: adjust #TOC and h1 on mobile (#7835)
-rw-r--r--data/templates/styles.html9
-rw-r--r--test/lhs-test.html9
-rw-r--r--test/lhs-test.html+lhs9
-rw-r--r--test/writer.html49
-rw-r--r--test/writer.html59
5 files changed, 45 insertions, 0 deletions
diff --git a/data/templates/styles.html b/data/templates/styles.html
index 970adf2b8..d63d0ac67 100644
--- a/data/templates/styles.html
+++ b/data/templates/styles.html
@@ -23,6 +23,9 @@ body {
font-size: 0.9em;
padding: 1em;
}
+ h1 {
+ font-size: 1.8em;
+ }
}
@media print {
body {
@@ -148,6 +151,12 @@ header {
#TOC li {
list-style: none;
}
+#TOC ul {
+ padding-left: 1.3em;
+}
+#TOC > ul {
+ padding-left: 0;
+}
#TOC a:not(:hover) {
text-decoration: none;
}
diff --git a/test/lhs-test.html b/test/lhs-test.html
index be06d31c9..754b25e1f 100644
--- a/test/lhs-test.html
+++ b/test/lhs-test.html
@@ -30,6 +30,9 @@
font-size: 0.9em;
padding: 1em;
}
+ h1 {
+ font-size: 1.8em;
+ }
}
@media print {
body {
@@ -134,6 +137,12 @@
#TOC li {
list-style: none;
}
+ #TOC ul {
+ padding-left: 1.3em;
+ }
+ #TOC > ul {
+ padding-left: 0;
+ }
#TOC a:not(:hover) {
text-decoration: none;
}
diff --git a/test/lhs-test.html+lhs b/test/lhs-test.html+lhs
index 4b37aca53..7198397d8 100644
--- a/test/lhs-test.html+lhs
+++ b/test/lhs-test.html+lhs
@@ -30,6 +30,9 @@
font-size: 0.9em;
padding: 1em;
}
+ h1 {
+ font-size: 1.8em;
+ }
}
@media print {
body {
@@ -134,6 +137,12 @@
#TOC li {
list-style: none;
}
+ #TOC ul {
+ padding-left: 1.3em;
+ }
+ #TOC > ul {
+ padding-left: 0;
+ }
#TOC a:not(:hover) {
text-decoration: none;
}
diff --git a/test/writer.html4 b/test/writer.html4
index c8ea04e98..3e3fa9491 100644
--- a/test/writer.html4
+++ b/test/writer.html4
@@ -33,6 +33,9 @@
font-size: 0.9em;
padding: 1em;
}
+ h1 {
+ font-size: 1.8em;
+ }
}
@media print {
body {
@@ -137,6 +140,12 @@
#TOC li {
list-style: none;
}
+ #TOC ul {
+ padding-left: 1.3em;
+ }
+ #TOC > ul {
+ padding-left: 0;
+ }
#TOC a:not(:hover) {
text-decoration: none;
}
diff --git a/test/writer.html5 b/test/writer.html5
index 988fc1da5..23fda990f 100644
--- a/test/writer.html5
+++ b/test/writer.html5
@@ -33,6 +33,9 @@
font-size: 0.9em;
padding: 1em;
}
+ h1 {
+ font-size: 1.8em;
+ }
}
@media print {
body {
@@ -137,6 +140,12 @@
#TOC li {
list-style: none;
}
+ #TOC ul {
+ padding-left: 1.3em;
+ }
+ #TOC > ul {
+ padding-left: 0;
+ }
#TOC a:not(:hover) {
text-decoration: none;
}