You are here

slick.theme--asnavfor.css in Slick Carousel 8.2

Provides basic thumbnail asNavFor skin.

Main display has class "slick--main". Thumbnail has class "slick--thumbnail".

Tips: Be sure to use odd number for slideToShow with centerMode on.

File

css/theme/slick.theme--asnavfor.css
View source
  1. /**
  2. * @file
  3. * Provides basic thumbnail asNavFor skin.
  4. *
  5. * Main display has class "slick--main".
  6. * Thumbnail has class "slick--thumbnail".
  7. *
  8. * Tips: Be sure to use odd number for slideToShow with centerMode on.
  9. */
  10. .slick--thumbnail.slick--skin--asnavfor {
  11. margin-left: auto;
  12. margin-right: auto;
  13. padding: 0;
  14. }
  15. .slick--thumbnail.slick--skin--asnavfor .slick-list {
  16. margin: 0 auto;
  17. padding: 30px 0;
  18. }
  19. .slick--thumbnail.slick--skin--asnavfor .slide__caption p {
  20. margin: 0;
  21. }
  22. .slick--thumbnail.slick--skin--asnavfor .slick-current {
  23. background: #fff;
  24. }
  25. .slick--thumbnail.slick--skin--asnavfor .slick__slide {
  26. margin: 0 2px;
  27. overflow: visible;
  28. -webkit-backface-visibility: hidden;
  29. backface-visibility: hidden;
  30. -webkit-transition: -webkit-transform 0.4s ease-in-out 0.2s;
  31. transition: transform 0.4s ease-in-out 0.2s;
  32. }
  33. .slick--thumbnail.slick--skin--asnavfor .slick__slide img {
  34. box-sizing: border-box; /* dups due to csslint ignoring inheritance */
  35. border: 6px solid transparent;
  36. cursor: pointer;
  37. position: relative;
  38. width: 100%;
  39. }
  40. .slick--thumbnail.slick--skin--asnavfor .slick__slide.slick-current {
  41. box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  42. -ms-transform: scale(1.3);
  43. -webkit-transform: scale(1.3);
  44. transform: scale(1.3);
  45. -webkit-transition-delay: 0s;
  46. transition-delay: 0s;
  47. z-index: 4;
  48. }
  49. .slick--thumbnail.slick--skin--asnavfor .slick__slide.slick-current::before {
  50. content: '';
  51. display: block;
  52. border: 8px solid transparent;
  53. border-top: 0;
  54. border-bottom-color: #fff;
  55. height: 0;
  56. left: 50%;
  57. margin-left: -8px;
  58. position: absolute;
  59. top: -5px;
  60. width: 0;
  61. z-index: 1;
  62. }
  63. .slick--thumbnail.slick--skin--asnavfor .slick__slide.slick-current img {
  64. border-color: #fff;
  65. }
  66. .slick--thumbnail.slick--skin--asnavfor .slick-track {
  67. padding-bottom: 40px;
  68. padding-top: 40px;
  69. }
  70. .slick--thumbnail.slick--skin--asnavfor .slick__arrow .slick-disabled {
  71. pointer-events: none;
  72. opacity: 0;
  73. }
  74. /**
  75. * Thumnails layout.
  76. */
  77. .slick-wrapper--tn-top .slick--thumbnail.slick--skin--asnavfor .slick__slide.slick-current::before {
  78. top: auto;
  79. bottom: -6px;
  80. border-top: 8px solid #fff;
  81. border-bottom: 0;
  82. }
  83. .slick-wrapper--tn-top .slick--thumbnail.slick--skin--asnavfor {
  84. margin-bottom: 0;
  85. z-index: 9;
  86. }
  87. .slick-wrapper--tn-top .slick--thumbnail.slick--skin--asnavfor .slick-list {
  88. padding-bottom: 18px;
  89. }