bootstrap/lib/thumbnails.less

58 lines
1 KiB
Text
Raw Normal View History

// THUMBNAILS
// ----------
.thumbnails {
margin-left: -20px;
margin-bottom: 0;
list-style: none;
.clearfix();
}
.thumbnails > li {
float: left;
margin: 0 0 20px 20px;
}
.thumbnail {
display: block;
padding: 4px;
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));
}
// Images and captions
.thumbnail > img {
display: block;
max-width: 100%;
}
.thumbnail .caption {
padding: 9px;
}
2012-01-03 00:04:01 +00:00
2012-01-03 03:13:02 +00:00
// carousel
.carousel {
position: relative;
2012-01-03 00:04:01 +00:00
2012-01-03 03:13:02 +00:00
.item { display: none; }
.active { display: block; }
.nav {
height: 50px;
position: absolute;
top: 50%;
margin: -25px 0 0;
cursor: pointer;
background: rgba(0, 0, 0, 0.7);
color: white;
font-size: 42px;
left: 5px;
font-weight: 100;
padding: 0 15px;
&.right { right: 5px; left: auto; }
&:hover { text-decoration: none; background: rgba(0, 0, 0, 0.8); }
}
2012-01-03 00:04:01 +00:00
}