Pin the navigation bar to the top of the page.

From user feedback, the scrolling navigation bar would cause problems with
readability, especially in larger font views. This keeps the navigation bar
pinned to the top, until we can find a way to more easily handle this.
This commit is contained in:
Jonathan S. Katz
2019-02-03 09:33:00 -05:00
parent 86004e5f82
commit 53d041d968
3 changed files with 2 additions and 22 deletions

View File

@ -469,6 +469,7 @@ ul.bold {
background-color: #336791;
font-weight: 600;
padding-bottom: 0.2rem;
padding-top: 0.2rem;
}
.pg-shout-box a {
@ -1306,16 +1307,6 @@ table.sponsor-table tbody tr td:nth-child(3) {
}
}
@media (min-width: 992px) {
.navbar.compressed {
padding: 0 10px;
}
.pg-shout-box {
padding-top: 3.7rem;
}
}
@media (max-width: 992px) {
.archive {
margin-top: 2rem;
@ -1330,11 +1321,6 @@ table.sponsor-table tbody tr td:nth-child(3) {
height: 1.5rem;
}
.pg-shout-box {
padding-top: 2.8rem;
margin-bottom: 1rem;
}
#docContent table.table {
font-size: 70%;
}

View File

@ -1,9 +1,3 @@
$(document).ready(function() {
$(window).on("scroll", function() {
$(".navbar").toggleClass("compressed", $(window).scrollTop() >= 20);
});
});
/*
* Initialize google analytics
*/

View File

@ -26,7 +26,7 @@
<div class="row justify-content-md-center">
<div class="col">
<!-- Header -->
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand p-0" href="/">
<img class="logo" src="/media/img/about/press/elephant.png" alt="PostgreSQL Elephant Logo">
</a>