Template
Anchor link/styles.css
From Dogcraft Wiki
No edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
content: '#'; | content: '#'; | ||
float: left; | float: left; | ||
margin-left: -. | margin-left: calc(-1ch - .1ch); | ||
padding-right: . | padding-right: .1ch; | ||
-webkit-user-select: none; | -webkit-user-select: none; | ||
user-select: none; | user-select: none; |
Revision as of 00:40, 4 December 2023
a > span.anchor-visible::after {
content: '#';
float: left;
margin-left: calc(-1ch - .1ch);
padding-right: .1ch;
-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 {
opacity: 1;
}
/* templatestyles appears to lack :has() support at the moment
a:has(> span.anchor-visible) {
float:left;
}*/
This page was last modified on 4 December 2023, at 00:40. (3 months ago)