Skip to content

Commit

Permalink
specify the links which include # but not at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongao97 committed Feb 4, 2024
1 parent 50499cd commit 36877f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion magicbook/stylesheets/components/typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ a {
color: inherit;

// Internal links
&:not([href^='http']):not([href$='#'])::after {
// for the ones include '#' but not at the end
&:not([href^='http'])[href*='#']:not([href$='#'])::after {
content: ' (see page ' target-counter(attr(href), page) ')';
}

Expand Down

0 comments on commit 36877f6

Please sign in to comment.