2012-09-18 03:15:39 +02:00
|
|
|
// Media objects
|
|
|
|
// Source: http://stubbornella.org/content/?p=497
|
|
|
|
// --------------------------------------------------
|
2012-04-20 17:54:51 +02:00
|
|
|
|
2012-09-18 03:15:39 +02:00
|
|
|
|
|
|
|
// Common styles
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
// Clear the floats
|
|
|
|
.media,
|
2012-04-24 17:23:14 +02:00
|
|
|
.media-body {
|
|
|
|
overflow: hidden;
|
|
|
|
*overflow: visible;
|
|
|
|
zoom: 1;
|
2012-04-20 17:54:51 +02:00
|
|
|
}
|
2012-09-18 03:15:39 +02:00
|
|
|
|
|
|
|
// Proper spacing between instances of .media
|
|
|
|
.media,
|
2012-04-20 17:54:51 +02:00
|
|
|
.media .media {
|
2012-09-18 03:15:39 +02:00
|
|
|
margin-top: 15px;
|
2012-04-20 17:54:51 +02:00
|
|
|
}
|
2012-09-18 03:15:39 +02:00
|
|
|
.media:first-child {
|
|
|
|
margin-top: 0;
|
2012-04-20 17:54:51 +02:00
|
|
|
}
|
2012-09-18 03:15:39 +02:00
|
|
|
|
|
|
|
// For images and videos, set to block
|
|
|
|
.media-object {
|
2012-04-24 17:23:14 +02:00
|
|
|
display: block;
|
2012-04-20 17:54:51 +02:00
|
|
|
}
|
|
|
|
|
2012-09-18 03:15:39 +02:00
|
|
|
// Reset margins on headings for tighter default spacing
|
|
|
|
.media-heading {
|
|
|
|
margin: 0 0 5px;
|
2012-04-20 17:54:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-09-18 03:15:39 +02:00
|
|
|
// Media image alignment
|
|
|
|
// -------------------------
|
|
|
|
|
2012-04-24 17:23:14 +02:00
|
|
|
.media .pull-left {
|
2012-09-18 03:15:39 +02:00
|
|
|
margin-right: 10px;
|
2012-04-24 17:23:14 +02:00
|
|
|
}
|
|
|
|
.media .pull-right {
|
2012-09-18 03:15:39 +02:00
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Media list variation
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
// Undo default ul/ol styles
|
|
|
|
.media-list {
|
|
|
|
margin-left: 0;
|
|
|
|
list-style: none;
|
2012-04-24 17:23:14 +02:00
|
|
|
}
|