aboutsummaryrefslogtreecommitdiff
path: root/less/thumbnails.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-04-01 00:59:34 -0700
committerMark Otto <[email protected]>2012-04-01 00:59:34 -0700
commitfe05f9aeb259733de4598014db9df9193cc01ea2 (patch)
tree06b747ab338a64e48a3a203c034ff1e81d16a783 /less/thumbnails.less
parent33fa705c7fa9cc9e8c255cc2e161336ba21b3cff (diff)
downloadbootstrap-fe05f9aeb259733de4598014db9df9193cc01ea2.tar.xz
bootstrap-fe05f9aeb259733de4598014db9df9193cc01ea2.zip
fix #2572: streamline thumbnails css to allow for offsets
Diffstat (limited to 'less/thumbnails.less')
-rw-r--r--less/thumbnails.less9
1 files changed, 7 insertions, 2 deletions
diff --git a/less/thumbnails.less b/less/thumbnails.less
index 3a12d4e50..0dfabdf06 100644
--- a/less/thumbnails.less
+++ b/less/thumbnails.less
@@ -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;