Welcome to little lamb

Code » qmdoc » commit 07bbbc7

Fix CSS for browser w/out display:grid support

author Olivier Brunel
2023-01-14 20:05:28 UTC
committer Olivier Brunel
2023-01-14 20:05:28 UTC
parent 4c0dc47b1b2b9abfd890797f3bcde5c3c5e81e25

Fix CSS for browser w/out display:grid support

css/struct.css +6 -5

diff --git a/css/struct.css b/css/struct.css
index 5cb36ae..8fe5ed2 100644
--- a/css/struct.css
+++ b/css/struct.css
@@ -30,8 +30,8 @@ main section.content header.manpage {
 }
 main section.content header.manpage div,
 main section.content footer.manpage div {
-    width: 100%;
-    position: absolute;
+    width: 33%;
+    float: left;
 }
 main section.content header.manpage div.middle,
 main section.content footer.manpage div.middle {
@@ -75,7 +75,7 @@ main section.content footer.manpage {
     main section.content header.manpage div,
     main section.content footer.manpage div {
         width: inherit;
-        position: inherit;
+        float: inherit;
     }
 }
 header.toc section {
@@ -99,7 +99,7 @@ header.toc nav {
     padding: 8px;
     padding-bottom: 42px; /* 23 (section h1 margin-top) + 19 */
     min-height: calc(100% - 88px);
-    overflow: hidden scroll;
+    overflow: hidden;
     overscroll-behavior-y: contain;
 }
 header.toc nav li a {
@@ -156,7 +156,8 @@ section.content {
     display: block;
     padding: 23px 42px 0 42px;
     min-height: 100%;
-    overflow: hidden scroll;
+    overflow-x: hidden;
+    overflow-y: scroll;
 }
 main p {
     text-align: justify;