pgwslideshow.css 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. /****************************************************************
  2. * *
  3. * 代码库 *
  4. * www.dmaku.com *
  5. * 努力创建完善、持续更新插件以及模板 *
  6. * *
  7. ****************************************************************/
  8. /**
  9. * PgwSlideshow - Version 2.0
  10. *
  11. * Copyright 2014, Jonathan M. Piat
  12. * http://pgwjs.com - http://pagawa.com
  13. *
  14. * Released under the GNU GPLv3 license - http://opensource.org/licenses/gpl-3.0
  15. */
  16. /*.pgwSlideshow li { float:left; }*/
  17. .pgwSlideshow {
  18. width: 100%; /*display:none;*/
  19. }
  20. .pgwSlideshow .ps-current {
  21. position: relative;
  22. min-height: 250px;
  23. height: 600px;
  24. text-align: center;
  25. overflow: hidden;
  26. background: url(../images/loading.gif) no-repeat center;
  27. }
  28. .pgwSlideshow .ps-current ul li {
  29. text-align: center;
  30. width: 100%;
  31. z-index: 1;
  32. opacity: 0;
  33. display: block;
  34. }
  35. .pgwSlideshow .ps-current ul li img {
  36. display: block;
  37. max-width: 100%;
  38. margin: auto;
  39. }
  40. .pgwSlideshow .ps-current ul li a[href="javascript:;"] {
  41. cursor: default;
  42. }
  43. .ps-caption-wrapper {
  44. width: 100%;
  45. position: absolute;
  46. left: 0px;
  47. bottom: 0px;
  48. }
  49. .pgwSlideshow .ps-caption {
  50. padding: 8px 10px;
  51. text-align: left;
  52. color: #fff;
  53. background: url(../images/ps-caption-bg.png);
  54. }
  55. .pgwSlideshow .ps-caption h3 {
  56. line-height: normal;
  57. font-size: 15px;
  58. font-weight: normal;
  59. }
  60. .pgwSlideshow .ps-caption p {
  61. margin-top: 5px;
  62. font-size: 12px;
  63. }
  64. .pgwSlideshow .ps-caption a {
  65. color: #fff;
  66. text-decoration: none;
  67. }
  68. .pgwSlideshow .ps-list {
  69. position: relative;
  70. width: 100%;
  71. height: 86px;
  72. overflow: hidden;
  73. margin-top: 20px;
  74. box-sizing: border-box;
  75. }
  76. .pgwSlideshow .ps-list ul {
  77. margin: 0;
  78. padding: 0;
  79. list-style: none;
  80. position: relative;
  81. left: 0;
  82. }
  83. .pgwSlideshow .ps-list li {
  84. float: left;
  85. }
  86. .pgwSlideshow .ps-list li .ps-item {
  87. display: block;
  88. margin: 0 10px 0 0;
  89. opacity: 0.5;
  90. filter: alpha(opacity=50);
  91. border: 1px solid #ccc;
  92. }
  93. .pgwSlideshow .ps-list li:last-child .ps-item {
  94. margin-right: 0;
  95. }
  96. .pgwSlideshow .ps-list li .ps-item img {
  97. display: block;
  98. width: 120px;
  99. height: 84px;
  100. }
  101. .pgwSlideshow .ps-list li .ps-selected {
  102. float: left;
  103. overflow: hidden;
  104. opacity: 1;
  105. filter: alpha(opacity=100);
  106. border-color: #f00;
  107. }
  108. .pgwSlideshow .ps-list li .ps-selected img {
  109. }
  110. .pgwSlideshow .ps-prev, .pgwSlideshow .ps-next {
  111. position: absolute;
  112. top: 50%;
  113. z-index: 100;
  114. margin-top: -40px;
  115. cursor: pointer; /*display:block !important; opacity:1 !important; filter:alpha(opacity=100) !important;*/
  116. }
  117. .pgwSlideshow .ps-prev {
  118. display: block;
  119. left: 0;
  120. }
  121. .pgwSlideshow .ps-next {
  122. display: block;
  123. right: 0;
  124. }
  125. .pgwSlideshow .ps-prevIcon, .pgwSlideshow .ps-nextIcon {
  126. display: block;
  127. width: 50px;
  128. height: 80px;
  129. overflow: hidden;
  130. cursor: pointer;
  131. background-repeat: no-repeat;
  132. background-position: center center;
  133. background-color: rgba(60,60,60,0.2);
  134. _background-color: #e5e5e5;
  135. }
  136. .pgwSlideshow .ps-prevIcon:hover, .pgwSlideshow .ps-nextIcon:hover {
  137. background-color: #333;
  138. background-color: rgba(60,60,60,0.8);
  139. _background-color: #666;
  140. }
  141. .pgwSlideshow .ps-current .ps-prevIcon {
  142. background-image: url(../images/arrow-left.png);
  143. }
  144. .pgwSlideshow .ps-current .ps-nextIcon {
  145. background-image: url(../images/arrow-right.png);
  146. }
  147. .pgwSlideshow .ps-list .ps-prev, .pgwSlideshow .ps-list .ps-next {
  148. top: 0;
  149. margin-top: 0;
  150. height: 100%;
  151. z-index: 10000;
  152. display: none;
  153. background-color: rgba(60,60,60,0.6);
  154. }
  155. .pgwSlideshow .ps-list .ps-prevIcon, .pgwSlideshow .ps-list .ps-nextIcon {
  156. width: 30px;
  157. height: 100%;
  158. }
  159. .pgwSlideshow .ps-list .ps-prevIcon {
  160. background-image: url(../images/arrow-left-m.png);
  161. }
  162. .pgwSlideshow .ps-list .ps-nextIcon {
  163. background-image: url(../images/arrow-right-m.png);
  164. }
  165. /*
  166. * The media-queries are not used because IE8 doesn't support them.
  167. */
  168. .pgw-narrow .ps-caption {
  169. font-size: 0.8rem;
  170. }
  171. .pgw-narrow .ps-list {
  172. height: 62px;
  173. margin-top: 15px;
  174. }
  175. .pgw-narrow .ps-list li .ps-item img {
  176. width: 85px;
  177. height: 60px;
  178. }
  179. .pgw-narrow .ps-prev, .pgw-narrow .ps-next {
  180. margin-top: -30px;
  181. }
  182. .pgw-narrow .ps-prevIcon, .pgw-narrow .ps-nextIcon {
  183. width: 35px;
  184. height: 60px;
  185. }
  186. .pgw-narrow .ps-current .ps-prevIcon {
  187. background-image: url(../images/arrow-left-m.png);
  188. }
  189. .pgw-narrow .ps-current .ps-nextIcon {
  190. background-image: url(../images/arrow-right-m.png);
  191. }
  192. .pgw-narrow .ps-list .ps-prevIcon, .pgw-narrow .ps-list .ps-nextIcon {
  193. width: 25px;
  194. }
  195. .pgw-narrow .ps-list .ps-prevIcon {
  196. background-image: url(../images/arrow-left-s.png);
  197. }
  198. .pgw-narrow .ps-list .ps-nextIcon {
  199. background-image: url(../images/arrow-right-s.png);
  200. }