/* Adapted from https://v4-alpha.getbootstrap.com/examples/dashboard/dashboard.css and http://v4-alpha.getbootstrap.com/examples/offcanvas/offcanvas.css */ html, body { /* Prevent scroll on narrow devices */ overflow-x: hidden; } body { /* Required for Scrollspy */ position: relative; } @media screen and (max-width: 991px) { body { padding-top: 3em; } } svg { width: auto; height: 100%; } /* * Header */ .navbar-brand { height: 2em; } .navbar-dark path { fill: #f5f5f5; } /* Adapted from https://codepen.io/GeoffreyBooth/pen/QGzwYK */ .navbar-menu-button, .navbar-menu-button:focus { float: right; width: 2.3em; padding: 0; margin-top: 0.25em; background: transparent; border: 0; outline: 0; } .menu-button { width: 2em; height: 1.5em; position: relative; transform: rotate(0deg); transition: .25s ease-in-out; cursor: pointer; } .menu-button span { display: block; position: absolute; height: 4px; width: 100%; background: #f5f5f5; border-radius: 4px; opacity: 1; left: 0; transform: rotate(0deg); transition: .25s ease-in-out; } .menu-button span:nth-child(1) { top: 0; } .menu-button span:nth-child(2), .menu-button span:nth-child(3) { top: 0.7em; } .menu-button span:nth-child(4) { top: 1.4em; } .menu-button.active span:nth-child(1) { top: 0.7em; width: 0%; left: 50%; } .menu-button.active span:nth-child(2) { transform: rotate(45deg); } .menu-button.active span:nth-child(3) { transform: rotate(-45deg); } .menu-button.active span:nth-child(4) { top: 0.7em; width: 0%; left: 50%; } /* * Sidebar */ .sidebar { background-color: #f5f5f5; border-right: 1px solid #eee; position: fixed; top: 0; bottom: 0; left: 0; z-index: 1000; display: block; padding-top: 1.3em; padding-left: 1.6em; padding-right: 1.6em; overflow-x: hidden; overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */ } .nav-link.active, .nav-link.active, a:hover, .nav-link.active, a:focus { color: indianred; } .nav .nav { margin-left: 1em; } /* * Off Canvas */ @media screen and (max-width: 991px) { .row-offcanvas { position: relative; transition: all .25s ease-in-out; } .row-offcanvas-left { left: 0; } .row-offcanvas-left .sidebar-offcanvas { left: -66.667%; } .row-offcanvas-right.active { right: calc(66.667% + 1em); } .row-offcanvas-left.active { left: calc(66.667% + 1em); } .sidebar-offcanvas { position: absolute; top: 0; width: 66.667%; } } /* * Main content */ .main { padding: 1.3em; } @media (min-width: 992px) { .main { padding-right: 2em; padding-left: 2em; } } .title-logo { width: 30em; margin: 3em auto; } .title-logo path { fill: #28334C; } /* * Code examples */ textarea { position: absolute; left: -99999px; /* Hide off canvas, while still remaining visible */ } .CodeMirror { /* https://codemirror.net/demo/resize.html */ height: auto; background: transparent; } .code-example { background-color: #f5f5f5; padding: 1em; border-radius: 0.3em; margin-bottom: 1em; }