2012-06-29 06:46:45 +02:00
|
|
|
//
|
|
|
|
// Thumbnails
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
|
2013-01-18 05:18:03 +01: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-22 01:21:55 +01:00
|
|
|
padding: 4px;
|
2012-11-30 23:45:25 +01:00
|
|
|
line-height: @line-height-base;
|
2013-04-22 03:29:06 +02:00
|
|
|
background-color: @thumbnail-bg;
|
|
|
|
border: 1px solid @thumbnail-border;
|
|
|
|
border-radius: @thumbnail-border-radius;
|
2012-08-15 23:49:55 +02:00
|
|
|
.transition(all .2s ease-in-out);
|
2011-12-20 07:58:56 +01:00
|
|
|
}
|
2013-01-18 05:18:03 +01:00
|
|
|
.thumbnail {
|
|
|
|
display: block;
|
|
|
|
}
|
2013-07-02 04:42:26 +02:00
|
|
|
.thumbnail > img,
|
2013-01-18 05:18:03 +01:00
|
|
|
.img-thumbnail {
|
2013-07-02 04:42:26 +02:00
|
|
|
.img-responsive();
|
2013-01-18 05:18:03 +01:00
|
|
|
}
|
|
|
|
|
2011-12-20 07:58:56 +01:00
|
|
|
// Add a hover state for linked versions only
|
2013-01-02 23:39:21 +01:00
|
|
|
a.thumbnail:hover,
|
|
|
|
a.thumbnail:focus {
|
2012-11-30 23:37:24 +01:00
|
|
|
border-color: @link-color;
|
2011-12-20 07:58:56 +01:00
|
|
|
}
|
2012-04-01 09:59:34 +02:00
|
|
|
|
2011-12-20 07:58:56 +01:00
|
|
|
// Images and captions
|
|
|
|
.thumbnail > img {
|
2012-01-29 07:48:25 +01:00
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2011-12-20 07:58:56 +01:00
|
|
|
}
|
|
|
|
.thumbnail .caption {
|
|
|
|
padding: 9px;
|
2013-04-22 03:29:06 +02:00
|
|
|
color: @thumbnail-caption-color;
|
2011-11-17 08:58:36 +01:00
|
|
|
}
|