Skip to content

Commit

Permalink
Realign navigation elements for mobiles
Browse files Browse the repository at this point in the history
  • Loading branch information
SenseException committed Nov 21, 2023
1 parent c016ac6 commit 5a092f6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
13 changes: 13 additions & 0 deletions source/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ h6 {
background: linear-gradient(-90deg, #2c374c, #1f2e4b);
color: white;
padding: 0 10px 0 10px;
align-items: normal;
}

.doctrine-navbar input {
Expand All @@ -91,6 +92,18 @@ h6 {
width: 30px;
}

.doctrine-navbar .nav-outbound {
padding-top: 4px;
}

#search-box {
float: left;
}

.doctrine-navbar .navbar-collapse {
flex-basis: auto;
}

.dropdown:hover > .dropdown-menu {
display: block;
}
Expand Down
9 changes: 5 additions & 4 deletions templates/layouts/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,6 @@

<nav class="doctrine-navbar navbar navbar-expand-lg navbar-dark sticky-top bg-dark flex-md-nowrap">
<a class="navbar-brand text-hide" href="{{ path('homepage') }}"><img src="{{ get_asset_url('/logos/doctrine-logo.svg', site.url) }}" />{{ site.title }}</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav mr-auto">
<li class="nav-item dropdown{% if menuSlug == 'projects' %} active{% endif %}">
Expand Down Expand Up @@ -172,10 +169,14 @@
<a href="https://github.com/doctrine/doctrine-website/edit/master/source{{ page.sourcePath }}" class="btn btn-light" target="_blank" rel="noopener noreferrer">Edit</a>
{% endif %}
</div>

</div>
<div class="nav-outbound">
<div id="search-box">
<!-- SearchBox widget will appear here -->
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</div>
</nav>

Expand Down

0 comments on commit 5a092f6

Please sign in to comment.