Created
April 5, 2012 23:34
-
-
Save pyronaur/2315065 to your computer and use it in GitHub Desktop.
Porting Twitter Bootstrap 2.0 to SASS and Compass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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