my-common.scss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. .spill{
  2. display: -webkit-box; /*弹性伸缩盒子模型显示*/
  3. -webkit-box-orient: vertical; /*排列方式*/
  4. -webkit-line-clamp: 1; /*显示文本行数*/
  5. overflow: hidden; /*溢出隐藏*/
  6. }
  7. .flex-buju{
  8. display: flex;
  9. align-items: center;
  10. justify-content: center;
  11. }
  12. .main {
  13. overflow: hidden;
  14. display: flex;
  15. justify-content: space-between;
  16. .left-main,
  17. .right-main {
  18. background: #fff;
  19. border-radius: 4px;
  20. }
  21. //左侧板块
  22. .left-main {
  23. // width: 312px;
  24. width: 20.1%;
  25. margin-right: 8px;
  26. .left-top {
  27. display: flex;
  28. justify-content: space-around;
  29. align-items: center;
  30. height: 48px;
  31. background: #ebeff6;
  32. border-top-right-radius: 4px;
  33. border-top-left-radius: 4px;
  34. }
  35. }
  36. //右侧板块
  37. .right-main {
  38. width: 100%;
  39. flex-grow: 1;
  40. display: flex;
  41. flex-direction: column;
  42. .right-header {
  43. background-color: #ebeff6;
  44. border-top-right-radius: 4px;
  45. border-top-left-radius: 4px;
  46. }
  47. .right-container {
  48. // flex: 1;
  49. height: 300px !important;
  50. overflow: auto;
  51. border-bottom: 1px solid #c1cce3;
  52. }
  53. .right-footer {
  54. display: flex;
  55. align-items: center;
  56. :deep .el-input__wrapper {
  57. background: #f5f7f9 !important;
  58. border-radius: 16px;
  59. }
  60. .w-50 {
  61. margin: 0 16px;
  62. flex: 1;
  63. }
  64. .send-info {
  65. width: 40px;
  66. height: 40px;
  67. border-radius: 16px;
  68. }
  69. .send-info-file {
  70. width: 28px;
  71. height: 28px;
  72. }
  73. :deep .el-input {
  74. width: 80%;
  75. height: 40px;
  76. border-radius: 16px;
  77. --el-input-border-color: #c9d2e6;
  78. }
  79. }
  80. }
  81. }
  82. //搜索
  83. .search {
  84. .w-50,
  85. :deep .el-input {
  86. width: 80%;
  87. height: 32px;
  88. border-radius: 4px;
  89. --el-input-border-color: #c9d2e6;
  90. }
  91. }
  92. //聊天头像
  93. .head-sculpture {
  94. width: 40px;
  95. height: 40px;
  96. border-radius: 20px;
  97. margin: 0 8px 0 12px;
  98. vertical-align: middle;
  99. }
  100. //左侧聊天列表展示
  101. .left-container {
  102. height: 80px;
  103. display: flex;
  104. align-items: center;
  105. border-bottom: 1px solid #c1cce3;
  106. position: relative;
  107. & > div:last-child {
  108. vertical-align: middle;
  109. margin-right: 10px;
  110. display: flex;
  111. height: 40px;
  112. justify-content: space-between;
  113. flex-direction: column;
  114. .person-name {
  115. font-family: "Inter-Medium";
  116. color: #000;
  117. font-size: 16px;
  118. }
  119. .person-cont {
  120. color: #505870;
  121. font-size: 14px;
  122. }
  123. }
  124. .del-chat{
  125. position: absolute;
  126. right: 8px;
  127. bottom: -8px;
  128. width: 88px;
  129. height: 38px;
  130. box-shadow: 0px 2px 8px 1px rgba(199,203,216,0.5);
  131. background: rgba(255,255,255,0.9);
  132. border-radius: 4px;
  133. border: none;
  134. }
  135. }
  136. //点击时列表的背景色
  137. .activ-left-container {
  138. background: #f5f7f9;
  139. }
  140. .cebian {
  141. height: 100%;
  142. width: 4px;
  143. position: absolute;
  144. left: 0;
  145. }
  146. //聊天
  147. .message-container {
  148. display: flex;
  149. align-items: flex-start;
  150. margin-bottom: 20px;
  151. }
  152. .message-left {
  153. margin-right: 40%;
  154. justify-content: flex-start;
  155. .left-back{
  156. background: #EBEFF6;
  157. border-radius: 20px 20px 20px 0px;
  158. padding: 8px 16px;
  159. }
  160. }
  161. .message-right {
  162. // width: 80%;
  163. margin-left: 40%;
  164. justify-content: flex-end;
  165. .right-back{
  166. padding: 8px 16px;
  167. background: #2E6BC8;
  168. border-radius: 20px 20px 0px 20px;
  169. }
  170. }
  171. .time-text{
  172. display: flex;
  173. flex-direction: column;
  174. align-items: flex-end;
  175. }