I want all my anchors in my application look like .btn (Twitter Bootstrap class), is there a way to make this?
I did
a{
  @include btn;
}
but it does not work because btn should be a mixin, and it's a Twitter Bootstrap class.
I want all my anchors in my application look like .btn (Twitter Bootstrap class), is there a way to make this?
I did
a{
  @include btn;
}
but it does not work because btn should be a mixin, and it's a Twitter Bootstrap class.
You want to use @extend .btn; - @extend allows you to inherit all the properties of a selector without having to define it as a mixin.
 
    
    This is exactly what you want => https://github.com/thomas-mcdonald/bootstrap-sass
bootstrap-sassconfig.rb => require 'bootstrap-sass'@import "bootstrap"; at the top of your scss file.To use write
a {
  @extend .btn;
}
