mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
tweaks to swal2
This commit is contained in:
parent
84af4ee48f
commit
663a84a3c4
@ -137,7 +137,7 @@ export class SettingsComponent implements OnInit {
|
|||||||
label.innerHTML = '<input type="checkbox" id="master-pass-restart" checked>';
|
label.innerHTML = '<input type="checkbox" id="master-pass-restart" checked>';
|
||||||
label.appendChild(checkboxText);
|
label.appendChild(checkboxText);
|
||||||
|
|
||||||
div.innerHTML =
|
div.innerHTML =
|
||||||
`<div class="swal2-text">${this.i18nService.t('setYourPinCode')}</div>` +
|
`<div class="swal2-text">${this.i18nService.t('setYourPinCode')}</div>` +
|
||||||
'<input type="text" class="swal2-input" id="pin-val" autocomplete="off" ' +
|
'<input type="text" class="swal2-input" id="pin-val" autocomplete="off" ' +
|
||||||
'autocapitalize="none" autocorrect="none" spellcheck="false" inputmode="verbatim">';
|
'autocapitalize="none" autocorrect="none" spellcheck="false" inputmode="verbatim">';
|
||||||
@ -146,9 +146,10 @@ export class SettingsComponent implements OnInit {
|
|||||||
div.appendChild(label);
|
div.appendChild(label);
|
||||||
|
|
||||||
const submitted = await Swal.fire({
|
const submitted = await Swal.fire({
|
||||||
|
heightAuto: false,
|
||||||
|
buttonsStyling: false,
|
||||||
text: this.i18nService.t('setYourPinCode'),
|
text: this.i18nService.t('setYourPinCode'),
|
||||||
html: div,
|
html: div,
|
||||||
|
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
cancelButtonText: this.i18nService.t('cancel'),
|
cancelButtonText: this.i18nService.t('cancel'),
|
||||||
showConfirmButton: true,
|
showConfirmButton: true,
|
||||||
|
@ -129,7 +129,7 @@ $fa-font-path: "~font-awesome/fonts";
|
|||||||
border: 1px solid #000000;
|
border: 1px solid #000000;
|
||||||
border-radius: $border-radius;
|
border-radius: $border-radius;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
box-shadow: none;
|
||||||
// Inherit theme font-size
|
// Inherit theme font-size
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
|
|
||||||
@ -168,21 +168,14 @@ $fa-font-path: "~font-awesome/fonts";
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
|
|
||||||
.swal2-styled {
|
button {
|
||||||
|
margin-left: 10px;
|
||||||
@extend .btn;
|
@extend .btn;
|
||||||
|
|
||||||
&:focus {
|
&.swal2-confirm {
|
||||||
box-shadow: none;
|
@extend .btn.primary;
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.swal2-confirm {
|
|
||||||
// Overwrite border-left and border-right-color
|
|
||||||
@include themify($themes) {
|
|
||||||
border-color: themed('buttonBorderColor') !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
@extend .btn.primary;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user