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

137 lines
2.7 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 {
position: fixed;
font-family: FontAwesome;
font-size: 25px;
line-height: 20px;
float: left;
color: #ffffff;
padding-right: 0.5em;
margin: auto 0 auto -36px;
}
.toaster-icon {
display: none;
}
&.toast-danger, &.toast-error {
background-image: none !important;
background-color: $brand-danger;
&:before {
content: "\f0e7";
margin-left: -30px;
}
}
&.toast-warning {
background-image: none !important;
background-color: $brand-warning;
&:before {
content: "\f071";
}
}
&.toast-info {
background-image: none !important;
background-color: $brand-info;
&:before {
content: "\f05a";
}
}
&.toast-success {
background-image: none !important;
background-color: $brand-success;
&:before {
content: "\f00C";
}
}
}
}
2018-04-10 20:56:25 +02:00
// SweetAlert
.swal-modal {
border-radius: $border-radius;
.swal-icon {
margin: 15px auto 0 auto;
}
2018-04-13 05:18:51 +02:00
.swal-content {
margin: 15px 0 0 0;
padding: 0;
.swal-text {
&:last-child {
margin-bottom: 0;
}
}
}
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;
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;
}
}
}