Commit 2d164855 authored by Fabrice Gangler's avatar Fabrice Gangler 🎨
Browse files

FIX: update menu --> CSS bug: links are not usable sometimes

Refs: #650
parent 21fcff35
Pipeline #7959 passed with stage
in 2 minutes and 15 seconds
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<?php // ===== main navigation bar ============================================================== ?> <?php // ===== main navigation bar ============================================================== ?>
<ul class="nav navbar-nav navbar-left nav-pull-down"> <ul class="nav navbar-nav navbar-left nav-pull-down" id="navbar-mainMenu">
<?php if ($this->isHere("Softwares")): ?> <?php if ($this->isHere("Softwares")): ?>
<li class="current"> <li class="current">
<span class=" text-center"><?= __d("ElementNavigation", "All softwares") ?></span> <span class=" text-center"><?= __d("ElementNavigation", "All softwares") ?></span>
...@@ -92,19 +92,20 @@ ...@@ -92,19 +92,20 @@
<?= $this->Html->link(__d("Layout", "Sign up"), <?= $this->Html->link(__d("Layout", "Sign up"),
["prefix"=>false,'controller' => 'Users', 'action' => 'add'], ["prefix"=>false,'controller' => 'Users', 'action' => 'add'],
[ [
// 'class'=>"btn btn-default", // 'class'=>"btn btn-default",
'escape' => false]) ?> 'escape' => false]) ?>
</li> </li>
<li class="clean-nav"> <li class="clean-nav">
<?= $this->Html->link(__d("Layout", "Sign in"), <?= $this->Html->link(__d("Layout", "Sign in"),
["prefix"=>false,'controller' => 'Users', 'action' => 'login'], ["prefix"=>false,'controller' => 'Users', 'action' => 'login'],
[ [
// 'class'=>"btn btn-default", // 'class'=>"btn btn-default",
'escape' => false]) ?> 'escape' => false]) ?>
</li> </li>
</ul>
<?php elseif ($this->request->session()->read('Auth.User.username')) : ?> <?php elseif ($this->request->session()->read('Auth.User.username')) : ?>
<ul class = "nav navbar-nav navbar-right nav-pull-down-right"> <ul class = "nav navbar-nav navbar-right nav-pull-down-right">
<li> <li class="mainSearchElement">
<?= $this->element("Pages/SearchForm") ?> <?= $this->element("Pages/SearchForm") ?>
</li> </li>
<li class="clean-nav"> <li class="clean-nav">
...@@ -127,9 +128,8 @@ ...@@ -127,9 +128,8 @@
</li> </li>
</ul> </ul>
</li> </li>
<?php endif; ?>
</ul> </ul>
<?php endif; ?>
</nav> </nav>
</div> </div>
</div> </div>
......
...@@ -80,12 +80,21 @@ body { ...@@ -80,12 +80,21 @@ body {
margin-bottom: 2em; margin-bottom: 2em;
} }
#navbar-mainMenu {
z-index: 1;
}
/* --------------------------------------------------------------------------------------------------------------------- /* ---------------------------------------------------------------------------------------------------------------------
* Nav: min-width 768px * Nav: min-width 768px
*/ */
@media (min-width: 768px) { @media (min-width: 768px) {
#navbar-mainMenu a:hover,
#navbar-mainMenu a:focus {
background-color: transparent;
}
.nav, .nav,
.nav ul { .nav ul {
margin: 0; margin: 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment