peppermint.suggested.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. /* Peppermint required styles + default appearance styles */
  2. .peppermint.peppermint-active {
  3. position: relative;
  4. overflow: hidden;
  5. padding-left: 0;
  6. padding-right: 0;
  7. }
  8. .peppermint.peppermint-active .peppermint-slides {
  9. position: relative;
  10. overflow: hidden; /* clearfix */
  11. -ms-touch-action: pan-y;
  12. touch-action: pan-y;
  13. }
  14. .peppermint.peppermint-active .peppermint-slides > * {
  15. float: left;
  16. margin: 0;
  17. -moz-box-sizing: border-box;
  18. -webkit-box-sizing: border-box;
  19. box-sizing: border-box;
  20. -webkit-tap-highlight-color: transparent;
  21. tap-highlight-color: transparent;
  22. }
  23. .peppermint.peppermint-active .peppermint-slides a:active,
  24. .peppermint.peppermint-active .peppermint-slides a:active img {
  25. outline: none;
  26. }
  27. .peppermint.peppermint-active,
  28. .peppermint.peppermint-active .peppermint-dots,
  29. .peppermint.peppermint-active .peppermint-slides,
  30. .peppermint.peppermint-active .peppermint-slides > * {
  31. -webkit-transform: translate3d(0,0,0);
  32. -ms-transform: translate3d(0,0,0);
  33. -moz-transform: translate3d(0,0,0);
  34. transform: translate3d(0,0,0);
  35. -webkit-backface-visibility: hidden;
  36. -moz-backface-visibility: hidden;
  37. -ms-backface-visibility: hidden;
  38. backface-visibility: hidden;
  39. }
  40. .peppermint.peppermint-mouse .peppermint-slides {
  41. -webkit-user-select: none;
  42. -moz-user-select: none;
  43. -ms-user-select: none;
  44. user-select: none;
  45. cursor: move;
  46. cursor: -webkit-grab;
  47. cursor: -moz-grab;
  48. cursor: grab;
  49. }
  50. .peppermint.peppermint-mouse.peppermint-drag .peppermint-slides * {
  51. cursor: move;
  52. cursor: -webkit-grabbing;
  53. cursor: -moz-grabbing;
  54. cursor: grabbing;
  55. }
  56. /* default appearance styles */
  57. .peppermint {
  58. text-align: center;
  59. }
  60. .peppermint figure {
  61. margin: 0 0 1.5em 0;
  62. }
  63. .peppermint figure img {
  64. vertical-align: top;
  65. max-width: 100%;
  66. -webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  67. box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  68. }
  69. .peppermint figure figcaption {
  70. font-style: italic;
  71. color: #787575;
  72. font-size: 0.8em;
  73. margin-top: 0.5em;
  74. }
  75. .peppermint.peppermint-active {
  76. margin-bottom: 1.5em;
  77. }
  78. .peppermint-slides {
  79. padding-top: 0.5em;
  80. padding-bottom: 0.5em;
  81. }
  82. /* dots */
  83. ul.peppermint-dots {
  84. margin: 0.6em 0;
  85. padding: 0;
  86. text-align: center;
  87. list-style-type: none;
  88. }
  89. .peppermint.peppermint-active ul.peppermint-dots {
  90. margin: 0 0 0.6em 0;
  91. }
  92. .peppermint.peppermint-active .peppermint-slides + ul.peppermint-dots {
  93. margin: 0.6em 0 0 0;
  94. }
  95. ul.peppermint-dots > li {
  96. display: inline-block;
  97. position: relative;
  98. padding: 0.5em 0.6em;
  99. width: 12px;
  100. height: 12px;
  101. cursor: pointer;
  102. text-align: center;
  103. vertical-align: middle;
  104. -webkit-user-select: none;
  105. -moz-user-select: none;
  106. -ms-user-select: none;
  107. user-select: none;
  108. -webkit-tap-highlight-color: transparent;
  109. /* ie7 fallback */
  110. *display: inline;
  111. *zoom: 1;
  112. }
  113. ul.peppermint-dots > li.peppermint-mouse-clicked,
  114. ul.peppermint-dots > li:active {
  115. outline: 0;
  116. }
  117. ul.peppermint-dots > li > span {
  118. display: inline-block;
  119. position: absolute;
  120. top: 50%;
  121. left: 50%;
  122. margin: -4px 0 0 -4px;
  123. width: 8px;
  124. height: 8px;
  125. border-radius: 50%;
  126. background: #9b9890;
  127. }
  128. ul.peppermint-dots > li.peppermint-active-dot > span {
  129. margin: -6px 0 0 -6px;
  130. width: 10px;
  131. height: 10px;
  132. border: 1px solid #9b9890;
  133. background: transparent;
  134. }