/*////////////////////////////////////////////////////////////////// [ FONT ]*/ @font-face { font-family: Kano; src: url('../fonts/Fredoka-Regular.ttf'); } /*////////////////////////////////////////////////////////////////// [ NAV_BAR + TOP_BAR ]*/ * { margin: 0; padding: 0; box-sizing: border-box; font-family: Kano, sans-serif; } :root { --blue: #38638b; --white: #fff; --grey: #f5f5f5; --black1: #222; --black2: #999; --black3: #e6e6e6; } body{ min-height: 100vh; overflow-x: hidden; } .container { position: relative; width: 100%; } .navigation { position: fixed; width: 220px; height: 100%; background: var(--blue); border-left: 10px solid var(--blue); transition: 0.4s; -webkit-transition: all 0.4s; -o-transition: all 0.4s; -moz-transistion: all 0.4s; overflow: hidden; } .navigation.reduced { width: 80px; } .navigation ul { position: relative; top: 0; left: 0; width: 100%; } .navigation ul li { position: relative; width: 100%; list-style: none; border-top-left-radius: 20px; border-bottom-left-radius: 20px; } .navigation ul li:hover, .hover { background: var(--white); } .nav_title { margin-top: 15px; margin-bottom: 40px; pointer-events: none; } .nav_title span { margin-top: 10px; } .nav_title img { height:60px; } .title { position: relative; display: block; white-space: nowrap; padding: 0 10px; height: 40px; line-height: 50px; display: inline-flex; align-items: center; } .navigation ul li a { display: block; width: 100%; display: flex; text-decoration: none; color: var(--white); } .hover a { color: var(--blue) !important; } .navigation ul li:hover a, .hover { color: var(--blue); /*transition: all 0.4s; -webkit-transition: all 0.4s; -o-transition: all 0.4s; -moz-transistion: all 0.4s;*/ } .navigation ul li a .icon { position: relative; display: block; min-width:60px; text-align: center; margin-top: 7px; } .navigation ul li a .icon i { font-size: 1.5em; } .sous_li { padding-left: 20px; } .sous_li .icon { line-height: 15px; height: 10px; margin-top: 0px !important; } .sous_li .title { line-height: 30px; height: 25px; } .navigation ul li:hover a::before, .hover a::before { content: ''; position: absolute; right: 0; top: -50px; width: 50px; height: 50px; background: transparent; border-radius: 50%; box-shadow: 35px 35px 0 10px var(--white); pointer-events: none; } .navigation ul li:hover a::after, .hover a::after { content: ''; position: absolute; right: 0; bottom: -50px; width: 50px; height: 50px; background: transparent; border-radius: 50%; box-shadow: 35px -35px 0 10px var(--white); pointer-events: none; } .navigation ul .sous_li:hover a::before, .hover a::before { content: ''; position: absolute; right: 0; top: -50px; width: 50px; height: 50px; background: transparent; border-radius: 50%; box-shadow: 20px 20px 0 0px var(--white); pointer-events: none; } .navigation ul .sous_li:hover a::after, .hover a::after { content: ''; position: absolute; right: 0; bottom: -50px; width: 50px; height: 50px; background: transparent; border-radius: 50%; box-shadow: 20px -20px 0 0px var(--white); pointer-events: none; } .main { position: relative; width: calc(100% - 220px); min-width: calc(100% - 220px); left: 220px; min-height: 100vh; background: var(--white); transition: 0.5s; } .main.reduced { width: calc(100% - 80px); left: 80px; } .topbar { width: 100%; height: 60px; display: flex; justify-content: space-between; align-items: center; padding: 0 10px 0 0; } .toggle { position: relative; top: 0; width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; font-size: 2em; cursor:pointer; margin: 0 10px 0 10px; } .search { position: relative; width: 400px; } .search label { position: relative; } .search label input { width: 100%; height: 40px; border-radius: 40px; padding: 5px 20px; padding-left: 35px; font-size: 18px; outline: none; border: 1px solid var(--black2); } .search label i { position: absolute; top: 0; left: 13px; top: -1px; } .user { position: relative; min-width: 32px; height: 32px; overflow: hidden; cursor: pointer; margin: 5px 10px 0 10px; } .user a { color: black; } .user i { position: absolute; top: 0; left: 0; font-size: 2em; } .user:hover i { color: var(--blue); transition: all 0.4s; -webkit-transition: all 0.4s; -o-transition: all 0.4s; -moz-transistion: all 0.4s; } /*////////////////////////////////////////////////////////////////// [ Responsive ]*/ @media screen and (max-width: 900px) { .navigation { width: 100%; left: -100%; z-index: 1000; overflow-y: hidden; } .navigation.reduced { width: 100%; left: 0; } .toggle { z-index: 10001; } .main { width: 100%; left: 0; } .main.reduced .toggle { position: fixed; color: var(--white); right: 0; left: initial; } }