mirror of
https://github.com/bitwarden/web
synced 2025-12-06 00:03:28 +00:00
set frontend layout body class
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user