nice-boot-sidebar

Nice Bootstrap sidebar template

  • 所有者: FranckyU/nice-boot-sidebar
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

#nice-boot-sidebar
Nice Bootstrap sidebar template

Nice what ?

The default bootstrap 3 style provides a default way to define horizontal navigation block.
It's normally done by setting a class names to an ul

<ul class="nav nav-pills nav-stacked">

But I find it a bit HTML5 non compliant as we already have the <nav> tag available so we'd better leave the ul clean.

This template contains an alternative vertical navigation that address this issue, it is left positioned and fixed and it can be used for building beautiful backends.

Show us the result dude !!

Yup, here's the link to the result on JSFiddle
Better, here you can view it full screen

Usage

The complete template is built with Stasis using my base template for front-end prototyping StasisTPL so you should have a valid Ruby environment to run it, I use RVM.

CSS are written with SASS
JS are written with CoffeeScript
HTML are written with HAML

To run the example, just do

git clone https://github.com/FranckyU/nice-boot-sidebar.git
cd nice-boot-sidebar
bundle #assuming you already have a ruby environment
stasis -d 3000

# Now you should have it visible at http://127.0.0.1:3000

For non Ruby-Stasis users, just copy the compiled HTML structure in index.html along with JS, CSS and image files from /public folder into your project and that should be OK.


Changelog

2013-11-29

  • Adding submenu that displays on expand for active item
  • Local Test OK on FF25

2013-11-28

  • Made the width auto when expanded
  • Adding CSS classes prefix
  • Encapsulated NBS JS code within a class

TODO

  • Fix padding gap on expand/collapse

主要指標

概覽
名稱與所有者FranckyU/nice-boot-sidebar
主編程語言CSS
編程語言Ruby (語言數: 4)
平台
許可證MIT License
所有者活动
創建於2013-11-27 06:45:54
推送於2013-11-29 10:01:57
最后一次提交2013-11-29 13:01:47
發布數0
用户参与
星數20
關注者數3
派生數2
提交數23
已啟用問題?
問題數0
打開的問題數0
拉請求數0
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?