2012-06-29 00:46:45 -04:00
|
|
|
//
|
|
|
|
// Thumbnails
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
|
2013-01-17 23:18:03 -05:00
|
|
|
// Base classes
|
|
|
|
// For thumbnail block-level composite components and simple image styles
|
|
|
|
|
|
|
|
// The actual thumbnailed element
|
|
|
|
// Can be `a`, `div`, or `img`
|
|
|
|
.thumbnail,
|
|
|
|
.img-thumbnail {
|
2011-12-21 19:21:55 -05:00
|
|
|
padding: 4px;
|
2012-11-30 17:45:25 -05:00
|
|
|
line-height: @line-height-base;
|
2011-12-20 01:58:56 -05:00
|
|
|
border: 1px solid #ddd;
|
2012-11-30 17:45:25 -05:00
|
|
|
border-radius: @border-radius-base;
|
2012-08-15 17:49:55 -04:00
|
|
|
.transition(all .2s ease-in-out);
|
2011-12-20 01:58:56 -05:00
|
|
|
}
|
2013-01-17 23:18:03 -05:00
|
|
|
.thumbnail {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.img-thumbnail {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2011-12-20 01:58:56 -05:00
|
|
|
// Add a hover state for linked versions only
|
|
|
|
a.thumbnail:hover {
|
2012-11-30 17:37:24 -05:00
|
|
|
border-color: @link-color;
|
2011-12-20 01:58:56 -05:00
|
|
|
}
|
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;
|
2012-07-05 13:12:15 -04:00
|
|
|
color: @gray;
|
2011-11-17 02:58:36 -05:00
|
|
|
}
|