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:
109
apps/web/src/scss/plugins.scss
Normal file
109
apps/web/src/scss/plugins.scss
Normal 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));
|
||||
}
|
||||
@@ -8,3 +8,4 @@
|
||||
@import "@angular/cdk/text-field-prebuilt.css";
|
||||
|
||||
@import "./vault-filters";
|
||||
@import "./plugins.scss";
|
||||
|
||||
Reference in New Issue
Block a user