Updated readme offset to use scroll-margin-top

This commit is contained in:
Chris Kankiewicz
2020-12-28 11:17:34 -07:00
parent 3dadc8a89e
commit 6cad0a0fca
2 changed files with 1 additions and 10 deletions

View File

@@ -17,12 +17,3 @@ $fa-font-path: "./webfonts";
// Additional Styles
@import "markdown.scss";
// Miscellaneous
:target::before {
content: "";
display: block;
height: 80px;
margin-top: -80px;
visibility: hidden;
}

View File

@@ -1,4 +1,4 @@
<div id="readme" class="my-4 {{ config('readmes_first') ? 'order-first' : null }}">
<div id="readme" class="my-4 {{ config('readmes_first') ? 'order-first' : null }}" style="scroll-margin-top: 6rem;">
<div class="rounded-lg overflow-hidden shadow-md">
<header class="flex items-center bg-blue-600 px-4 py-3 text-white dark:bg-purple-700">
<i class="fas fa-book fa-lg pr-3"></i> README.md