home.module.scss 5.1 KB

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