/* off-canvas */ /* Adaption of https://bootsnipp.com/snippets/Qb83E */ /* body { position: relative; overflow-x: hidden; } body, html { height: 100%;} .nav .open > a, .nav .open > a:hover, .nav .open > a:focus {background-color: transparent;} */ /*-------------------------------*/ /* Wrappers */ /*-------------------------------*/ #wrapper { padding-left: 0; transition: all 0.5s ease; } #wrapper.toggled { /*padding-left: 220px;*/ } #sidebar-wrapper { position:absolute; z-index: 1000; left: 220px; width: 0; height: 100%; margin-left: -220px; overflow-y: auto; overflow-x: hidden; background: #1a1a1a; transition: all 0.5s ease; } #sidebar-wrapper::-webkit-scrollbar { display: none; } #wrapper.toggled #sidebar-wrapper { width: 220px; } /* #page-content-wrapper, #dokuwiki__site { width: 100%; } #wrapper.toggled #page-content-wrapper { position: absolute; margin-right: -220px; } #wrapper.toggled #dokuwiki__site { margin-right: -220px; } */ /*-------------------------------*/ /* Sidebar nav styles */ /*-------------------------------*/ .sidebar-offcanvas ul { width: 220px; margin: 0; padding: 0; list-style: none; overflow-x: hidden; } .sidebar-offcanvas ul li { position: relative; line-height: 20px; min-height: 20px; height:auto; display: inline-block; width: 100%; } .sidebar-offcanvas ul li:before { content: ''; position: absolute; top: 0; left: 0; z-index: -1; height: 100%; width: 3px; background-color: #1c1c1c; transition: width .3s ease-in; } .sidebar-offcanvas ul li a { color: #fff; background-color: #1a1a1a; } .sidebar-offcanvas ul li:before { background-color: #314190; } .sidebar-offcanvas ul li:hover:before, .sidebar-offcanvas ul li.open:hover:before { width: 100%; transition: width .3s ease-in; } .sidebar-offcanvas ul li i { display:block; float:left; width: 20px; padding: 10px; font-size: 1.5em; } .sidebar-offcanvas h3 { display:none; } .sidebar-offcanvas ul li a { display: block; width:190px; float:right; color: #ddd; text-decoration: none; padding: 10px 15px 10px 30px; } .sidebar-offcanvas ul li a:hover, .sidebar-offcanvas ul li a:active, .sidebar-offcanvas ul li a:focus, .sidebar-offcanvas ul li.open a:hover, .sidebar-offcanvas ul li.open a:active, .sidebar-offcanvas ul li.open a:focus{ color: #fff; text-decoration: none; background-color: transparent; } /*-------------------------------*/ /* Hamburger-Cross */ /*-------------------------------*/ .hamburger { position: absolute; top: 20px; z-index: 999; display: block; width: 32px; height: 32px; margin-left: 15px; background: transparent; border: none; } .hamburger i { font-size:2em; } #wrapper .hamburger { margin-left: 0; transition: margin-left 0.8s ease; } #wrapper.toggled .hamburger { margin-left: 220px; } /*-------------------------------*/ /* Overlay */ /*-------------------------------*/ .overlay { position: fixed; display: none; width: 100%; height: 100%; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(250,250,250,.8); z-index: 1; }