From cc814f4d768b8cf7abc6146e73ac5958aa839f68 Mon Sep 17 00:00:00 2001 From: Leslie Hoare Date: Thu, 26 Nov 2015 13:21:07 +0000 Subject: [PATCH] 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. --- scss/_mixins.scss | 1 + scss/mixins/_cards.scss | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 scss/mixins/_cards.scss diff --git a/scss/_mixins.scss b/scss/_mixins.scss index 90a48cf89e..75a4c92933 100644 --- a/scss/_mixins.scss +++ b/scss/_mixins.scss @@ -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"; diff --git a/scss/mixins/_cards.scss b/scss/mixins/_cards.scss new file mode 100644 index 0000000000..83ff839c5a --- /dev/null +++ b/scss/mixins/_cards.scss @@ -0,0 +1,6 @@ +// Card variants + +@mixin card-variant($color) { + background-color: $color; + border-color: $color; +}