-
-
Save kuroisuna/d1f468bf15de08843109cabb612f139d to your computer and use it in GitHub Desktop.
// source https://jsbin.com/fizivahehe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<!-- Required meta tags --> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<!-- Bootstrap CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous"> | |
<style id="jsbin-css"> | |
@media (min-width: 992px) { | |
#navbarSupportedContent { | |
position: fixed; | |
display: block !important; | |
left: 0; | |
width: 200px; | |
top: 54px; | |
bottom: 0; | |
background: #f3f3f3; | |
padding-top: 20px; | |
} | |
#navbarSupportedContent .navbar-nav { | |
display: block; | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
overflow-y: auto; | |
} | |
#navbarSupportedContent .nav-item { | |
display: block; | |
width: auto; | |
} | |
.app-content { | |
margin-left: 200px; | |
padding-top: 20px; | |
} | |
} | |
.app-content { | |
padding: 70px 20px; | |
} | |
</style> | |
</head> | |
<body> | |
<nav class="navbar fixed-top navbar-toggleable-md navbar-light bg-faded"> | |
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> | |
<span class="navbar-toggler-icon"></span> | |
</button> | |
<a class="navbar-brand" href="#">Admin</a> | |
<div class="collapse navbar-collapse" id="navbarSupportedContent"> | |
<ul class="navbar-nav mr-auto"> | |
<li class="nav-item active"> | |
<a class="nav-link" href="#">Puta Alex <span class="sr-only">(current)</span></a> | |
</li> | |
<li class="nav-item"> | |
<a class="nav-link" href="#">Link</a> | |
</li> | |
<li class="nav-item"> | |
<a class="nav-link disabled" href="#">Disabled</a> | |
</li> | |
<li class="nav-item active"> | |
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a> | |
</li> | |
<li class="nav-item"> | |
<a class="nav-link" href="#">Link</a> | |
</li> | |
<li class="nav-item"> | |
<a class="nav-link disabled" href="#">Disabled</a> | |
</li> | |
<li class="nav-item active"> | |
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a> | |
</li> | |
<li class="nav-item"> | |
<a class="nav-link" href="#">Link</a> | |
</li> | |
<li class="nav-item"> | |
<a class="nav-link disabled" href="#">Disabled</a> | |
</li> | |
</ul> | |
</div> | |
</nav> | |
<section class="app-content">Hola</section> | |
<!-- jQuery first, then Tether, then Bootstrap JS. --> | |
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script> | |
<script id="jsbin-source-css" type="text/css">@media (min-width: 992px) { | |
#navbarSupportedContent { | |
position: fixed; | |
display: block !important; | |
left: 0; | |
width: 200px; | |
top: 54px; | |
bottom: 0; | |
background: #f3f3f3; | |
padding-top: 20px; | |
.navbar-nav { | |
display: block; | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
overflow-y: auto; | |
} | |
.nav-item { | |
display: block; | |
width: auto; | |
} | |
} | |
.app-content { | |
margin-left: 200px; | |
padding-top: 20px; | |
} | |
} | |
.app-content { | |
padding: 70px 20px; | |
}</script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media (min-width: 992px) { | |
#navbarSupportedContent { | |
position: fixed; | |
display: block !important; | |
left: 0; | |
width: 200px; | |
top: 54px; | |
bottom: 0; | |
background: #f3f3f3; | |
padding-top: 20px; | |
} | |
#navbarSupportedContent .navbar-nav { | |
display: block; | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
overflow-y: auto; | |
} | |
#navbarSupportedContent .nav-item { | |
display: block; | |
width: auto; | |
} | |
.app-content { | |
margin-left: 200px; | |
padding-top: 20px; | |
} | |
} | |
.app-content { | |
padding: 70px 20px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment