Skip to content

Commit b05d68e

Browse files
authored
Merge pull request #60 from opendevise/style-code-block-more-accurately
don't attempt to style inline code phrase inside code block
2 parents 971f3ad + 84871de commit b05d68e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/css/doc.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ h1.page + aside.toc.embedded {
565565
white-space: pre-wrap;
566566
}
567567

568-
.doc pre.highlight code,
568+
.doc pre.highlight code.hljs,
569569
.doc .listingblock pre:not(.highlight),
570570
.doc .literalblock pre {
571571
background: var(--pre-background);
@@ -575,7 +575,7 @@ h1.page + aside.toc.embedded {
575575
padding: 0.75rem;
576576
}
577577

578-
.doc pre code[data-lang]::before {
578+
.doc pre > code[data-lang]::before {
579579
color: var(--pre-annotation-font-color);
580580
}
581581

src/css/spring/asciidoctor.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@
232232
margin: 0;
233233
}
234234

235-
.doc pre.highlight code,
235+
.doc pre.highlight code.hljs,
236236
.doc .listingblock pre:not(.highlight),
237237
.doc .literalblock pre {
238238
background: var(--asciidoctor-pre-background);

0 commit comments

Comments
 (0)