chatPage.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. .rootContainer {
  2. max-width: 95%;
  3. max-height: 95vh;
  4. margin: 0 auto;
  5. }
  6. .focus {
  7. max-width: 80%;
  8. }
  9. .blur {
  10. width: 100%;
  11. }
  12. .rootBox {
  13. display: flex;
  14. height: 94vh;
  15. justify-content: center;
  16. }
  17. .mobileRootBox {
  18. display: block;
  19. }
  20. .rootMessageForm {
  21. display: flex;
  22. flex-grow:2;
  23. max-width: 75%;
  24. flex-direction: column;
  25. }
  26. .rootMessageFormMobile {
  27. display: flex;
  28. flex-grow:2;
  29. max-width: 100%;
  30. flex-direction: column;
  31. }
  32. .time {
  33. font-style:italic;
  34. color: rgb(80, 80, 80);
  35. font-size: 12px;
  36. margin-left: 30px;
  37. }
  38. .date {
  39. font-style:italic;
  40. color: rgb(80, 80, 80);
  41. font-size: 8px;
  42. }
  43. .textArea {
  44. width: 80%;
  45. resize: none;
  46. border-radius: 4px;
  47. }
  48. .message {
  49. padding: 10px;
  50. margin: 2px 30px;
  51. max-width: 50%;
  52. align-self: flex-start;
  53. border-radius: 10px;
  54. background-color: rgb(182, 230, 176);
  55. p {
  56. word-wrap: break-word;
  57. }
  58. // span {
  59. // background-color:azure;
  60. // display: block;
  61. // padding: 5px;
  62. // height: 20px;
  63. // border-radius: 20px;
  64. // text-align: center;
  65. // }
  66. }
  67. .myMessage {
  68. align-self: flex-end;
  69. position: relative;
  70. max-width: 50%;
  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. height: 70vh;
  104. }
  105. .usersBox {
  106. align-content: flex-end;
  107. text-align: center;
  108. padding: 20px;
  109. margin-left: 10px;
  110. width: 20%;
  111. overflow: scroll;
  112. border-radius: 10px;
  113. background-color:rgb(243, 243, 243);
  114. .online {
  115. border-radius: 5px;
  116. padding: 5px;
  117. margin-bottom: 5px;
  118. background-color:rgb(247, 233, 233);
  119. font-weight: 700;
  120. }
  121. }
  122. .usersBoxMobile {
  123. display: flex;
  124. align-items: center;
  125. padding: 5px;
  126. text-align: center;
  127. overflow: scroll;
  128. font-size: 11px;
  129. border-radius: 10px;
  130. background-color:rgb(243, 243, 243);
  131. transition: all 3s ease-in-out;
  132. .online {
  133. border-radius: 5px;
  134. text-overflow: ellipsis;
  135. padding: 5px;
  136. margin-bottom: 5px;
  137. background-color:rgb(247, 233, 233);
  138. font-weight: 500;
  139. }
  140. .on {
  141. transform: translateX(100%);
  142. display: none;
  143. }
  144. }