Browse Source

Ajuste de estilo en botón salir

Celestino Rey 1 year ago
parent
commit
e02064efab
3 changed files with 16 additions and 14 deletions
  1. BIN
      db.sqlite3
  2. 13 0
      static/style.css
  3. 3 14
      templates/_navigation.html

BIN
db.sqlite3


+ 13 - 0
static/style.css

@@ -475,4 +475,17 @@ tbody tr td {
 }
 .dropdown:hover .dropbtn {
    background-color: #fff;
+}
+
+.boton-salir {
+   background: none!important;
+   border: none;
+   padding: 0!important;
+   /*optional*/
+   font-family: arial, sans-serif;
+   /*input has OS specific font-family*/
+   /*color: #069;
+   text-decoration: underline;*/
+   cursor: pointer;
+   font-size: 16px;
 }

+ 3 - 14
templates/_navigation.html

@@ -10,7 +10,7 @@
         </div>
     </div>
 
-     <div class="profile">
+    <div class="profile">
         <i class="bi bi-bell"></i> 
         <div class="dropdown">
             {% if user.is_authenticated %}
@@ -24,23 +24,12 @@
                 <a href="{% url 'logout' %}">
                     <form method="post" action="{% url 'logout' %}" >
                     {% csrf_token %}
-                    <button
-                    style="background: none!important;
-                                border: none;
-                                padding: 0!important;
-                                /*optional*/
-                                font-family: arial, sans-serif;
-                                /*input has OS specific font-family*/
-                                /*color: #069;
-                                text-decoration: underline;*/
-                                cursor: pointer;"   
-                        
-                    type="submit">Salir</button>
+                    <button class="boton-salir" type="submit">Salir</button>
                 </form></a>
                 {% else %}
                 <a href="{% url 'login' %}">Iniciar Sesión</a>
                 {% endif %}
             </div>
         </div>
-     </div>
+    </div>
 </div>