Adds: Sidebar Footer (style only)

This commit is contained in:
apapachristou 2019-05-02 15:43:02 +03:00
parent 4562f65a6d
commit 078d2a736c
8 changed files with 578 additions and 495 deletions

View File

@ -0,0 +1,29 @@
.sidebar-footer {
width: 230px;
height: 40px;
margin: 5px 15px;
padding: 5px;
color: rgb(117, 117, 117);
background-color: #fafafa;
box-shadow: 0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(255, 255, 255, 0.4);
}
.sidebar-footer .option {
margin: 0px;
padding-top: 2px;
padding-bottom: 2px;
padding-right: 10px;
border-radius: 0px;
}
.sidebar-footer .vl {
border-right: 1px solid #d4d4d4;
}
.option .style-icon {
font-size: 15px;
margin: 0px;
width: 20px;
padding-top: 2px;
color: #2e75b6;
}

View File

@ -0,0 +1,8 @@
<div class="sidebar-footer d-flex justify-content-around">
<a class="option vl" href="#">
<i class="material-icons style-icon">mode_comment</i>
Glossary
</a>
<a class="option vl" href="#"><i class="fa fa-book style-icon"></i>Guide</a>
<a class="option" href="#"><i class="fa fa-life-ring style-icon"></i>Help</a>
</div>

View File

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SidebarFooterComponent } from './sidebar-footer.component';
describe('SidebarFooterComponent', () => {
let component: SidebarFooterComponent;
let fixture: ComponentFixture<SidebarFooterComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ SidebarFooterComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(SidebarFooterComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-sidebar-footer',
templateUrl: './sidebar-footer.component.html',
styleUrls: ['./sidebar-footer.component.css']
})
export class SidebarFooterComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}

View File

@ -18,6 +18,11 @@
.nav hr { .nav hr {
width: 230px; width: 230px;
border-top: 2px solid #fff; border-top: 1px solid #fff;
border-bottom: 2px solid #e0e2e3; border-bottom: 2px solid #d4d4d4;
}
.sidebar-footer {
position: relative;
height: 48%;
} }

View File

@ -45,6 +45,7 @@
<!-- END OF MOBILE MENU --> <!-- END OF MOBILE MENU -->
<!-- Sidebar Menu -->
<ul class="nav" *ngFor="let groupMenuItem of groupMenuItems; last as isLast; first as isFirst"> <ul class="nav" *ngFor="let groupMenuItem of groupMenuItems; last as isLast; first as isFirst">
<div class="sidebarSubtitle"> <div class="sidebarSubtitle">
<p>{{ groupMenuItem.title }}</p> <p>{{ groupMenuItem.title }}</p>
@ -59,4 +60,10 @@
</li> </li>
<hr *ngIf="!isLast"> <hr *ngIf="!isLast">
</ul> </ul>
<!-- Sidebar Footer -->
<ul class="nav sidebar-footer">
<li class="active-pro nav-item">
<app-sidebar-footer></app-sidebar-footer>
</li>
</ul>
</div> </div>

View File

@ -3,6 +3,7 @@ import { RouterModule } from '@angular/router';
import { CommonFormsModule } from '../../common/forms/common-forms.module'; import { CommonFormsModule } from '../../common/forms/common-forms.module';
import { CommonUiModule } from '../../common/ui/common-ui.module'; import { CommonUiModule } from '../../common/ui/common-ui.module';
import { SidebarComponent } from './sidebar.component'; import { SidebarComponent } from './sidebar.component';
import { SidebarFooterComponent } from './sidebar-footer/sidebar-footer.component';
@NgModule({ @NgModule({
imports: [ imports: [
@ -11,7 +12,8 @@ import { SidebarComponent } from './sidebar.component';
RouterModule RouterModule
], ],
declarations: [ declarations: [
SidebarComponent SidebarComponent,
SidebarFooterComponent
], ],
entryComponents: [], entryComponents: [],
exports: [SidebarComponent] exports: [SidebarComponent]

View File

@ -49,7 +49,7 @@
width: 260px; width: 260px;
z-index: 4; z-index: 4;
padding-bottom: 30px; padding-bottom: 10px;
.dropdown .dropdown-backdrop { .dropdown .dropdown-backdrop {
display: none !important; display: none !important;
@ -82,7 +82,6 @@
opacity: 1; opacity: 1;
white-space: nowrap; white-space: nowrap;
display: block; display: block;
} }
.sidebar-mini { .sidebar-mini {
@ -172,7 +171,7 @@
position: absolute; position: absolute;
height: 1px; height: 1px;
left: 15px; left: 15px;
background-color: rgba(180,180,180, .3); background-color: rgba(180, 180, 180, 0.3);
} }
& + li { & + li {
@ -214,7 +213,6 @@
padding: 10px 15px; padding: 10px 15px;
} }
.sidebar-background { .sidebar-background {
position: absolute; position: absolute;
z-index: 1; z-index: 1;
@ -233,8 +231,8 @@
height: 100%; height: 100%;
content: ""; content: "";
display: block; display: block;
background: #FFFFFF; background: #ffffff;
opacity: .93; opacity: 0.93;
} }
} }
@ -246,14 +244,13 @@
z-index: 4; z-index: 4;
&:after { &:after {
content: ''; content: "";
position: absolute; position: absolute;
bottom: 0; bottom: 0;
right: 15px; right: 15px;
height: 1px; height: 1px;
width: calc(100% - 30px); width: calc(100% - 30px);
background-color: rgba(180,180,180, .3); background-color: rgba(180, 180, 180, 0.3);
} }
p { p {
@ -294,7 +291,6 @@
} }
} }
&[data-background-color="black"] { &[data-background-color="black"] {
@include sidebar-background-color($gray-base, $white-color); @include sidebar-background-color($gray-base, $white-color);
@ -334,7 +330,7 @@
.logo, .logo,
.nav li.separator { .nav li.separator {
&:after { &:after {
background-color: rgba(255,255,255, .3); background-color: rgba(255, 255, 255, 0.3);
} }
} }
@ -348,7 +344,15 @@
&[data-image]:after, &[data-image]:after,
&.has-image:after { &.has-image:after {
opacity: .77; opacity: 0.77;
}
.nav .nav-item {
&.active-pro {
position: absolute;
width: 100%;
bottom: 0px;
}
} }
} }
@ -367,7 +371,6 @@
} }
} }
.main-panel { .main-panel {
position: relative; position: relative;
float: right; float: right;
@ -406,14 +409,13 @@
} }
} }
.sidebar, .sidebar,
.main-panel, .main-panel,
.sidebar-wrapper { .sidebar-wrapper {
-webkit-transition-property: top, bottom, width; -webkit-transition-property: top, bottom, width;
transition-property: top, bottom, width; transition-property: top, bottom, width;
-webkit-transition-duration: .2s,.2s, .35s; -webkit-transition-duration: 0.2s, 0.2s, 0.35s;
transition-duration: .2s,.2s, .35s; transition-duration: 0.2s, 0.2s, 0.35s;
-webkit-transition-timing-function: linear, linear, ease; -webkit-transition-timing-function: linear, linear, ease;
transition-timing-function: linear, linear, ease; transition-timing-function: linear, linear, ease;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
@ -490,14 +492,4 @@
} }
} }
} }
.sidebar {
.nav .nav-item {
&.active-pro {
position: absolute;
width: 100%;
bottom: 13px;
}
}
}
} }