fix extra menu button inside mobile view
This commit is contained in:
parent
cec86f148e
commit
0a6ae01982
5 changed files with 38 additions and 9 deletions
|
|
@ -46,7 +46,12 @@ get_header();
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<div class="tx-indexedsearch-form">
|
<div class="tx-indexedsearch-form">
|
||||||
<label for="tx-indexedsearch-searchbox-sword"><?php _e('Ergebnisse filtern', 'kit'); ?>:</label>
|
<label for="tx-indexedsearch-searchbox-sword"><?php _e('Ergebnisse filtern', 'kit'); ?>:</label>
|
||||||
<div>A</div>
|
<div>
|
||||||
|
<ul>
|
||||||
|
<li>Alle</li>
|
||||||
|
<li>A</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
||||||
|
|
@ -341,6 +341,13 @@ header.sticky-header .header-lang {
|
||||||
header .header-button-container {
|
header .header-button-container {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
header nav ul.extraMenu {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
header nav ul.extraMenu li {
|
||||||
|
border-top: 0px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.sticky-header {
|
.sticky-header {
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ nav > ul > li .nav-first-level-opener::after {
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 960px) {
|
@media (max-width: 960px) {
|
||||||
nav {
|
nav:not(.pagination) {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 4.44444rem;
|
top: 4.44444rem;
|
||||||
right: -360px;
|
right: -360px;
|
||||||
|
|
@ -113,32 +113,36 @@ nav > ul > li .nav-first-level-opener::after {
|
||||||
background-color: #f2f2f2;
|
background-color: #f2f2f2;
|
||||||
transition: right .3s;
|
transition: right .3s;
|
||||||
}
|
}
|
||||||
nav > ul {
|
nav:not(.pagination) > ul {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
}
|
}
|
||||||
nav > ul > li {
|
nav:not(.pagination) > ul > li {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
border-bottom: 1px solid #cccccc;
|
border-bottom: 1px solid #cccccc;
|
||||||
}
|
}
|
||||||
nav > ul > li > a {
|
|
||||||
|
nav:not(.pagination) > ul > li > a {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
}
|
}
|
||||||
nav > ul > li:nth-of-type(1) {
|
nav:not(.pagination) > ul > li:nth-of-type(1) {
|
||||||
border-top: 1px solid #cccccc;
|
border-top: 1px solid #cccccc;
|
||||||
}
|
}
|
||||||
|
nav:not(.pagination) > ul.extraMenu > li {
|
||||||
|
border-top: 0px;
|
||||||
|
}
|
||||||
nav > ul > li:hover > a::after,
|
nav > ul > li:hover > a::after,
|
||||||
nav > ul > li:active > a::after {
|
nav > ul > li:active > a::after {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
nav > ul > li .nav-first-level-opener {
|
nav:not(.pagination) > ul > li .nav-first-level-opener {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
.header-burger-button:checked + label + nav {
|
.header-burger-button:checked + label + nav {
|
||||||
|
|
@ -320,6 +324,11 @@ nav ul li:hover .nav-second-level {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nav ul.extraMenu {
|
||||||
|
display: none;
|
||||||
|
border-top: none;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 960px) {
|
@media (max-width: 960px) {
|
||||||
.nav-second-level,
|
.nav-second-level,
|
||||||
nav ul li:hover .nav-second-level {
|
nav ul li:hover .nav-second-level {
|
||||||
|
|
|
||||||
|
|
@ -161,7 +161,6 @@
|
||||||
);
|
);
|
||||||
echo strip_tags(wp_nav_menu( $menuParameters ), '<span><a>' );
|
echo strip_tags(wp_nav_menu( $menuParameters ), '<span><a>' );
|
||||||
?>
|
?>
|
||||||
<!-- <a href="https://www.kit-ausbildung.de/de/offene-stellen" class="header-button"><span>Zum Bestand</span></a> -->
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,13 @@
|
||||||
));
|
));
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
wp_nav_menu( array(
|
||||||
|
'container' => false,
|
||||||
|
'menu_class' => 'extraMenu',
|
||||||
|
'depth' => 0,
|
||||||
|
'theme_location' => 'extra',
|
||||||
|
));
|
||||||
|
?>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue