Skip to content

Commit 7c6af8a

Browse files
CSS word wrap for code text (#105)
* update css for code * dont let code styles override code blocks
1 parent 565311f commit 7c6af8a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/css/asciidoc/doc.css

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,16 +148,14 @@
148148
font-style: normal;
149149
}
150150

151-
.doc p code,
152-
.doc thead code,
153-
.doc summary.title code,
154-
.doc .colist > table code {
151+
.doc code:not(.hljs) {
155152
color: var(--ds-text-secondary);
156153
background: var(--ds-neutral-soft-bg);
157154
border: 1px solid var(--ds-divider);
158155
border-radius: calc(6 / var(--rem-base) * 1rem);
159156
font-size: 0.95em;
160157
padding: 0.125em 0.25em;
158+
word-break: break-word;
161159
}
162160

163161
.doc code,
@@ -802,7 +800,7 @@
802800

803801
.doc td.hdlist1 {
804802
font-weight: 600;
805-
padding-right: var(--ds-space-h);
803+
padding-right: var(--ds-space-2);
806804
color: var(--ds-text-primary);
807805
}
808806

0 commit comments

Comments
 (0)