diff options
| author | Leslie Hoare <[email protected]> | 2015-11-26 13:21:07 +0000 |
|---|---|---|
| committer | Leslie Hoare <[email protected]> | 2015-11-26 13:21:07 +0000 |
| commit | cc814f4d768b8cf7abc6146e73ac5958aa839f68 (patch) | |
| tree | f50a138cf9d65a5a320b938cf247a5f6cc0e85d3 | |
| parent | c240dd3549ea53c4d23e729ddecc88497eeed7c7 (diff) | |
| download | bootstrap-cc814f4d768b8cf7abc6146e73ac5958aa839f68.tar.xz bootstrap-cc814f4d768b8cf7abc6146e73ac5958aa839f68.zip | |
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.
| -rw-r--r-- | scss/_mixins.scss | 1 | ||||
| -rw-r--r-- | scss/mixins/_cards.scss | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/scss/_mixins.scss b/scss/_mixins.scss index 90a48cf89..75a4c9293 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 000000000..83ff839c5 --- /dev/null +++ b/scss/mixins/_cards.scss @@ -0,0 +1,6 @@ +// Card variants + +@mixin card-variant($color) { + background-color: $color; + border-color: $color; +} |
