2012-06-29 04:46:45 +00:00
|
|
|
//
|
|
|
|
// Thumbnails
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
|
2012-04-24 13:45:21 +00:00
|
|
|
// Note: `.thumbnails` and `.thumbnails > li` are overriden in responsive files
|
2011-11-17 07:58:36 +00:00
|
|
|
|
2012-04-01 07:59:34 +00:00
|
|
|
// Make wrapper ul behave like the grid
|
2011-12-20 06:58:56 +00:00
|
|
|
.thumbnails {
|
2012-02-07 07:39:22 +00:00
|
|
|
margin-left: -@gridGutterWidth;
|
2011-12-20 06:58:56 +00:00
|
|
|
list-style: none;
|
2011-11-17 07:58:36 +00:00
|
|
|
.clearfix();
|
2011-12-20 06:58:56 +00:00
|
|
|
}
|
2012-04-01 08:05:00 +00:00
|
|
|
// Fluid rows have no left margin
|
|
|
|
.row-fluid .thumbnails {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2012-04-01 07:59:34 +00:00
|
|
|
|
|
|
|
// Float li to make thumbnails appear in a row
|
2011-12-20 06:58:56 +00:00
|
|
|
.thumbnails > li {
|
2012-04-24 13:39:14 +00:00
|
|
|
float: left; // Explicity set the float since we don't require .span* classes
|
2012-04-01 07:59:34 +00:00
|
|
|
margin-bottom: @baseLineHeight;
|
2012-04-24 13:45:21 +00:00
|
|
|
margin-left: @gridGutterWidth;
|
2011-12-20 06:58:56 +00:00
|
|
|
}
|
2012-04-01 07:59:34 +00:00
|
|
|
|
|
|
|
// The actual thumbnail (can be `a` or `div`)
|
2011-12-20 06:58:56 +00:00
|
|
|
.thumbnail {
|
|
|
|
display: block;
|
2011-12-22 00:21:55 +00:00
|
|
|
padding: 4px;
|
2012-08-14 18:06:35 +00:00
|
|
|
line-height: @baseLineHeight;
|
2011-12-20 06:58:56 +00:00
|
|
|
border: 1px solid #ddd;
|
2012-10-03 16:26:52 +00:00
|
|
|
.border-radius(@baseBorderRadius);
|
2012-07-05 17:12:15 +00:00
|
|
|
.box-shadow(0 1px 3px rgba(0,0,0,.055));
|
2012-08-15 21:49:55 +00:00
|
|
|
.transition(all .2s ease-in-out);
|
2011-12-20 06:58:56 +00:00
|
|
|
}
|
|
|
|
// 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 07:59:34 +00:00
|
|
|
|
2011-12-20 06:58:56 +00:00
|
|
|
// Images and captions
|
|
|
|
.thumbnail > img {
|
|
|
|
display: block;
|
2011-12-22 00:21:55 +00:00
|
|
|
max-width: 100%;
|
2012-01-29 06:48:25 +00:00
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2011-12-20 06:58:56 +00:00
|
|
|
}
|
|
|
|
.thumbnail .caption {
|
|
|
|
padding: 9px;
|
2012-07-05 17:12:15 +00:00
|
|
|
color: @gray;
|
2011-11-17 07:58:36 +00:00
|
|
|
}
|