update autopol 4 nov
This commit is contained in:
Vendored
BIN
Binary file not shown.
+34
-6
@@ -107,7 +107,6 @@
|
||||
--success: #059669;
|
||||
} */
|
||||
|
||||
|
||||
body {
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
@@ -686,8 +685,10 @@
|
||||
.form-actions { display: flex; gap: 10px; margin-top: 28px; }
|
||||
|
||||
/* ── FLASH ── */
|
||||
.flash { padding: 11px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 20px; animation: slideIn .2s ease; }
|
||||
.flash.ok { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); color: #34d399; }
|
||||
.flash { padding: 11px 16px; border-radius: 8px; font-size: 12px; margin-bottom: 20px; animation: slideIn .2s ease; }
|
||||
.flash.ok { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); color: rgb(2, 112, 48); }
|
||||
.flash.info { background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.3); color: rgb(29,78,216);
|
||||
}
|
||||
.flash.error { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.3); color: #f87171; }
|
||||
|
||||
@font-face {
|
||||
@@ -718,8 +719,8 @@
|
||||
class="animate__animated animate__backInUp"
|
||||
{% endif %}>
|
||||
<div style="
|
||||
padding: 10px 5px 5px;
|
||||
margin-bottom: 20px;">
|
||||
padding: 1px 5px 5px;
|
||||
margin-bottom: 40px;">
|
||||
<img
|
||||
id="siteLogo"
|
||||
src="{{ url_for('static', filename='img/logo.png') }}"
|
||||
@@ -866,7 +867,10 @@
|
||||
|
||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
||||
{% for category, message in messages %}
|
||||
<div class="flash {{ category }}">{{ message }}</div>
|
||||
<div style="width: 300px; position: fixed; left: 45%; text-align: center; z-index: 1000;" class="flash {{ category }}">{{ message }}</div>
|
||||
<!-- <div style="width: 300px; float: right; text-align: center;" class="flash {{ category }}">{{ message }}</div> -->
|
||||
<!-- <div style="width: 300px; margin: 0 auto; text-align: center;" class="flash {{ category }}">{{ message }}</div> -->
|
||||
<!-- <div style="width: 400px;" class="flash {{ category }}">{{ message }}</div> -->
|
||||
{% endfor %}
|
||||
{% endwith %}
|
||||
|
||||
@@ -876,6 +880,30 @@
|
||||
|
||||
</main>
|
||||
|
||||
<script>
|
||||
// Espera a que todo el documento esté cargado
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
// Busca todos los elementos con la clase 'flash'
|
||||
const flashMessages = document.querySelectorAll('.flash');
|
||||
|
||||
flashMessages.forEach(function(message) {
|
||||
// 1. Configura la transición CSS para que desaparezca suavemente
|
||||
message.style.transition = "opacity 0.5s ease";
|
||||
|
||||
// 2. Espera 10 segundos (10000 milisegundos) antes de iniciar el cierre
|
||||
setTimeout(function() {
|
||||
message.style.opacity = "0"; // Vuelve el mensaje invisible
|
||||
|
||||
// 3. Espera a que termine la animación (0.5s) y elimina el elemento del HTML
|
||||
setTimeout(function() {
|
||||
message.remove();
|
||||
}, 500);
|
||||
|
||||
}, 5000); // 5000 ms = 5 segundos
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- <script>
|
||||
function confirmarEliminar(e) {
|
||||
e.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user