fix: minor style improvements

main
Parth Shastri 2022-10-27 17:40:53 -04:00 committed by Henrik Böving
parent 6c8b79a539
commit 664a86e08b
2 changed files with 9 additions and 3 deletions

View File

@ -48,8 +48,8 @@ def baseHtmlGenerator (title : String) (site : Array Html) : BaseHtmlM Html := d
<p class="header_filename break_within">{title}</p> <p class="header_filename break_within">{title}</p>
-- TODO: Replace this form with our own search -- TODO: Replace this form with our own search
<form action="https://google.com/search" method="get" id="search_form"> <form action="https://google.com/search" method="get" id="search_form">
<input type="hidden" name="sitesearch" value="https://leanprover-community.github.io/mathlib_docs"/> <input type="hidden" name="sitesearch" value="https://leanprover-community.github.io/mathlib4_docs"/>
<input type="text" name="q" autocomplete="off"/> <input type="text" name="q" autocomplete="off"/>&#32;
<button>Google site search</button> <button>Google site search</button>
</form> </form>
</header> </header>
@ -57,7 +57,7 @@ def baseHtmlGenerator (title : String) (site : Array Html) : BaseHtmlM Html := d
[site] [site]
<nav class="nav"> <nav class="nav">
<iframe src={s!"{←getRoot}/navbar.html"} class="navframe" frameBorder="0"></iframe> <iframe src={s!"{←getRoot}navbar.html"} class="navframe" frameBorder="0"></iframe>
</nav> </nav>
</body> </body>
</html> </html>

View File

@ -262,6 +262,12 @@ nav {
width: 100%; width: 100%;
} }
.navframe .nav {
position: absolute;
left: 0;
margin-left: 0;
}
.internal_nav .imports { .internal_nav .imports {
margin-bottom: 1rem; margin-bottom: 1rem;
} }