side-bar : personnalisation de la couleur
This commit is contained in:
parent
6549070d2c
commit
c65fb9d8c2
@ -1,4 +1,4 @@
|
||||
<nav class="wrapper md-auto position-fixed ">
|
||||
<nav class="wrapper md-auto position-fixed" [ngStyle]="{'background-color':backgroundColor}">
|
||||
<ul class="nav flex-column" id="sticky-sidebar">
|
||||
<li class="nav-item" ngbNavItem="maTeam" >
|
||||
<a routerLink="/compte" routerLinkActive="active-custom" class="nav-link">
|
||||
|
@ -5,7 +5,7 @@
|
||||
width: auto;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
background-color: #c3c3e7;
|
||||
//background-color: #c3c3e7;
|
||||
}
|
||||
.nav{
|
||||
margin-top: 20px;
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { Component, Input, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-side-bar',
|
||||
@ -6,10 +6,14 @@ import { Component, OnInit } from '@angular/core';
|
||||
styleUrls: ['./side-bar.component.scss']
|
||||
})
|
||||
export class SideBarComponent implements OnInit {
|
||||
@Input() backgroundColor!: string;
|
||||
//@Input() backgroundColor = '#c3c3e7';
|
||||
|
||||
constructor() {}
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit(): void {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user