App.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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-user,
  66. .msg-someone {
  67. display: flex;
  68. flex-direction: column;
  69. border: 1px solid black;
  70. margin: 10px;
  71. list-style: none;
  72. border-radius: 10px;
  73. padding: 5px;
  74. max-width: 200px;
  75. min-width: 200px;
  76. background: honeydew;
  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. }