From 76007c07dee8500a6ce993be2a29ae1bb550bb22 Mon Sep 17 00:00:00 2001 From: Jackson Chen Date: Sun, 16 Apr 2023 20:40:16 +0200 Subject: Make code blocks scrollable in case of overflow Fixes #263 References: https://github.com/cstate/cstate/issues/263 --- layouts/partials/meta.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'layouts/partials') diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index c8381a9..577f4a0 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -107,6 +107,10 @@ padding: 16px; } + .contain pre { + overflow-x: scroll; + } + .contain--more { max-width: 680px; } .center { text-align: center; } -- cgit v1.2.3-70-g09d2 From 91013f06b2b60b32f24129c58e2dba42ccc140ee Mon Sep 17 00:00:00 2001 From: Mantas VilĨinskas Date: Sat, 22 Apr 2023 14:16:46 +0300 Subject: specify class --- layouts/partials/meta.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/partials') diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index 577f4a0..bb28846 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -107,7 +107,7 @@ padding: 16px; } - .contain pre { + .markdown pre { overflow-x: scroll; } -- cgit v1.2.3-70-g09d2