Skip to content

Commit

Permalink
fix dropdown menu for non-javascript browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Aug 26, 2023
1 parent e09ec2d commit 6db2b20
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 5 additions & 0 deletions static/css/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ header nav .navbar-toggler.toggler-wrapper > * {
z-index: 101;
}

header nav .nav-item:hover .dropdown-menu,
header nav .nav-item:focus-within .dropdown-menu {
display: block;
}

@media (max-width: 992px) {
header .navbar-brand {
margin-right: 0;
Expand Down
9 changes: 3 additions & 6 deletions templates/_layout/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,19 @@
<script src="/js/color-modes.js"></script>
</head>
<body>
<noscript>
<strong>We're sorry but this explorer doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>

<div class="header">
{{ template "header" . }}
</div>
<main>
<noscript class="container d-block my-4">
<strong>We're sorry but this explorer doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
{{ template "page" .Data }}
</main>

<div class="footer">
<hr>
{{ template "footer" . }}
</div>

<script src="/js/typeahead.min.js"></script>
<script src="/js/clipboard.min.js"></script>
<script src="/js/explorer.js"></script>
Expand Down

0 comments on commit 6db2b20

Please sign in to comment.