znzx.wxss 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  1. /* pages/other/znzx/znzx.wxss */
  2. .containers {
  3. position: absolute;
  4. top: 0;
  5. left: 0;
  6. z-index: 0;
  7. width: 100%;
  8. height: calc(100vh);
  9. background: linear-gradient(179deg, #cce1ff 0%, #ffffff 53%, #f9fbff 78%, #f8fbff 100%);
  10. }
  11. .msg-box {
  12. margin-top: 30rpx;
  13. padding: 0 30rpx;
  14. width: 100%;
  15. height: auto;
  16. box-sizing: border-box;
  17. }
  18. .msg_type {
  19. width: 100%;
  20. display: flex;
  21. align-items: flex-start;
  22. }
  23. .msg_type>.msg_headimg {
  24. width: 80rpx;
  25. height: 80rpx;
  26. border-radius: 50%;
  27. }
  28. .msg_type>.msg_headimg>image {
  29. width: 100%;
  30. height: auto;
  31. border-radius: 50%;
  32. }
  33. .msg_type>.msg_content {
  34. position: relative;
  35. padding: 19rpx 30rpx;
  36. width: fit-content;
  37. max-width: calc(100% - 180rpx);
  38. line-height: 42rpx;
  39. font-size: 28rpx;
  40. font-family: "苹方R";
  41. box-sizing: border-box;
  42. --mainColor: #000000;
  43. }
  44. .msg_type_left {
  45. justify-content: flex-start;
  46. }
  47. .msg_type_left>.msg_content {
  48. margin-left: 20rpx;
  49. background: #ffffff;
  50. border-radius: 20rpx 30rpx 20rpx 30rpx;
  51. box-shadow: 0 0 10rpx #e7f1ff;
  52. }
  53. .msg_type_left>.msg_content::before {
  54. content: "";
  55. position: absolute;
  56. top: 25rpx;
  57. left: -25rpx;
  58. z-index: 1;
  59. width: 0;
  60. height: 0;
  61. border-top: 15rpx solid transparent;
  62. border-left: 15rpx solid transparent;
  63. border-right: 15rpx solid #ffffff;
  64. border-bottom: 15rpx solid transparent;
  65. }
  66. .msg_type_right {
  67. justify-content: flex-end;
  68. }
  69. .msg_type_right>.msg_content {
  70. color: #ffffff;
  71. margin-right: 20rpx;
  72. background-image: linear-gradient(90deg, #91b7ff 0%, #3187ff 100%);
  73. border-radius: 30rpx 20rpx 30rpx 20rpx;
  74. }
  75. .msg_type_right>.msg_content::before {
  76. content: "";
  77. position: absolute;
  78. top: 25rpx;
  79. right: -25rpx;
  80. z-index: 1;
  81. width: 0;
  82. height: 0;
  83. border-top: 15rpx solid transparent;
  84. border-left: 15rpx solid #3187ff;
  85. border-right: 15rpx solid transparent;
  86. border-bottom: 15rpx solid transparent;
  87. }
  88. /* 普通消息 */
  89. .msg_content_type1 {
  90. width: fit-content;
  91. font-family: "苹方R";
  92. color: var(--mainColor);
  93. }
  94. /* 消息类型 1 */
  95. .msg_content_type2 {
  96. width: 100%;
  97. }
  98. .msg_content_type2_title {
  99. width: 100%;
  100. line-height: 42rpx;
  101. font-size: 28rpx;
  102. font-family: "苹方R";
  103. color: #000000;
  104. }
  105. .msg_content_type2_link_box {
  106. margin-top: 20rpx;
  107. width: 100%;
  108. }
  109. .msg_content_type2_link {
  110. padding: 10rpx 0;
  111. width: 100%;
  112. line-height: 39rpx;
  113. font-size: 26rpx;
  114. font-family: "苹方R";
  115. color: #006eff;
  116. }
  117. .msg_content_type2_subtitle {
  118. margin-top: 20rpx;
  119. padding-top: 20rpx;
  120. width: 100%;
  121. line-height: 42rpx;
  122. font-size: 28rpx;
  123. font-family: "苹方R";
  124. color: #000000;
  125. border-top: 1px solid #dddddd;
  126. }
  127. .msg_content_type2_sublink_box {
  128. margin-top: 20rpx;
  129. width: 100%;
  130. display: flex;
  131. flex-wrap: wrap;
  132. }
  133. .msg_content_type2_sublink {
  134. margin: 10rpx;
  135. padding: 10rpx 30rpx;
  136. width: fit-content;
  137. line-height: 39rpx;
  138. font-size: 26rpx;
  139. font-family: "苹方R";
  140. color: #006eff;
  141. background: #006eff23;
  142. border-radius: 30rpx;
  143. }
  144. /* 消息类型 2 */
  145. .msg_content_type3 {
  146. width: 100%;
  147. }
  148. .msg_content_type3_title {
  149. width: 100%;
  150. line-height: 42rpx;
  151. font-size: 28rpx;
  152. font-family: "苹方R";
  153. color: #000000;
  154. }
  155. .msg_content_type3_link_box {
  156. margin-top: 20rpx;
  157. width: 100%;
  158. display: flex;
  159. flex-wrap: wrap;
  160. }
  161. .msg_content_type3_link {
  162. margin: 10rpx;
  163. padding: 10rpx 30rpx;
  164. width: fit-content;
  165. line-height: 39rpx;
  166. font-size: 26rpx;
  167. font-family: "苹方R";
  168. color: #006eff;
  169. background: #006eff23;
  170. border-radius: 30rpx;
  171. }
  172. /* 消息类型 3 */
  173. .msg_content_type4 {
  174. width: 100%;
  175. }
  176. .msg_content_type4_title {
  177. margin-bottom: 20rpx;
  178. width: 100%;
  179. line-height: 42rpx;
  180. font-size: 28rpx;
  181. font-family: "苹方R";
  182. color: #000000;
  183. }
  184. .msg_content_type4_rich {
  185. font-size: 26rpx;
  186. font-family: "苹方R";
  187. color: #000000;
  188. line-height: 39rpx;
  189. }
  190. .msg_content_type4_link_box {
  191. margin-top: 20rpx;
  192. width: 100%;
  193. }
  194. .msg_content_type4_link {
  195. margin-top: 20rpx;
  196. padding: 10rpx 30rpx;
  197. width: fit-content;
  198. line-height: 39rpx;
  199. font-size: 26rpx;
  200. font-family: "苹方R";
  201. color: #000000;
  202. background: #006eff1c;
  203. border-radius: 30rpx;
  204. }
  205. .msg_content_type4_link>text {
  206. color: #006eff;
  207. }
  208. .control {
  209. position: absolute;
  210. bottom: 0;
  211. left: 0;
  212. z-index: 99;
  213. padding: 10rpx 20rpx 80rpx 20rpx;
  214. width: 100%;
  215. min-height: 160rpx;
  216. background: #eeeeee;
  217. box-sizing: border-box;
  218. }
  219. .control-box {
  220. width: 100%;
  221. display: flex;
  222. align-items: flex-end;
  223. }
  224. .control-voice {
  225. width: 60rpx;
  226. height: 100rpx;
  227. display: flex;
  228. align-items: center;
  229. justify-content: center;
  230. }
  231. .control-voice>image {
  232. width: 60rpx;
  233. height: auto;
  234. }
  235. .control-input {
  236. padding-top: 10rpx;
  237. padding-bottom: 10rpx;
  238. margin-left: 20rpx;
  239. width: 0;
  240. flex: 1;
  241. display: flex;
  242. align-items: center;
  243. box-sizing: border-box;
  244. }
  245. .control-input-voice {
  246. position: relative;
  247. z-index: 999;
  248. padding: 20rpx 0;
  249. width: 100%;
  250. height: 100%;
  251. font-size: 30rpx;
  252. font-family: "苹方M";
  253. display: flex;
  254. align-items: center;
  255. justify-content: center;
  256. background: #ffffff;
  257. border-radius: 10rpx;
  258. }
  259. .control-input-voice-active {
  260. position: absolute;
  261. left: -25%;
  262. bottom: -200rpx;
  263. z-index: 999;
  264. width: 150%;
  265. height: 480rpx;
  266. color: #ffffff;
  267. align-items: flex-start;
  268. background-image: linear-gradient(to bottom, #bbbbbb, #707070 120%);
  269. border-radius: 50% 50% 0 0;
  270. }
  271. .voice-mask {
  272. position: fixed;
  273. top: 0;
  274. left: 0;
  275. z-index: 0;
  276. width: 100%;
  277. height: calc(100% - 180rpx);
  278. background: rgba(0, 0, 0, 0.5);
  279. }
  280. .voicing-box {
  281. position: absolute;
  282. bottom: calc(50% + 100rpx);
  283. left: calc(50% - 100rpx);
  284. height: 150rpx;
  285. width: 200rpx;
  286. display: flex;
  287. align-items: center;
  288. justify-content: space-evenly;
  289. }
  290. .voiceing {
  291. width: 12rpx;
  292. height: 150rpx;
  293. border-radius: 6rpx;
  294. animation: voiceing 1s var(--time) infinite;
  295. }
  296. .voiceing:nth-child(1) {
  297. --time: -0.1s;
  298. background-image: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
  299. }
  300. .voiceing:nth-child(2) {
  301. --time: -0.2s;
  302. background-image: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
  303. }
  304. .voiceing:nth-child(3) {
  305. --time: -0.3s;
  306. background-image: linear-gradient(to top, #fad0c4 0%, #ffd1ff 100%);
  307. }
  308. .voiceing:nth-child(4) {
  309. --time: -0.4s;
  310. background-image: linear-gradient(to top, #fdcbf1 0%, #fdcbf1 1%, #e6dee9 100%);
  311. }
  312. .voiceing:nth-child(5) {
  313. --time: -0.5s;
  314. background-image: linear-gradient(to top, #fbc2eb 0%, #a6c1ee 100%);
  315. }
  316. .voiceing:nth-child(6) {
  317. --time: -0.4s;
  318. background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
  319. }
  320. .voiceing:nth-child(7) {
  321. --time: -0.3s;
  322. background-image: linear-gradient(120deg, #fccb90 0%, #d57eeb 100%);
  323. }
  324. .voiceing:nth-child(8) {
  325. --time: -0.2s;
  326. background-image: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
  327. }
  328. .voiceing:nth-child(9) {
  329. --time: -0.1s;
  330. background-image: linear-gradient(120deg, #f093fb 0%, #f5576c 100%);
  331. }
  332. .voiceing:nth-child(10) {
  333. --time: 0s;
  334. background-image: linear-gradient(to top, #9890e3 0%, #b1f4cf 100%);
  335. }
  336. @keyframes voiceing {
  337. 0% {
  338. height: 100rpx;
  339. }
  340. 50% {
  341. height: 50rpx;
  342. }
  343. 100% {
  344. height: 100rpx;
  345. }
  346. }
  347. .control-input>textarea {
  348. padding: 20rpx;
  349. width: 100%;
  350. height: 40rpx;
  351. line-height: 45rpx;
  352. font-size: 30rpx;
  353. font-family: "苹方R";
  354. background: #ffffff;
  355. border-radius: 10rpx;
  356. transition: all 0.35s;
  357. }
  358. .control-send {
  359. margin-left: 20rpx;
  360. margin-bottom: 15rpx;
  361. width: 120rpx;
  362. height: 70rpx;
  363. line-height: 70rpx;
  364. text-align: center;
  365. font-family: "苹方R";
  366. color: #515151;
  367. background: #ffffff;
  368. border-radius: 10rpx;
  369. transition: all 0.2s;
  370. }
  371. .control-send-ok {
  372. color: #ffffff;
  373. background: #3490de;
  374. }
  375. .fill {
  376. width: 100%;
  377. height: 1rpx;
  378. }
  379. .fill-bottom {
  380. height: 210rpx;
  381. }
  382. .popContain {
  383. position: relative;
  384. width: 100%;
  385. height: calc(100% - 130rpx);
  386. }
  387. .pop-title {
  388. padding-bottom: 20rpx;
  389. position: sticky;
  390. top: 0;
  391. z-index: 9;
  392. width: 100%;
  393. height: 96rpx;
  394. text-align: center;
  395. line-height: 48rpx;
  396. font-family: "苹方M";
  397. font-size: 32rpx;
  398. color: #313131;
  399. background: #ffffff;
  400. overflow: hidden;
  401. }
  402. .popRich {
  403. font-size: 26rpx;
  404. font-family: "苹方R";
  405. color: #000000;
  406. line-height: 39rpx;
  407. }