Template
Anchor link/styles.css
From Dogcraft Wiki
No edit summary |
mNo edit summary |
||
Line 14: | Line 14: | ||
a:target > span.anchor-visible::after { | a:target > span.anchor-visible::after { | ||
opacity: 1; | opacity: 1; | ||
} | |||
/* templatestyles appears to lack :has() support at the moment | |||
a:has(> span.anchor-visible) { | |||
float:left; | |||
}*/ | |||
/* when firefox adds :has() support this won't be necessary */ | |||
a[href^='#'] { | |||
float:left; | |||
} | } |
Revision as of 21:21, 3 December 2023
a > span.anchor-visible::after {
content: '#';
float: left;
margin-left: -.87em;
padding-right: .23em;
-webkit-user-select: none;
user-select: none;
opacity: 0;
transition: color .25s,opacity .25s;
}
:hover > a > span.anchor-visible::after,
a:focus > span.anchor-visible::after,
a:target > span.anchor-visible::after {
opacity: 1;
}
/* templatestyles appears to lack :has() support at the moment
a:has(> span.anchor-visible) {
float:left;
}*/
/* when firefox adds :has() support this won't be necessary */
a[href^='#'] {
float:left;
}
This page was last modified on 3 December 2023, at 21:21. (3 months ago)