mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
sweet alert styling
This commit is contained in:
@@ -89,6 +89,7 @@ export class AppComponent implements OnInit {
|
|||||||
title: msg.title,
|
title: msg.title,
|
||||||
text: msg.text,
|
text: msg.text,
|
||||||
buttons: buttons,
|
buttons: buttons,
|
||||||
|
icon: msg.type,
|
||||||
});
|
});
|
||||||
|
|
||||||
this.messagingService.send('showDialogResolve', {
|
this.messagingService.send('showDialogResolve', {
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
@import "~angular2-toaster/toaster";
|
@import "~angular2-toaster/toaster";
|
||||||
|
|
||||||
@import "variables.scss";
|
@import "variables.scss";
|
||||||
|
@import "buttons.scss";
|
||||||
|
|
||||||
|
// Toaster
|
||||||
|
|
||||||
#toast-container {
|
#toast-container {
|
||||||
.toast-close-button {
|
.toast-close-button {
|
||||||
@@ -79,3 +82,38 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SweetAlert
|
||||||
|
|
||||||
|
.swal-modal {
|
||||||
|
border-radius: $border-radius;
|
||||||
|
|
||||||
|
.swal-icon {
|
||||||
|
margin: 15px auto 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.swal-title {
|
||||||
|
padding: 10px 10px 15px 10px;
|
||||||
|
margin: 0;
|
||||||
|
font-size: $font-size-large;
|
||||||
|
color: $text-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.swal-text {
|
||||||
|
color: $text-color;
|
||||||
|
font-size: $font-size-base;
|
||||||
|
}
|
||||||
|
|
||||||
|
.swal-footer {
|
||||||
|
padding: 15px 10px 10px 10px;
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
.swal-button {
|
||||||
|
@extend .btn;
|
||||||
|
}
|
||||||
|
|
||||||
|
.swal-button--confirm {
|
||||||
|
@extend .btn.primary;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user