chatPage.scss 2.8 KB

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