flickity.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. /*! Flickity v2.0.2
  2. http://flickity.metafizzy.co
  3. ---------------------------------------------- */
  4. .flickity-enabled {
  5. position: relative;
  6. }
  7. .flickity-enabled:focus { outline: none; }
  8. .flickity-viewport {
  9. overflow: hidden;
  10. position: relative;
  11. height: 100%;
  12. }
  13. .flickity-slider {
  14. position: absolute;
  15. width: 100%;
  16. height: 100%;
  17. }
  18. /* draggable */
  19. .flickity-enabled.is-draggable {
  20. -webkit-tap-highlight-color: transparent;
  21. tap-highlight-color: transparent;
  22. -webkit-user-select: none;
  23. -moz-user-select: none;
  24. -ms-user-select: none;
  25. user-select: none;
  26. }
  27. .flickity-enabled.is-draggable .flickity-viewport {
  28. cursor: move;
  29. cursor: -webkit-grab;
  30. cursor: grab;
  31. }
  32. .flickity-enabled.is-draggable .flickity-viewport.is-pointer-down {
  33. cursor: -webkit-grabbing;
  34. cursor: grabbing;
  35. }
  36. /* ---- previous/next buttons ---- */
  37. .flickity-prev-next-button {
  38. position: absolute;
  39. top: 50%;
  40. width: 44px;
  41. height: 44px;
  42. border: none;
  43. border-radius: 50%;
  44. background: white;
  45. background: hsla(0, 0%, 100%, 0.75);
  46. cursor: pointer;
  47. /* vertically center */
  48. -webkit-transform: translateY(-50%);
  49. transform: translateY(-50%);
  50. }
  51. .flickity-prev-next-button:hover { background: white; }
  52. .flickity-prev-next-button:focus {
  53. outline: none;
  54. box-shadow: 0 0 0 5px #09F;
  55. }
  56. .flickity-prev-next-button:active {
  57. opacity: 0.6;
  58. }
  59. .flickity-prev-next-button.previous { left: 10px; }
  60. .flickity-prev-next-button.next { right: 10px; }
  61. /* right to left */
  62. .flickity-rtl .flickity-prev-next-button.previous {
  63. left: auto;
  64. right: 10px;
  65. }
  66. .flickity-rtl .flickity-prev-next-button.next {
  67. right: auto;
  68. left: 10px;
  69. }
  70. .flickity-prev-next-button:disabled {
  71. opacity: 0.3;
  72. cursor: auto;
  73. }
  74. .flickity-prev-next-button svg {
  75. position: absolute;
  76. left: 20%;
  77. top: 20%;
  78. width: 60%;
  79. height: 60%;
  80. }
  81. .flickity-prev-next-button .arrow {
  82. fill: #333;
  83. }
  84. /* ---- page dots ---- */
  85. .flickity-page-dots {
  86. position: absolute;
  87. width: 100%;
  88. bottom: -25px;
  89. padding: 0;
  90. margin: 0;
  91. list-style: none;
  92. text-align: center;
  93. line-height: 1;
  94. }
  95. .flickity-rtl .flickity-page-dots { direction: rtl; }
  96. .flickity-page-dots .dot {
  97. display: inline-block;
  98. width: 10px;
  99. height: 10px;
  100. margin: 0 8px;
  101. background: #333;
  102. border-radius: 50%;
  103. opacity: 0.25;
  104. cursor: pointer;
  105. }
  106. .flickity-page-dots .dot.is-selected {
  107. opacity: 1;
  108. }