home.module.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. .container {
  2. max-width: 1080px;
  3. max-height: 780px;
  4. min-width: 600px;
  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 .3s ease;
  54. cursor: pointer;
  55. user-select: none;
  56. }
  57. .chat-item:hover {
  58. background-color: var(--hover-color);
  59. }
  60. .chat-item-selected {
  61. border: 2px solid var(--primary);
  62. }
  63. .chat-item-title {
  64. font-size: 14px;
  65. font-weight: bolder;
  66. }
  67. .chat-item-info {
  68. display: flex;
  69. justify-content: space-between;
  70. color: rgb(166, 166, 166);
  71. font-size: 12px;
  72. margin-top: 8px;
  73. }
  74. .chat-item-count {}
  75. .chat-item-date {}
  76. .sidebar-tail {
  77. display: flex;
  78. justify-content: space-between;
  79. padding-top: 20px;
  80. }
  81. .sidebar-actions {
  82. display: inline-flex;
  83. }
  84. .sidebar-action:last-child {
  85. margin-left: 15px;
  86. }
  87. .chat {
  88. display: flex;
  89. flex-direction: column;
  90. width: 100%;
  91. position: relative;
  92. }
  93. .chat-header {
  94. padding: 14px 20px;
  95. border-bottom: rgba(0, 0, 0, 0.1) 1px solid;
  96. display: flex;
  97. justify-content: space-between;
  98. align-items: center;
  99. }
  100. .chat-header-title {
  101. font-size: 20px;
  102. font-weight: bolder;
  103. }
  104. .chat-header-sub-title {
  105. font-size: 14px;
  106. margin-top: 5px;
  107. }
  108. .chat-actions {
  109. display: inline-flex;
  110. }
  111. .chat-action-button {
  112. margin-left: 10px;
  113. }
  114. .chat-body {
  115. flex: 1;
  116. overflow: auto;
  117. padding: 20px;
  118. margin-bottom: 100px;
  119. }
  120. .chat-message {
  121. display: flex;
  122. flex-direction: row;
  123. }
  124. .chat-message-reverse {
  125. display: flex;
  126. flex-direction: row-reverse;
  127. }
  128. .chat-message-container {
  129. width: 60%;
  130. display: flex;
  131. flex-direction: column;
  132. align-items: flex-start;
  133. }
  134. .chat-message-reverse > .chat-message-container {
  135. align-items: flex-end;
  136. }
  137. .chat-message-avtar {}
  138. .chat-message-item {
  139. border-radius: 10px;
  140. background-color: rgba(0, 0, 0, 0.05);
  141. padding: 10px;
  142. font-size: 14px;
  143. margin-top: 5px;
  144. user-select: text;
  145. }
  146. .chat-message-actions{
  147. display: flex;
  148. flex-direction: row-reverse;
  149. width: 100%;
  150. padding: 5px 10px;
  151. box-sizing: border-box;
  152. }
  153. .chat-message-action-date{
  154. font-size: 12px;
  155. color: #aaa;
  156. }
  157. .chat-message-action-button{}
  158. .chat-input-panel {
  159. position: absolute;
  160. bottom: 20px;
  161. display: flex;
  162. width: 100%;
  163. padding: 20px;
  164. box-sizing: border-box;
  165. }
  166. .chat-input-panel-inner {
  167. display: flex;
  168. flex: 1;
  169. }
  170. .chat-input-panel-multi {}
  171. .chat-input {
  172. height: 100%;
  173. width: 100%;
  174. border-radius: 10px;
  175. border: var(--border-in-light);
  176. box-shadow: var(--card-shadow);
  177. font-family: inherit;
  178. padding: 10px 14px;
  179. resize: none;
  180. outline: none;
  181. color: #333;
  182. }
  183. .chat-input:focus {
  184. border: 1px solid var(--primary);
  185. }
  186. .chat-input-send{
  187. background-color: var(--primary);
  188. color: white;
  189. position: absolute;
  190. right: 30px;
  191. bottom: 10px;
  192. }