Coder Social home page Coder Social logo

tirzono / bootstrap-side-navbar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from samrayner/bootstrap-side-navbar

0.0 2.0 0.0 353 KB

Responsive sidebar navigation for Bootstrap 3

Home Page: http://samrayner.github.io/bootstrap-side-navbar

License: MIT License

Ruby 38.33% CoffeeScript 0.48% CSS 27.52% HTML 33.67%

bootstrap-side-navbar's Introduction

Icon Side Navbar for Bootstrap 3

Responsive sidebar navigation using default BS3 navbar markup

Sponsored by Terracoding

Installation

Sass

Download navbar-fixed-side.scss

Include it after Bootstrap in your Sass file:

@import 'bootstrap';
@import 'navbar-fixed-side';

CSS

Download the minified navbar-fixed-side.css

Include it after Bootstrap in your HTML:

<link href="css/bootstrap.min.css" rel="stylesheet" />
<link href="css/navbar-fixed-side.css" rel="stylesheet" />

Bower

bower install bootstrap-side-navbar


Usage

Position the navbar using the standard Bootstrap grid system in a .container-fluid.

This gives you control over how wide it is and when it should collapse.

Then just use .navbar-fixed-side as you would usually use .navbar-fixed-top.

Examples

Left-hand side

<div class="container-fluid">
  <div class="row">
    <div class="col-sm-3 col-lg-2">
      <nav class="navbar navbar-default navbar-fixed-side">
        <!-- normal collapsible navbar markup -->
      </nav>
    </div>
    <div class="col-sm-9 col-lg-10">
      <!-- your page content -->
    </div>
  </div>
</div>

Right-hand side

Use Bootstrap's column ordering to maintain source order

<div class="container-fluid">
  <div class="row">
    <div class="col-sm-3 col-lg-2 col-sm-push-9 col-lg-push-10">
      <nav class="navbar navbar-default navbar-fixed-side">
        <!-- normal collapsable navbar markup -->
      </nav>
    </div>
    <div class="col-sm-9 col-lg-10 col-sm-pull-3 col-lg-pull-2">
      <!-- your page content -->
    </div>
  </div>
</div>

Options

The side navbar supports the inverse style for navbars. Replace .navbar-default with .navbar-inverse as normal.

bootstrap-side-navbar's People

Contributors

harelm avatar samrayner avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.