From efc6713953dc0daa5e9893c592970b49ac851bab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20M=C3=A9ndez?= <45081533+FerMdez@users.noreply.github.com> Date: Fri, 19 Mar 2021 17:47:59 +0100 Subject: [PATCH] =?UTF-8?q?Mejoras=20en=20el=20men=C3=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/main.css | 34 ++++++++++++++++++++++++++++++++-- assets/php/header.php | 27 +++++++++++++++++---------- 2 files changed, 49 insertions(+), 12 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index 0d1ff81..02c921c 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -1,6 +1,7 @@ /* Basic */ * { box-sizing: border-box; + margin: 0px; } /* Headers */ @@ -39,11 +40,40 @@ h4 { width: 11px; } .menu { - background-color: #1f2c3d; - color: #dadada; text-align: right; font-size: 15px; } +.menu nav a{ + text-decoration: none; + color: inherit; + font-size: 14px; +} +.menu nav li{ + display: inline-block; + width: 150px; + height: 30px; + padding: 5px 10px; + background-color :#1f2c3d; + border: 1px solid #d3ebff; + text-align: center; + color :#d3ebff; + position: relative; +} +.menu nav li:hover{ + background-color:#d3ebff; + color:#1f2c3d; + border-color: #1f2c3d; +} +.menu nav li>ul{ + display: none; +} +.menu nav li:hover>ul{ + display: block; + position: absolute; + top: 29px; + right: -1px; +} + /* Paragraphs */ p { diff --git a/assets/php/header.php b/assets/php/header.php index 90be9cd..a6f7af0 100644 --- a/assets/php/header.php +++ b/assets/php/header.php @@ -4,22 +4,29 @@ switch(true){ case strpos($page, 'detalles'): $page = 'Detalles'; break; - case strpos($page, 'bocetos'): $page = 'Detalles'; break; - case strpos($page, 'miembros'): $page = 'Detalles'; break; - case strpos($page, 'planificacion'): $page = 'Detalles'; break; - case strpos($page, 'contacto'): $page = 'Detalles'; break; + case strpos($page, 'bocetos'): $page = 'Bocetos'; break; + case strpos($page, 'miembros'): $page = 'Miembros'; break; + case strpos($page, 'planificacion'): $page = 'Planificación'; break; + case strpos($page, 'contacto'): $page = 'Contacto'; break; default: $page = 'FDI-Cines'; $prefix = './'; break; } echo"