Skip to content

Commit

Permalink
docs: Link design
Browse files Browse the repository at this point in the history
  • Loading branch information
areknawo committed Oct 9, 2023
1 parent 0b48cf2 commit 2510109
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/docs/src/components/fragments/on-this-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const OnThisPage: Component<OnThisPageProps> = (props) => {
const handleClick = (event: MouseEvent): void => {
const target = event.target as HTMLElement;

if (target.matches("h1, h2, h3, h4, h5, h6")) {
if (target.matches("h2, h3")) {
const { id } = target;

if (id) {
Expand Down
5 changes: 4 additions & 1 deletion apps/docs/src/styles/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ kbd {
}

font-kerning: none;
:where(h1, h2, h3, h4, h5, h6):not(:where(.not-prose, .not-prose *)) {
:where(h2, h3):not(:where(.not-prose, .not-prose *)) {
@apply m-0 relative hover:cursor-pointer;
&::before {
@apply hidden md:block absolute pr-6 -left-6 transform scale-90 text-gray-500 dark:text-gray-400 opacity-0;
Expand All @@ -112,6 +112,9 @@ kbd {
@apply opacity-100;
}
}
h3:not(:where(.not-prose, .not-prose *))::before {
@apply pr-5 -left-5;
}

:where(ul p, ol p):not(:where(.not-prose, .not-prose *)) {
@apply m-0;
Expand Down

0 comments on commit 2510109

Please sign in to comment.