Welcome to little lamb

Code » qmdoc » commit 0bfd057

struct.css: Tweak pre/code block style..

author Olivier Brunel
2023-01-12 19:51:40 UTC
committer Olivier Brunel
2023-01-12 19:51:40 UTC
parent 369cda72cb411dc823eccfaeee3fa01e9034b597

struct.css: Tweak pre/code block style..

..notably when used inside a box we couldn't tell it was inside it, and
it looked as if not. Fixed.

css/struct.css +6 -2

diff --git a/css/struct.css b/css/struct.css
index a3d38e9..be41e1b 100644
--- a/css/struct.css
+++ b/css/struct.css
@@ -224,6 +224,10 @@ main pre code {
     margin: 12px 12px 0px 2px;
     overflow: hidden;
 }
+main div.box pre {
+    width: 90%;
+    margin: auto;
+}
 main section h1 {
     text-transform: uppercase;
     padding-top: 23px;
@@ -279,8 +283,8 @@ main section ul, main section ol {
     padding-left: 42px;
 }
 main div.box {
-    margin: 0px;
-    padding: 0px;
+    margin: 8px 0 15px 0;
+    padding: 0 0 5px 0;
     line-height: 15px;
 }
 main div.box > :first-child {