Procházet zdrojové kódy

banner mejor colocado

Celestino Rey před 10 měsíci
rodič
revize
2a06a00751
2 změnil soubory, kde provedl 10 přidání a 3 odebrání
  1. 9 2
      src/templates/_cabecera.html
  2. 1 1
      src/templates/base.html

+ 9 - 2
src/templates/_cabecera.html

@@ -23,12 +23,19 @@
             font-size: 14px;
             border-bottom: 3px solid #d32f2f;
             box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
-            position: sticky;
+            position: fixed;
             top: 0;
-            z-index: 9999;
+            left: 0;
+            right: 0;
+            z-index: 9998;
             animation: pulse-debug 2s infinite;
         }
 
+        /* Ajustar body cuando hay debug banner */
+        body.has-debug-banner {
+            padding-top: 50px;
+        }
+
         @keyframes pulse-debug {
             0%, 100% {
                 opacity: 1;

+ 1 - 1
src/templates/base.html

@@ -3,7 +3,7 @@
 
 {% include "_cabecera.html" %}
 
-<body>
+<body {% if debug %}class="has-debug-banner"{% endif %}>
     {% if debug %}
     <div class="debug-banner">
         <i class="bi bi-exclamation-triangle-fill"></i>