mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
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:
parent
c240dd3549
commit
cc814f4d76
@ -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
6
scss/mixins/_cards.scss
Normal file
@ -0,0 +1,6 @@
|
||||
// Card variants
|
||||
|
||||
@mixin card-variant($color) {
|
||||
background-color: $color;
|
||||
border-color: $color;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user