Skip to content

Instantly share code, notes, and snippets.

@pyronaur
Created April 5, 2012 23:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pyronaur/2315065 to your computer and use it in GitHub Desktop.
Save pyronaur/2315065 to your computer and use it in GitHub Desktop.
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 {
background-color:blue;
}
.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