Make dropdowns smaller
This commit is contained in:
parent
2558885868
commit
0c020e454e
3 changed files with 10 additions and 7 deletions
|
@ -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 }}
|
||||
|
|
|
@ -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');
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue