home.module.scss 4.9 KB

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