mirror of
https://github.com/bitwarden/web
synced 2026-01-06 18:43:18 +00:00
* [Icons] Update to new font sheet * Rebased - updated all icon remaining icon references * Temporarily Updating gitmodules branch * Fixed class reference * Revert temporary gitmodule branch * Icon updates/changes * Pull jslib m-icon-updates latest * Prettier * Update jslib to master * Reset jslib to master * Removed obsolete variable reference, replaced bolt references * Removed all instances of base class - maps create automatically * Updated toast icon references * Imported styles to reference variable/map * Reverted to using base class * Update jslib * Rename eye-2 to eye and eye-slash-2 to eye-slash * Bump jslib * Remove duplicate scss * Remove old fa * Update fallback image * Bump jslib * Rename eye-2 to eye, and eye-slash-2 to eye-slash * Fix 404 * Fix integrity of bootstrap.min.css * Fix callout missing bwi * Add bwi to change-kdf * Remove bwi from callout again * Bump jslib Co-authored-by: Hinton <oscar@oscarhinton.com>
118 lines
2.2 KiB
SCSS
118 lines
2.2 KiB
SCSS
.toast-container {
|
|
.toast-close-button {
|
|
font-size: 18px;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.ngx-toastr {
|
|
align-items: center;
|
|
background-image: none !important;
|
|
border-radius: $border-radius;
|
|
box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
|
|
display: flex;
|
|
padding: 15px;
|
|
|
|
.toast-close-button {
|
|
position: absolute;
|
|
right: 5px;
|
|
top: 0;
|
|
}
|
|
|
|
&:hover {
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
|
|
}
|
|
|
|
.icon i::before {
|
|
float: left;
|
|
font-style: normal;
|
|
font-family: $icomoon-font-family;
|
|
font-size: 25px;
|
|
line-height: 20px;
|
|
padding-right: 15px;
|
|
}
|
|
|
|
.toast-message {
|
|
p {
|
|
margin-bottom: 0.5rem;
|
|
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.toast-danger,
|
|
&.toast-error {
|
|
@include themify($themes) {
|
|
background-color: themed("danger");
|
|
}
|
|
|
|
&,
|
|
&:before,
|
|
& .toast-close-button {
|
|
@include themify($themes) {
|
|
color: themed("textDangerColor") !important;
|
|
}
|
|
}
|
|
|
|
.icon i::before {
|
|
content: map_get($icons, "error");
|
|
}
|
|
}
|
|
|
|
&.toast-warning {
|
|
@include themify($themes) {
|
|
background-color: themed("warning");
|
|
}
|
|
|
|
&,
|
|
&:before,
|
|
& .toast-close-button {
|
|
@include themify($themes) {
|
|
color: themed("textWarningColor") !important;
|
|
}
|
|
}
|
|
|
|
.icon i::before {
|
|
content: map_get($icons, "exclamation-triangle");
|
|
}
|
|
}
|
|
|
|
&.toast-info {
|
|
@include themify($themes) {
|
|
background-color: themed("info");
|
|
}
|
|
|
|
&,
|
|
&:before,
|
|
& .toast-close-button {
|
|
@include themify($themes) {
|
|
color: themed("textInfoColor") !important;
|
|
}
|
|
}
|
|
|
|
.icon i:before {
|
|
content: map_get($icons, "info-circle");
|
|
}
|
|
}
|
|
|
|
&.toast-success {
|
|
@include themify($themes) {
|
|
background-color: themed("success");
|
|
}
|
|
|
|
&,
|
|
&:before,
|
|
& .toast-close-button {
|
|
@include themify($themes) {
|
|
color: themed("textSuccessColor") !important;
|
|
}
|
|
}
|
|
|
|
.icon i:before {
|
|
content: map_get($icons, "check");
|
|
}
|
|
}
|
|
}
|
|
}
|