chatPage.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. // #root {
  2. // max-height: 90vh;
  3. // }
  4. .rootContainer {
  5. min-height: 90vh;
  6. max-width: 95%;
  7. margin: 0 auto;
  8. }
  9. .focus {
  10. position: absolute;
  11. }
  12. .blur {
  13. width: 100%;
  14. }
  15. .rootBox {
  16. display: flex;
  17. height: 90vh;
  18. justify-content: center;
  19. }
  20. .rootMessageForm {
  21. display: flex;
  22. flex-grow:2;
  23. max-width: 75%;
  24. flex-direction: column;
  25. }
  26. .rootMessageFormMobile {
  27. margin: 0 auto;
  28. display: flex;
  29. flex-grow:1;
  30. max-width: 100%;
  31. height: 90vh;
  32. flex-direction: column;
  33. }
  34. .time {
  35. font-style:italic;
  36. color: rgb(80, 80, 80);
  37. font-size: 12px;
  38. margin-left: 30px;
  39. }
  40. .date {
  41. font-style:italic;
  42. color: rgb(80, 80, 80);
  43. font-size: 8px;
  44. }
  45. .textArea {
  46. width: 80%;
  47. resize: none;
  48. border-radius: 4px;
  49. }
  50. .message {
  51. padding: 10px;
  52. margin: 5px 0;
  53. max-width: 80%;
  54. align-self: flex-start;
  55. border-radius: 10px;
  56. background-color: rgb(182, 230, 176);
  57. p {
  58. word-wrap: break-word;
  59. }
  60. // span {
  61. // background-color:azure;
  62. // display: block;
  63. // padding: 5px;
  64. // height: 20px;
  65. // border-radius: 20px;
  66. // text-align: center;
  67. // }
  68. }
  69. .myMessage {
  70. align-self: flex-end;
  71. position: relative;
  72. max-width: 80%;
  73. background-color: rgb(240, 231, 136);
  74. cursor: pointer;
  75. }
  76. .myDate {
  77. align-self: flex-start;
  78. display: flex;
  79. font-style:italic;
  80. color: rgb(80, 80, 80);
  81. font-size: 12px;
  82. }
  83. .date {
  84. display: flex;
  85. align-content:center;
  86. align-self: flex-end;
  87. font-style:italic;
  88. color: rgb(80, 80, 80);
  89. font-size: 12px;
  90. }
  91. // .editMessage{
  92. // background-color: rgb(246, 245, 235);
  93. // transform:translate(-120px, -90px);
  94. // }
  95. .messageBox {
  96. display: flex;
  97. position: relative;
  98. padding: 20px;
  99. border-radius: 10px;
  100. background-color:rgb(243, 243, 243);
  101. display: flex;
  102. flex-grow :2;
  103. flex-direction: column;
  104. overflow: scroll;
  105. }
  106. .usersBox {
  107. align-content: flex-end;
  108. text-align: center;
  109. padding: 20px;
  110. margin-left: 10px;
  111. width: 20%;
  112. overflow: scroll;
  113. border-radius: 10px;
  114. background-color:rgb(243, 243, 243);
  115. .online {
  116. border-radius: 5px;
  117. padding: 5px;
  118. margin-bottom: 5px;
  119. background-color:rgb(247, 233, 233);
  120. font-weight: 700;
  121. }
  122. }
  123. .usersBoxMobile {
  124. display: flex;
  125. align-items: center;
  126. padding: 5px;
  127. text-align: center;
  128. overflow: scroll;
  129. font-size: 11px;
  130. border-radius: 10px;
  131. background-color:rgb(243, 243, 243);
  132. transition: all 3s ease-in-out;
  133. .online {
  134. border-radius: 5px;
  135. text-overflow: ellipsis;
  136. padding: 5px;
  137. margin-bottom: 5px;
  138. background-color:rgb(247, 233, 233);
  139. font-weight: 500;
  140. }
  141. .on {
  142. transform: translateX(100%);
  143. display: none;
  144. }
  145. }