From 7c6af8a0577e51cbd3a08405ed7afe0c6171c127 Mon Sep 17 00:00:00 2001 From: Cole Goldsmith Date: Tue, 12 Mar 2024 10:45:35 -0500 Subject: [PATCH] CSS word wrap for code text (#105) * update css for code * dont let code styles override code blocks --- src/css/asciidoc/doc.css | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/css/asciidoc/doc.css b/src/css/asciidoc/doc.css index 5c891d96..0a93daf1 100644 --- a/src/css/asciidoc/doc.css +++ b/src/css/asciidoc/doc.css @@ -148,16 +148,14 @@ font-style: normal; } - .doc p code, - .doc thead code, - .doc summary.title code, - .doc .colist > table code { + .doc code:not(.hljs) { color: var(--ds-text-secondary); background: var(--ds-neutral-soft-bg); border: 1px solid var(--ds-divider); border-radius: calc(6 / var(--rem-base) * 1rem); font-size: 0.95em; padding: 0.125em 0.25em; + word-break: break-word; } .doc code, @@ -802,7 +800,7 @@ .doc td.hdlist1 { font-weight: 600; - padding-right: var(--ds-space-h); + padding-right: var(--ds-space-2); color: var(--ds-text-primary); }