aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-01-17 20:18:03 -0800
committerMark Otto <[email protected]>2013-01-17 20:18:03 -0800
commitf068cdeb63770182b9e954eac9cbd11bf8df5d57 (patch)
treeaa0696e9788a9558f7c2452354e8224f38329589
parentca74b9882b1c2029bfd0d091fd372007b9dc7420 (diff)
downloadbootstrap-f068cdeb63770182b9e954eac9cbd11bf8df5d57.tar.xz
bootstrap-f068cdeb63770182b9e954eac9cbd11bf8df5d57.zip
Combine .thumbnail and .img-thumbnail into simpler selectors
-rw-r--r--docs/assets/css/bootstrap.css25
-rw-r--r--less/scaffolding.less5
-rw-r--r--less/thumbnails.less17
3 files changed, 25 insertions, 22 deletions
diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css
index 0ec2e4ddc..46cd2bc4b 100644
--- a/docs/assets/css/bootstrap.css
+++ b/docs/assets/css/bootstrap.css
@@ -262,19 +262,6 @@ img {
border-radius: 6px;
}
-.img-thumbnail {
- display: block;
- display: inline-block;
- padding: 4px;
- line-height: 20px;
- border: 1px solid #ddd;
- border-radius: 4px;
- -webkit-transition: all 0.2s ease-in-out;
- -moz-transition: all 0.2s ease-in-out;
- -o-transition: all 0.2s ease-in-out;
- transition: all 0.2s ease-in-out;
-}
-
.img-circle {
border-radius: 500px;
}
@@ -3932,8 +3919,8 @@ button.close {
margin-top: 5px;
}
-.thumbnail {
- display: block;
+.thumbnail,
+.img-thumbnail {
padding: 4px;
line-height: 20px;
border: 1px solid #ddd;
@@ -3944,6 +3931,14 @@ button.close {
transition: all 0.2s ease-in-out;
}
+.thumbnail {
+ display: block;
+}
+
+.img-thumbnail {
+ display: inline-block;
+}
+
a.thumbnail:hover {
border-color: #428bca;
}
diff --git a/less/scaffolding.less b/less/scaffolding.less
index 7cc77b1bd..e7b815b82 100644
--- a/less/scaffolding.less
+++ b/less/scaffolding.less
@@ -78,10 +78,7 @@ img {
}
// Image thumbnails
-.img-thumbnail {
- .thumbnail();
- display: inline-block;
-}
+// See thumbnails.less for `.img-thumbnail`
// Perfect circle
.img-circle {
diff --git a/less/thumbnails.less b/less/thumbnails.less
index 69e69a4e1..3c583f8ca 100644
--- a/less/thumbnails.less
+++ b/less/thumbnails.less
@@ -3,15 +3,26 @@
// --------------------------------------------------
-// The actual thumbnail (can be `a` or `div`)
-.thumbnail {
- display: block;
+// 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 {
padding: 4px;
line-height: @line-height-base;
border: 1px solid #ddd;
border-radius: @border-radius-base;
.transition(all .2s ease-in-out);
}
+.thumbnail {
+ display: block;
+}
+.img-thumbnail {
+ display: inline-block;
+}
+
// Add a hover state for linked versions only
a.thumbnail:hover {
border-color: @link-color;