From 02abb0154935c7525f17429a420bb43a261ea3bb Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 26 Jul 2025 16:15:51 +0200 Subject: code listing post: Fix code listing, remove unnecessary part --- content/blog/css-only-code-blocks/index.rst | 8 -------- themes/conspiracy/assets/css/style.css | 16 ++++++++-------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/content/blog/css-only-code-blocks/index.rst b/content/blog/css-only-code-blocks/index.rst index 666af9f..18f3037 100644 --- a/content/blog/css-only-code-blocks/index.rst +++ b/content/blog/css-only-code-blocks/index.rst @@ -105,14 +105,6 @@ for the pygments tokens. counter-reset: lineno; } - footer { - margin-top: 30px; - align-self: center; - margin-bottom: 10px; - text-align: center; - padding: 5px 25px 5px 25px; - } - .code .hll {} /* Following are about 50 lines that define the styling of each kind of pygments syntax highlight token. These lines all look like the following: */ diff --git a/themes/conspiracy/assets/css/style.css b/themes/conspiracy/assets/css/style.css index 2d39039..70a93b1 100644 --- a/themes/conspiracy/assets/css/style.css +++ b/themes/conspiracy/assets/css/style.css @@ -541,14 +541,6 @@ img:hover { counter-reset: lineno; } -footer { - margin-top: 30px; - align-self: center; - margin-bottom: 10px; - text-align: center; - padding: 5px 25px 5px 25px; -} - /* Token styling rules for syntax highlighting */ .code .hll {} .code .c { color: var(--c-text); font-weight: 400 } /* Comment */ @@ -607,6 +599,14 @@ footer { .code .ss { color: var(--c-text); font-weight: 600 } /* Literal.String.Symbol */ .code .il { color: var(--c-text); font-weight: 600 } /* Literal.Number.Integer.Long */ +footer { + margin-top: 30px; + align-self: center; + margin-bottom: 10px; + text-align: center; + padding: 5px 25px 5px 25px; +} + @media (max-width: 40em) { nav > div { flex-grow: 1; -- cgit