b7bcc943abcc16ff1d457cbf7ec2dd082cf9a5c08d424833cd01f1351e41723b8b757c7eef16556dd961266658ba2b9ea6a8f408724d4b076115f843febd93 974 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. @import "mixins/mixins";
  2. @import "common/var";
  3. @include b(carousel) {
  4. @include e(item) {
  5. position: absolute;
  6. top: 0;
  7. left: 0;
  8. width: 100%;
  9. height: 100%;
  10. display: inline-block;
  11. overflow: hidden;
  12. z-index: #{$--index-normal - 1};
  13. @include when(active) {
  14. z-index: #{$--index-normal + 1};
  15. }
  16. @include when(animating) {
  17. transition: transform .4s ease-in-out;
  18. }
  19. @include m(card) {
  20. width: 50%;
  21. transition: transform .4s ease-in-out;
  22. &.is-in-stage {
  23. cursor: pointer;
  24. z-index: $--index-normal;
  25. &:hover .el-carousel__mask,
  26. &.is-hover .el-carousel__mask {
  27. opacity: 0.12;
  28. }
  29. }
  30. &.is-active {
  31. z-index: #{$--index-normal + 1};
  32. }
  33. }
  34. }
  35. @include e(mask) {
  36. position: absolute;
  37. width: 100%;
  38. height: 100%;
  39. top: 0;
  40. left: 0;
  41. background-color: $--color-white;
  42. opacity: 0.24;
  43. transition: .2s;
  44. }
  45. }