bitwarden-estensione-browser/src/popup/scss/plugins.scss

178 lines
3.5 KiB
SCSS
Raw Normal View History

2018-04-13 05:18:51 +02:00
$fa-font-path: "~font-awesome/fonts";
@import "~font-awesome/scss/font-awesome.scss";
@import "~angular2-toaster/toaster";
@import "variables.scss";
2018-04-10 20:56:25 +02:00
@import "buttons.scss";
// Toaster
#toast-container {
.toast-close-button {
right: -0.15em;
}
&.toast-bottom-full-width div.toast {
margin: 0 10px 10px;
width: calc(100% - 20px);
}
.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:44:42 +02:00
padding-right: 10px;
margin: auto 0 auto -36px;
}
.toaster-icon {
display: none;
}
2018-08-02 14:48:53 +02:00
.toast-message {
p {
margin-bottom: 0.5rem;
&:last-child {
margin-bottom: 0;
}
}
}
&.toast-danger, &.toast-error {
background-image: none !important;
2018-05-31 05:11:05 +02:00
@include themify($themes) {
background-color: themed('dangerColor');
}
&:before {
content: "\f0e7";
margin-left: -30px;
}
}
&.toast-warning {
background-image: none !important;
2018-05-31 05:11:05 +02:00
@include themify($themes) {
background-color: themed('warningColor');
}
&:before {
content: "\f071";
}
}
&.toast-info {
background-image: none !important;
2018-05-31 05:11:05 +02:00
@include themify($themes) {
background-color: themed('infoColor');
}
&:before {
content: "\f05a";
}
}
&.toast-success {
background-image: none !important;
2018-05-31 05:11:05 +02:00
@include themify($themes) {
background-color: themed('successColor');
}
&:before {
content: "\f00C";
}
}
}
}
2018-04-10 20:56:25 +02:00
// SweetAlert
.swal-modal {
border-radius: $border-radius;
2018-05-31 21:45:03 +02:00
@include themify($themes) {
background-color: themed('backgroundColorAlt');
color: themed('textColor');
}
2018-04-10 20:56:25 +02:00
.swal-icon {
margin: 15px auto 0 auto;
}
2018-04-13 05:18:51 +02:00
.swal-content {
margin: 15px 0 0 0;
2018-04-13 05:26:08 +02:00
padding: 0 10px;
2018-04-13 05:18:51 +02:00
.swal-text {
&:last-child {
margin-bottom: 0;
}
}
2018-04-13 05:26:08 +02:00
.swal-title, .swal-text {
padding-left: 0;
padding-right: 0;
}
2018-04-13 05:18:51 +02:00
}
i.swal-custom-icon {
display: block;
margin: 0 auto;
font-size: 35px;
}
2018-04-10 20:56:25 +02:00
.swal-title {
padding: 10px 10px 15px 10px;
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
}
.swal-text {
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
}
.swal-footer {
padding: 15px 10px 10px 10px;
margin: 0;
.swal-button {
@extend .btn;
2018-05-31 21:45:03 +02:00
&:focus {
box-shadow: none;
}
2018-04-10 20:56:25 +02:00
}
.swal-button--confirm {
@extend .btn.primary;
}
}
}