2014-08-05 20:12:24 -04:00
|
|
|
//
|
|
|
|
// Base styles
|
|
|
|
//
|
|
|
|
|
|
|
|
.card {
|
|
|
|
position: relative;
|
|
|
|
padding: 1.25rem;
|
|
|
|
margin-bottom: 1.25rem;
|
|
|
|
border: .075rem solid #eee;
|
|
|
|
}
|
|
|
|
.card-title {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: .75rem;
|
|
|
|
}
|
|
|
|
.card-text:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
.card-actions {
|
|
|
|
.card-link + .card-link {
|
|
|
|
margin-left: .75rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.card-link:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Optional textual caps
|
|
|
|
//
|
|
|
|
|
|
|
|
.card-header {
|
|
|
|
padding: .75rem 1.25rem;
|
|
|
|
margin: -1.25rem -1.25rem 1.25rem;
|
|
|
|
border-bottom: .075rem solid #eee;
|
2014-12-02 17:02:35 -05:00
|
|
|
@include border-radius(.25rem .25rem 0 0);
|
2014-08-05 20:12:24 -04:00
|
|
|
}
|
|
|
|
.card-footer {
|
|
|
|
padding: .75rem 1.25rem;
|
|
|
|
margin: 1.25rem -1.25rem -1.25rem;
|
|
|
|
border-top: .075rem solid #eee;
|
2014-12-02 17:02:35 -05:00
|
|
|
@include border-radius(0 0 .25rem .25rem);
|
2014-08-05 20:12:24 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Background variations
|
|
|
|
//
|
|
|
|
|
|
|
|
.card-primary {
|
2014-12-02 17:02:35 -05:00
|
|
|
background-color: $brand-primary;
|
|
|
|
border-color: $brand-primary;
|
2014-08-05 20:12:24 -04:00
|
|
|
}
|
|
|
|
.card-success {
|
2014-12-02 17:02:35 -05:00
|
|
|
background-color: $brand-success;
|
|
|
|
border-color: $brand-success;
|
2014-08-05 20:12:24 -04:00
|
|
|
}
|
|
|
|
.card-info {
|
2014-12-02 17:02:35 -05:00
|
|
|
background-color: $brand-info;
|
|
|
|
border-color: $brand-info;
|
2014-08-05 20:12:24 -04:00
|
|
|
}
|
|
|
|
.card-warning {
|
2014-12-02 17:02:35 -05:00
|
|
|
background-color: $brand-warning;
|
|
|
|
border-color: $brand-warning;
|
2014-08-05 20:12:24 -04:00
|
|
|
}
|
|
|
|
.card-danger {
|
2014-12-02 17:02:35 -05:00
|
|
|
background-color: $brand-danger;
|
|
|
|
border-color: $brand-danger;
|
2014-08-05 20:12:24 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Inverse text within a card for use with dark backgrounds
|
|
|
|
//
|
|
|
|
|
|
|
|
.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:hover,
|
|
|
|
.card-link:focus {
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Blockquote
|
|
|
|
//
|
|
|
|
|
|
|
|
.card-blockquote {
|
|
|
|
padding: 0;
|
|
|
|
margin-bottom: 0;
|
2014-12-11 15:05:29 -05:00
|
|
|
border-left: 0;
|
2014-08-05 20:12:24 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Card image
|
|
|
|
.card-img {
|
|
|
|
margin: -1.325rem;
|
2014-12-02 17:02:35 -05:00
|
|
|
@include border-radius(.25rem);
|
2014-08-05 20:12:24 -04:00
|
|
|
}
|
|
|
|
.card-img-overlay {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
padding: 1.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Card image caps
|
|
|
|
.card-img-top {
|
|
|
|
margin: -1.325rem -1.325rem 1.25rem;
|
2014-12-02 17:02:35 -05:00
|
|
|
@include border-radius(.25rem .25rem 0 0);
|
2014-08-05 20:12:24 -04:00
|
|
|
}
|
|
|
|
.card-img-bottom {
|
|
|
|
margin: 1.25rem -1.325rem -1.325rem;
|
2014-12-02 17:02:35 -05:00
|
|
|
@include border-radius(0 0 .25rem .25rem);
|
2014-08-05 20:12:24 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Card set
|
|
|
|
//
|
|
|
|
|
|
|
|
.card-set {
|
|
|
|
display: table;
|
|
|
|
table-layout: fixed;
|
|
|
|
border-spacing: 1.25rem 0;
|
|
|
|
|
|
|
|
.card {
|
|
|
|
display: table-cell;
|
2014-12-11 15:05:29 -05:00
|
|
|
float: none;
|
2014-08-05 20:12:24 -04:00
|
|
|
max-width: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.card-set-wrapper {
|
|
|
|
margin-right: -1.25rem;
|
2014-12-11 15:05:29 -05:00
|
|
|
margin-left: -1.25rem;
|
2014-08-05 20:12:24 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Card groups
|
|
|
|
//
|
|
|
|
|
|
|
|
.card-group {
|
|
|
|
display: table;
|
|
|
|
width: 100%;
|
|
|
|
table-layout: fixed;
|
|
|
|
|
|
|
|
.card {
|
|
|
|
display: table-cell;
|
2014-12-11 15:05:29 -05:00
|
|
|
float: none;
|
2014-08-05 20:12:24 -04:00
|
|
|
max-width: none;
|
|
|
|
|
|
|
|
+ .card {
|
|
|
|
margin-left: 0;
|
2014-12-11 15:05:29 -05:00
|
|
|
border-left: 0;
|
2014-08-05 20:12:24 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Card
|
|
|
|
//
|
|
|
|
|
|
|
|
.card-columns {
|
2014-12-11 15:05:29 -05:00
|
|
|
column-count: 3;
|
|
|
|
column-gap: 1rem;
|
2014-08-05 20:12:24 -04:00
|
|
|
|
|
|
|
.card {
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%; // Don't let them exceed the column width
|
|
|
|
}
|
|
|
|
}
|