You are here

slick.thumbnail--hover.css in Slick Carousel 7.2

Thumbnails hoverable inside dots.

File

css/components/slick.thumbnail--hover.css
View source
  1. /**
  2. * @file
  3. * Thumbnails hoverable inside dots.
  4. */
  5. /* The main thumbnail container is slick-dots modifier */
  6. .slick .slick-dots--thumbnail-hover {
  7. list-style: none;
  8. overflow: visible;
  9. position: absolute;
  10. text-align: center;
  11. white-space: nowrap;
  12. width: 100%;
  13. z-index: 3;
  14. }
  15. .slick .slick-dots--thumbnail-hover::after {
  16. content: "";
  17. display: table;
  18. clear: both;
  19. }
  20. .slick .slick-dots--thumbnail-hover li {
  21. overflow: hidden;
  22. position: relative;
  23. vertical-align: top;
  24. /* Individual thumbnail, adjust accordingly to actual thumbnail size */
  25. }
  26. .slick .slick-dots--thumbnail-hover li img {
  27. background: #fff;
  28. border: 2px solid transparent;
  29. display: block;
  30. opacity: .6;
  31. -webkit-transition: 0.3s;
  32. transition: 0.3s;
  33. /* Overrides core > 1.3.11, otherwise thumbnails are non-clickable */
  34. pointer-events: auto;
  35. }
  36. .slick .slick-dots--thumbnail-hover li .slick-dots__thumbnail {
  37. bottom: 140%;
  38. left: 50%;
  39. margin: -60px 0 0 -60px;
  40. min-width: 120px;
  41. opacity: 0;
  42. overflow: visible;
  43. position: absolute;
  44. visibility: hidden;
  45. width: 120px;
  46. z-index: -1;
  47. -webkit-transition: 0.3s;
  48. transition: 0.3s;
  49. }
  50. .slick .slick-dots--thumbnail-hover li .slick-dots__thumbnail img {
  51. pointer-events: none;
  52. }
  53. .slick .slick-dots--thumbnail-hover li .slick-dots__thumbnail::after {
  54. border: 7px solid transparent;
  55. border-bottom: 0;
  56. border-top-color: #ff6d2c;
  57. bottom: -7px;
  58. content: '';
  59. display: block;
  60. height: 0;
  61. left: 50%;
  62. margin: 0 0 0 -7px;
  63. position: absolute;
  64. width: 0;
  65. }
  66. .slick .slick-dots--thumbnail-hover li:hover {
  67. overflow: visible;
  68. }
  69. .slick .slick-dots--thumbnail-hover li:hover .slick-dots__thumbnail {
  70. bottom: 120%;
  71. margin-top: -20px;
  72. opacity: 1;
  73. visibility: visible;
  74. -webkit-transition-delay: 0s;
  75. transition-delay: 0s;
  76. z-index: 3;
  77. }
  78. .slick .slick-dots--thumbnail-hover li:hover img,
  79. .slick .slick-dots--thumbnail-hover li.slick-active img {
  80. border: 2px solid #ff6d2c;
  81. opacity: 1;
  82. -webkit-transition-delay: 0s;
  83. transition-delay: 0s;
  84. }
  85. /**
  86. * Misc.
  87. */
  88. .block .slick .slick-dots--thumbnail-hover {
  89. margin-left: 0;
  90. padding: 0;
  91. }