2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-02 16:04:07 +03:00

fix #2572: streamline thumbnails css to allow for offsets

This commit is contained in:
Mark Otto
2012-04-01 00:59:34 -07:00
parent 33fa705c7f
commit fe05f9aeb2
7 changed files with 56 additions and 21 deletions
+7 -2
View File
@@ -1,15 +1,19 @@
// THUMBNAILS
// ----------
// Make wrapper ul behave like the grid
.thumbnails {
margin-left: -@gridGutterWidth;
list-style: none;
.clearfix();
}
// Float li to make thumbnails appear in a row
.thumbnails > li {
float: left;
margin: 0 0 @baseLineHeight @gridGutterWidth;
margin-bottom: @baseLineHeight;
}
// The actual thumbnail (can be `a` or `div`)
.thumbnail {
display: block;
padding: 4px;
@@ -23,6 +27,7 @@ a.thumbnail:hover {
border-color: @linkColor;
.box-shadow(0 1px 4px rgba(0,105,214,.25));
}
// Images and captions
.thumbnail > img {
display: block;