nav a { color: #ffffff; opacity: .7; cursor: pointer; } nav a:hover, nav a:focus { opacity: 1; } /* Menu */ #logo { position: relative; display: block; width: 100%; margin-bottom: 10px; opacity: 1; background: -moz-linear-gradient(top, #bf1c11, #ba1203); background: -webkit-linear-gradient(top, #bf1c11, #ba1203); background: #bf1c11; transition: .15s ease; } /* Flèche */ /*nav #logo::after { content: ""; position: absolute; top: 100%; left: 50%; height: 0; width: 0; border: solid transparent; border-top-color: #ba1203; border-width: 12px; margin-left: -12px; }*/ #logo img { width: 100%; margin: 0; padding: 0; margin-bottom: -4.5px; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .0)); transition: filter .15s ease; } #logo:hover, #logo:focus { background: #d72411; } #light-menu { position: fixed; z-index: 10; list-style: none; width: 60px; height: 100%; overflow-y: auto; margin: 0; padding: 0; text-indent: 0; background: #22292c; box-shadow: 0 0 2px rgba(0, 0, 0, 0.3); } #light-menu li { width: 100%; height: 45px; text-align: center; font-family: Raleway; font-size: 13px; color: #ffffff; } #light-menu li > a { display: flex; flex-direction: column; flex-grow: 1; align-items: center; justify-content: center; width: 100%; height: 100%; transition: opacity .15s ease; /* because Chrome sucks */ } #light-menu li > a > svg { display: block; width: 35%; flex-shrink: 0; margin: 0 auto 5px auto; } #light-menu li div { display: none; } #light-menu li > a::after { content: attr(label); position: fixed; display: none; padding: 4px 8px; /*margin-top: -28px;*/ left: 63px; font-family: NotoSans; border-radius: 3px; background: rgba(0, 0, 0, 0.9); } #light-menu li:not(.opened) > a:hover::after, #light-menu li:not(.opened) > a:focus::after { display: block; } /*nav li span[notifications]:not([notifications="0"])::before { content: attr(notifications); display: inline-block; margin-right: 6px; vertical-align: middle; padding: 0 5px 0 4px; border-radius: 5px; font-family: NotoSans; background: #ffffff; color: #000000; }*/ /* Overlay */ #menu { position: fixed; z-index: 5; left: -240px; width: 300px; /* left-to-right animation */ /*left: 60px; width: 0;*/ /* scroll animation */ height: 100%; overflow-x: hidden; overflow-y: auto; font-family: NotoSans; font-size: 14px; background: #22292c; box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); transition: .15s ease; } #menu.opened { left: 60px; /* left-to-right animation */ /*width: 300px;*/ /* scroll animation */ } #menu.scroll-animation { left: 60px; width: 0; } #menu.scroll-animation.opened { width: 300px; } #menu.left-to-right-animation { left: -240px; width: 300px; } #menu.left-to-right-animation.opened { left: 60px; } #menu > div { width: 300px; display: none; } #menu > div.opened { display: block; } #menu h2 { margin: 5% 0 20px 40px; font-family: Raleway; font-size: 18px; color: #ffffff; } #menu h2 > svg { width: 42px; vertical-align: middle; } #menu h2 img { width: 64px; border-radius: 50%; vertical-align: middle; margin-right: 10px; } #menu h3 { margin: 20px 0 20px 40px; font-family: Raleway; font-size: 14px; color: #ffffff; } #menu hr { margin: 15px; border: none; border-bottom: 1px solid rgba(0, 0, 0, .15); } #menu ul { margin: 0; padding: 0; list-style: none; } #menu a, #menu li { display: block; margin: 10px 15px; transition: opacity .15s ease; } #menu li { color: #b8b8b8; } #menu li > a { display: inline; margin: 0; font-style: normal; } #menu a > img { vertical-align: middle; margin-right: 15px; } #menu a > svg { width: 20px; height: 20px; vertical-align: middle; margin-right: 10px; } #menu form div { padding: 0 5%; } #menu form input[type="text"], #menu form input[type="password"] { display: block; width: 100%; margin: 0; padding: 5px 2%; font-size: 14px; color: inherit; background: #e8e8e8; transition: background .15s ease; border: none; } #menu form input[type="text"]:focus, #menu form input[type="password"]:focus { background: #ffffff; } #menu form input[type="text"] { border-top-left-radius: 5px; border-top-right-radius: 5px; } #menu form input[type="password"] { border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; } #menu form input[type="submit"] { width: 100%; margin-top: 10px; margin-bottom: 5px; border-radius: 5px; } #menu form label { font-size: 13px; color: #FFFFFF; opacity: .7; }