1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-28 12:45:45 +01:00

Update AnonLayout BG Colors (#9180)

* update bg color

* add tw breakpoint for primary content bg
This commit is contained in:
rr-bw 2024-05-14 13:28:41 -07:00 committed by GitHub
parent 94b57687f5
commit 3eeafc098a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 12 deletions

View File

@ -1,4 +1,4 @@
import { Component, OnDestroy, OnInit } from "@angular/core"; import { Component } from "@angular/core";
import { ActivatedRoute, RouterModule } from "@angular/router"; import { ActivatedRoute, RouterModule } from "@angular/router";
import { AnonLayoutComponent } from "@bitwarden/auth/angular"; import { AnonLayoutComponent } from "@bitwarden/auth/angular";
@ -10,7 +10,7 @@ import { Icon } from "@bitwarden/components";
templateUrl: "anon-layout-wrapper.component.html", templateUrl: "anon-layout-wrapper.component.html",
imports: [AnonLayoutComponent, RouterModule], imports: [AnonLayoutComponent, RouterModule],
}) })
export class AnonLayoutWrapperComponent implements OnInit, OnDestroy { export class AnonLayoutWrapperComponent {
protected pageTitle: string; protected pageTitle: string;
protected pageSubtitle: string; protected pageSubtitle: string;
protected pageIcon: Icon; protected pageIcon: Icon;
@ -23,12 +23,4 @@ export class AnonLayoutWrapperComponent implements OnInit, OnDestroy {
this.pageSubtitle = this.i18nService.t(this.route.snapshot.firstChild.data["pageSubtitle"]); this.pageSubtitle = this.i18nService.t(this.route.snapshot.firstChild.data["pageSubtitle"]);
this.pageIcon = this.route.snapshot.firstChild.data["pageIcon"]; // don't translate this.pageIcon = this.route.snapshot.firstChild.data["pageIcon"]; // don't translate
} }
ngOnInit() {
document.body.classList.add("layout_frontend");
}
ngOnDestroy() {
document.body.classList.remove("layout_frontend");
}
} }

View File

@ -1,5 +1,5 @@
<main <main
class="tw-flex tw-min-h-screen tw-w-full tw-mx-auto tw-flex-col tw-gap-9 tw-px-4 tw-pb-4 tw-pt-14 tw-text-main" class="tw-flex tw-min-h-screen tw-w-full tw-mx-auto tw-flex-col tw-gap-9 tw-bg-background-alt tw-px-4 tw-pb-4 tw-pt-14 tw-text-main"
> >
<div class="tw-text-center"> <div class="tw-text-center">
<div class="tw-px-8"> <div class="tw-px-8">
@ -15,7 +15,7 @@
</div> </div>
<div class="tw-mb-auto tw-mx-auto tw-flex tw-flex-col tw-items-center"> <div class="tw-mb-auto tw-mx-auto tw-flex tw-flex-col tw-items-center">
<div <div
class="tw-rounded-xl tw-mb-9 tw-mx-auto sm:tw-border sm:tw-border-solid sm:tw-border-secondary-300 sm:tw-p-8" class="tw-rounded-xl tw-mb-9 tw-mx-auto sm:tw-bg-background sm:tw-border sm:tw-border-solid sm:tw-border-secondary-300 sm:tw-p-8"
> >
<ng-content></ng-content> <ng-content></ng-content>
</div> </div>