content/static: pad unit page anchor link targets
Adds spacing above anchor link targets on the details page to
account for sticky header.
Trust: Jamal Carvalho
Run-TryBot: Jamal Carvalho
display: block;
}
}
+.UnitDetails-content :target::before {
+ content: '';
+ display: block;
+ position: relative;
+ width: 0;
+ height: calc(var(--header-height) + 3.75rem);
+ margin-top: calc(
+ -1 * (var(--header-height) + 3.75rem)
+ ); /* Move hidden anchor content for deep linking with a sticky header. */
+}
+@media only screen and (min-width: 52rem) {
+ .UnitDetails-content :target::before {
+ height: calc(var(--header-height) + 0.75rem);
+ margin-top: calc(
+ -1 * (var(--header-height) + 0.75rem)
+ ); /* Move hidden anchor content for deep linking with a sticky header. */
+ }
+}
