From 7604b8aa4c7f37bf729ce8123ffe5f7e77babd8b Mon Sep 17 00:00:00 2001 From: Raphael Pour Date: Mon, 15 Jan 2024 15:05:21 +0100 Subject: [PATCH 1/3] templates: drop max-width in code blocks --- cmd/post.tmpl | 2 +- cmd/static.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/post.tmpl b/cmd/post.tmpl index 1b44a94..c54001b 100644 --- a/cmd/post.tmpl +++ b/cmd/post.tmpl @@ -69,7 +69,7 @@ /* Include */ .chroma .cpf { font-weight: bold } /* CODE STYLES */ - .chroma { min-width: 20ex; max-width: 100ex; padding: 10px 10px 10px 5px; background-color: #EEEEEE; border-radius: 3px; } + .chroma { min-width: 20ex; padding: 10px 10px 10px 5px; background-color: #EEEEEE; border-radius: 3px; } diff --git a/cmd/static.tmpl b/cmd/static.tmpl index a600e2e..c6abe87 100644 --- a/cmd/static.tmpl +++ b/cmd/static.tmpl @@ -63,7 +63,7 @@ /* Include */ .chroma .cpf { font-weight: bold } /* CODE STYLES */ - .chroma { min-width: 20ex; max-width: 100ex; padding: 10px 10px 10px 5px; background-color: #EEEEEE; border-radius: 3px; } + .chroma { min-width: 20ex; padding: 10px 10px 10px 5px; background-color: #EEEEEE; border-radius: 3px; } From 5b11c2b38f82f322796d4a1e0260c98677576b02 Mon Sep 17 00:00:00 2001 From: Raphael Pour Date: Mon, 15 Jan 2024 23:22:19 +0100 Subject: [PATCH 2/3] templates: increase code block left padding Give the code more air to breath. --- cmd/post.tmpl | 2 +- cmd/static.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/post.tmpl b/cmd/post.tmpl index c54001b..658dae6 100644 --- a/cmd/post.tmpl +++ b/cmd/post.tmpl @@ -69,7 +69,7 @@ /* Include */ .chroma .cpf { font-weight: bold } /* CODE STYLES */ - .chroma { min-width: 20ex; padding: 10px 10px 10px 5px; background-color: #EEEEEE; border-radius: 3px; } + .chroma { min-width: 20ex; padding: 10px 10px 10px 10px; background-color: #EEEEEE; border-radius: 3px; } diff --git a/cmd/static.tmpl b/cmd/static.tmpl index c6abe87..adcc4b2 100644 --- a/cmd/static.tmpl +++ b/cmd/static.tmpl @@ -63,7 +63,7 @@ /* Include */ .chroma .cpf { font-weight: bold } /* CODE STYLES */ - .chroma { min-width: 20ex; padding: 10px 10px 10px 5px; background-color: #EEEEEE; border-radius: 3px; } + .chroma { min-width: 20ex; padding: 10px 10px 10px 10px; background-color: #EEEEEE; border-radius: 3px; } From 3dfccfcfb8a90762ce3e414dc44e65b867fe59cb Mon Sep 17 00:00:00 2001 From: Raphael Pour Date: Mon, 15 Jan 2024 23:28:31 +0100 Subject: [PATCH 3/3] Changelog: update --- CHANGELOG.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 73f9442..e90d310 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,11 @@ # For next release * **Raphael Pour** - * static: add new centric style with new font Roboto Slab - * templates: add slider if code block overflows + * templates: + * static: add new centric style with new font Roboto Slab + * code blocks: + * fix width + * fix padding + * add slider on overflow *Not released yet*