Skip to content

Commit d7c2e39

Browse files
committed
Make <code> within <a></a> visually distinct
Closes gh-36
1 parent 74b665a commit d7c2e39

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

src/main/css/asciidoctor.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,12 @@
215215
padding: 0.125em 0.25em;
216216
}
217217

218+
.doc p a code,
219+
.doc thead a code,
220+
.doc .admonitionblock a code {
221+
color: var(--asciidoctor-code-link-font-color);
222+
}
223+
218224
.doc code,
219225
.doc pre {
220226
hyphens: none;

src/main/css/settings.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
--asciidoctor-hover-link-font-color: var(--hover-link-font-color);
7171
--asciidoctor-unresolved-link-font-color: #d32f2f;
7272
--asciidoctor-code-font-color: var(--asciidoctor-font-color);
73+
--asciidoctor-code-link-font-color: var(--link-font-color);
7374
--asciidoctor-code-background: rgba(27, 31, 35, 0.05);
7475
--asciidoctor-code-data-lang-color: #999;
7576
--asciidoctor-table-border-color: var(--asciidoctor-panel-border-color);

src/test/asciidoc/standard.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,20 @@ https://spring.io[Go to spring.io] to learn about Spring.
124124

125125
https://github.com/asciidoctor[Asciidoctor is great!]
126126

127+
Of course, you can also have https://spring.io[`monospaced links`].
128+
129+
And in tables:
130+
131+
.Spring Projects
132+
|===
133+
|Link
134+
135+
|https://spring.io
136+
137+
|https://spring.io[`monospaced links`]
138+
|===
139+
140+
127141

128142
== Lists
129143

0 commit comments

Comments
 (0)