uni-list-item.wxss 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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: -webkit-box;
  29. display: -webkit-flex;
  30. display: flex;
  31. font-size: 32rpx;
  32. position: relative;
  33. -webkit-box-pack: justify;
  34. -webkit-justify-content: space-between;
  35. justify-content: space-between;
  36. background-color: #fff;
  37. -webkit-box-orient: horizontal;
  38. -webkit-box-direction: normal;
  39. -webkit-flex-direction: row;
  40. flex-direction: row;
  41. }
  42. .uni-list-item--disabled {
  43. opacity: 0.3;
  44. }
  45. .uni-list-item--hover {
  46. background-color: #f1f1f1;
  47. }
  48. .uni-list-item__container {
  49. position: relative;
  50. display: -webkit-box;
  51. display: -webkit-flex;
  52. display: flex;
  53. -webkit-box-orient: horizontal;
  54. -webkit-box-direction: normal;
  55. -webkit-flex-direction: row;
  56. flex-direction: row;
  57. padding: 24rpx 30rpx;
  58. padding-left: 30rpx;
  59. -webkit-box-flex: 1;
  60. -webkit-flex: 1;
  61. flex: 1;
  62. overflow: hidden;
  63. }
  64. .container--right {
  65. padding-right: 0;
  66. }
  67. .uni-list--border {
  68. position: absolute;
  69. top: 0;
  70. right: 0;
  71. left: 0;
  72. }
  73. .uni-list--border:after {
  74. position: absolute;
  75. top: 0;
  76. right: 0;
  77. left: 0;
  78. height: 1px;
  79. content: '';
  80. -webkit-transform: scaleY(0.5);
  81. transform: scaleY(0.5);
  82. background-color: #c8c7cc;
  83. }
  84. .uni-list-item__content {
  85. display: -webkit-box;
  86. display: -webkit-flex;
  87. display: flex;
  88. padding-right: 8px;
  89. -webkit-box-flex: 1;
  90. -webkit-flex: 1;
  91. flex: 1;
  92. color: #3b4144;
  93. -webkit-box-orient: vertical;
  94. -webkit-box-direction: normal;
  95. -webkit-flex-direction: column;
  96. flex-direction: column;
  97. -webkit-box-pack: justify;
  98. -webkit-justify-content: space-between;
  99. justify-content: space-between;
  100. overflow: hidden;
  101. }
  102. .uni-list-item__content--center {
  103. -webkit-box-pack: center;
  104. -webkit-justify-content: center;
  105. justify-content: center;
  106. }
  107. .uni-list-item__content-title {
  108. font-size: 28rpx;
  109. color: #3b4144;
  110. overflow: hidden;
  111. }
  112. .uni-list-item__content-note {
  113. margin-top: 6rpx;
  114. color: #999;
  115. font-size: 24rpx;
  116. overflow: hidden;
  117. }
  118. .uni-list-item__extra {
  119. display: -webkit-box;
  120. display: -webkit-flex;
  121. display: flex;
  122. -webkit-box-orient: horizontal;
  123. -webkit-box-direction: normal;
  124. -webkit-flex-direction: row;
  125. flex-direction: row;
  126. -webkit-box-pack: end;
  127. -webkit-justify-content: flex-end;
  128. justify-content: flex-end;
  129. -webkit-box-align: center;
  130. -webkit-align-items: center;
  131. align-items: center;
  132. }
  133. .uni-list-item__header {
  134. display: -webkit-box;
  135. display: -webkit-flex;
  136. display: flex;
  137. -webkit-box-orient: horizontal;
  138. -webkit-box-direction: normal;
  139. -webkit-flex-direction: row;
  140. flex-direction: row;
  141. -webkit-box-align: center;
  142. -webkit-align-items: center;
  143. align-items: center;
  144. }
  145. .uni-list-item__icon {
  146. margin-right: 18rpx;
  147. -webkit-box-orient: horizontal;
  148. -webkit-box-direction: normal;
  149. -webkit-flex-direction: row;
  150. flex-direction: row;
  151. -webkit-box-pack: center;
  152. -webkit-justify-content: center;
  153. justify-content: center;
  154. -webkit-box-align: center;
  155. -webkit-align-items: center;
  156. align-items: center;
  157. }
  158. .uni-list-item__icon-img {
  159. display: block;
  160. height: 52rpx;
  161. width: 52rpx;
  162. }
  163. .uni-icon-wrapper {
  164. display: -webkit-box;
  165. display: -webkit-flex;
  166. display: flex;
  167. -webkit-box-align: center;
  168. -webkit-align-items: center;
  169. align-items: center;
  170. padding: 0 10px;
  171. }
  172. .flex--direction {
  173. -webkit-box-orient: vertical;
  174. -webkit-box-direction: normal;
  175. -webkit-flex-direction: column;
  176. flex-direction: column;
  177. -webkit-box-align: initial;
  178. -webkit-align-items: initial;
  179. align-items: initial;
  180. }
  181. .flex--justify {
  182. -webkit-box-pack: initial;
  183. -webkit-justify-content: initial;
  184. justify-content: initial;
  185. }
  186. .uni-list--lg {
  187. height: 80rpx;
  188. width: 80rpx;
  189. }
  190. .uni-list--base {
  191. height: 52rpx;
  192. width: 52rpx;
  193. }
  194. .uni-list--sm {
  195. height: 40rpx;
  196. width: 40rpx;
  197. }
  198. .uni-list-item__extra-text {
  199. color: #999;
  200. font-size: 24rpx;
  201. }
  202. .uni-ellipsis-1 {
  203. overflow: hidden;
  204. white-space: nowrap;
  205. text-overflow: ellipsis;
  206. }
  207. .uni-ellipsis-2 {
  208. overflow: hidden;
  209. text-overflow: ellipsis;
  210. display: -webkit-box;
  211. -webkit-line-clamp: 2;
  212. -webkit-box-orient: vertical;
  213. }