mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
chore(tailwind): [PM-20609] Migrate duo-redirect.html
* Update duo-redirect to use Tailwind classes similar to sso.html * Update dynamic classes to tailwind * fix: updating styling * Update button and logo styles to match previous * Update button styles * Update button styles --------- Co-authored-by: Ike Kottlowski <ikottlowski@bitwarden.com> Co-authored-by: Jared Snider <116684653+JaredSnider-Bitwarden@users.noreply.github.com>
This commit is contained in:
@@ -10,24 +10,21 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="layout_frontend">
|
<body class="layout_frontend">
|
||||||
<div class="mt-5 d-flex justify-content-center">
|
<div class="tw-p-8 tw-flex tw-flex-col tw-items-center">
|
||||||
<div>
|
|
||||||
<img
|
<img
|
||||||
src="../images/logo-primary@2x.png"
|
src="../images/logo-primary@2x.png"
|
||||||
class="mb-4"
|
class="tw-mb-4 tw-block tw-max-w-xs tw-mx-auto"
|
||||||
style="display: block; max-width: 290px; margin: 0 auto"
|
|
||||||
alt="Bitwarden"
|
alt="Bitwarden"
|
||||||
/>
|
/>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<p class="text-center">
|
<p class="tw-text-center">
|
||||||
<i
|
<i
|
||||||
class="bwi bwi-spinner bwi-spin bwi-2x text-muted"
|
class="bwi bwi-spinner bwi-spin bwi-2x tw-text-muted"
|
||||||
title="Loading"
|
title="Loading"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
></i>
|
></i>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ function displayHandoffMessage(client: string) {
|
|||||||
if (!content) {
|
if (!content) {
|
||||||
throw new Error("content element not found");
|
throw new Error("content element not found");
|
||||||
}
|
}
|
||||||
content.className = "text-center";
|
content.className = "tw-text-center";
|
||||||
content.innerHTML = "";
|
content.innerHTML = "";
|
||||||
|
|
||||||
const h1 = document.createElement("h1");
|
const h1 = document.createElement("h1");
|
||||||
@@ -123,8 +123,8 @@ function displayHandoffMessage(client: string) {
|
|||||||
? localeService.t("thisWindowWillCloseIn5Seconds")
|
? localeService.t("thisWindowWillCloseIn5Seconds")
|
||||||
: localeService.t("youMayCloseThisWindow");
|
: localeService.t("youMayCloseThisWindow");
|
||||||
|
|
||||||
h1.className = "font-weight-semibold";
|
h1.className = "tw-font-semibold";
|
||||||
p.className = "mb-4";
|
p.className = "tw-mb-4";
|
||||||
|
|
||||||
content.appendChild(h1);
|
content.appendChild(h1);
|
||||||
content.appendChild(p);
|
content.appendChild(p);
|
||||||
@@ -133,7 +133,8 @@ function displayHandoffMessage(client: string) {
|
|||||||
if (client == "web") {
|
if (client == "web") {
|
||||||
const button = document.createElement("button");
|
const button = document.createElement("button");
|
||||||
button.textContent = localeService.t("close");
|
button.textContent = localeService.t("close");
|
||||||
button.className = "bg-primary text-white border-0 rounded py-2 px-3";
|
button.className =
|
||||||
|
"tw-bg-primary-600 hover:tw-bg-primary-700 tw-text-contrast tw-px-4 tw-py-2 tw-rounded-md tw-transition tw-border-transparent tw-text-center focus:tw-outline-none";
|
||||||
|
|
||||||
button.addEventListener("click", () => {
|
button.addEventListener("click", () => {
|
||||||
window.close();
|
window.close();
|
||||||
|
|||||||
Reference in New Issue
Block a user