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