diff --git a/themes/fid_adlr/scss/components/_header-navbar.scss b/themes/fid_adlr/scss/components/_header-navbar.scss index cae0a68a96d320dbdeb64d7f799693a380942868..574a334b08a974c1b4c78493556458f00cb4e1aa 100644 --- a/themes/fid_adlr/scss/components/_header-navbar.scss +++ b/themes/fid_adlr/scss/components/_header-navbar.scss @@ -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; + } + } +} diff --git a/themes/fid_adlr/templates/header.phtml b/themes/fid_adlr/templates/header.phtml index bd5aa4d472f78bc61e419771102c157cd4899169..44c63e7192279f530c7715003295d27916e74d8c 100644 --- a/themes/fid_adlr/templates/header.phtml +++ b/themes/fid_adlr/templates/header.phtml @@ -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>