Skip to content

Commit

Permalink
fixed css for typing.overload functions (#319)
Browse files Browse the repository at this point in the history
fixes #183 
fixes #21 

I tested this as best I could running locally and validating the changes
I made with the inspect tool in production. However I can't be 100% sure
as our local build doesn't currently have methods that a) use the
`typing.overload` decorator and b) use internal links in their
arguments.

testing in the browser using the inspect tools on live
https://qiskit.org/documentation/stubs/qiskit.circuit.QuantumCircuit.if_test.html#qiskit.circuit.QuantumCircuit.if_test
<img width="1142" alt="Screenshot 2023-05-11 at 2 34 41 PM"
src="https://github.com/Qiskit/qiskit_sphinx_theme/assets/23662430/fbee8a50-c081-4a1f-a68f-484c7eff7b63">
  • Loading branch information
javabster committed May 11, 2023
1 parent c7714ee commit e8c3ae0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions qiskit_sphinx_theme/pytorch_base/static/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -10791,10 +10791,7 @@ article.pytorch-article .function dt a,
article.pytorch-article .attribute dt a,
article.pytorch-article .class .attribute dt a,
article.pytorch-article .class dt a {
position: absolute;
right: 30px;
padding-right: 0;
top: 50%;
-webkit-transform: perspective(1px) translateY(-50%);
transform: perspective(1px) translateY(-50%);
}
Expand Down Expand Up @@ -10839,6 +10836,10 @@ article.pytorch-article .class .viewcode-link {
letter-spacing: 0;
line-height: 1.5rem;
text-transform: uppercase;
position: absolute;
right: 10px;
padding-right: 0;
top: 10%;
}
article.pytorch-article .method dd,
article.pytorch-article .staticmethod dd,
Expand Down

0 comments on commit e8c3ae0

Please sign in to comment.