aboutsummaryrefslogtreecommitdiff
path: root/less/media.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-10-29 22:01:58 -0700
committerMark Otto <[email protected]>2012-10-29 22:01:58 -0700
commitb5af762ef59e1fa97f4386f5feadb67aa5183fef (patch)
tree3bcd0841e6938379e8c8ae7259ee16f27a49ea41 /less/media.less
parent7426ced0fb288a9e86f18da1849ad74f652d219a (diff)
parent68cfedb34af198f178128f8c9bc8ea164e44304a (diff)
downloadbootstrap-2.2.0.tar.xz
bootstrap-2.2.0.zip
Merge branch '2.1.2-wip'v2.2.0
Conflicts: js/bootstrap-dropdown.js
Diffstat (limited to 'less/media.less')
-rw-r--r--less/media.less55
1 files changed, 55 insertions, 0 deletions
diff --git a/less/media.less b/less/media.less
new file mode 100644
index 000000000..1decab71d
--- /dev/null
+++ b/less/media.less
@@ -0,0 +1,55 @@
+// Media objects
+// Source: http://stubbornella.org/content/?p=497
+// --------------------------------------------------
+
+
+// Common styles
+// -------------------------
+
+// Clear the floats
+.media,
+.media-body {
+ overflow: hidden;
+ *overflow: visible;
+ zoom: 1;
+}
+
+// Proper spacing between instances of .media
+.media,
+.media .media {
+ margin-top: 15px;
+}
+.media:first-child {
+ margin-top: 0;
+}
+
+// For images and videos, set to block
+.media-object {
+ display: block;
+}
+
+// Reset margins on headings for tighter default spacing
+.media-heading {
+ margin: 0 0 5px;
+}
+
+
+// Media image alignment
+// -------------------------
+
+.media .pull-left {
+ margin-right: 10px;
+}
+.media .pull-right {
+ margin-left: 10px;
+}
+
+
+// Media list variation
+// -------------------------
+
+// Undo default ul/ol styles
+.media-list {
+ margin-left: 0;
+ list-style: none;
+}