carousel.css 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. /* BEM support Func
  2. -------------------------- */
  3. /* Element Chalk Variables */
  4. /* Transition
  5. -------------------------- */
  6. /* Color
  7. -------------------------- */
  8. /* 53a8ff */
  9. /* 66b1ff */
  10. /* 79bbff */
  11. /* 8cc5ff */
  12. /* a0cfff */
  13. /* b3d8ff */
  14. /* c6e2ff */
  15. /* d9ecff */
  16. /* ecf5ff */
  17. /* Link
  18. -------------------------- */
  19. /* Border
  20. -------------------------- */
  21. /* Fill
  22. -------------------------- */
  23. /* Typography
  24. -------------------------- */
  25. /* Size
  26. -------------------------- */
  27. /* z-index
  28. -------------------------- */
  29. /* Disable base
  30. -------------------------- */
  31. /* Icon
  32. -------------------------- */
  33. /* Checkbox
  34. -------------------------- */
  35. /* Radio
  36. -------------------------- */
  37. /* Select
  38. -------------------------- */
  39. /* Alert
  40. -------------------------- */
  41. /* MessageBox
  42. -------------------------- */
  43. /* Message
  44. -------------------------- */
  45. /* Notification
  46. -------------------------- */
  47. /* Input
  48. -------------------------- */
  49. /* Cascader
  50. -------------------------- */
  51. /* Group
  52. -------------------------- */
  53. /* Tab
  54. -------------------------- */
  55. /* Button
  56. -------------------------- */
  57. /* cascader
  58. -------------------------- */
  59. /* Switch
  60. -------------------------- */
  61. /* Dialog
  62. -------------------------- */
  63. /* Table
  64. -------------------------- */
  65. /* Pagination
  66. -------------------------- */
  67. /* Popup
  68. -------------------------- */
  69. /* Popover
  70. -------------------------- */
  71. /* Tooltip
  72. -------------------------- */
  73. /* Tag
  74. -------------------------- */
  75. /* Tree
  76. -------------------------- */
  77. /* Dropdown
  78. -------------------------- */
  79. /* Badge
  80. -------------------------- */
  81. /* Card
  82. --------------------------*/
  83. /* Slider
  84. --------------------------*/
  85. /* Steps
  86. --------------------------*/
  87. /* Menu
  88. --------------------------*/
  89. /* Rate
  90. --------------------------*/
  91. /* DatePicker
  92. --------------------------*/
  93. /* Loading
  94. --------------------------*/
  95. /* Scrollbar
  96. --------------------------*/
  97. /* Carousel
  98. --------------------------*/
  99. /* Collapse
  100. --------------------------*/
  101. /* Transfer
  102. --------------------------*/
  103. /* Header
  104. --------------------------*/
  105. /* Footer
  106. --------------------------*/
  107. /* Main
  108. --------------------------*/
  109. /* Timeline
  110. --------------------------*/
  111. /* Backtop
  112. --------------------------*/
  113. /* Link
  114. --------------------------*/
  115. /* Calendar
  116. --------------------------*/
  117. /* Form
  118. -------------------------- */
  119. /* Avatar
  120. --------------------------*/
  121. /* Empty
  122. -------------------------- */
  123. /* Descriptions
  124. -------------------------- */
  125. /* Skeleton
  126. --------------------------*/
  127. /* Svg
  128. --------------- */
  129. /* Result
  130. -------------------------- */
  131. /* Break-point
  132. --------------------------*/
  133. /* Break-points
  134. -------------------------- */
  135. /* Scrollbar
  136. -------------------------- */
  137. /* Placeholder
  138. -------------------------- */
  139. /* BEM
  140. -------------------------- */
  141. /* Element Chalk Variables */
  142. /* Transition
  143. -------------------------- */
  144. /* Color
  145. -------------------------- */
  146. /* 53a8ff */
  147. /* 66b1ff */
  148. /* 79bbff */
  149. /* 8cc5ff */
  150. /* a0cfff */
  151. /* b3d8ff */
  152. /* c6e2ff */
  153. /* d9ecff */
  154. /* ecf5ff */
  155. /* Link
  156. -------------------------- */
  157. /* Border
  158. -------------------------- */
  159. /* Fill
  160. -------------------------- */
  161. /* Typography
  162. -------------------------- */
  163. /* Size
  164. -------------------------- */
  165. /* z-index
  166. -------------------------- */
  167. /* Disable base
  168. -------------------------- */
  169. /* Icon
  170. -------------------------- */
  171. /* Checkbox
  172. -------------------------- */
  173. /* Radio
  174. -------------------------- */
  175. /* Select
  176. -------------------------- */
  177. /* Alert
  178. -------------------------- */
  179. /* MessageBox
  180. -------------------------- */
  181. /* Message
  182. -------------------------- */
  183. /* Notification
  184. -------------------------- */
  185. /* Input
  186. -------------------------- */
  187. /* Cascader
  188. -------------------------- */
  189. /* Group
  190. -------------------------- */
  191. /* Tab
  192. -------------------------- */
  193. /* Button
  194. -------------------------- */
  195. /* cascader
  196. -------------------------- */
  197. /* Switch
  198. -------------------------- */
  199. /* Dialog
  200. -------------------------- */
  201. /* Table
  202. -------------------------- */
  203. /* Pagination
  204. -------------------------- */
  205. /* Popup
  206. -------------------------- */
  207. /* Popover
  208. -------------------------- */
  209. /* Tooltip
  210. -------------------------- */
  211. /* Tag
  212. -------------------------- */
  213. /* Tree
  214. -------------------------- */
  215. /* Dropdown
  216. -------------------------- */
  217. /* Badge
  218. -------------------------- */
  219. /* Card
  220. --------------------------*/
  221. /* Slider
  222. --------------------------*/
  223. /* Steps
  224. --------------------------*/
  225. /* Menu
  226. --------------------------*/
  227. /* Rate
  228. --------------------------*/
  229. /* DatePicker
  230. --------------------------*/
  231. /* Loading
  232. --------------------------*/
  233. /* Scrollbar
  234. --------------------------*/
  235. /* Carousel
  236. --------------------------*/
  237. /* Collapse
  238. --------------------------*/
  239. /* Transfer
  240. --------------------------*/
  241. /* Header
  242. --------------------------*/
  243. /* Footer
  244. --------------------------*/
  245. /* Main
  246. --------------------------*/
  247. /* Timeline
  248. --------------------------*/
  249. /* Backtop
  250. --------------------------*/
  251. /* Link
  252. --------------------------*/
  253. /* Calendar
  254. --------------------------*/
  255. /* Form
  256. -------------------------- */
  257. /* Avatar
  258. --------------------------*/
  259. /* Empty
  260. -------------------------- */
  261. /* Descriptions
  262. -------------------------- */
  263. /* Skeleton
  264. --------------------------*/
  265. /* Svg
  266. --------------- */
  267. /* Result
  268. -------------------------- */
  269. /* Break-point
  270. --------------------------*/
  271. .el-carousel {
  272. position: relative; }
  273. .el-carousel--horizontal {
  274. overflow-x: hidden; }
  275. .el-carousel--vertical {
  276. overflow-y: hidden; }
  277. .el-carousel__container {
  278. position: relative;
  279. height: 300px; }
  280. .el-carousel__arrow {
  281. border: none;
  282. outline: none;
  283. padding: 0;
  284. margin: 0;
  285. height: 36px;
  286. width: 36px;
  287. cursor: pointer;
  288. -webkit-transition: .3s;
  289. transition: .3s;
  290. border-radius: 50%;
  291. background-color: rgba(31, 45, 61, 0.11);
  292. color: #FFFFFF;
  293. position: absolute;
  294. top: 50%;
  295. z-index: 10;
  296. -webkit-transform: translateY(-50%);
  297. transform: translateY(-50%);
  298. text-align: center;
  299. font-size: 12px; }
  300. .el-carousel__arrow--left {
  301. left: 16px; }
  302. .el-carousel__arrow--right {
  303. right: 16px; }
  304. .el-carousel__arrow:hover {
  305. background-color: rgba(31, 45, 61, 0.23); }
  306. .el-carousel__arrow i {
  307. cursor: pointer; }
  308. .el-carousel__indicators {
  309. position: absolute;
  310. list-style: none;
  311. margin: 0;
  312. padding: 0;
  313. z-index: 2; }
  314. .el-carousel__indicators--horizontal {
  315. bottom: 0;
  316. left: 50%;
  317. -webkit-transform: translateX(-50%);
  318. transform: translateX(-50%); }
  319. .el-carousel__indicators--vertical {
  320. right: 0;
  321. top: 50%;
  322. -webkit-transform: translateY(-50%);
  323. transform: translateY(-50%); }
  324. .el-carousel__indicators--outside {
  325. bottom: 26px;
  326. text-align: center;
  327. position: static;
  328. -webkit-transform: none;
  329. transform: none; }
  330. .el-carousel__indicators--outside .el-carousel__indicator:hover button {
  331. opacity: 0.64; }
  332. .el-carousel__indicators--outside button {
  333. background-color: #C0C4CC;
  334. opacity: 0.24; }
  335. .el-carousel__indicators--labels {
  336. left: 0;
  337. right: 0;
  338. -webkit-transform: none;
  339. transform: none;
  340. text-align: center; }
  341. .el-carousel__indicators--labels .el-carousel__button {
  342. height: auto;
  343. width: auto;
  344. padding: 2px 18px;
  345. font-size: 12px; }
  346. .el-carousel__indicators--labels .el-carousel__indicator {
  347. padding: 6px 4px; }
  348. .el-carousel__indicator {
  349. background-color: transparent;
  350. cursor: pointer; }
  351. .el-carousel__indicator:hover button {
  352. opacity: 0.72; }
  353. .el-carousel__indicator--horizontal {
  354. display: inline-block;
  355. padding: 12px 4px; }
  356. .el-carousel__indicator--vertical {
  357. padding: 4px 12px; }
  358. .el-carousel__indicator--vertical .el-carousel__button {
  359. width: 2px;
  360. height: 15px; }
  361. .el-carousel__indicator.is-active button {
  362. opacity: 1; }
  363. .el-carousel__button {
  364. display: block;
  365. opacity: 0.48;
  366. width: 30px;
  367. height: 2px;
  368. background-color: #FFFFFF;
  369. border: none;
  370. outline: none;
  371. padding: 0;
  372. margin: 0;
  373. cursor: pointer;
  374. -webkit-transition: .3s;
  375. transition: .3s; }
  376. .carousel-arrow-left-enter,
  377. .carousel-arrow-left-leave-active {
  378. -webkit-transform: translateY(-50%) translateX(-10px);
  379. transform: translateY(-50%) translateX(-10px);
  380. opacity: 0; }
  381. .carousel-arrow-right-enter,
  382. .carousel-arrow-right-leave-active {
  383. -webkit-transform: translateY(-50%) translateX(10px);
  384. transform: translateY(-50%) translateX(10px);
  385. opacity: 0; }