You are here

slick.thumbnail--hover.css in Slick Carousel 8.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: relative;
  10. text-align: center;
  11. width: 100%;
  12. z-index: 3;
  13. }
  14. .slick .slick-dots--thumbnail-hover::after {
  15. content: "";
  16. display: table;
  17. clear: both;
  18. }
  19. .slick .slick-dots--thumbnail-hover li {
  20. overflow: hidden;
  21. position: relative;
  22. vertical-align: top;
  23. /* Individual thumbnail, adjust accordingly to actual thumbnail size */
  24. }
  25. .slick .slick-dots--thumbnail-hover li img {
  26. background: #fff;
  27. border: 2px solid transparent;
  28. display: block;
  29. margin: auto;
  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: 0;
  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. -webkit-transform: translate(-50%, 0);
  50. transform: translate(-50%, 0);
  51. }
  52. .slick .slick-dots--thumbnail-hover li .slick-dots__thumbnail img {
  53. pointer-events: none;
  54. }
  55. .slick .slick-dots--thumbnail-hover li .slick-dots__thumbnail::after {
  56. border: 7px solid transparent;
  57. border-bottom: 0;
  58. border-top-color: #ff6d2c;
  59. bottom: -7px;
  60. content: '';
  61. display: block;
  62. height: 0;
  63. left: 50%;
  64. margin: 0 0 0 -7px;
  65. position: absolute;
  66. width: 0;
  67. }
  68. .slick .slick-dots--thumbnail-hover li:hover {
  69. overflow: visible;
  70. }
  71. .slick .slick-dots--thumbnail-hover li:hover .slick-dots__thumbnail {
  72. bottom: 120%;
  73. margin-top: -20px;
  74. opacity: 1;
  75. visibility: visible;
  76. -webkit-transition-delay: 0s;
  77. transition-delay: 0s;
  78. z-index: 3;
  79. }
  80. .slick .slick-dots--thumbnail-hover li:hover img,
  81. .slick .slick-dots--thumbnail-hover .slick-active img {
  82. border: 2px solid #ff6d2c;
  83. opacity: 1;
  84. -webkit-transition-delay: 0s;
  85. transition-delay: 0s;
  86. }
  87. /**
  88. * Misc.
  89. */
  90. .block .slick .slick-dots--thumbnail-hover {
  91. margin-left: 0;
  92. padding: 0;
  93. }
  94. @media (min-width: 720px) {
  95. .slick .slick-dots--thumbnail-hover {
  96. position: absolute;
  97. }
  98. }