FEATURE Handling internal self link
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Antoine M 2025-10-14 10:46:45 +02:00
parent e486b013d3
commit e1d584fa64
2 changed files with 17 additions and 0 deletions

View File

@ -56,6 +56,19 @@ a[target='_blank'] {
} }
} }
} }
.internal-link-self-page-anchor {
&:hover {
transform: translateX(0);
}
&:after {
transform: rotate(135deg) translateX(0px);
}
&:hover:after {
transform: translateX(0px) translateY(6px) rotate(135deg);
}
}
.no-external-icon { .no-external-icon {
&:after { &:after {
@apply !hidden; @apply !hidden;

View File

@ -1,3 +1,7 @@
.wp-block-carhop-blocks-cta { .wp-block-carhop-blocks-cta {
@apply internal-link-with-icon; @apply internal-link-with-icon;
&[href^='#'] {
@apply internal-link-self-page-anchor;
}
} }