[Library | Trunk]: Decrease navbar center section to 25% of the screen for above medium screens
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60811 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
cb5ec45266
commit
589b1d5529
|
@ -7,8 +7,10 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="tm-header-mobile uk-hidden@m">
|
<div class="tm-header-mobile uk-hidden@m">
|
||||||
<nav class="uk-navbar-container uk-navbar" uk-navbar="" [class.uk-navbar-transparent]="header.stickyAnimation === false">
|
<nav class="uk-navbar-container uk-navbar" uk-navbar=""
|
||||||
<div *ngIf="(properties.environment =='beta' || properties.environment =='development') && showLogo && header.badge"
|
[class.uk-navbar-transparent]="header.stickyAnimation === false">
|
||||||
|
<div
|
||||||
|
*ngIf="(properties.environment =='beta' || properties.environment =='development') && showLogo && header.badge"
|
||||||
class="uk-position-top-left">
|
class="uk-position-top-left">
|
||||||
<img class="small-beta-indication"
|
<img class="small-beta-indication"
|
||||||
[src]="'assets/common-assets/'+(properties.environment =='beta'?'beta_flag.svg':'prototype_flag.svg')"
|
[src]="'assets/common-assets/'+(properties.environment =='beta'?'beta_flag.svg':'prototype_flag.svg')"
|
||||||
|
@ -164,7 +166,8 @@
|
||||||
media="768" cls-active="uk-active uk-navbar-sticky"
|
media="768" cls-active="uk-active uk-navbar-sticky"
|
||||||
[attr.animation]="(header.stickyAnimation != false ?'uk-animation-slide-top':null)"
|
[attr.animation]="(header.stickyAnimation != false ?'uk-animation-slide-top':null)"
|
||||||
top=".tm-header + [class*="uk-section"]" cls-inactive="uk-navbar-transparent" style="">
|
top=".tm-header + [class*="uk-section"]" cls-inactive="uk-navbar-transparent" style="">
|
||||||
<div *ngIf="(properties.environment =='beta' || properties.environment =='development') && showLogo && header.badge">
|
<div
|
||||||
|
*ngIf="(properties.environment =='beta' || properties.environment =='development') && showLogo && header.badge">
|
||||||
<img class="beta-indication-sticky"
|
<img class="beta-indication-sticky"
|
||||||
[src]="'assets/common-assets/'+(properties.environment =='beta'?'beta_flag.svg':'prototype_flag.svg')"
|
[src]="'assets/common-assets/'+(properties.environment =='beta'?'beta_flag.svg':'prototype_flag.svg')"
|
||||||
alt="BETA" style="height: 102px; ">
|
alt="BETA" style="height: 102px; ">
|
||||||
|
@ -204,7 +207,8 @@
|
||||||
<!--a routerLinkActive="uk-link" routerLink="{{menu.rootItem.route}}" [queryParams]=menu.rootItem.params class="" aria-expanded="false">{{menu.rootItem.title}}</a-->
|
<!--a routerLinkActive="uk-link" routerLink="{{menu.rootItem.route}}" [queryParams]=menu.rootItem.params class="" aria-expanded="false">{{menu.rootItem.title}}</a-->
|
||||||
<a *ngIf="menu.rootItem.route.length > 0 && (isEnabled([menu.rootItem.route], showPage) || !menu.rootItem.routeRequired )"
|
<a *ngIf="menu.rootItem.route.length > 0 && (isEnabled([menu.rootItem.route], showPage) || !menu.rootItem.routeRequired )"
|
||||||
routerLinkActive="uk-link" routerLink="{{menu.rootItem.route}}"
|
routerLinkActive="uk-link" routerLink="{{menu.rootItem.route}}"
|
||||||
[queryParams]="menu.rootItem.params" [fragment]="menu.rootItem.fragment"> {{menu.rootItem.title}}</a>
|
[queryParams]="menu.rootItem.params"
|
||||||
|
[fragment]="menu.rootItem.fragment"> {{menu.rootItem.title}}</a>
|
||||||
<a *ngIf="menu.rootItem.route.length == 0 && menu.rootItem.url.length > 0" routerLinkActive="uk-link"
|
<a *ngIf="menu.rootItem.route.length == 0 && menu.rootItem.url.length > 0" routerLinkActive="uk-link"
|
||||||
href="{{menu.rootItem.url}}" target="_blank" aria-expanded="false">{{menu.rootItem.title}}</a>
|
href="{{menu.rootItem.url}}" target="_blank" aria-expanded="false">{{menu.rootItem.title}}</a>
|
||||||
<a *ngIf="(menu.rootItem.route.length == 0 && menu.rootItem.url.length == 0) || ( menu.rootItem.route.length >0 && menu.rootItem.routeRequired && !isEnabled([menu.rootItem.route], showPage) && isAtleastOneEnabled(menu.rootItem.routeRequired, showPage)) "
|
<a *ngIf="(menu.rootItem.route.length == 0 && menu.rootItem.url.length == 0) || ( menu.rootItem.route.length >0 && menu.rootItem.routeRequired && !isEnabled([menu.rootItem.route], showPage) && isAtleastOneEnabled(menu.rootItem.routeRequired, showPage)) "
|
||||||
|
@ -221,7 +225,8 @@
|
||||||
isEnabled(submenu.routeRequired, showPage) && (submenu.route.length > 0 ||
|
isEnabled(submenu.routeRequired, showPage) && (submenu.route.length > 0 ||
|
||||||
submenu.url.length > 0)" [class.uk-active]="isTheActiveSubMenu(submenu)">
|
submenu.url.length > 0)" [class.uk-active]="isTheActiveSubMenu(submenu)">
|
||||||
<a *ngIf="submenu.route.length > 0" routerLinkActive="uk-link"
|
<a *ngIf="submenu.route.length > 0" routerLinkActive="uk-link"
|
||||||
routerLink="{{submenu.route}}" [queryParams]="submenu.params" [fragment]="submenu.fragment">{{submenu.title}}</a>
|
routerLink="{{submenu.route}}" [queryParams]="submenu.params"
|
||||||
|
[fragment]="submenu.fragment">{{submenu.title}}</a>
|
||||||
<a *ngIf="submenu.route.length == 0 && submenu.url.length > 0" routerLinkActive="uk-link"
|
<a *ngIf="submenu.route.length == 0 && submenu.url.length > 0" routerLinkActive="uk-link"
|
||||||
href="{{submenu.url}}" target="_blank">{{submenu.title}}</a>
|
href="{{submenu.url}}" target="_blank">{{submenu.title}}</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -257,25 +262,27 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ng-template #header_template let-mobile="mobile">
|
<ng-template #header_template let-mobile="mobile">
|
||||||
<a *ngIf="!header.url" routerLinkActive="uk-link" [routerLink]="header.route"
|
<a *ngIf="!header.url" [routerLink]="header.route"
|
||||||
class="uk-logo uk-navbar-item">
|
class="uk-logo uk-padding-remove uk-navbar-item uk-text-center uk-text-bold">
|
||||||
<img *ngIf="(mobile && header.logoSmallUrl) || (!mobile && header.logoUrl)"
|
<img *ngIf="(mobile && header.logoSmallUrl) || (!mobile && header.logoUrl)"
|
||||||
[src]="!mobile?header.logoUrl:header.logoSmallUrl"
|
[src]="!mobile?header.logoUrl:header.logoSmallUrl"
|
||||||
[alt]="header.title"
|
[alt]="header.title"
|
||||||
class="uk-responsive-height" style="height: 70px; ">
|
class="uk-responsive-height" style="height: 70px; ">
|
||||||
<span *ngIf="(mobile && !header.logoSmallUrl) || (!mobile && !header.logoUrl)"
|
<ng-container *ngIf="(mobile && !header.logoSmallUrl) || (!mobile && !header.logoUrl)">
|
||||||
class="uk-logo uk-text-bold uk-padding-remove">
|
<span *ngIf="!mobile" style="max-width: 25vw;">{{header.title}}</span>
|
||||||
{{header.title}}</span>
|
<span *ngIf="mobile">{{(header.title)}}</span>
|
||||||
|
</ng-container>
|
||||||
</a>
|
</a>
|
||||||
<a *ngIf="header.url"
|
<a *ngIf="header.url" [href]="header.url"
|
||||||
[href]="header.url"
|
class="uk-logo uk-padding-remove uk-navbar-item uk-text-center uk-text-bold">
|
||||||
target="_blank" class="uk-logo uk-navbar-item">
|
|
||||||
<img *ngIf="(mobile && header.logoSmallUrl) || (!mobile && header.logoUrl)"
|
<img *ngIf="(mobile && header.logoSmallUrl) || (!mobile && header.logoUrl)"
|
||||||
[src]="!mobile?header.logoUrl:header.logoSmallUrl" [alt]="header.title" class="uk-responsive-height"
|
[src]="!mobile?header.logoUrl:header.logoSmallUrl"
|
||||||
style="height: 70px; ">
|
[alt]="header.title"
|
||||||
<span *ngIf="(mobile && !header.logoSmallUrl) || (!mobile && !header.logoUrl)" class="uk-logo uk-text-bold uk-padding-remove">
|
class="uk-responsive-height" style="height: 70px; ">
|
||||||
{{header.title}}</span>
|
<ng-container *ngIf="(mobile && !header.logoSmallUrl) || (!mobile && !header.logoUrl)">
|
||||||
|
<span *ngIf="!mobile" style="max-width: 25vw;">{{header.title}}</span>
|
||||||
|
<span *ngIf="mobile">{{(header.title)}}</span>
|
||||||
|
</ng-container>
|
||||||
</a>
|
</a>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|
Loading…
Reference in New Issue