App.css 2.7 KB

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