2018-04-15 02:45:08 +02:00
|
|
|
$fa-font-path: "~font-awesome/fonts";
|
2018-01-27 19:12:06 +01:00
|
|
|
@import "~font-awesome/scss/font-awesome.scss";
|
|
|
|
@import "~angular2-toaster/toaster";
|
|
|
|
|
|
|
|
@import "variables.scss";
|
2018-01-26 20:12:41 +01:00
|
|
|
|
|
|
|
#toast-container {
|
|
|
|
.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;
|
2018-04-15 02:45:08 +02:00
|
|
|
padding-right: 10px;
|
2018-01-26 20:12:41 +01:00
|
|
|
margin: auto 0 auto -36px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toaster-icon {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2018-08-02 14:48:48 +02:00
|
|
|
.toast-message {
|
|
|
|
p {
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-26 20:12:41 +01:00
|
|
|
&.toast-danger, &.toast-error {
|
|
|
|
background-image: none !important;
|
2018-05-30 21:21:41 +02:00
|
|
|
|
|
|
|
@include themify($themes) {
|
|
|
|
background-color: themed('dangerColor');
|
|
|
|
}
|
2018-01-26 20:12:41 +01:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: "\f0e7";
|
|
|
|
margin-left: -30px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.toast-warning {
|
|
|
|
background-image: none !important;
|
2018-05-30 21:21:41 +02:00
|
|
|
|
|
|
|
@include themify($themes) {
|
|
|
|
background-color: themed('warningColor');
|
|
|
|
}
|
2018-01-26 20:12:41 +01:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: "\f071";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.toast-info {
|
|
|
|
background-image: none !important;
|
2018-05-30 21:21:41 +02:00
|
|
|
|
|
|
|
@include themify($themes) {
|
|
|
|
background-color: themed('infoColor');
|
|
|
|
}
|
2018-01-26 20:12:41 +01:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: "\f05a";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.toast-success {
|
|
|
|
background-image: none !important;
|
2018-05-30 21:21:41 +02:00
|
|
|
|
|
|
|
@include themify($themes) {
|
|
|
|
background-color: themed('successColor');
|
|
|
|
}
|
2018-01-26 20:12:41 +01:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: "\f00C";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-02-13 16:06:58 +01:00
|
|
|
|
|
|
|
// SweetAlert
|
|
|
|
|
|
|
|
.swal-modal {
|
|
|
|
border-radius: $border-radius;
|
|
|
|
|
|
|
|
@include themify($themes) {
|
|
|
|
background-color: themed('backgroundColorAlt');
|
|
|
|
color: themed('textColor');
|
|
|
|
}
|
|
|
|
|
|
|
|
.swal-text {
|
|
|
|
font-size: $font-size-base;
|
|
|
|
|
|
|
|
@include themify($themes) {
|
|
|
|
color: themed('textColor');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .swal-text:first-child {
|
|
|
|
margin-top: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.swal-content__input, .swal-content__textarea {
|
|
|
|
border: 1px solid #000000;
|
|
|
|
border-radius: $border-radius;
|
|
|
|
@include themify($themes) {
|
|
|
|
border-color: themed('inputBorderColor');
|
|
|
|
color: themed('textColor');
|
|
|
|
background-color: themed('inputBackgroundColor');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.swal-footer {
|
|
|
|
padding: 15px 10px 10px 10px;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
.swal-button {
|
|
|
|
@extend .btn;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.swal-button--confirm {
|
|
|
|
@extend .btn.primary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|