Skip to content
Snippets Groups Projects
Commit 797bfa88 authored by Viola Elsenhans's avatar Viola Elsenhans Committed by Robert Lange
Browse files

refs #20986 [fid_adlr] move language and register to other list entries for lg

* fix language; active not bold
* keep seperate design for language and register
parent 74ecca26
No related merge requests found
......@@ -454,3 +454,69 @@ header.collapsing .text-open,
}
}
}
// keep different layout for language and register button after moving into the same list with all the other elements of the list #20986
#submenu {
.submenu-collapse {
height: unset;
}
.submenu-additionals {
a {
color: $black !important;
font-size: calc(40px - 15px);
left: unset;
letter-spacing: 2px;
text-transform: uppercase;
margin-left: unset;
}
// größer gleich 977px Breite
@media screen and (min-width: $screen-md-min) {
position: fixed;
max-width: 150px;
left: 750px;
top: 140px;
li {
// reduce height of elements of sublist
height: 37.5px
}
}
// kleiner gleich 976px Breite
@media screen and (max-width: $screen-sm-max) {
padding-left: 135px;
padding-bottom: 20px;
}
@media screen and (max-width: 771px) {
padding: 10px 0 0 25px;
a {
font-size: 18px;
}
li {
// adapt height of elements of sublist
line-height: 40px;
}
}
// just for language, not for register
.submenu-additionals-lang a {
&:hover,
&:focus {
color: $brand-primary !important;
}
}
span {
font-weight: normal;
}
span.active {
font-weight: bold;
}
}
}
......@@ -21,7 +21,7 @@
<a class="navbar-header-link no-margin-l"
href="<?= $this->url('myresearch-account') ?>?auth_method=<?= $account->getAuthMethod() ?>"
tabindex="1" data-lightbox>
<span class="decorate hidden-lg-only"><?= $this->transEsc('Create New Account') ?></span>
<?php /* fid_adlr: show register for smaller lg below in list with other list entries #20986 */ ?>
<span class="hidden-xs hidden-sm hidden-md">
<i class="icon icon-key" aria-hidden="true"></i>
</span>
......@@ -128,7 +128,8 @@
<i class="icon icon-chevron-down" aria-hidden="true"></i>
<i class="icon icon-chevron-up" aria-hidden="true"></i>
</a>
<ul id="langmenu" class="dropdown-menu" aria-labelledby="quickfilter-language">
<?php /* fid_adlr: show language for smaller lg below in list with other list entries #20986 */ ?>
<ul id="langmenu" class="dropdown-menu hidden-xs hidden-sm hidden-md" aria-labelledby="quickfilter-language">
<?php foreach ($this->layout()->allLangs as $langCode => $langName): ?>
<li<?= $this->layout()->userLang == $langCode ? ' class="active"' : '' ?>>
<?php $fullLangName = $this->displayLanguageOption($langName); ?>
......@@ -201,6 +202,29 @@
<li>
<a href="<?= $this->config()->get('config')->RssConsumer['fallback_url'] ?? "" ?>/service-fuer-fachreferate"><?= $this->translate('Services for subject specialists') ?></a>
</li>
<?php /* fid_adlr: show register and language here for all sizes smaller lg #20986 */ ?>
<li>
<ul class="submenu-additionals">
<li class="visible-xs visible-sm visible-md submenu-additionals-lang" >
<?php foreach ($this->layout()->allLangs as $langCode => $langName): ?>
<?php $fullLangName = $this->displayLanguageOption($langName); ?>
<a href="#"
<?= $this->layout()->userLang != $langCode ? 'onClick="document.langForm.mylang.value=\'' . $langCode . '\';document.langForm.submit()"' : '' ?>>
<span <?= $this->layout()->userLang == $langCode ? ' class="active"' : '' ?>><?= $fullLangName ? ($this->layout()->userLang != $langCode ? $this->transEsc($fullLangName) : $fullLangName) : $langCode ?></span>
</a>
<?php endforeach; ?>
</li>
<?php if (!isset($this->layout()->renderingError)): ?>
<?php if (!$account->isLoggedIn() && $account->supportsCreation() ): ?>
<li class="visible-xs visible-sm visible-md">
<a href="<?= $this->url('myresearch-account') ?>?auth_method=<?= $account->getAuthMethod() ?>" tabindex="1" data-lightbox>
<?= $this->transEsc('Create New Account') ?>
</a>
</li>
<?php endif; ?>
<?php endif; ?>
</ul>
</li>
</ul>
</div>
</div>
......
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