list.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. .cl-list {
  2. margin-bottom: 20rpx;
  3. &-item {
  4. display: flex;
  5. align-items: center;
  6. position: relative;
  7. overflow: hidden;
  8. background-color: #fff;
  9. &--append {
  10. .cl-list__content {
  11. margin-right: 20rpx;
  12. }
  13. }
  14. &--disabled {
  15. background-color: #eee;
  16. color: #999;
  17. &:after {
  18. display: block;
  19. content: "";
  20. background-color: rgba(0, 0, 0, 0.1);
  21. position: absolute;
  22. left: 0;
  23. top: 0;
  24. right: 0;
  25. bottom: 0;
  26. }
  27. }
  28. &.is-border {
  29. border-bottom: 1rpx solid #eee;
  30. }
  31. &__icon,
  32. &__label,
  33. &__append {
  34. flex-shrink: 0;
  35. }
  36. &__label,
  37. &__content,
  38. &__append {
  39. display: flex;
  40. align-items: center;
  41. min-height: 80rpx;
  42. font-size: 26rpx;
  43. }
  44. &__swiper {
  45. display: flex;
  46. align-items: center;
  47. transition: all 0.3s;
  48. width: 100%;
  49. }
  50. &__container {
  51. display: flex;
  52. align-items: center;
  53. width: 100%;
  54. padding: 0 20rpx;
  55. box-sizing: border-box;
  56. }
  57. &__icon {
  58. margin-right: 20rpx;
  59. img,
  60. image {
  61. display: block;
  62. height: 46rpx;
  63. width: 46rpx;
  64. }
  65. text {
  66. font-size: 46rpx;
  67. }
  68. }
  69. &__label {
  70. padding: 0 20rpx 0 0;
  71. font-size: 28rpx;
  72. }
  73. &__content {
  74. padding: 10rpx 0;
  75. flex: 1;
  76. &.is-justify-center {
  77. justify-content: center;
  78. picker {
  79. text-align: center;
  80. }
  81. }
  82. &.is-justify-end {
  83. justify-content: flex-end;
  84. picker {
  85. text-align: end;
  86. }
  87. }
  88. &.is-justify-space-between {
  89. justify-content: space-between;
  90. }
  91. &.is-justify-space-around {
  92. justify-content: space-around;
  93. }
  94. &.is-color-primary {
  95. color: $cl-color-primary;
  96. }
  97. &.is-color-success {
  98. color: $cl-color-success;
  99. }
  100. &.is-color-warning {
  101. color: $cl-color-warning;
  102. }
  103. &.is-color-error {
  104. color: $cl-color-error;
  105. }
  106. }
  107. &__append {
  108. i {
  109. display: inline-block;
  110. }
  111. [class^="cl-icon-"] {
  112. font-size: 30rpx;
  113. }
  114. }
  115. &__menu-left {
  116. height: 100%;
  117. transform: translateX(-100%);
  118. position: absolute;
  119. transition: left 0.3s;
  120. }
  121. &__menu-right {
  122. height: 100%;
  123. transform: translateX(100%);
  124. position: absolute;
  125. right: 0;
  126. transition: left 0.3s;
  127. }
  128. }
  129. }
  130. cl-list {
  131. &:last-child {
  132. margin-bottom: 0;
  133. }
  134. }