flickity.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. /*! Flickity v2.2.1
  2. https://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. -webkit-user-select: none;
  22. -moz-user-select: none;
  23. -ms-user-select: none;
  24. user-select: none;
  25. }
  26. .flickity-enabled.is-draggable .flickity-viewport {
  27. cursor: move;
  28. cursor: -webkit-grab;
  29. cursor: grab;
  30. }
  31. .flickity-enabled.is-draggable .flickity-viewport.is-pointer-down {
  32. cursor: -webkit-grabbing;
  33. cursor: grabbing;
  34. }
  35. /* ---- flickity-button ---- */
  36. .flickity-button {
  37. position: absolute;
  38. background: hsla(0, 0%, 100%, 0.75);
  39. border: none;
  40. color: #333;
  41. }
  42. .flickity-button:hover {
  43. background: white;
  44. cursor: pointer;
  45. }
  46. .flickity-button:focus {
  47. outline: none;
  48. box-shadow: 0 0 0 5px #19F;
  49. }
  50. .flickity-button:active {
  51. opacity: 0.6;
  52. }
  53. .flickity-button:disabled {
  54. opacity: 0.3;
  55. cursor: auto;
  56. /* prevent disabled button from capturing pointer up event. #716 */
  57. pointer-events: none;
  58. }
  59. .flickity-button-icon {
  60. fill: currentColor;
  61. }
  62. /* ---- previous/next buttons ---- */
  63. .flickity-prev-next-button {
  64. top: 50%;
  65. width: 44px;
  66. height: 44px;
  67. border-radius: 50%;
  68. /* vertically center */
  69. transform: translateY(-50%);
  70. }
  71. .flickity-prev-next-button.previous { left: 10px; }
  72. .flickity-prev-next-button.next { right: 10px; }
  73. /* right to left */
  74. .flickity-rtl .flickity-prev-next-button.previous {
  75. left: auto;
  76. right: 10px;
  77. }
  78. .flickity-rtl .flickity-prev-next-button.next {
  79. right: auto;
  80. left: 10px;
  81. }
  82. .flickity-prev-next-button .flickity-button-icon {
  83. position: absolute;
  84. left: 20%;
  85. top: 20%;
  86. width: 60%;
  87. height: 60%;
  88. }
  89. /* ---- page dots ---- */
  90. .flickity-page-dots {
  91. position: absolute;
  92. width: 100%;
  93. bottom: -25px;
  94. padding: 0;
  95. margin: 0;
  96. list-style: none;
  97. text-align: center;
  98. line-height: 1;
  99. }
  100. .flickity-rtl .flickity-page-dots { direction: rtl; }
  101. .flickity-page-dots .dot {
  102. display: inline-block;
  103. width: 10px;
  104. height: 10px;
  105. margin: 0 8px;
  106. background: #333;
  107. border-radius: 50%;
  108. opacity: 0.25;
  109. cursor: pointer;
  110. }
  111. .flickity-page-dots .dot.is-selected {
  112. opacity: 1;
  113. }