Center toast and add glass style
This commit is contained in:
parent
969b32ab68
commit
bf67d702dc
@ -1,3 +1,9 @@
|
||||
.custom-sidebar {
|
||||
max-width: 300px !important; /* 设置最大宽度为 300px */
|
||||
}
|
||||
}
|
||||
|
||||
/* Toast with frosted glass effect */
|
||||
.glass-toast {
|
||||
backdrop-filter: blur(8px);
|
||||
background-color: rgba(var(--bs-body-bg-rgb), 0.75) !important;
|
||||
}
|
||||
|
@ -88,8 +88,8 @@
|
||||
{% block content %}{% endblock %}
|
||||
</main>
|
||||
{% if message %}
|
||||
<div class="position-fixed top-0 start-50 translate-middle-x p-3" style="z-index: 1055; margin-top: 20px;">
|
||||
<div id="messageToast" class="toast text-bg-{{ message_type | default('info') }} border-0" role="alert" aria-live="assertive" aria-atomic="true">
|
||||
<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 class="d-flex">
|
||||
<div class="toast-body">
|
||||
{{ message }}
|
||||
|
Loading…
Reference in New Issue
Block a user