git-repo-styles

Design documents for git.pablopie.xyz ✏️

Commit
7bcf42cc2ded352dd4c11c2631ef74d1393ccd33
Parent
7dcdf707fe854ef5e1d0fc93f87308cac6137fa7
Author
Pablo <pablo-escobar@riseup.net>
Date

Fixed the padding of code blocks

We should use the margins of the inner pre tag instead of the padding of the outer div

Diffstat

1 file changed, 2 insertions, 2 deletions

Status File Name N° Changes Insertions Deletions
Modified styles.css 4 2 2
diff --git a/styles.css b/styles.css
@@ -159,7 +159,6 @@ nav img {
 .codeblock {
   background: var(--dark-background);
   border-left: 5px solid var(--accent);
-  padding: 1em;
 
   overflow-x: scroll;
   scrollbar-width: none;
@@ -172,7 +171,8 @@ nav img {
 }
 
 .codeblock pre {
-  margin: 0;
+  margin: 1em;
+  width: min-content;
 }
 
 .line {