chatPage.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. #root {
  2. max-height: 90vh;
  3. }
  4. .rootContainer {
  5. max-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. align-self: flex-start;
  54. border-radius: 10px;
  55. background-color: rgb(182, 230, 176);
  56. p {
  57. word-wrap: break-word;
  58. }
  59. // span {
  60. // background-color:azure;
  61. // display: block;
  62. // padding: 5px;
  63. // height: 20px;
  64. // border-radius: 20px;
  65. // text-align: center;
  66. // }
  67. }
  68. .myMessage {
  69. align-self: flex-end;
  70. position: relative;
  71. background-color: rgb(240, 231, 136);
  72. cursor: pointer;
  73. }
  74. .myDate {
  75. align-self: flex-start;
  76. display: flex;
  77. font-style:italic;
  78. color: rgb(80, 80, 80);
  79. font-size: 12px;
  80. }
  81. .date {
  82. display: flex;
  83. align-content:center;
  84. align-self: flex-end;
  85. font-style:italic;
  86. color: rgb(80, 80, 80);
  87. font-size: 12px;
  88. }
  89. // .editMessage{
  90. // background-color: rgb(246, 245, 235);
  91. // transform:translate(-120px, -90px);
  92. // }
  93. .messageBox {
  94. display: flex;
  95. position: relative;
  96. padding: 20px;
  97. border-radius: 10px;
  98. background-color:rgb(243, 243, 243);
  99. display: flex;
  100. flex-grow :2;
  101. flex-direction: column;
  102. overflow: scroll;
  103. }
  104. .usersBox {
  105. align-content: flex-end;
  106. text-align: center;
  107. padding: 20px;
  108. margin-left: 10px;
  109. width: 20%;
  110. overflow: scroll;
  111. border-radius: 10px;
  112. background-color:rgb(243, 243, 243);
  113. .online {
  114. border-radius: 5px;
  115. padding: 5px;
  116. margin-bottom: 5px;
  117. background-color:rgb(247, 233, 233);
  118. font-weight: 700;
  119. }
  120. }
  121. .usersBoxMobile {
  122. display: flex;
  123. align-items: center;
  124. padding: 5px;
  125. text-align: center;
  126. overflow: scroll;
  127. font-size: 11px;
  128. border-radius: 10px;
  129. background-color:rgb(243, 243, 243);
  130. transition: all 3s ease-in-out;
  131. .online {
  132. border-radius: 5px;
  133. text-overflow: ellipsis;
  134. padding: 5px;
  135. margin-bottom: 5px;
  136. background-color:rgb(247, 233, 233);
  137. font-weight: 500;
  138. }
  139. .on {
  140. transform: translateX(100%);
  141. display: none;
  142. }
  143. }