1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-09 05:57:40 +02:00
bitwarden-browser/src/scss/plugins.scss

161 lines
3.5 KiB
SCSS
Raw Normal View History

2018-07-18 16:32:44 +02:00
$fa-font-path: "~font-awesome/fonts";
@import "~font-awesome/scss/font-awesome.scss";
2018-06-08 18:32:00 +02:00
@import "~angular2-toaster/toaster";
@import "~sweetalert2/src/sweetalert2.scss";
2018-06-08 18:32:00 +02:00
#toast-container {
2018-06-20 22:28:56 +02:00
&.toast-top-right {
top: 76px;
}
2018-06-08 18:32:00 +02:00
.toast-close-button {
right: -0.15em;
}
.toast {
opacity: 1 !important;
background-image: none !important;
border-radius: $border-radius;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
display: flex;
align-items: center;
&:hover {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}
&:before {
font-family: FontAwesome;
font-size: 25px;
line-height: 20px;
float: left;
color: #ffffff;
padding-right: 10px;
margin: auto 0 auto -36px;
}
.toaster-icon {
display: none;
}
2018-08-02 14:46:33 +02:00
.toast-message {
p {
margin-bottom: 0.5rem;
&:last-child {
margin-bottom: 0;
}
}
}
2018-06-08 18:32:00 +02:00
&.toast-danger, &.toast-error {
background-image: none !important;
background-color: $danger;
&:before {
content: "\f0e7";
margin-left: -30px;
}
}
&.toast-warning {
background-image: none !important;
background-color: $warning;
&:before {
content: "\f071";
}
}
&.toast-info {
background-image: none !important;
background-color: $info;
&:before {
content: "\f05a";
}
}
&.toast-success {
background-image: none !important;
background-color: $success;
&:before {
content: "\f00C";
}
}
}
}
2018-06-08 20:56:26 +02:00
// SweetAlert2
2018-06-08 20:56:26 +02:00
.swal2-container {
2018-06-08 20:56:26 +02:00
background-color: rgba(0,0,0,.3);
}
.swal2-popup {
padding: 0;
2018-06-08 20:56:26 +02:00
background-color: $modal-content-bg;
color: $body-color;
2018-06-08 21:20:07 +02:00
border: $modal-content-border-width solid #9a9a9a;
@include border-radius($modal-content-border-radius);
width: 34em; // slightly bigger than the hardcoded 478px in v1.
2018-06-08 20:56:26 +02:00
.swal2-icon {
2018-06-08 20:56:26 +02:00
margin: 15px auto 0 auto;
width: auto;
height: auto;
border: none;
2018-06-08 20:56:26 +02:00
}
.swal2-content {
padding-bottom: 15px;
2018-06-08 20:56:26 +02:00
font-size: $font-size-base;
2018-06-08 21:20:07 +02:00
border-bottom: $modal-footer-border-width solid $modal-footer-border-color;
2018-06-08 20:56:26 +02:00
}
i.swal-custom-icon {
display: block;
margin: 0 auto;
font-size: 35px;
}
.swal2-title {
2018-06-08 20:56:26 +02:00
padding: 10px 10px 15px 10px;
margin: 0;
font-size: $font-size-lg;
color: $body-color;
}
.swal2-content {
2018-06-08 20:56:26 +02:00
font-size: $font-size-base;
color: $body-color;
}
.swal2-actions {
2018-06-08 20:56:26 +02:00
padding: 15px 10px 10px 10px;
margin: 0;
background-color: $input-bg;
@include border-radius($modal-content-border-radius);
display: flex;
flex-direction: row;
justify-content: flex-start;
2018-06-08 20:56:26 +02:00
font-size: $font-size-base;
button {
margin-left: 10px;
2018-06-08 20:56:26 +02:00
@extend .btn;
&.swal2-confirm {
2018-06-12 17:46:11 +02:00
@extend .btn-primary;
font-weight: bold;
2018-06-12 17:46:11 +02:00
}
&.swal2-cancel {
2018-06-12 17:46:11 +02:00
@extend .btn-outline-secondary;
background-color: #ffffff;
2018-06-08 20:56:26 +02:00
}
}
}
}