index.css 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. /** 聊天窗口样式
  2. * 54px为回复框高度,js同
  3. */
  4. /*聊天记录*/
  5. page {
  6. background: rgb(245, 245, 245);
  7. }
  8. .message-list {
  9. /*margin-bottom: 54px;*/
  10. background: rgb(235, 235, 235);
  11. }
  12. /*单元行*/
  13. .row {
  14. display: flex;
  15. flex-direction: column;
  16. /* margin: 0 30rpx; */
  17. }
  18. /*日期*/
  19. .datetime {
  20. font-size: 10px;
  21. padding: 10px 0;
  22. color: #999;
  23. text-align: center;
  24. }
  25. .send {
  26. font-size: 15px;
  27. /* padding-right: 10px; */
  28. color: #999;
  29. text-align: center;
  30. height: 70%;
  31. border: 1px solid #e4dfdf;
  32. display: flex;
  33. align-items: center;
  34. justify-content: center;
  35. width: 120rpx;
  36. border-radius: 10rpx;
  37. /* margin-right: 15rpx; */
  38. }
  39. .sendActive {
  40. font-size: 15px;
  41. /* padding-right: 10px; */
  42. color: #fff;
  43. text-align: center;
  44. height: 70%;
  45. border: 1px solid #05c15f;
  46. display: flex;
  47. align-items: center;
  48. justify-content: center;
  49. width: 120rpx;
  50. border-radius: 10rpx;
  51. background-color: #05c15f;
  52. /* margin-right: 15rpx; */
  53. }
  54. .content {
  55. font-size: 28rpx;
  56. }
  57. .Audio {
  58. font-size: 15px;
  59. color: #999;
  60. text-align: center;
  61. padding-left: 10rpx;
  62. }
  63. .Audio image {
  64. width: 50rpx;
  65. height: 50rpx;
  66. }
  67. .add {
  68. height: 70%;
  69. display: flex;
  70. align-items: center;
  71. justify-content: center;
  72. width: 90rpx;
  73. }
  74. .more {
  75. width: 50rpx;
  76. height: 50rpx;
  77. }
  78. /*主体*/
  79. .body {
  80. display: flex;
  81. flex-direction: row;
  82. align-items: flex-start;
  83. justify-content: flex-start;
  84. width: 100%;
  85. margin-top: 10px;
  86. }
  87. /*头像容器*/
  88. .body.avatar-container {
  89. width: 20%;
  90. }
  91. /*头像*/
  92. .body .avatar {
  93. width: 80rpx;
  94. height: 80rpx;
  95. border-radius: 50%;
  96. margin: 0 20rpx;
  97. }
  98. /*文本消息*/
  99. .body .content,.body .contentl {
  100. font-size: 16px;
  101. background: #fff;
  102. border-radius: 5px;
  103. padding: 10px;
  104. line-height: 22px;
  105. margin-bottom: 10px;
  106. word-wrap: break-word;
  107. max-width: 480rpx;
  108. position: relative;
  109. }
  110. .body .content:before {
  111. content: "";
  112. display: block;
  113. position: absolute;
  114. width:0;
  115. height: 0;
  116. border: 10px solid transparent; /*边框宽度为10px 颜色透明(也就是隐藏) */
  117. border-left-color: #7ECB4B; /*只显示右边的边框 显示效果就是向左的箭头*/
  118. right: -20px; /*在DIV左边显示右边的边框 要向左移动2倍边框宽度 即20px*/
  119. top: 9px; /*高度为25+5+5=35 排除箭头高度20 剩余15 显示在距顶部9px的位置 */
  120. }
  121. .body .contentl:before {
  122. content: "";
  123. display: block;
  124. position: absolute;
  125. width:0;
  126. height: 0;
  127. border: 10px solid transparent; /*边框宽度为10px 颜色透明(也就是隐藏) */
  128. border-right-color: #fff; /*只显示右边的边框 显示效果就是向左的箭头*/
  129. left: -20px; /*在DIV左边显示右边的边框 要向左移动2倍边框宽度 即20px*/
  130. top: 9px; /*高度为25+5+5=35 排除箭头高度20 剩余15 显示在距顶部9px的位置 */
  131. }
  132. /* 三角箭头 */
  133. .body .triangle {
  134. background: white;
  135. width: 20rpx;
  136. height: 20rpx;
  137. margin-top: 26rpx;
  138. transform: rotate(45deg);
  139. position: absolute;
  140. }
  141. /*图片消息*/
  142. .picture {
  143. width: 160px;
  144. }
  145. /*回复框*/
  146. .reply {
  147. display: flex;
  148. flex-direction: row;
  149. justify-content: space-around;
  150. align-items: center;
  151. position: fixed;
  152. /* bottom: 0; */
  153. width: 710rpx;
  154. height: 54px;
  155. border-top: 1px solid rgb(215, 215, 215);
  156. background: rgb(245, 245, 245);
  157. padding: 0px 20rpx;
  158. }
  159. .reply .voice-image {
  160. width: 25px;
  161. height: 25px;
  162. margin-left: 3%;
  163. }
  164. /*文本输入或语音录入*/
  165. .reply .opration-area {
  166. flex: 1;
  167. padding: 8px 8px 8px 0;
  168. }
  169. /*回复文本框*/
  170. .reply input {
  171. background: rgb(252, 252, 252);
  172. height: 36px;
  173. border: 1px solid rgb(221, 221, 221);
  174. border-radius: 6px;
  175. padding-left: 3px;
  176. }
  177. /*选取图片*/
  178. .reply .choose-image {
  179. width: 25px;
  180. height: 25px;
  181. margin-right: 3%;
  182. }
  183. /*按住说话button*/
  184. .voice-button {
  185. height: 36px;
  186. color: #818181;
  187. font-size: 14px;
  188. line-height: 36px;
  189. text-align: center;
  190. border: 1px solid #e4dfdf;
  191. border-radius: 10rpx;
  192. }
  193. /*悬浮提示框*/
  194. .hud-container {
  195. position: fixed;
  196. width: 150px;
  197. height: 150px;
  198. left: 50%;
  199. top: 50%;
  200. margin-left: -75px;
  201. margin-top: -75px;
  202. }
  203. /*背景层*/
  204. .hud-background {
  205. position: absolute;
  206. width: 100%;
  207. height: 100%;
  208. background: #999;
  209. opacity: 0.8;
  210. z-index: 11;
  211. border-radius: 10px;
  212. }
  213. /*悬浮框主体*/
  214. .hud-body {
  215. position: relative;
  216. width: 100%;
  217. height: 100%;
  218. z-index: 19;
  219. display: flex;
  220. flex-direction: column;
  221. justify-content: space-between;
  222. align-items: center;
  223. }
  224. /*图标*/
  225. .hud-body image {
  226. margin-top: 20px;
  227. width: 80px;
  228. height: 80px;
  229. }
  230. /*文字*/
  231. .hud-body .tip {
  232. color: #fff;
  233. text-align: center;
  234. width: 90%;
  235. line-height: 34px;
  236. margin: 0 auto;
  237. margin-bottom: 10px;
  238. width: 90%;
  239. }
  240. .hud-body .warning {
  241. background: #c33;
  242. border-radius: 5px;
  243. }
  244. .image-message {
  245. max-width: 100%;
  246. border-radius: 4rpx;
  247. }
  248. .box {
  249. display: flex;
  250. height: 40rpx;
  251. line-height: 40rpx;
  252. }
  253. .hoverBtn {
  254. background-color: rgb(226, 220, 220);
  255. color: #fff;
  256. border-radius: 10rpx;
  257. }
  258. .more_box {
  259. height: 138rpx;
  260. width: 100%;
  261. padding: 15rpx;
  262. display: flex;
  263. background: rgb(245, 245, 245);
  264. position: fixed;
  265. bottom: 0;
  266. }
  267. .more_item {
  268. text-align: center;
  269. height: 150rpx;
  270. font-size: 24rpx;
  271. margin-left: 26rpx
  272. }
  273. .img_box {
  274. width: 80rpx;
  275. height: 84rpx;
  276. background-color: #fff;
  277. display: flex;
  278. justify-content: center;
  279. align-items: center;
  280. border-radius: 10rpx;
  281. }
  282. .img_box image {
  283. width: 40rpx;
  284. height: 40rpx;
  285. }
  286. .top {
  287. background: #F9F8D9; padding: 15rpx 20rpx;text-align: center; color: #F97326; font-size: 24rpx;justify-content: center;align-items: center;position: fixed;
  288. width: 100%;z-index: 2;
  289. }
  290. /* .num {
  291. background: rgba(0, 0, 0, .3);
  292. color: white;
  293. padding: 10rpx 30rpx;
  294. line-height: 48rpx;
  295. } */
  296. .sum {
  297. font-size: 30rpx;
  298. font-weight: bold;
  299. color: red;
  300. }