1
0

thumbnails.less 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. // Thumbnails
  3. // --------------------------------------------------
  4. // Note: `.thumbnails` and `.thumbnails > li` are overriden in responsive files
  5. // Make wrapper ul behave like the grid
  6. .thumbnails {
  7. margin-left: -@gridGutterWidth;
  8. list-style: none;
  9. .clearfix();
  10. }
  11. // Fluid rows have no left margin
  12. .row-fluid .thumbnails {
  13. margin-left: 0;
  14. }
  15. // Float li to make thumbnails appear in a row
  16. .thumbnails > li {
  17. float: left; // Explicity set the float since we don't require .span* classes
  18. margin-bottom: @baseLineHeight;
  19. margin-left: @gridGutterWidth;
  20. }
  21. // The actual thumbnail (can be `a` or `div`)
  22. .thumbnail {
  23. display: block;
  24. padding: 4px;
  25. line-height: @baseLineHeight;
  26. border: 1px solid #ddd;
  27. .border-radius(@baseBorderRadius);
  28. .box-shadow(0 1px 3px rgba(0,0,0,.055));
  29. .transition(all .2s ease-in-out);
  30. }
  31. // Add a hover/focus state for linked versions only
  32. a.thumbnail:hover,
  33. a.thumbnail:focus {
  34. border-color: @linkColor;
  35. .box-shadow(0 1px 4px rgba(0,105,214,.25));
  36. }
  37. // Images and captions
  38. .thumbnail > img {
  39. display: block;
  40. max-width: 100%;
  41. margin-left: auto;
  42. margin-right: auto;
  43. }
  44. .thumbnail .caption {
  45. padding: 9px;
  46. color: @gray;
  47. }