From e7faaeb12557a336f8e22d362702e641a35a56c4 Mon Sep 17 00:00:00 2001 From: Gavin King Date: Fri, 21 Nov 2025 13:37:00 +0100 Subject: [PATCH 1/3] fix ugly sidebar titles --- src/main/resources/asciidoc/css/hibernate.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/asciidoc/css/hibernate.css b/src/main/resources/asciidoc/css/hibernate.css index 1b7cf32..3c4571b 100644 --- a/src/main/resources/asciidoc/css/hibernate.css +++ b/src/main/resources/asciidoc/css/hibernate.css @@ -270,9 +270,9 @@ a { .sidebarblock { background: var(--toc-background); - border: 1px solid var(--toc-background); .content>.title { color: var(--title); + font-family: inherit; font-weight: bold; font-size: 1.35em; border-bottom: 1px solid; From eca17b5c6d4606c4e44933c7523be3272a402b80 Mon Sep 17 00:00:00 2001 From: Gavin King Date: Fri, 21 Nov 2025 14:06:02 +0100 Subject: [PATCH 2/3] make code samples more readable by: - increasing font size (Inconsolata is very small) - lightening the background color --- src/main/resources/asciidoc/css/hibernate.css | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/resources/asciidoc/css/hibernate.css b/src/main/resources/asciidoc/css/hibernate.css index 3c4571b..a8cefbf 100644 --- a/src/main/resources/asciidoc/css/hibernate.css +++ b/src/main/resources/asciidoc/css/hibernate.css @@ -27,7 +27,7 @@ --highlight: #bcae79; --link: #115264; --toc-background: #f3f4f6; - --inline-code-background: #f3f4f6; + --inline-code-background: #f0f8ff7f; --inline-code-text: #00647e; --admonition-icon-shadow: rgba(0, 0, 0, .5); @@ -53,7 +53,7 @@ --admonition-tip-bg: #f7fff9; --admonition-tip: #516c57; - --code-background: #f3f4f6; + --code-background: #f0f8ff7f; --code-text: #1f2937; --code-string: #008201; --code-keyword: #3c529a; @@ -67,6 +67,7 @@ --regular-font: 'Noto Serif', 'Lucida Grande', Geneva, Verdana, Arial, sans-serif; --code-font: "Inconsolata", "Droid Sans Mono", "DejaVu Sans Mono", monospace; + --code-font-size: 110%; &.dark-mode { --bg: #121820; @@ -151,6 +152,7 @@ body { code { font-family: var(--code-font); + font-size: var(--code-font-size); } #toc ul { From 2757e3c1ac033b52b3a58586d75b3081ba5cf790 Mon Sep 17 00:00:00 2001 From: marko-bekhta Date: Fri, 21 Nov 2025 17:57:57 +0100 Subject: [PATCH 3/3] Make sure that the code font size always applies there is some other "default" style that clashes with the simple code { }, hence we just use a more specific selector instead --- src/main/resources/asciidoc/css/hibernate.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/asciidoc/css/hibernate.css b/src/main/resources/asciidoc/css/hibernate.css index a8cefbf..ed87494 100644 --- a/src/main/resources/asciidoc/css/hibernate.css +++ b/src/main/resources/asciidoc/css/hibernate.css @@ -67,7 +67,7 @@ --regular-font: 'Noto Serif', 'Lucida Grande', Geneva, Verdana, Arial, sans-serif; --code-font: "Inconsolata", "Droid Sans Mono", "DejaVu Sans Mono", monospace; - --code-font-size: 110%; + --code-font-size: 1.1em; &.dark-mode { --bg: #121820; @@ -150,7 +150,7 @@ body { color: var(--text); } -code { +.content code { font-family: var(--code-font); font-size: var(--code-font-size); }