2011-12-20 01:58:56 -05:00
|
|
|
// THUMBNAILS
|
|
|
|
// ----------
|
2011-11-17 02:58:36 -05:00
|
|
|
|
2012-04-01 03:59:34 -04:00
|
|
|
// Make wrapper ul behave like the grid
|
2011-12-20 01:58:56 -05:00
|
|
|
.thumbnails {
|
2012-02-07 02:39:22 -05:00
|
|
|
margin-left: -@gridGutterWidth;
|
2011-12-20 01:58:56 -05:00
|
|
|
list-style: none;
|
2011-11-17 02:58:36 -05:00
|
|
|
.clearfix();
|
2011-12-20 01:58:56 -05:00
|
|
|
}
|
2012-04-01 04:05:00 -04:00
|
|
|
// Fluid rows have no left margin
|
|
|
|
.row-fluid .thumbnails {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2012-04-01 03:59:34 -04:00
|
|
|
|
|
|
|
// Float li to make thumbnails appear in a row
|
2011-12-20 01:58:56 -05:00
|
|
|
.thumbnails > li {
|
2012-04-01 03:59:34 -04:00
|
|
|
margin-bottom: @baseLineHeight;
|
2011-12-20 01:58:56 -05:00
|
|
|
}
|
2012-04-01 03:59:34 -04:00
|
|
|
|
|
|
|
// The actual thumbnail (can be `a` or `div`)
|
2011-12-20 01:58:56 -05:00
|
|
|
.thumbnail {
|
|
|
|
display: block;
|
2011-12-21 19:21:55 -05:00
|
|
|
padding: 4px;
|
2011-12-20 01:58:56 -05:00
|
|
|
line-height: 1;
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
.border-radius(4px);
|
|
|
|
.box-shadow(0 1px 1px rgba(0,0,0,.075));
|
|
|
|
}
|
|
|
|
// Add a hover state for linked versions only
|
|
|
|
a.thumbnail:hover {
|
|
|
|
border-color: @linkColor;
|
|
|
|
.box-shadow(0 1px 4px rgba(0,105,214,.25));
|
|
|
|
}
|
2012-04-01 03:59:34 -04:00
|
|
|
|
2011-12-20 01:58:56 -05:00
|
|
|
// Images and captions
|
|
|
|
.thumbnail > img {
|
|
|
|
display: block;
|
2011-12-21 19:21:55 -05:00
|
|
|
max-width: 100%;
|
2012-01-29 01:48:25 -05:00
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2011-12-20 01:58:56 -05:00
|
|
|
}
|
|
|
|
.thumbnail .caption {
|
|
|
|
padding: 9px;
|
2011-11-17 02:58:36 -05:00
|
|
|
}
|