/sass/bootstrap/_thumbnails.scss

https://bitbucket.org/decore/my-svadba.ru · Sass · 49 lines · 36 code · 4 blank · 9 comment · 0 complexity · 84fb7ecc22b7fe05949635857a00e343 MD5 · raw file

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