Move zen styles anchor to components and form (in)valid to form styles.
This commit is contained in:
parent
90e45f224a
commit
3331893b76
1 changed files with 76 additions and 67 deletions
35
assets/sass/components/anchor/_anchor.scss
Normal file
35
assets/sass/components/anchor/_anchor.scss
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
// Anchor
|
||||
//
|
||||
// For heading anchor links. See render-heading.html.example.
|
||||
|
||||
.anchor,
|
||||
%anchor {
|
||||
--anchor-gap: .5rem;
|
||||
--anchor-opacity: .4;
|
||||
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
align-items: baseline;
|
||||
gap: var(--anchor-gap);
|
||||
|
||||
a {
|
||||
opacity: 0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&:focus-visible,
|
||||
&:hover {
|
||||
a {
|
||||
opacity: var(--anchor-opacity);
|
||||
|
||||
&:focus-visible,
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
p:has(+ &) {
|
||||
margin-block-end: 0;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue