uni-list-item.wxss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. /* 颜色变量 */
  15. /* 行为相关颜色 */
  16. /* 文字基本颜色 */
  17. /* 背景颜色 */
  18. /* 边框颜色 */
  19. /* 尺寸变量 */
  20. /* 文字尺寸 */
  21. /* 图片尺寸 */
  22. /* Border Radius */
  23. /* 水平间距 */
  24. /* 垂直间距 */
  25. /* 透明度 */
  26. /* 文章场景相关 */
  27. .uni-list-item {
  28. display: flex;
  29. font-size: 16px;
  30. position: relative;
  31. justify-content: space-between;
  32. align-items: center;
  33. background-color: #fff;
  34. flex-direction: row;
  35. }
  36. .uni-list-item--disabled {
  37. opacity: 0.3;
  38. }
  39. .uni-list-item--hover {
  40. background-color: #f1f1f1 !important;
  41. }
  42. .uni-list-item__container {
  43. position: relative;
  44. display: flex;
  45. flex-direction: row;
  46. padding: 12px 15px;
  47. padding-left: 15px;
  48. flex: 1;
  49. overflow: hidden;
  50. }
  51. .container--right {
  52. padding-right: 0;
  53. }
  54. .uni-list--border {
  55. position: absolute;
  56. top: 0;
  57. right: 0;
  58. left: 0;
  59. }
  60. .uni-list--border:after {
  61. position: absolute;
  62. top: 0;
  63. right: 0;
  64. left: 0;
  65. height: 1px;
  66. content: '';
  67. -webkit-transform: scaleY(0.5);
  68. transform: scaleY(0.5);
  69. background-color: #e5e5e5;
  70. }
  71. .uni-list-item__content {
  72. display: flex;
  73. padding-right: 8px;
  74. flex: 1;
  75. color: #3b4144;
  76. flex-direction: column;
  77. justify-content: space-between;
  78. overflow: hidden;
  79. }
  80. .uni-list-item__content--center {
  81. justify-content: center;
  82. }
  83. .uni-list-item__content-title {
  84. font-size: 14px;
  85. color: #3b4144;
  86. overflow: hidden;
  87. }
  88. .uni-list-item__content-note {
  89. margin-top: 6rpx;
  90. color: #999;
  91. font-size: 12px;
  92. overflow: hidden;
  93. }
  94. .uni-list-item__extra {
  95. display: flex;
  96. flex-direction: row;
  97. justify-content: flex-end;
  98. align-items: center;
  99. }
  100. .uni-list-item__header {
  101. display: flex;
  102. flex-direction: row;
  103. align-items: center;
  104. }
  105. .uni-list-item__icon {
  106. margin-right: 18rpx;
  107. flex-direction: row;
  108. justify-content: center;
  109. align-items: center;
  110. }
  111. .uni-list-item__icon-img {
  112. display: block;
  113. height: 26px;
  114. width: 26px;
  115. margin-right: 10px;
  116. }
  117. .uni-icon-wrapper {
  118. display: flex;
  119. align-items: center;
  120. padding: 0 10px;
  121. }
  122. .flex--direction {
  123. flex-direction: column;
  124. align-items: initial;
  125. }
  126. .flex--justify {
  127. justify-content: initial;
  128. }
  129. .uni-list--lg {
  130. height: 40px;
  131. width: 40px;
  132. }
  133. .uni-list--base {
  134. height: 26px;
  135. width: 26px;
  136. }
  137. .uni-list--sm {
  138. height: 20px;
  139. width: 20px;
  140. }
  141. .uni-list-item__extra-text {
  142. color: #999;
  143. font-size: 12px;
  144. }
  145. .uni-ellipsis-1 {
  146. overflow: hidden;
  147. white-space: nowrap;
  148. text-overflow: ellipsis;
  149. }
  150. .uni-ellipsis-2 {
  151. overflow: hidden;
  152. text-overflow: ellipsis;
  153. display: -webkit-box;
  154. -webkit-line-clamp: 2;
  155. -webkit-box-orient: vertical;
  156. }