2018-04-13 05:18:51 +02:00
|
|
|
$fa-font-path: "~font-awesome/fonts";
|
2018-04-04 20:19:44 +02:00
|
|
|
@import "~font-awesome/scss/font-awesome.scss";
|
|
|
|
@import "~angular2-toaster/toaster";
|
2020-03-04 17:42:21 +01:00
|
|
|
@import "~sweetalert2/src/sweetalert2.scss";
|
2018-04-04 20:19:44 +02:00
|
|
|
|
|
|
|
@import "variables.scss";
|
2018-04-10 20:56:25 +02:00
|
|
|
@import "buttons.scss";
|
|
|
|
|
|
|
|
// Toaster
|
2018-04-04 20:19:44 +02:00
|
|
|
|
2021-06-16 21:43:48 +02:00
|
|
|
.toast-container {
|
2018-04-04 20:19:44 +02:00
|
|
|
&.toast-bottom-full-width div.toast {
|
|
|
|
margin: 0 10px 10px;
|
|
|
|
width: calc(100% - 20px);
|
|
|
|
box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
|
|
|
|
|
2021-06-16 21:43:48 +02:00
|
|
|
&:hover {
|
2018-04-04 20:19:44 +02:00
|
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
|
|
|
|
}
|
2021-06-16 21:43:48 +02:00
|
|
|
}
|
2018-04-04 20:19:44 +02:00
|
|
|
|
2021-06-16 21:43:48 +02:00
|
|
|
.toast {
|
2018-04-04 20:19:44 +02:00
|
|
|
&:before {
|
|
|
|
font-family: FontAwesome;
|
|
|
|
font-size: 25px;
|
|
|
|
line-height: 20px;
|
|
|
|
float: left;
|
|
|
|
color: #ffffff;
|
2021-06-16 21:43:48 +02:00
|
|
|
margin: auto 0 auto 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toast-content {
|
|
|
|
padding: 15px;
|
2018-04-04 20:19:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.toaster-icon {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2018-08-02 14:48:53 +02:00
|
|
|
.toast-message {
|
|
|
|
p {
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-04 20:19:44 +02:00
|
|
|
&.toast-danger, &.toast-error {
|
|
|
|
background-image: none !important;
|
2018-05-31 05:11:05 +02:00
|
|
|
|
|
|
|
@include themify($themes) {
|
|
|
|
background-color: themed('dangerColor');
|
|
|
|
}
|
2018-04-04 20:19:44 +02:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: "\f0e7";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.toast-warning {
|
|
|
|
background-image: none !important;
|
2018-05-31 05:11:05 +02:00
|
|
|
|
|
|
|
@include themify($themes) {
|
|
|
|
background-color: themed('warningColor');
|
|
|
|
}
|
2018-04-04 20:19:44 +02:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: "\f071";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.toast-info {
|
|
|
|
background-image: none !important;
|
2018-05-31 05:11:05 +02:00
|
|
|
|
|
|
|
@include themify($themes) {
|
|
|
|
background-color: themed('infoColor');
|
|
|
|
}
|
2018-04-04 20:19:44 +02:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: "\f05a";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.toast-success {
|
|
|
|
background-image: none !important;
|
2018-05-31 05:11:05 +02:00
|
|
|
|
|
|
|
@include themify($themes) {
|
|
|
|
background-color: themed('successColor');
|
|
|
|
}
|
2018-04-04 20:19:44 +02:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: "\f00C";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-04-10 20:56:25 +02:00
|
|
|
|
|
|
|
// SweetAlert
|
|
|
|
|
2020-03-04 17:42:21 +01:00
|
|
|
.swal2-popup {
|
2020-03-04 19:56:30 +01:00
|
|
|
padding: 15px;
|
2018-04-10 20:56:25 +02:00
|
|
|
border-radius: $border-radius;
|
2020-03-04 19:56:30 +01:00
|
|
|
width: 34em;
|
|
|
|
|
2018-05-31 21:45:03 +02:00
|
|
|
@include themify($themes) {
|
|
|
|
background-color: themed('backgroundColorAlt');
|
|
|
|
color: themed('textColor');
|
|
|
|
}
|
|
|
|
|
2020-03-04 17:42:21 +01:00
|
|
|
.swal2-icon {
|
2020-03-04 19:51:52 +01:00
|
|
|
margin: 0 auto;
|
2020-03-04 17:42:21 +01:00
|
|
|
width: auto;
|
|
|
|
height: auto;
|
|
|
|
border: none;
|
2018-04-10 20:56:25 +02:00
|
|
|
}
|
|
|
|
|
2020-03-04 17:42:21 +01:00
|
|
|
.swal2-content {
|
2020-03-04 19:51:52 +01:00
|
|
|
margin: 0;
|
2019-02-14 06:46:28 +01:00
|
|
|
font-size: $font-size-base;
|
2020-03-04 17:42:21 +01:00
|
|
|
@include themify($themes) {
|
|
|
|
color: themed('textColor');
|
2018-04-13 05:26:08 +02:00
|
|
|
}
|
2019-02-14 06:46:28 +01:00
|
|
|
|
|
|
|
label.checkbox {
|
|
|
|
margin-top: 10px;
|
|
|
|
display: flex;
|
|
|
|
text-align: left;
|
|
|
|
align-items: top;
|
|
|
|
|
|
|
|
input {
|
|
|
|
margin: 3px 5px 0 1px;
|
|
|
|
}
|
|
|
|
}
|
2020-03-04 17:42:21 +01:00
|
|
|
|
|
|
|
.swal2-input, .swal2-textarea {
|
|
|
|
border: 1px solid #000000;
|
|
|
|
border-radius: $border-radius;
|
|
|
|
margin-bottom: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
// Inherit theme font-size
|
|
|
|
font-size: inherit;
|
|
|
|
|
|
|
|
// Sweetalert 1 did not have box-shadow
|
|
|
|
&:focus {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
@include themify($themes) {
|
|
|
|
border-color: themed('inputBorderColor');
|
|
|
|
color: themed('textColor');
|
|
|
|
background-color: themed('inputBackgroundColor');
|
|
|
|
}
|
|
|
|
&::-webkit-input-placeholder {
|
|
|
|
@include themify($themes) {
|
|
|
|
color: themed('inputPlaceholderColor');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-04-13 05:18:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
i.swal-custom-icon {
|
|
|
|
display: block;
|
|
|
|
margin: 0 auto;
|
|
|
|
font-size: 35px;
|
|
|
|
}
|
|
|
|
|
2020-03-04 17:42:21 +01:00
|
|
|
.swal2-title {
|
2020-03-04 19:51:52 +01:00
|
|
|
padding: 10px 0 15px;
|
2018-04-10 20:56:25 +02:00
|
|
|
margin: 0;
|
|
|
|
font-size: $font-size-large;
|
2018-05-31 21:45:03 +02:00
|
|
|
|
|
|
|
@include themify($themes) {
|
|
|
|
color: themed('textColor');
|
|
|
|
}
|
2018-04-10 20:56:25 +02:00
|
|
|
}
|
|
|
|
|
2020-03-04 17:42:21 +01:00
|
|
|
.swal2-text {
|
|
|
|
text-align: left; // sweetalert1 behaviour
|
2018-04-10 20:56:25 +02:00
|
|
|
font-size: $font-size-base;
|
2018-05-31 21:45:03 +02:00
|
|
|
|
|
|
|
@include themify($themes) {
|
|
|
|
color: themed('textColor');
|
|
|
|
}
|
2018-04-10 20:56:25 +02:00
|
|
|
}
|
|
|
|
|
2020-03-04 17:42:21 +01:00
|
|
|
> .swal2-text:first-child {
|
2019-02-13 05:53:04 +01:00
|
|
|
margin-top: 20px;
|
|
|
|
}
|
|
|
|
|
2020-03-04 17:42:21 +01:00
|
|
|
.swal2-actions {
|
2020-03-04 19:51:52 +01:00
|
|
|
margin: 20px auto 0;
|
2020-03-04 20:03:02 +01:00
|
|
|
justify-content: flex-start;
|
|
|
|
flex-direction: row-reverse;
|
2018-04-10 20:56:25 +02:00
|
|
|
|
2020-03-04 17:42:21 +01:00
|
|
|
button {
|
|
|
|
margin-left: 10px;
|
2018-04-10 20:56:25 +02:00
|
|
|
@extend .btn;
|
2018-05-31 21:45:03 +02:00
|
|
|
|
2020-03-04 17:42:21 +01:00
|
|
|
&.swal2-confirm {
|
2021-04-23 10:45:20 +02:00
|
|
|
@extend .btn, .primary;
|
2020-03-04 17:42:21 +01:00
|
|
|
font-weight: bold;
|
2018-05-31 21:45:03 +02:00
|
|
|
}
|
2018-04-10 20:56:25 +02:00
|
|
|
}
|
|
|
|
}
|
2021-05-03 20:56:38 +02:00
|
|
|
|
|
|
|
.swal2-validation-message {
|
|
|
|
margin-top: 20px;
|
|
|
|
}
|
2018-04-10 20:56:25 +02:00
|
|
|
}
|
2021-03-08 20:58:10 +01:00
|
|
|
|
|
|
|
date-input-polyfill {
|
|
|
|
&[data-open="true"] {
|
2021-03-08 22:08:22 +01:00
|
|
|
z-index: 10000 !important;
|
|
|
|
}
|
2021-03-08 20:58:10 +01:00
|
|
|
}
|