Remove heading wrapper top margin if it is the first element in the container
This commit is contained in:
parent
1845831488
commit
dca7e8045c
|
@ -2,13 +2,14 @@
|
||||||
.heading-wrapper {
|
.heading-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 0.3em;
|
gap: 0.3em;
|
||||||
margin-top: 1.8em;
|
|
||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
* + .heading-wrapper {
|
||||||
|
margin-top: 1.8em;
|
||||||
|
}
|
||||||
|
|
||||||
.heading-anchor {
|
.heading-anchor {
|
||||||
line-height: 1;
|
|
||||||
opacity: 0.8;
|
|
||||||
order: -1;
|
order: -1;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
@ -16,7 +17,6 @@
|
||||||
.heading-anchor:hover {
|
.heading-anchor:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
text-underline-offset: 0.1em;
|
text-underline-offset: 0.1em;
|
||||||
opacity: 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.heading-anchor:focus {
|
.heading-anchor:focus {
|
||||||
|
|
Loading…
Reference in New Issue