mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-02 18:17:46 +01:00
set frontend layout body class
This commit is contained in:
parent
5098153fde
commit
d4d01cc186
@ -1,9 +1,19 @@
|
||||
import {
|
||||
Component,
|
||||
OnDestroy,
|
||||
OnInit,
|
||||
} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-frontend-layout',
|
||||
templateUrl: 'frontend-layout.component.html',
|
||||
})
|
||||
export class FrontendLayoutComponent { }
|
||||
export class FrontendLayoutComponent implements OnInit, OnDestroy {
|
||||
ngOnInit() {
|
||||
document.body.classList.add('layout_frontend');
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
document.body.classList.remove('layout_frontend');
|
||||
}
|
||||
}
|
||||
|
@ -62,6 +62,10 @@ html {
|
||||
|
||||
body {
|
||||
min-width: 1010px;
|
||||
|
||||
&.layout_frontend {
|
||||
background-color: #ecf0f5;
|
||||
}
|
||||
}
|
||||
|
||||
.page-header {
|
||||
|
Loading…
Reference in New Issue
Block a user