Code Monkey home page Code Monkey logo

bootstrap-sidebar's People

Contributors

asyraf9 avatar iwader avatar mystikweb avatar ty3uk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bootstrap-sidebar's Issues

IE8 Support

The plugin is amazing, unfortunately in IE8 plugin doesn't work; is there a workaround to fix it?
Thanks!
a.

does the vertical scroll is not working properly?

Navbar:

  <div class="navbar navbar-inverse navbar-default navbar-fixed-top">
    <div class="container">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle toggle-left hidden-md hidden-lg" data-toggle="sidebar" data-target=".sidebar-left">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>

        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>

        <a class="navbar-brand" href="/">test</a>
      </div>

      <div class="navbar-collapse collapse navbar-responsive-collapse">

Sidebar:

<div class="container-fluid">
  <div class="row">
    <div class="col-xs-7 col-sm-3 col-md-2 sidebar sidebar-left sidebar-animate sidebar-md-show">
      <ul class="nav navbar-stacked">
        <li>

Steps to reproduce:

  1. Browser with fullsize + Sidebar with lots of components (to force a vertical scroll)
  2. Decrease the width of the browser until the toggle button appears
  3. The vertical scroll of the sidebar stop working

Fetch Bootstrap & jQuery from CDN

May I suggest that for the zip downloaded version that the files are fetched from CDN? Makes it easier for quick demo locally....

Demo.html:

  <head>
    <script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
    <script src="dist/js/sidebar.js"></script>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" />
    <link rel="stylesheet" href="style.css" />
    <link rel="stylesheet" href="dist/js/sidebar.css"/>
  </head>

Index.html:

  <head>
    <script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
    <script src="dist/js/sidebar.js"></script>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" />
    <link rel="stylesheet" href="style.css" />
    <link rel="stylesheet" href="dist/css/sidebar.css"/>
  </head>

Right sidebar Issue

With the latest changes in code, Right sidebar not working. I checked the code and found mistake in sidebar.css, https://github.com/asyraf9/bootstrap-sidebar/blob/master/dist/css/sidebar.css#L151

It should be '100%' not '-100%'

Set default state

What if one wants to keep the toggle functionnality, but only set default state to open on large screens, and closed on mobile ?

Button in sidebar

I'm trying to modify the code of Bootstrap Sidebar:

http://jsfiddle.net/samtux/8djegrp6/35/

To display a fixed button that show and hide the menu sidebar. The start button with the plus sign when it is hidden and less when it is shown.

What I can suggest to achieve the fixed display button on the panel?

Thank you.

useless event hide

hi,
it looks like we get borderline effect with following lines

    var startEvent = $.Event('hide.bs.sidebar')
    this.$element.trigger(startEvent)

at the end, style="display:none" is added on dom element.

I do not know if jquery hide() method is called...but as this event is not used in your code, I propose to remove it.

PR coming

Hiding sidebar in printouts

I can hide the sidebar in printouts by using the "hidden-print" class. The problem is that due to the offsets, my page content is positioned offset to the right, as if the sidebar were there.

Any thoughts on how to print the page with the sidebar hidden and the page content taking the full width of the page and aligned to the left?

   <div class="container-fluid">
        <div class="row">
            <div class="col-xs-7 col-sm-3 col-md-3 col-lg-2 sidebar sidebar-left sidebar-animate sidebar-sm-show hidden-print">
                <ul class="nav navbar-stacked" id="ulMenu" runat="server">
                    <asp:Literal ID="ltrMenu" EnableViewState="false" runat="server"></asp:Literal>
                </ul>
            </div>
            <div class="col-sm-9 col-sm-offset-3 col-md-9 col-md-offset-3 col-lg-10 col-lg-offset-2 main">
                <asp:ContentPlaceHolder ID="MainContent" runat="server">
                </asp:ContentPlaceHolder>
            </div>
        </div>
    </div>

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.