Skip to content

Commit

Permalink
Fix regression of code links being blue (Cherry-pick of #336) (#337)
Browse files Browse the repository at this point in the history
Closes #335.

I git bisected this to
#292. Before, we
weren't actually fully running `theme.js` because JavaScript errors
prevented the file from fully executing. @coruscating identified that
before the regression, the HTML elements did not have the class
`.has-code`, but after they did. I suspect `theme.js` is responsible for
that (but I couldn't figure out how!)

Either way, these rules about `.has-code` are bad. We should not be
setting links to be blue.
  • Loading branch information
Eric-Arellano authored May 18, 2023
1 parent aaea361 commit 43610d5
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions qiskit_sphinx_theme/pytorch_base/static/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -9859,11 +9859,6 @@ a:visited code.highlighter-rouge,
a:hover code.highlighter-rouge {
color: #4974D1;
}
a:link.has-code,
a:visited.has-code,
a:hover.has-code {
color: #4974D1;
}

p code,
h1 code,
Expand Down Expand Up @@ -10597,17 +10592,6 @@ a.headerlink:hover{
color: var(--purple) !important;
}

a:link.has-code,
a:hover.has-code,
a:visited.has-code {
color: #4974D1;
}
a:link.has-code span,
a:hover.has-code span,
a:visited.has-code span {
color: #4974D1;
}

article.pytorch-article ul,
article.pytorch-article ol {
padding-left: 1.0rem;
Expand Down

0 comments on commit 43610d5

Please sign in to comment.