carousel.scss 770 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. .demo-carousel .block {
  2. padding: 30px;
  3. text-align: center;
  4. border-right: solid 1px #eff2f6;
  5. display: inline-block;
  6. width: 49%;
  7. box-sizing: border-box;
  8. &:last-child {
  9. border-right: none;
  10. }
  11. }
  12. .demo-carousel .demonstration {
  13. display: block;
  14. color: #8492a6;
  15. font-size: 14px;
  16. margin-bottom: 20px;
  17. }
  18. .demo-carousel .el-carousel__container {
  19. text-align: center;
  20. }
  21. .demo-carousel .el-carousel__item {
  22. h3 {
  23. color: #fff;
  24. font-size: 18px;
  25. line-height: 300px;
  26. margin: 0;
  27. &.small {
  28. font-size: 14px;
  29. line-height: 150px;
  30. }
  31. &.medium {
  32. font-size: 14px;
  33. line-height: 200px;
  34. }
  35. }
  36. &:nth-child(2n) {
  37. background-color: #99a9bf;
  38. }
  39. &:nth-child(2n + 1) {
  40. background-color: #d3dce6;
  41. }
  42. }