uni-list-chat.wxss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  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-chat {
  28. font-size: 16px;
  29. position: relative;
  30. flex-direction: column;
  31. justify-content: space-between;
  32. background-color: #fff;
  33. }
  34. .uni-list-chat--hover {
  35. background-color: #f5f5f5;
  36. }
  37. .uni-list--border {
  38. position: relative;
  39. margin-left: 15px;
  40. }
  41. .uni-list--border:after {
  42. position: absolute;
  43. top: 0;
  44. right: 0;
  45. left: 0;
  46. height: 1px;
  47. content: '';
  48. -webkit-transform: scaleY(0.5);
  49. transform: scaleY(0.5);
  50. background-color: #e5e5e5;
  51. }
  52. .uni-list-item--first:after {
  53. height: 0px;
  54. }
  55. .uni-list-chat--first {
  56. border-top-width: 0px;
  57. }
  58. .uni-ellipsis {
  59. overflow: hidden;
  60. white-space: nowrap;
  61. text-overflow: ellipsis;
  62. }
  63. .uni-ellipsis-2 {
  64. overflow: hidden;
  65. text-overflow: ellipsis;
  66. display: -webkit-box;
  67. -webkit-line-clamp: 2;
  68. -webkit-box-orient: vertical;
  69. }
  70. .uni-list-chat__container {
  71. position: relative;
  72. display: flex;
  73. flex-direction: row;
  74. flex: 1;
  75. padding: 10px 15px;
  76. position: relative;
  77. overflow: hidden;
  78. }
  79. .uni-list-chat__header-warp {
  80. position: relative;
  81. }
  82. .uni-list-chat__header {
  83. display: flex;
  84. align-content: center;
  85. flex-direction: row;
  86. justify-content: center;
  87. align-items: center;
  88. flex-wrap: wrap-reverse;
  89. width: 45px;
  90. height: 45px;
  91. border-radius: 5px;
  92. border-color: #eee;
  93. border-width: 1px;
  94. border-style: solid;
  95. overflow: hidden;
  96. }
  97. .uni-list-chat__header-box {
  98. box-sizing: border-box;
  99. display: flex;
  100. width: 45px;
  101. height: 45px;
  102. overflow: hidden;
  103. border-radius: 2px;
  104. }
  105. .uni-list-chat__header-image {
  106. margin: 1px;
  107. width: 45px;
  108. height: 45px;
  109. }
  110. .uni-list-chat__header-image {
  111. display: block;
  112. width: 100%;
  113. height: 100%;
  114. }
  115. .avatarItem--1 {
  116. width: 100%;
  117. height: 100%;
  118. }
  119. .avatarItem--2 {
  120. width: 47%;
  121. height: 47%;
  122. }
  123. .avatarItem--3 {
  124. width: 32%;
  125. height: 32%;
  126. }
  127. .header--circle {
  128. border-radius: 50%;
  129. }
  130. .uni-list-chat__content {
  131. display: flex;
  132. flex-direction: row;
  133. flex: 1;
  134. overflow: hidden;
  135. padding: 2px 0;
  136. }
  137. .uni-list-chat__content-main {
  138. display: flex;
  139. flex-direction: column;
  140. justify-content: space-between;
  141. padding-left: 10px;
  142. flex: 1;
  143. overflow: hidden;
  144. }
  145. .uni-list-chat__content-title {
  146. font-size: 16px;
  147. color: #3b4144;
  148. font-weight: normal;
  149. overflow: hidden;
  150. }
  151. .draft, .uni-list-chat__content-note {
  152. margin-top: 3px;
  153. color: #999;
  154. font-size: 12px;
  155. font-weight: normal;
  156. overflow: hidden;
  157. }
  158. .draft {
  159. color: #eb3a41;
  160. flex-shrink: 0;
  161. padding-right: 3px;
  162. }
  163. .uni-list-chat__content-extra {
  164. flex-shrink: 0;
  165. display: flex;
  166. flex-direction: column;
  167. justify-content: space-between;
  168. align-items: flex-end;
  169. margin-left: 5px;
  170. }
  171. .uni-list-chat__content-extra-text {
  172. color: #999;
  173. font-size: 12px;
  174. font-weight: normal;
  175. overflow: hidden;
  176. }
  177. .uni-list-chat__badge-pos {
  178. position: absolute;
  179. left: calc(45px + 10px - 6px + 0px);
  180. top: calc(10px/ 2 + 1px + 0px);
  181. }
  182. .uni-list-chat__badge {
  183. display: flex;
  184. justify-content: center;
  185. align-items: center;
  186. border-radius: 100px;
  187. background-color: #ff5a5f;
  188. }
  189. .uni-list-chat__badge-text {
  190. color: #fff;
  191. font-size: 12px;
  192. }
  193. .uni-badge--single {
  194. width: 18px;
  195. height: 18px;
  196. }
  197. .uni-badge--complex {
  198. width: auto;
  199. height: 18px;
  200. padding: 0 6px;
  201. }
  202. .uni-badge--dot {
  203. left: calc(45px + 15px - 10px/ 2 + 1px + 0px);
  204. width: 10px;
  205. height: 10px;
  206. padding: 0;
  207. }