1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 21:33:27 +00:00

[CL-653] Re-add mfa classes and braintree overrides (#16044)

This commit is contained in:
Vicki League
2025-08-18 12:46:19 -04:00
committed by GitHub
parent 939fd402c3
commit f2d2d0a767
2 changed files with 110 additions and 0 deletions

View File

@@ -0,0 +1,109 @@
#web-authn-frame {
height: 40px;
iframe {
border: none;
height: 100%;
width: 100%;
}
}
// MFA Types for logo styling with no dark theme alternative
$mfaTypes: 0, 2, 3, 4, 6;
@each $mfaType in $mfaTypes {
.mfaType#{$mfaType} {
content: url("../images/two-factor/" + $mfaType + ".png");
max-width: 120px;
}
}
.mfaType0 {
content: url("../images/two-factor/0.png");
max-width: 120px;
max-height: 62px;
}
.mfaType1 {
max-width: 120px;
max-height: 62px;
&:is(.theme_light *) {
content: url("../images/two-factor/1.png");
}
&:is(.theme_dark *) {
content: url("../images/two-factor/1-w.png");
}
}
.mfaType7 {
max-width: 120px;
&:is(.theme_light *) {
content: url("../images/two-factor/7.png");
}
&:is(.theme_dark *) {
content: url("../images/two-factor/7-w.png");
}
}
// Braintree
#bt-dropin-container {
min-height: 50px;
&:is(.theme_light *) {
background: url("../images/loading.svg") center center no-repeat;
}
&:is(.theme_dark *) {
background: url("../images/loading-white.svg") center center no-repeat;
}
}
.braintree-placeholder,
.braintree-sheet__header {
display: none;
}
.braintree-sheet__content--button {
min-height: 0;
padding: 0;
text-align: left;
}
.braintree-sheet__container {
margin-bottom: 0;
}
.braintree-sheet {
border: none;
}
// hide duplicate paypal iframe
.braintree-sheet__content--button
.braintree-sheet__button--paypal
iframe.zoid-prerender-frame.zoid-invisible {
display: none !important;
}
[data-braintree-id="upper-container"]::before {
background-color: rgba(var(--color-background));
}
.card [data-braintree-id="upper-container"]::before {
background-color: rgba(var(--color-background-alt));
}
[data-braintree-id="paypal-button"] {
background-color: rgba(var(--color-background));
}
.card [data-braintree-id="paypal-button"] {
background-color: rgba(var(--color-background-alt));
}
.paypal-button-text {
color: rgba(var(--color-text-main));
}

View File

@@ -8,3 +8,4 @@
@import "@angular/cdk/text-field-prebuilt.css";
@import "./vault-filters";
@import "./plugins.scss";