From 941a3798e39124371a37ebb18763458ffbc6fc34 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 22 Oct 2015 00:27:12 +0200 Subject: [PATCH] Notification visuelle de la connection / et lien clair vers la connection --- css/menu.css | 19 +++++++++++---- index.php | 7 +++++- js/actionScript.js | 23 +++++++++++++++--- src/menu/userdata/visitor.svg | 44 +++++++++++++++++++++++++++++++++++ 4 files changed, 85 insertions(+), 8 deletions(-) create mode 100644 src/menu/userdata/visitor.svg diff --git a/css/menu.css b/css/menu.css index 564836a..fa579d1 100755 --- a/css/menu.css +++ b/css/menu.css @@ -20,7 +20,7 @@ height: 5em; /* background */ - background: #2dcc70 url(../src/menu/userdata/male.svg) left 1em center no-repeat; + background: #28B965 url(../src/menu/userdata/visitor.svg) left 1em center no-repeat; background-size: 3em auto; /* foreground */ @@ -30,11 +30,22 @@ line-height: 5em; /* extra */ - cursor: default; + cursor: pointer; + + /* animation */ + transition: background-color .2s ease-in-out; + -moz-transition: background-color .2s ease-in-out; + -webkit-transition: background-color .2s ease-in-out; + -ms-transition: background-color .2s ease-in-out; + -o-transition: background-color .2s ease-in-out; } -#MENU .userdata.M{ background-image: url(../src/menu/userdata/male.svg); } -#MENU .userdata.F{ background-image: url(../src/menu/userdata/female.svg); } + +#MENU .userdata:hover{ background-color: #2dcc70; } + +#MENU .userdata.M{ background-image: url(../src/menu/userdata/male.svg); cursor: default; } +#MENU .userdata.F{ background-image: url(../src/menu/userdata/female.svg); cursor: default; } + diff --git a/index.php b/index.php index f43df7c..5e4cd24 100755 --- a/index.php +++ b/index.php @@ -66,7 +66,12 @@ $notifNotifNum = 5;