Skip to content

Commit

Permalink
Improve highlighting of active definition list targets
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Jan 2, 2022
1 parent 576b68e commit 5d95e86
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/furo/assets/styles/content/_api.sass
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.
// Colorize the elements
> dt
color: var(--color-api-overall)
&:target
background-color: var(--color-api-highlight-on-target)

.sig
font-weight: bold
Expand Down
3 changes: 3 additions & 0 deletions src/furo/assets/styles/content/_permalinks.sass
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ h5,
h6
:target > &:first-child > .headerlink
visibility: visible

dt:target
background-color: var(--color-highlight-on-target)
4 changes: 2 additions & 2 deletions src/furo/assets/styles/variables/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
--color-api-pre-name: var(--color-problematic);
--color-api-paren: var(--color-foreground-secondary);
--color-api-keyword: var(--color-foreground-primary);
--color-api-highlight-on-target: #ffffcc;
--color-highlight-on-target: #ffffcc;

// Inline code background
--color-inline-code-background: var(--color-background-secondary);
Expand Down Expand Up @@ -156,7 +156,7 @@

// API documentation
--color-api-keyword: var(--color-foreground-secondary);
--color-api-highlight-on-target: #333300;
--color-highlight-on-target: #333300;

// Admonitions
--color-admonition-background: #18181a;
Expand Down

0 comments on commit 5d95e86

Please sign in to comment.