Skip to content

Commit

Permalink
CSS word wrap for code text (#105)
Browse files Browse the repository at this point in the history
* update css for code

* dont let code styles override code blocks
  • Loading branch information
colegoldsmith authored Mar 12, 2024
1 parent 565311f commit 7c6af8a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/css/asciidoc/doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 7c6af8a

Please sign in to comment.