u-swiper.wxss 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /**
  2. * 这里是uni-app内置的常用样式变量
  3. *
  4. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  5. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  6. /* uni.scss */
  7. view.data-v-eda42115, scroll-view.data-v-eda42115, swiper-item.data-v-eda42115 {
  8. display: flex;
  9. flex-direction: column;
  10. flex-shrink: 0;
  11. flex-grow: 0;
  12. flex-basis: auto;
  13. align-items: stretch;
  14. align-content: flex-start;
  15. }
  16. .u-swiper.data-v-eda42115 {
  17. display: flex;
  18. flex-direction: row;
  19. justify-content: center;
  20. align-items: center;
  21. position: relative;
  22. overflow: hidden;
  23. }
  24. .u-swiper__wrapper.data-v-eda42115 {
  25. flex: 1;
  26. }
  27. .u-swiper__wrapper__item.data-v-eda42115 {
  28. flex: 1;
  29. }
  30. .u-swiper__wrapper__item__wrapper.data-v-eda42115 {
  31. display: flex;
  32. flex-direction: row;
  33. position: relative;
  34. overflow: hidden;
  35. transition: transform 0.3s;
  36. flex: 1;
  37. }
  38. .u-swiper__wrapper__item__wrapper__image.data-v-eda42115 {
  39. flex: 1;
  40. }
  41. .u-swiper__wrapper__item__wrapper__video.data-v-eda42115 {
  42. flex: 1;
  43. }
  44. .u-swiper__wrapper__item__wrapper__title.data-v-eda42115 {
  45. position: absolute;
  46. background-color: rgba(0, 0, 0, 0.3);
  47. bottom: 0;
  48. left: 0;
  49. right: 0;
  50. font-size: 28rpx;
  51. padding: 12rpx 24rpx;
  52. color: #FFFFFF;
  53. flex: 1;
  54. }
  55. .u-swiper__indicator.data-v-eda42115 {
  56. position: absolute;
  57. bottom: 10px;
  58. }