home.module.css 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. .container {
  2. max-width: 1080px;
  3. min-width: 600px;
  4. min-height: 480px;
  5. width: 90vw;
  6. height: 90vh;
  7. background-color: var(--white);
  8. border: var(--border-in-light);
  9. border-radius: 20px;
  10. box-shadow: var(--shadow);
  11. display: flex;
  12. overflow: hidden;
  13. }
  14. .sidebar {
  15. max-width: 300px;
  16. padding: 20px;
  17. background-color: var(--second);
  18. display: flex;
  19. flex-direction: column;
  20. box-shadow: inset -2px 0px 2px 0px rgb(0, 0, 0, 0.05);
  21. }
  22. .sidebar-header {
  23. position: relative;
  24. padding-top: 20px;
  25. padding-bottom: 20px;
  26. }
  27. .sidebar-logo {
  28. position: absolute;
  29. right: 0;
  30. bottom: 18px;
  31. }
  32. .sidebar-title {
  33. font-size: 20px;
  34. font-weight: bold;
  35. }
  36. .sidebar-sub-title {
  37. font-size: 12px;
  38. font-weight: 400px;
  39. }
  40. .sidebar-body {
  41. flex: 1;
  42. overflow: auto;
  43. }
  44. .chat-list {
  45. width: 260px;
  46. }
  47. .chat-item {
  48. padding: 10px 14px;
  49. background-color: var(--white);
  50. border-radius: 10px;
  51. margin-bottom: 10px;
  52. box-shadow: var(--card-shadow);
  53. transition: all 0.3s ease;
  54. cursor: pointer;
  55. user-select: none;
  56. border: 2px solid transparent;
  57. position: relative;
  58. overflow: hidden;
  59. }
  60. @keyframes slide-in {
  61. from {
  62. opacity: 0;
  63. transform: translateY(20px);
  64. }
  65. to {
  66. opacity: 1;
  67. transform: translateY(0px);
  68. }
  69. }
  70. .chat-item:hover {
  71. background-color: var(--hover-color);
  72. }
  73. .chat-item-selected {
  74. border-color: var(--primary);
  75. }
  76. .chat-item-title {
  77. font-size: 14px;
  78. font-weight: bolder;
  79. display: block;
  80. width: 200px;
  81. overflow: hidden;
  82. text-overflow: ellipsis;
  83. white-space: nowrap;
  84. }
  85. .chat-item-delete {
  86. position: absolute;
  87. top: 10px;
  88. right: -20px;
  89. transition: all ease 0.3s;
  90. opacity: 0;
  91. }
  92. .chat-item:hover > .chat-item-delete {
  93. opacity: 0.5;
  94. right: 10px;
  95. }
  96. .chat-item:hover > .chat-item-delete:hover {
  97. opacity: 1;
  98. }
  99. .chat-item-info {
  100. display: flex;
  101. justify-content: space-between;
  102. color: rgb(166, 166, 166);
  103. font-size: 12px;
  104. margin-top: 8px;
  105. }
  106. .chat-item-count {
  107. }
  108. .chat-item-date {
  109. }
  110. .sidebar-tail {
  111. display: flex;
  112. justify-content: space-between;
  113. padding-top: 20px;
  114. }
  115. .sidebar-actions {
  116. display: inline-flex;
  117. }
  118. .sidebar-action:last-child {
  119. margin-left: 15px;
  120. }
  121. .chat {
  122. display: flex;
  123. flex-direction: column;
  124. width: 100%;
  125. position: relative;
  126. }
  127. .chat-header {
  128. padding: 14px 20px;
  129. border-bottom: rgba(0, 0, 0, 0.1) 1px solid;
  130. display: flex;
  131. justify-content: space-between;
  132. align-items: center;
  133. }
  134. .chat-header-title {
  135. font-size: 20px;
  136. font-weight: bolder;
  137. overflow: hidden;
  138. text-overflow: ellipsis;
  139. display: -webkit-box;
  140. -webkit-line-clamp: 2;
  141. -webkit-box-orient: vertical;
  142. }
  143. .chat-header-sub-title {
  144. font-size: 14px;
  145. margin-top: 5px;
  146. }
  147. .chat-actions {
  148. display: inline-flex;
  149. }
  150. .chat-action-button {
  151. margin-left: 10px;
  152. }
  153. .chat-body {
  154. flex: 1;
  155. overflow: auto;
  156. padding: 20px;
  157. margin-bottom: 100px;
  158. }
  159. .chat-message {
  160. display: flex;
  161. flex-direction: row;
  162. }
  163. .chat-message-user {
  164. display: flex;
  165. flex-direction: row-reverse;
  166. }
  167. .chat-message-container {
  168. max-width: 60%;
  169. display: flex;
  170. flex-direction: column;
  171. align-items: flex-start;
  172. animation: slide-in ease 0.3s;
  173. }
  174. .chat-message-user > .chat-message-container {
  175. align-items: flex-end;
  176. }
  177. .chat-message-avatar {
  178. margin-top: 20px;
  179. }
  180. .chat-message-status {
  181. font-size: 12px;
  182. color: #aaa;
  183. line-height: 1.5;
  184. margin-top: 5px;
  185. }
  186. .user-avtar {
  187. height: 30px;
  188. width: 30px;
  189. display: flex;
  190. align-items: center;
  191. justify-content: center;
  192. border: var(--border-in-light);
  193. box-shadow: var(--card-shadow);
  194. border-radius: 10px;
  195. }
  196. .chat-message-item {
  197. margin-top: 5px;
  198. border-radius: 10px;
  199. background-color: rgba(0, 0, 0, 0.05);
  200. padding: 10px;
  201. font-size: 14px;
  202. user-select: text;
  203. word-break: break-all;
  204. }
  205. .chat-message-user > .chat-message-container > .chat-message-item {
  206. background-color: var(--second);
  207. }
  208. .chat-message-actions {
  209. display: flex;
  210. flex-direction: row-reverse;
  211. width: 100%;
  212. padding-top: 5px;
  213. box-sizing: border-box;
  214. }
  215. .chat-message-action-date {
  216. font-size: 12px;
  217. color: #aaa;
  218. }
  219. .chat-message-action-button {
  220. }
  221. .chat-input-panel {
  222. position: absolute;
  223. bottom: 20px;
  224. display: flex;
  225. width: 100%;
  226. padding: 20px;
  227. box-sizing: border-box;
  228. }
  229. .chat-input-panel-inner {
  230. display: flex;
  231. flex: 1;
  232. }
  233. .chat-input-panel-multi {
  234. }
  235. .chat-input {
  236. height: 100%;
  237. width: 100%;
  238. border-radius: 10px;
  239. border: var(--border-in-light);
  240. box-shadow: var(--card-shadow);
  241. font-family: inherit;
  242. padding: 10px 14px;
  243. resize: none;
  244. outline: none;
  245. color: #333;
  246. }
  247. .chat-input:focus {
  248. border: 1px solid var(--primary);
  249. }
  250. .chat-input-send {
  251. background-color: var(--primary);
  252. color: white;
  253. position: absolute;
  254. right: 30px;
  255. bottom: 10px;
  256. }