Skip to content

Commit

Permalink
Tweak length and sizing of API source links
Browse files Browse the repository at this point in the history
This ensures that this link has ample space around it for `.headerlink`
elements.
  • Loading branch information
pradyunsg committed Jan 29, 2024
1 parent 744b343 commit c718f86
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/furo/_demo_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,17 @@ def get_random_integer(self) -> int:
def get_random_float(self) -> float:
"""Return a random float."""
return float(self.seed)


def annoying_function_name_length_aa(one: int, two: int) -> str:
"""A function that adds two numbers as strings.
Because I needed a placeholder function."""
return str(one) + str(two)


def annoying_function_name_length_aaa(one: int, two: int) -> str:
"""A function that adds two numbers as strings.
Because I needed a placeholder function."""
return str(one) + str(two)
2 changes: 1 addition & 1 deletion src/furo/assets/styles/content/_api.sass
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.
a.reference
.viewcode-link
font-weight: normal
width: 3.5rem
width: 4.25rem

em.property
font-style: normal
Expand Down

0 comments on commit c718f86

Please sign in to comment.