menu : séparateurs hr entre les liens de navigation
All checks were successful
Deploy / Deploy to Production (push) Successful in 5s
All checks were successful
Deploy / Deploy to Production (push) Successful in 5s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c851eec971
commit
e0cca60721
2 changed files with 21 additions and 1 deletions
|
|
@ -29,6 +29,26 @@
|
|||
width: 100%;
|
||||
margin-top: 2rem;
|
||||
font-size: 2rem;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
li:not(:last-child) {
|
||||
width: fit-content;
|
||||
position: relative;
|
||||
hr {
|
||||
width: 5rem;
|
||||
height: 1px;
|
||||
background-color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
li:last-child {
|
||||
hr {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
<nav>
|
||||
<ul>
|
||||
<?php foreach($site->children()->listed()->without($page) as $navItem): ?>
|
||||
<li><a href="<?= $navItem->url() ?>"><?= $navItem->title() ?></a></li>
|
||||
<li><a href="<?= $navItem->url() ?>"><?= $navItem->title() ?></a><hr></li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
</nav>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue