2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-06-15 11:35:28 +00:00

offset links by header

This commit is contained in:
2021-11-07 16:09:17 +01:00
parent f72cf5c18f
commit b28ad32262
2 changed files with 9 additions and 1 deletions

View File

@ -2,7 +2,8 @@
<div class="container px-5 py-24 mx-auto">
<div class="flex flex-wrap w-full mb-4">
<div class="lg:w-1/2 w-full mb-6 lg:mb-0">
<h1 class="sm:text-3xl text-2xl font-medium title-font mb-2 cm-lgt-txt" id="{{ include.data.header.ref }}">{{ include.data.header.title }}</h1>
<a class="anchor" id="{{ include.data.header.ref }}"></a>
<h1 class="sm:text-3xl text-2xl font-medium title-font mb-2 cm-lgt-txt">{{ include.data.header.title }}</h1>
<div class="h-1 w-20 bg-secondary rounded"></div>
</div>
<p class="lg:w-1/2 w-full leading-relaxed text-gray-500">{{ include.data.header.text }}</p>

View File

@ -24,3 +24,10 @@
@apply text-gray-900
}
}
a.anchor {
display: block;
position: relative;
top: -72px;
visibility: hidden;
}