top_banner.scss 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. /* swiper 版本 */
  2. .swiper-bg{
  3. background-color: #F1F1F1;
  4. display:block;
  5. #top-banner{
  6. width: 100% !important;
  7. height: 100% !important;
  8. background-color: #F1F1F1;
  9. margin-left: auto;
  10. margin-right: auto;
  11. max-width: 1310px;
  12. .swiper-wrapper-top-banner{
  13. width: 100%;
  14. height: 100%;
  15. padding-top: 12px;
  16. padding-bottom: 24px;
  17. max-width: 1310px;
  18. }
  19. .img-wrapper{
  20. background-color: #F1F1F1;
  21. display: flex;
  22. width: 100%;
  23. height: 100%;
  24. justify-content: center;
  25. align-items: center;
  26. }
  27. .swiper-zoom-container{
  28. width: 100%;
  29. height: 100%;
  30. display: -webkit-box;
  31. display: -webkit-flex;
  32. display: -ms-flexbox;
  33. display: flex;
  34. -webkit-box-pack: center;
  35. -webkit-justify-content: center;
  36. -ms-flex-pack: center;
  37. justify-content: center;
  38. -webkit-box-align: center;
  39. -webkit-align-items: center;
  40. -ms-flex-align: center;
  41. align-items: center;
  42. text-align: center;
  43. img{
  44. width: 100%;
  45. height: 100%;
  46. max-width: 1310px;
  47. max-height: 300px;
  48. object-fit: contain;
  49. }
  50. }
  51. .swiper-scrollbar-top-banner{
  52. position:absolute;
  53. bottom:21px;
  54. left:0;
  55. width:100%;
  56. -webkit-box-sizing:border-box;
  57. box-sizing:border-box;
  58. display:-webkit-box;
  59. display:-ms-flexbox;
  60. display:flex;
  61. z-index:10;
  62. }
  63. .carouselPrimary-bullet{
  64. position: relative;
  65. width: 100%;
  66. height:3px;
  67. background-color: rgba(0,0,0,.1);
  68. -webkit-box-flex: 1;
  69. -ms-flex: 1 1 auto;
  70. flex: 1 1 auto;
  71. transform: translateX(-1px);
  72. }
  73. .carouselPrimary-bullet:after{
  74. content:"";
  75. background:#EE7800;
  76. position:absolute;
  77. width:0;
  78. height:100%;
  79. left:0;
  80. top:0;
  81. }
  82. .carouselPrimary-bullet--active:after{
  83. width:0;
  84. -webkit-animation-name:progress;
  85. animation-name:progress;
  86. -webkit-animation-duration:4s;
  87. animation-duration:4s;
  88. -webkit-animation-timing-function:linear;
  89. animation-timing-function:linear;
  90. }
  91. .swiper-button-prev, .swiper-button-next{
  92. width: 23px;
  93. height: 40px;
  94. }
  95. .swiper-button-prev{
  96. left: 15px;
  97. }
  98. .swiper-button-next{
  99. right: 15px;
  100. }
  101. .swiper-button-prev:after{
  102. content:'';
  103. width: 23px;
  104. height: 40px;
  105. background: url("../../images/section/icon/top-banner/btn-prev.png") no-repeat ;
  106. background-position: center;
  107. display: inline-block;
  108. }
  109. .swiper-button-next:after{
  110. content:'';
  111. width: 23px;
  112. height: 40px;
  113. background: url("../../images/section/icon/top-banner/btn-next.png") no-repeat ;
  114. background-position: center;
  115. display: inline-block;
  116. }
  117. .swiper-button-next:after, .swiper-button-prev:after{
  118. font-size: 23px;
  119. }
  120. .swiper-scrollbar-drag{
  121. background: #EE7800;
  122. }
  123. }
  124. .ADclose {
  125. width: 50px;
  126. height: 30px;
  127. position: absolute;
  128. top: 0;
  129. right: 20px;
  130. background-color: rgba(255,255,255,0.66);
  131. border-radius: 0 0 50px 50px;
  132. box-shadow: 0 0 10px rgba(32,32,32,0.25);
  133. display: flex;
  134. flex-direction: column;
  135. align-items: center;
  136. z-index: 3;
  137. &:hover{
  138. cursor: pointer;
  139. }
  140. p{
  141. font-size: 12px;
  142. color: #888;
  143. text-align: center;
  144. margin-top: 8px;
  145. }
  146. .arrow {
  147. position: absolute;
  148. left: 16px;
  149. top: 0;
  150. opacity: 1;
  151. &::before, &::after{
  152. display: block;
  153. }
  154. }
  155. }
  156. }
  157. @-webkit-keyframes progress{
  158. 0% { width:0; }
  159. to { width:100%; }
  160. }
  161. @keyframes progress{
  162. 0% { width:0; }
  163. to { width:100%; }
  164. }
  165. //slick 版本
  166. .slick-bg{
  167. background-color: #F1F1F1;
  168. display:block;
  169. padding-top: 12px;
  170. padding-bottom: 24px;
  171. max-height: 336px;
  172. #top-banner{
  173. width: 100% !important;
  174. height: 100% !important;
  175. background-color: #F1F1F1;
  176. margin-left: auto;
  177. margin-right: auto;
  178. max-width: 1310px;
  179. .slider{
  180. height: 300px;
  181. }
  182. img {
  183. display: block;
  184. width: 100%;
  185. }
  186. .sr-only {
  187. position: absolute;
  188. width: 1px;
  189. height: 1px;
  190. padding: 0;
  191. margin: -1px;
  192. overflow: hidden;
  193. clip: rect(0,0,0,0);
  194. border: 0;
  195. }
  196. .progress {
  197. display: block;
  198. // width: 100%;
  199. width: 98%;
  200. margin-left: auto;
  201. margin-right: auto;
  202. height: 5px;
  203. border-radius: 10px;
  204. // overflow: hidden;
  205. transform: translateY(5px);
  206. background-color: #f5f5f5;
  207. background-image: linear-gradient(to right, #EE7800, #EE7800);
  208. background-repeat: no-repeat;
  209. background-size: 0 100%;
  210. transition: background-size .4s ease-in-out;
  211. }
  212. .slick-prev {
  213. left: 30px;
  214. }
  215. .slick-next {
  216. right: 30px;
  217. }
  218. .slick-next, .slick-prev{
  219. width: 23px;
  220. height: 40px;
  221. z-index: 99;
  222. }
  223. .slick-prev:before {
  224. content:'';
  225. width: 23px;
  226. height: 40px;
  227. background: url("../../images/section/icon/top-banner/btn-prev.png") no-repeat ;
  228. background-position: center;
  229. display: inline-block;
  230. }
  231. .slick-next:before {
  232. content:'';
  233. width: 23px;
  234. height: 40px;
  235. background: url("../../images/section/icon/top-banner/btn-next.png") no-repeat ;
  236. background-position: center;
  237. display: inline-block;
  238. }
  239. }
  240. .ADclose {
  241. width: 50px;
  242. height: 30px;
  243. position: absolute;
  244. top: 0;
  245. right: 20px;
  246. background-color: rgba(255,255,255,0.66);
  247. border-radius: 0 0 50px 50px;
  248. box-shadow: 0 0 10px rgba(32,32,32,0.25);
  249. display: flex;
  250. flex-direction: column;
  251. align-items: center;
  252. z-index: 3;
  253. &:hover{
  254. cursor: pointer;
  255. }
  256. p{
  257. font-size: 12px;
  258. color: #888;
  259. text-align: center;
  260. margin-top: 8px;
  261. }
  262. .arrow {
  263. position: absolute;
  264. left: 16px;
  265. top: 0;
  266. opacity: 1;
  267. &::before, &::after{
  268. display: block;
  269. }
  270. }
  271. }
  272. }