Skip to content

Commit a09e708

Browse files
committed
Fix h3 with links in admonition, closes #1715
1 parent 09206d2 commit a09e708

File tree

6 files changed

+25
-18
lines changed

6 files changed

+25
-18
lines changed

assets/css/content/admonition.css

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
border-left: 0;
55
}
66

7-
.content-inner blockquote:is(.warning, .error, .info, .neutral, .tip) :is(a, a:visited) {
8-
color: var(--black);
9-
}
10-
117
.content-inner blockquote.warning {
128
background-color: var(--warningBackground);
139
}
@@ -91,12 +87,24 @@
9187
color: var(--tipHeading);
9288
}
9389

90+
.content-inner blockquote :is(h3, h4):is(.warning, .error, .info, .neutral, .tip) code {
91+
margin: 0 0.5ch;
92+
}
93+
9494
.content-inner blockquote:is(.warning, .error, .info, .neutral, .tip) code {
9595
background-color: var(--inlineCodeBackground);
9696
border: 1px solid var(--inlineCodeBorder);
9797
color: var(--black);
9898
}
9999

100+
.content-inner blockquote:is(.warning, .error, .info, .neutral, .tip) :is(a, a:visited) {
101+
color: var(--black);
102+
}
103+
104+
.content-inner blockquote :is(h3, h4):is(.warning, .error, .info, .neutral, .tip) :is(a, a:visited) {
105+
color: inherit;
106+
}
107+
100108
@media screen and (max-width: 768px) {
101109
.content-inner blockquote:is(.warning, .error, .info, .neutral, .tip) {
102110
margin-left: calc(-1 * var(--content-gutter));

assets/css/content/general.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@
132132
}
133133

134134
.content-inner .section-heading a {
135-
/* We don't want this overridden by code tags */
136-
color: var(--links) !important;
135+
color: var(--links);
137136
text-decoration: none;
138137
display: inline-block;
139138
}

formatters/html/dist/html-elixir-EUM44Q3J.css

Lines changed: 0 additions & 6 deletions
This file was deleted.

formatters/html/dist/html-elixir-NCBLFWZ2.css

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

formatters/html/dist/html-erlang-I5YZC5ZN.css

Lines changed: 0 additions & 6 deletions
This file was deleted.

formatters/html/dist/html-erlang-WO2ZVLIP.css

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)