Skip to content

Commit

Permalink
Optional css to highlight targeted objects
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmarwitz committed Aug 14, 2024
1 parent c98eb2b commit eebda36
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/styles/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
Allows to highlight the specific entry that is jumped to when clicking on an internal link.
*/
:target {
border: 1px solid red;
border-radius: 5px;
}
5 changes: 5 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ theme:
icon:
repo: fontawesome/brands/github-alt
edit: material/pencil

# For the optional feature of highlighting selected element after jumping to it
extra_css:
- 'styles/custom.css'

repo_name: quantco/multiregex
repo_url: https://github.com/quantco/multiregex
edit_uri: edit/main/docs/
Expand Down

0 comments on commit eebda36

Please sign in to comment.