0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-04 16:24:22 +01:00
Bootstrap/scss/mixins/_cards.scss

48 lines
832 B
SCSS
Raw Normal View History

// Card variants
2015-10-29 13:44:41 +01:00
@mixin card-variant($background, $border) {
background-color: $background;
border-color: $border;
.card-header,
.card-footer {
background-color: transparent;
}
2015-10-29 13:44:41 +01:00
}
@mixin card-outline-variant($color) {
background-color: transparent;
2015-11-26 14:33:54 +01:00
border-color: $color;
}
2015-10-29 13:44:41 +01:00
//
// Inverse text within a card for use with dark backgrounds
//
@mixin card-inverse {
color: rgba(255,255,255,.65);
2015-10-29 13:44:41 +01:00
.card-header,
.card-footer {
background-color: transparent;
border-color: rgba(255,255,255,.2);
2015-10-29 13:44:41 +01:00
}
.card-header,
.card-footer,
.card-title,
.card-blockquote {
color: #fff;
}
.card-link,
.card-text,
.card-subtitle,
.card-blockquote .blockquote-footer {
2015-10-29 13:44:41 +01:00
color: rgba(255,255,255,.65);
}
.card-link {
@include hover-focus {
color: $card-link-hover-color;
2015-10-29 13:44:41 +01:00
}
}
}