components-thumbnails.txt 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. Thumbnails
  2. ===============================================================================
  3. .. lead:: Extend Bootstrap's grid system with the thumbnail component to easily
  4. display grids of images, videos, text, and more.
  5. Default example
  6. ---------------
  7. By default, Bootstrap's thumbnails are designed to showcase linked images with
  8. minimal required markup.
  9. .. container:: bs-example
  10. .. row::
  11. .. column::
  12. :width: 3
  13. .. image:: 171x180.png
  14. :class: thumbnail
  15. .. column::
  16. :width: 3
  17. .. image:: 171x180.png
  18. :class: thumbnail
  19. .. column::
  20. :width: 3
  21. .. image:: 171x180.png
  22. :class: thumbnail
  23. .. column::
  24. :width: 3
  25. .. image:: 171x180.png
  26. :class: thumbnail
  27. .. code::
  28. :class: highlight
  29. .. column::
  30. :width: 3
  31. .. image:: 171x180.png
  32. :class: thumbnail
  33. .. column::
  34. :width: 3
  35. .. image:: 171x180.png
  36. :class: thumbnail
  37. .. column::
  38. :width: 3
  39. .. image:: 171x180.png
  40. :class: thumbnail
  41. .. column::
  42. :width: 3
  43. .. image:: 171x180.png
  44. :class: thumbnail
  45. Custom content
  46. --------------
  47. With a bit of extra markup, it's possible to add any kind of HTML content like
  48. headings, paragraphs, or buttons into thumbnails.
  49. .. container:: bs-example
  50. .. row::
  51. .. column::
  52. :width: 4
  53. .. thumbnail::
  54. .. image:: 300x200.png
  55. .. caption::
  56. :h3:`Thumbnail label`
  57. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec
  58. id elit non mi porta gravida at eget metus. Nullam id dolor id nibh
  59. ultricies vehicula ut id elit.
  60. .. button:: Button
  61. :class: primary
  62. .. button:: Button
  63. .. column::
  64. :width: 4
  65. .. thumbnail::
  66. .. image:: 300x200.png
  67. .. caption::
  68. :h3:`Thumbnail label`
  69. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec
  70. id elit non mi porta gravida at eget metus. Nullam id dolor id nibh
  71. ultricies vehicula ut id elit.
  72. .. button:: Button
  73. :class: primary
  74. .. button:: Button
  75. .. column::
  76. :width: 4
  77. .. thumbnail::
  78. .. image:: 300x200.png
  79. .. caption::
  80. :h3:`Thumbnail label`
  81. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec
  82. id elit non mi porta gravida at eget metus. Nullam id dolor id nibh
  83. ultricies vehicula ut id elit.
  84. .. button:: Button
  85. :class: primary
  86. .. button:: Button
  87. .. code::
  88. :class: highlight
  89. .. thumbnail::
  90. .. image:: 300x200.png
  91. .. caption::
  92. :h3:`Thumbnail label`
  93. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec
  94. id elit non mi porta gravida at eget metus. Nullam id dolor id nibh
  95. ultricies vehicula ut id elit.
  96. .. button:: Button
  97. :class: primary
  98. .. button:: Button