Skip to content

Commit

Permalink
Fix styling of [source] links
Browse files Browse the repository at this point in the history
Now that the `.viewcode-link` selector is being used, it's not
necessary to try to use `+` to find an adjacent element. The prior
revision dropped this, but did not remove the selectors for elements
neighboring the viewcode-link, resulting in the style not being
applied.
  • Loading branch information
sirosen committed Jun 8, 2021
1 parent 61a2f5b commit 56dde13
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/furo/assets/styles/content/_api.sass
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ dl.exception
padding-right: 0.25rem

// adjust the size of the [source] link on the right.
code.sig-name.descname, // final part of named object.
span.sig-paren, // final ')' on a method definition
> span.pre // return annotation, on a function definition
a.reference.internal
.viewcode-link
width: 3.5rem
font-size: var(--font-size--small)
Expand Down

0 comments on commit 56dde13

Please sign in to comment.