From d7ea1174ff3ef52ac300cd5cab51c854fea8974e Mon Sep 17 00:00:00 2001 From: Edward Loveall Date: Tue, 11 Oct 2022 20:33:18 -0400 Subject: [PATCH] Updates to pre/code config This ensures that code blocks look good at all screen sizes. --- CHANGELOG | 4 ++++ src/css/app.css | 24 +++++++++++------------- src/version.cr | 2 +- 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index fa6ab1d..a5e99fb 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +2022-10-11 + +* Don't clip gist contents (CSS fix) + 2022-09-24 * Replace Redirector extension with LibRedirect diff --git a/src/css/app.css b/src/css/app.css index 06f3611..49f1b45 100644 --- a/src/css/app.css +++ b/src/css/app.css @@ -7,17 +7,22 @@ p.meta { line-height: 1; } -.gist { - width: 55%; +pre { + background-color: rgba(127, 127, 127, 0.1); + margin-right: 1em; + padding: 1em; + padding-left: 2em; + overflow-x: scroll; } -.gist > code { - width: 100% !important; +pre > code { + margin-left: 0; + width: 100%; } @media (max-width: 760px) { - .gist { - width: 100%; + pre { + margin-right: 0; } } @@ -38,10 +43,3 @@ figure iframe { footer p span { margin-right: 1em; } - -pre { - background-color: rgba(127, 127, 127, 0.1); - padding: 1em; - overflow-x: scroll; - width: 100%; -} diff --git a/src/version.cr b/src/version.cr index a569a61..43e8bb5 100644 --- a/src/version.cr +++ b/src/version.cr @@ -1,3 +1,3 @@ module Scribe - VERSION = "2022-09-24" + VERSION = "2022-10-11" end