1
Fork 0

Make dropdowns smaller

This commit is contained in:
Jake Howard 2017-11-03 22:33:30 +00:00
parent 2558885868
commit 0c020e454e
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 10 additions and 7 deletions

View file

@ -2,7 +2,9 @@
<div id="main">
<div class="container">
{{ partial "content.html" . }}
<hr />
{{ if .Content }}
<hr />
{{ end }}
{{ $parent := . }}
{{ $sorted_pages := sort .Site.Pages (default "Title" .Params.sort_by) (default "asc" .Params.sort_order)}}
{{ $valid_pages := where $sorted_pages ".Parent" "!=" nil }}

View file

@ -49,7 +49,3 @@ $('.navbar-brand').on('click', function (event) {
}
event.preventDefault();
});
$('.nav-item.dropdown').on('click', function () {
window.location = $(this).find('a').attr('href');
});

View file

@ -170,6 +170,11 @@ pre.chroma {
}
}
.dropdown:hover > .dropdown-menu {
display: block;
.dropdown-menu {
min-width: initial;
padding: $spacer * 0.25 0;
.dropdown-item {
padding: $spacer * 0.25 $spacer;
}
}