mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-29 08:10:47 +02:00
cards mixins
This commit is contained in:
38
scss/mixins/_cards.scss
Normal file
38
scss/mixins/_cards.scss
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
// Card variants
|
||||||
|
|
||||||
|
@mixin card-variant($background, $border) {
|
||||||
|
background-color: $background;
|
||||||
|
border-color: $border;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin card-outline-variant($color) {
|
||||||
|
background-color: transparent;
|
||||||
|
border-color: $color;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Inverse text within a card for use with dark backgrounds
|
||||||
|
//
|
||||||
|
|
||||||
|
@mixin card-inverse {
|
||||||
|
.card-header,
|
||||||
|
.card-footer {
|
||||||
|
border-bottom: .075rem solid rgba(255,255,255,.2);
|
||||||
|
}
|
||||||
|
.card-header,
|
||||||
|
.card-footer,
|
||||||
|
.card-title,
|
||||||
|
.card-blockquote {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.card-link,
|
||||||
|
.card-text,
|
||||||
|
.card-blockquote > footer {
|
||||||
|
color: rgba(255,255,255,.65);
|
||||||
|
}
|
||||||
|
.card-link {
|
||||||
|
@include hover-focus {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user