Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Porting Twitter Bootstrap 2.0 to SASS and Compass
// So this is an alternative way to do the Twitter bootstrap.
// The thing is that - this really takes A LOT OF rewriting the twitter bootstrap code.
// This is still work in progress, but I'd like to know if someone might consider this useful later on :)
// p.s. At this point I'm __really__ enjoying the @if and @else statements for the first time :)
@mixin nav_pills($extend: false) {
@include clearfix;
> li { float:left;}
> li > a {
@include nav_flatten;
@if $extend == false {
@include make_pill;
@else {
@extend .#{$extend};
.someClass {
.nav {
@include nav;
@include nav_pills("someClass");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment