Create a mixin for creating new card styles.

I'm aware that currently cards are a lot simpler than buttons right now
but this may change in future and it feels cleaner to be able to create
new card styles without needing to know the internals of how they're
implemented.
This commit is contained in:
Leslie Hoare 2015-11-26 13:21:07 +00:00
parent c240dd3549
commit cc814f4d76
2 changed files with 7 additions and 0 deletions

View File

@ -38,6 +38,7 @@
// // Components
@import "mixins/alert";
@import "mixins/buttons";
@import "mixins/cards";
@import "mixins/pagination";
@import "mixins/list-group";
@import "mixins/nav-divider";

6
scss/mixins/_cards.scss Normal file
View File

@ -0,0 +1,6 @@
// Card variants
@mixin card-variant($color) {
background-color: $color;
border-color: $color;
}