media.less 860 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // Media objects
  2. // Source: http://stubbornella.org/content/?p=497
  3. // --------------------------------------------------
  4. // Common styles
  5. // -------------------------
  6. // Clear the floats
  7. .media,
  8. .media-body {
  9. overflow: hidden;
  10. *overflow: visible;
  11. zoom: 1;
  12. }
  13. // Proper spacing between instances of .media
  14. .media,
  15. .media .media {
  16. margin-top: 15px;
  17. }
  18. .media:first-child {
  19. margin-top: 0;
  20. }
  21. // For images and videos, set to block
  22. .media-object {
  23. display: block;
  24. }
  25. // Reset margins on headings for tighter default spacing
  26. .media-heading {
  27. margin: 0 0 5px;
  28. }
  29. // Media image alignment
  30. // -------------------------
  31. .media > .pull-left {
  32. margin-right: 10px;
  33. }
  34. .media > .pull-right {
  35. margin-left: 10px;
  36. }
  37. // Media list variation
  38. // -------------------------
  39. // Undo default ul/ol styles
  40. .media-list {
  41. margin-left: 0;
  42. list-style: none;
  43. }