chat.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. .chat-box {
  2. display: flex;
  3. width: 100%;
  4. box-shadow: 0 0 10px rgba(0 0 0 0.1);
  5. height: 87vh;
  6. background: #f5f5f5
  7. }
  8. .contacts {
  9. flex-basis: 30%;
  10. background-color: #f4f4f4;
  11. padding: 20px;
  12. box-sizing: border-box;
  13. overflow-x: auto;
  14. }
  15. .contactsSystem {
  16. margin-bottom: 20px;
  17. padding-bottom: 10px;
  18. border-bottom: 1px solid #c4c4c4;
  19. }
  20. .chat {
  21. flex-basis: 70%;
  22. /*background-color: #fff;*/
  23. padding: 0 20px;
  24. box-sizing: border-box;
  25. position: relative;
  26. /*overflow-y: scroll;*/
  27. }
  28. .contact {
  29. display: flex;
  30. align-items: center;
  31. margin-bottom: 10px;
  32. cursor: pointer;
  33. }
  34. .contact img {
  35. border-radius: 50%;
  36. margin-right: 10px;
  37. }
  38. .news {
  39. background: red;
  40. line-height: 20px;
  41. text-align: center;
  42. border-radius: 15px;
  43. margin-left: 31px;
  44. color: #fff;
  45. font-size: 10px;
  46. padding: 0 6px;
  47. height: 20px;
  48. }
  49. .message {
  50. /*background-color: #f1f1f1;*/
  51. padding: 10px;
  52. border-radius: 10px;
  53. margin: 10px 0;
  54. }
  55. .receiver {
  56. background-color: #DCF8C6;
  57. align-self: flex-start;
  58. }
  59. .sender {
  60. align-self: flex-end;
  61. display: flex;
  62. flex-direction: row;
  63. margin: 10px 30px 10px 25%;
  64. width: 75%;
  65. justify-content: flex-end;
  66. /*position: absolute;*/
  67. /*right: 0;*/
  68. }
  69. #messageInput {
  70. width: calc(100% - 20px);
  71. padding: 10px;
  72. box-sizing: border-box;
  73. }
  74. #chartBtn {
  75. width: 120px;
  76. padding: 10px;
  77. border: none;
  78. background-color: #169bd5;
  79. color: #fff;
  80. cursor: pointer;
  81. text-align: center;
  82. margin-right: 20px;
  83. }
  84. #sendBtn {
  85. width: 120px;
  86. padding: 10px;
  87. border: none;
  88. background-color: #169bd5;
  89. color: #fff;
  90. cursor: pointer;
  91. text-align: center;
  92. margin-right: 20px;
  93. }
  94. .contact-item-left{
  95. display: flex;
  96. flex-direction: row;
  97. margin: 10px 30px;
  98. width: 75%;
  99. }
  100. .contact-item-right{
  101. justify-content: flex-end;
  102. position: absolute;
  103. right: 0;
  104. }
  105. .contact-item-left-content{
  106. margin: 0 15px;
  107. width: 100%;
  108. }
  109. .text{
  110. width: 100%;
  111. border: 1px solid #dcdbdb;
  112. padding: 10px;
  113. }