Tint toast glass effect with message color
This commit is contained in:
parent
bf67d702dc
commit
43a9c01f13
@ -5,5 +5,16 @@
|
||||
/* Toast with frosted glass effect */
|
||||
.glass-toast {
|
||||
backdrop-filter: blur(8px);
|
||||
background-color: rgba(var(--bs-body-bg-rgb), 0.75) !important;
|
||||
}
|
||||
|
||||
.glass-toast-success {
|
||||
background-color: rgba(var(--bs-success-rgb), 0.75) !important;
|
||||
}
|
||||
|
||||
.glass-toast-danger {
|
||||
background-color: rgba(var(--bs-danger-rgb), 0.75) !important;
|
||||
}
|
||||
|
||||
.glass-toast-info {
|
||||
background-color: rgba(var(--bs-info-rgb), 0.75) !important;
|
||||
}
|
||||
|
@ -89,7 +89,7 @@
|
||||
</main>
|
||||
{% if message %}
|
||||
<div class="position-fixed top-0 start-50 translate-middle-x p-3 w-75" style="z-index: 1055; margin-top: 20px;">
|
||||
<div id="messageToast" class="toast text-bg-{{ message_type | default('info') }} border-0 glass-toast w-100" role="alert" aria-live="assertive" aria-atomic="true">
|
||||
<div id="messageToast" class="toast text-bg-{{ message_type | default('info') }} border-0 glass-toast glass-toast-{{ message_type | default('info') }} w-100" role="alert" aria-live="assertive" aria-atomic="true">
|
||||
<div class="d-flex">
|
||||
<div class="toast-body">
|
||||
{{ message }}
|
||||
|
Loading…
Reference in New Issue
Block a user