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