Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"nav"
Bootstrap 3.0.0 Snippet by
evarevirus
3.0.0
Preview
HTML
View Full Screen
Fork
Fork this
645
 
0 Fav
Post to Facebook
Tweet this
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html><html class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/brandonferrua/pen/YyKPQJ?limit=all&page=47&q=nav" /> <link rel='stylesheet prefetch' href='https://s3-us-west-2.amazonaws.com/s.cdpn.io/8005/salesforce-lightning-design-system.min.css'> <style class="cp-pen-styles">.header { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07); z-index: 1; } .stage-left { width: 4rem; -webkit-transition: width .2s ease-in-out .05s; transition: width .2s ease-in-out .05s; } @media (min-width: 1024px) { .stage-left.open { width: 15rem; -webkit-transition: width .1s ease-in-out; transition: width .1s ease-in-out; } .stage-left.open .stage-left__text { opacity: 1; width: auto; -webkit-transition-delay: .2s; transition-delay: .2s; } } .stage-left li + li { margin-top: 0.5rem; } .stage-left a:not(.button) { display: block; text-decoration: none; white-space: nowrap; border-radius: 0.25rem; background: transparent; padding: 0.25rem; -webkit-transition: background .05s linear; transition: background .05s linear; } .stage-left a:not(.button):hover, .stage-left a:not(.button):focus { background: #061c3f; } .stage-left a:not(.button):active { box-shadow: inset 0px 3px 3px 0px rgba(0, 0, 0, 0.16), 0 0 3px #0070D2; } .stage-left .stage-left__text { opacity: 0; width: 0; -webkit-transition: all .05s linear; transition: all .05s linear; } .stage-left .slds-icon { max-width: initial; } .stage-container { max-height: 100%; overflow: hidden; } .slds-grid--frame { min-width: 767px; overflow-y: auto; } </style></head><body> <div class="slds-grid slds-grid--frame slds-grid--vertical"> <!-- Header --> <header class="header slds-size--1-of-1" role="banner"> <div class="slds-grid"> <div class="stage-left slds-grid slds-size--2-of-12 slds-theme--alt-inverse slds-p-vertical--x-small slds-p-horizontal--medium js-nav-toggle open"> <span class="slds-icon__container slds-align-middle"> <img class="slds-icon slds-icon--small" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/8005/rows.svg" alt="Toggle Menu" /> <span class="slds-assistive-text">Toggle Menu</span> </span> </div> <div class="slds-grid slds-grow"> <div class="slds-p-vertical--x-small slds-p-horizontal--medium"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/8005/salesforce-logo.png" style="height: 44px;"> </div> </div> </div> </header> <!-- Stage Container --> <div class="stage-container slds-grid slds-nowrap slds-size--1-of-1"> <!-- Stage Left - Navigation --> <nav class="stage-left slds-size--2-of-12 slds-shrink-none slds-scrollable--y slds-theme--alt-inverse slds-p-around--small open"> <ul role="navigation" class="slds-has-block-links"> <li> <a href="#"> <span class="slds-icon__container slds-icon-standard-today slds-m-right--small"> <img class="slds-icon" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/8005/today.svg" alt="Nav Item One" /> <span class="slds-assistive-text">Nav Item One</span> </span> <span class="stage-left__text slds-max-medium-hide">Nav Item One</span> </a> </li> <li> <a href="#"> <span class="slds-icon__container slds-icon-standard-opportunity slds-m-right--small"> <img class="slds-icon" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/8005/opportunity.svg" alt="Nav Item One" /> <span class="slds-assistive-text">Nav Item Two</span> </span> <span class="stage-left__text slds-max-medium-hide">Nav Item Two</span> </a> </li> </ul> </nav> <!-- Stage --> <section class="stage slds-grid slds-grid--vertical slds-nowrap"> <div class="slds-shrink-none"> <div class="slds-page-header">Page Header</div> </div> <!-- Stage Main --> <div class="stage-main slds-grid slds-wrap slds-grow slds-scrollable--y" role="main"> <div class="slds-grow slds-size--1-of-1 slds-medium-size--1-of-2 slds-large-size--8-of-12 slds-col-rule--right slds-p-around--large"> Primary Content Area </div> <div class="slds-shrink-none slds-size--1-of-1 slds-medium-size--1-of-2 slds-large-size--4-of-12 slds-p-around--large" role="complementary"> Secondary Content Area </div> </div> </section> </div> </div> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script><script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script >var stageLeft = $('.stage-left'); $('.js-nav-toggle').click(function() { stageLeft.toggleClass('open'); }); //# sourceURL=pen.js </script> </body></html>
Related:
See More
Template
Light Bootstrap Dashboard Pro
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76