mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
set frontend layout body class
This commit is contained in:
@@ -1,9 +1,19 @@
|
|||||||
import {
|
import {
|
||||||
Component,
|
Component,
|
||||||
|
OnDestroy,
|
||||||
|
OnInit,
|
||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-frontend-layout',
|
selector: 'app-frontend-layout',
|
||||||
templateUrl: 'frontend-layout.component.html',
|
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 {
|
body {
|
||||||
min-width: 1010px;
|
min-width: 1010px;
|
||||||
|
|
||||||
|
&.layout_frontend {
|
||||||
|
background-color: #ecf0f5;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-header {
|
.page-header {
|
||||||
|
|||||||
Reference in New Issue
Block a user