mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-10 07:37:27 +02: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:
@@ -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;
|
||||
}
|
Reference in New Issue
Block a user