From 101d9dd4280bf79ba256b91c17429ea1cc3bf3f4 Mon Sep 17 00:00:00 2001 From: flavien Date: Wed, 22 May 2019 17:12:09 +0200 Subject: [PATCH] fix security, css --- WEB/profil/admin.php | 63 +++--------------------------- WEB/ressources/navbaradminhtml.css | 42 ++++++++++++++------ WEB/ressources/navbaradminhtml.php | 12 +++--- WEB/ressources/navbarhtml.php | 4 +- 4 files changed, 45 insertions(+), 76 deletions(-) diff --git a/WEB/profil/admin.php b/WEB/profil/admin.php index 5f16aad..c503d9e 100644 --- a/WEB/profil/admin.php +++ b/WEB/profil/admin.php @@ -1,67 +1,16 @@ diff --git a/WEB/ressources/navbaradminhtml.css b/WEB/ressources/navbaradminhtml.css index dd8061b..e2bae2c 100644 --- a/WEB/ressources/navbaradminhtml.css +++ b/WEB/ressources/navbaradminhtml.css @@ -1,11 +1,12 @@ -#menuDiv{ +#menuDiv { width: 100%; display: block; } -#menuDiv a{ - font-family: "Arial"; +#menuDiv a { + font-family: Ubuntu, Helvetica, sans-serif; font-size: 1em; + height: 20%; } #menu { @@ -13,13 +14,28 @@ flex-direction: row; flex-wrap: wrap; justify-content: center; - background-color: rgb(65, 154, 28); + align-items: center; + background-color: rgb(35, 35, 35); } -.menuItem { +#logo { + width: 50%; + height: auto; +} + +#divFlex{ display: flex; flex-wrap: nowrap; + width: 10%; + min-width: 5em; + padding: 0; + text-align: center; align-items: center; +} + +.menuItem { + display: flex; + flex-wrap: nowrap; justify-content: center; color: white; width: 10%; @@ -27,13 +43,17 @@ font-weight: bold; text-decoration: none; padding: 0.8em; - border-bottom: 4px solid rgb(65, 154, 28); - border-top: 4px solid rgb(65, 154, 28); + border-bottom: 4px solid rgb(35, 35, 35); + border-top: 4px solid rgb(35, 35, 35); font-size: 1.1em; text-align: center; + align-items: baseline; } -.menuItem:hover{ - cursor: pointer; - border-bottom: 4px solid orange; -} \ No newline at end of file +.menuItem:hover { + border-bottom: 4px solid rgb(65, 154, 28); +} + +#colorAdmin{ + background-color: red; +} diff --git a/WEB/ressources/navbaradminhtml.php b/WEB/ressources/navbaradminhtml.php index 52421ea..690a0a8 100644 --- a/WEB/ressources/navbaradminhtml.php +++ b/WEB/ressources/navbaradminhtml.php @@ -6,13 +6,13 @@ if (file_exists("./inscription.php")) { ?> diff --git a/WEB/ressources/navbarhtml.php b/WEB/ressources/navbarhtml.php index 8f16b9a..2b8a4b5 100644 --- a/WEB/ressources/navbarhtml.php +++ b/WEB/ressources/navbarhtml.php @@ -10,8 +10,8 @@ if (file_exists("./inscription.php")) { Tableau de bord Trajets publiés Trajets réservés - Avis reçus - Avis laissés + Avis reçus + Avis laissés Profil Se déconnecter