Start by copying our custom Wagon navbar template :
- Wagon HTML version
- Wagon ERB version (an example with devise path helpers)
Or our Bootstrap navbar template:
- Bootstrap HTML version
- Bootstrap ERB version (an example with devise path helpers)
Of course, you have to replace the assets (logo, profile picture) by your own.
Our _navbar_wagon.css.scss
implements style rules on the .wagon-navbar
class.
Our _navbar_bootstrap.css.scss
implements style rules on the .wagon-bootstrap-navbar
class. Herebelow we detail the role of each sass variable.
In Rails, the integration is easy if you have installed sass-rails
and bootstrap-sass
gems. You can just add the _navbar.scss
file to your Rails layout stylesheets, and then import this file in application.css.scss
//stylesheets/layout/_navbar.css.scss
// Our navbar SCSS code
//stylesheets/layout/_index.css.scss
@import "navbar";
@import "footer";
@import "sidebar";
//stylesheets/application.css.scss
/* -------------------------------------
* Layout stylesheets
* ------------------------------------- */
@import "layout/index";
Here you go!
Feel free to contribute to this project with pull requests, and to share with us your navbar masterpieces!
- Twitter: https://twitter.com/lewagonparis
- Facebook: https://facebook.com/lewagonformation
- Website: http://lewagon.org
Peace