App.css 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. .App {
  2. height: 100vh;
  3. display: flex;
  4. justify-content: center;
  5. }
  6. .reg-form {
  7. display: flex;
  8. flex-direction: column;
  9. width: 30vw;
  10. }
  11. .chat-window {
  12. display: flex;
  13. flex-direction: column;
  14. height: 100%;
  15. }
  16. .aside-chat {
  17. background: rgb(158, 158, 226);
  18. width: 20vw;
  19. margin-bottom: 5px;
  20. }
  21. .aside-chat a {
  22. display: flex;
  23. text-decoration: none;
  24. color: black;
  25. border: 1px solid black;
  26. }
  27. .aside-chat-info {
  28. display: flex;
  29. flex-direction: column;
  30. }
  31. .aside-chat img,
  32. .chat-edit-form img {
  33. width: 40%;
  34. object-fit: contain;
  35. }
  36. .aside-chat h5 {
  37. margin: 0;
  38. }
  39. main {
  40. display: flex;
  41. align-items: center;
  42. width: 100%;
  43. }
  44. .new-chat {
  45. display: flex;
  46. flex-direction: column;
  47. }
  48. .chat-list,
  49. .message-list {
  50. display: flex;
  51. flex-direction: column;
  52. overflow-y: scroll;
  53. height: 100vh;
  54. }
  55. .chat-list li {
  56. list-style: none;
  57. }
  58. .aside-chat-btn button {
  59. width: 100%;
  60. height: 40px;
  61. }
  62. .aside-chat-btn {
  63. margin-bottom: 5px;
  64. }
  65. .msg {
  66. display: flex;
  67. flex-direction: column;
  68. border: 1px solid black;
  69. border-radius: 10px;
  70. background: honeydew;
  71. padding: 5px;
  72. }
  73. .msg-user,
  74. .msg-someone {
  75. margin: 10px;
  76. list-style: none;
  77. max-width: 300px;
  78. min-width: 300px;
  79. }
  80. .msg-user {
  81. align-self: flex-end;
  82. }
  83. .msg-nick {
  84. font-weight: 600;
  85. }
  86. .msg-date {
  87. font-size: 12px;
  88. }
  89. .chat-window {
  90. flex-grow: 2;
  91. background: rgb(209, 207, 207);
  92. }
  93. .pick {
  94. background: red;
  95. }
  96. .msg-text {
  97. white-space: pre-line;
  98. }
  99. .message-input {
  100. display: flex;
  101. }
  102. textarea {
  103. flex-grow: 1;
  104. resize: none;
  105. }
  106. .user-search-list {
  107. width: 80%;
  108. height: 300px;
  109. overflow-y: scroll;
  110. list-style: none;
  111. }
  112. .user-search-panel {
  113. display: flex;
  114. flex-direction: column;
  115. }
  116. .chat-nav {
  117. background: grey;
  118. height: 5vw;
  119. }
  120. .chat-edit-form {
  121. display: flex;
  122. flex-direction: column;
  123. width: 25vw;
  124. padding: 0 10px;
  125. }
  126. .edit-btn-container {
  127. display: flex;
  128. }
  129. .context-menu {
  130. display: flex;
  131. flex-direction: column;
  132. background-color: #fff;
  133. width: 100px;
  134. height: auto;
  135. margin: 0;
  136. position: absolute;
  137. opacity: 1;
  138. transition: opacity 0.5s linear;
  139. }
  140. .msg-media {
  141. display: flex;
  142. flex-direction: column;
  143. margin-top: 10px;
  144. list-style: none;
  145. align-items: center;
  146. padding: 0;
  147. }
  148. .msg-media-img {
  149. max-width: 50%;
  150. }
  151. .msg-media-video,
  152. .msg-media-audio {
  153. max-width: 100%;
  154. }
  155. .msg-media span {
  156. font-size: 10px;
  157. }
  158. .msg-short {
  159. display: flex;
  160. align-items: flex-end;
  161. background-color: #fff;
  162. border: 1px solid #000;
  163. }
  164. .msg-short .msg-nick {
  165. flex-grow: 1;
  166. }
  167. .msg-short .msg-date {
  168. flex-grow: 0;
  169. }
  170. .msg-short .msg-text {
  171. flex-grow: 0;
  172. }
  173. .msg-reply {
  174. background: grey;
  175. border: 1px solid black;
  176. border-radius: 10px;
  177. padding: 5px;
  178. }
  179. .btn-scroll {
  180. position: fixed;
  181. }