diff --git a/public_html/asset/svg/login.svg b/public_html/asset/svg/login.svg
index 1c0d830..8c1bdd0 100644
--- a/public_html/asset/svg/login.svg
+++ b/public_html/asset/svg/login.svg
@@ -7,17 +7,25 @@
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- style="enable-background:new 0 0 139 139;"
+ viewBox="0 0 32 32"
version="1.1"
- viewBox="0 0 139 139"
- xml:space="preserve"
- id="svg37"
+ id="svg11"
sodipodi:docname="login.svg"
- inkscape:version="0.92.2 5c3e80d, 2017-08-06">image/svg+xml
+
+
+
+ image/svg+xml
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+ inkscape:connector-curvature="0" />
+
+
diff --git a/webpack/scss/menu.scss b/webpack/scss/menu.scss
index 7213753..dd47959 100644
--- a/webpack/scss/menu.scss
+++ b/webpack/scss/menu.scss
@@ -1,4 +1,4 @@
-$menu-bg: #163042;
+$menu-bg: #303030;
$menu-width: 3em;
$menu-outer-width: #{$menu-width + 1em};
@@ -29,7 +29,7 @@ $menu-outer-width: #{$menu-width + 1em};
border-radius: 3px / 3px;
- // box-shadow: inset 0 0 5px darken($menu-bg, 6%);
+ box-shadow: inset 0 0 0 transparent;
background: center center no-repeat;
background-size: 50%;
@@ -41,29 +41,36 @@ $menu-outer-width: #{$menu-width + 1em};
cursor: pointer;
/* (1) Set icons */
- &[data-icon='home']{ background-image: url('/asset/svg/home.svg@bebedd'); }
- &[data-icon='manage']{ background-image: url('/asset/svg/manage.svg@bebedd'); }
- &[data-icon='fiche']{ background-image: url('/asset/svg/fiche.svg@bebedd'); }
- &[data-icon='login']{ background-image: url('/asset/svg/login.svg@bebedd'); }
- &[data-icon='logout']{ background-image: url('/asset/svg/logout.svg@bebedd'); }
+ &[data-icon='home']{ background-image: url('/asset/svg/home.svg@7992a3'); }
+ &[data-icon='manage']{ background-image: url('/asset/svg/manage.svg@7992a3'); }
+ &[data-icon='fiche']{ background-image: url('/asset/svg/fiche.svg@7992a3'); }
+ &[data-icon='login']{ background-image: url('/asset/svg/login.svg@7992a3'); }
+ &[data-icon='logout']{ background-image: url('/asset/svg/logout.svg@7992a3'); }
/* (2) On hover */
- &:hover{ border: 1px solid lighten($menu-bg, 20%); }
+ &:hover, &.active{
+ border: 1px solid lighten($menu-bg, 20%);
+ // box-shadow: inset 0 0 5px darken($menu-bg, 6%);
+ box-shadow: 0 0 10px darken($menu-bg, 10%);
+ }
- &[data-icon='home']:hover{ background-image: url('/asset/svg/home.svg@dfdfee'); }
- &[data-icon='manage']:hover{ background-image: url('/asset/svg/manage.svg@dfdfee'); }
- &[data-icon='fiche']:hover{ background-image: url('/asset/svg/fiche.svg@dfdfee'); }
- &[data-icon='login']:hover{ background-image: url('/asset/svg/login.svg@dfdfee'); }
- &[data-icon='logout']:hover{ background-image: url('/asset/svg/logout.svg@dfdfee'); }
+ color: #4a71dd;
+
+ &[data-icon='home']:hover, &[data-icon='home'].active{ background-image: url('/asset/svg/home.svg@10d197'); }
+ &[data-icon='manage']:hover, &[data-icon='manage'].active{ background-image: url('/asset/svg/manage.svg@da5645'); }
+ &[data-icon='fiche']:hover, &[data-icon='fiche'].active{ background-image: url('/asset/svg/fiche.svg@4a71dd'); }
+ &[data-icon='login']:hover, &[data-icon='login'].active{ background-image: url('/asset/svg/login.svg@dab245'); }
+ &[data-icon='logout']:hover, &[data-icon='logout'].active{ background-image: url('/asset/svg/logout.svg@dab245'); }
/* (3) Label */
span{
- display: none;
- // display: block;
+ // display: none;
+ display: block;
position: absolute;
- margin-top: #{$menu-width / 4};
- left: calc( 100% + .5em );
+ margin-top: #{$menu-width / 5};
+ left: calc( -100% + .5em );
+ opacity: 0;
padding: .3em .7em;
@@ -73,10 +80,16 @@ $menu-outer-width: #{$menu-width + 1em};
border-radius: 3px / 3px;
+ transition: all .2s ease-in-out;
+
+ z-index: -1;
}
/* (4) Display label on item hover */
- &:hover span{ display: block; }
+ &:hover span{
+ left: calc( 100% + .5em );
+ opacity: 1;
+ }
}