FEATURE Handling internal self link
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e486b013d3
commit
e1d584fa64
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user