[Trunk|Admin]: Add scrollbar on menu.

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@56447 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2019-07-09 14:54:20 +00:00
parent 6d967d4fcf
commit 3364939e1d
4 changed files with 18 additions and 11 deletions

View File

@ -5,7 +5,8 @@
<div id="wrapper" class="uk-section uk-margin-top uk-padding-remove-bottom"> <div id="wrapper" class="uk-section uk-margin-top uk-padding-remove-bottom">
<div class="uk-grid" uk-height-viewport="expand: true"> <div class="uk-grid" uk-height-viewport="expand: true">
<sidebar *ngIf="showSidebar && !wellcome" [menuItems]="sideMenuItems" class="uk-width-1-5 uk-light sidebar uk-margin-top uk-margin-left"></sidebar> <sidebar *ngIf="showSidebar && !wellcome" [menuItems]="sideMenuItems" class="uk-width-1-5 uk-light sidebar uk-margin-top uk-margin-left"></sidebar>
<div class="uk-width-expand uk-margin-large-top" [ngClass]="(!wellcome)?'uk-container':''"> <div class="uk-width-expand uk-margin-large-top" [ngClass]="(!wellcome)?'uk-container uk-overflow-auto':''"
[ngStyle]="{maxHeight: (!wellcome)?'85vh':''}">
<router-outlet></router-outlet> <router-outlet></router-outlet>
</div> </div>
<!-- <!--

View File

@ -169,25 +169,22 @@ export class AppComponent implements OnInit{
items: [] items: []
} }
); );
this.sideMenuItems.push(adminTools); adminTools.items.push( {
this.sideMenuItems.push( { rootItem: new MenuItem('communities', 'Manage Communities', '/',
rootItem: new MenuItem('communities', 'Manage Communities', '',
'/', false, [], [], null), '/', false, [], [], null),
items: [], items: [],
ukIcon: 'desktop'
}); });
this.sideMenuItems.push( { adminTools.items.push( {
rootItem: new MenuItem('communities', 'Manage Explore', '', rootItem: new MenuItem('communities', 'Manage Explore', '',
'/dashboard', false, [], [], {communityId: 'openaire'}), '/dashboard', false, [], [], {communityId: 'openaire'}),
items: [], items: [],
ukIcon: 'desktop'
}); });
this.sideMenuItems.push( { adminTools.items.push( {
rootItem: new MenuItem('communities', 'Manage Connect', '', rootItem: new MenuItem('communities', 'Manage Connect', '',
'/dashboard', false, [], [], {communityId: 'connect'}), '/dashboard', false, [], [], {communityId: 'connect'}),
items: [], items: [],
ukIcon: 'desktop'
}); });
this.sideMenuItems.push(adminTools);
} else if (this.communityId && this.communityId !== '') { } else if (this.communityId && this.communityId !== '') {
this.sideMenuItems.push({ this.sideMenuItems.push({
rootItem: new MenuItem('overview', 'Overview', '/dashboard', rootItem: new MenuItem('overview', 'Overview', '/dashboard',

View File

@ -83,7 +83,16 @@
} }
.sidebar .uk-nav>li>a{ .sidebar .uk-nav>li>a{
font-weight: 400 !important; font-weight: 400;
color: rgb(255,255,255);
}
.sidebar .uk-nav>li>.uk-link{
text-decoration: underline;
}
.sidebar .uk-nav-sub>li>.uk-link{
text-decoration: underline;
color: rgb(255,255,255); color: rgb(255,255,255);
} }

View File

@ -33,7 +33,7 @@
<link rel="stylesheet" type="text/css" href="assets/common-assets/common/theme.css" /> <link rel="stylesheet" type="text/css" href="assets/common-assets/common/theme.css" />
<link rel="stylesheet" type="text/css" href="assets/common-assets/common/custom.css" /> <link rel="stylesheet" type="text/css" href="assets/common-assets/common/custom.css" />
<link rel="stylesheet" type="text/css" href="assets/common-assets/library.css?v=1" /> <link rel="stylesheet" type="text/css" href="assets/common-assets/library.css?v=1" />
<link rel="stylesheet" type="text/css" href="assets/css/connect-custom.css?v=1" /> <link rel="stylesheet" type="text/css" href="assets/css/connect-custom.css?v=2" />