fix: navigation moins redondante

Fixes #57
This commit is contained in:
Kazhnuz 2023-05-20 11:13:36 +02:00
parent 52dc0b9c5c
commit 69794803c2
4 changed files with 14 additions and 4 deletions

View file

@ -6,7 +6,6 @@
<i class="fa fa-home" aria-hidden="true"></i><span class="sr-only">Accueil</span>
</a>
</li>
<?php include(TEMPLATEPATH . '/components/navbar-category.php'); ?>
<?php
$listmenu = get_nav_menu_locations();
$menu = wp_get_nav_menu_items($listmenu['top-navbar']);
@ -24,6 +23,18 @@
echo '<li><a href="' . $menuElement->url . '" class="btn btn-navbar">'. $menuElement->title . '</a></li>';
}
?>
<li>
<a class="menu-item submenu" href="#">Mes sites <i class="fa fa-caret-down" aria-hidden="true"></i></a>
<ul class="bg-light menu fg-dark">
<?php
$listmenu = get_nav_menu_locations();
$menu = wp_get_nav_menu_items($listmenu['link-menu']);
foreach ($menu as $menuElement) {
echo '<li><a href="' . $menuElement->url . '" class="btn btn-navbar">'. $menuElement->title . '</a></li>';
}
?>
</ul>
</li>
<li><a href="<?php bloginfo('rss2_url'); ?>" class="btn btn-navbar"><i class="fa fa-rss" aria-hidden="true"></i><span class="sr-only">Flux RSS du site</span></a></li>
</ul>
</nav>

View file

@ -2,4 +2,3 @@
<?php include(TEMPLATEPATH . '/components/sidebar/categories.php'); ?>
<?php include(TEMPLATEPATH . '/components/sidebar/tags.php'); ?>
<?php include(TEMPLATEPATH . '/components/sidebar/archives.php'); ?>
<?php include(TEMPLATEPATH . '/components/sidebar/links.php'); ?>

View file

@ -112,7 +112,7 @@
left: 0;
display: none;
padding:0.33rem;
z-index:1;
z-index:2;
}
&:hover ul,

View file

@ -1593,7 +1593,7 @@ ul.card-list, .card > ul {
left: 0;
display: none;
padding: 0.33rem;
z-index: 1; }
z-index: 2; }
.toolbar li:hover ul,
.toolbar li ul:hover, .toolbar li:focus-within ul {
visibility: visible;