style.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. *{
  2. box-sizing: border-box;
  3. margin: 0;
  4. }
  5. body{
  6. padding-top: 20px;
  7. }
  8. .container{
  9. position: relative;
  10. padding: 20px;
  11. border-radius: 5px;
  12. margin: 0 auto;
  13. // height: 660px;
  14. width: 600px;
  15. background: url("../img/1626160774_64.jpg") center center/cover no-repeat;
  16. .wrapper-messages{
  17. display: flex;
  18. flex-direction: column-reverse;
  19. height: 500px;
  20. width: 100%;
  21. margin-bottom: 20px;
  22. overflow-y: scroll;
  23. &::-webkit-scrollbar { width: 0 !important }
  24. .wrap-message{
  25. display: flex;
  26. justify-content: space-between;
  27. align-items: flex-start;
  28. margin: 10px 0;
  29. .nick{
  30. padding: 5px 10px;
  31. text-align: center;
  32. background-color: white;
  33. min-height: 30px;
  34. border-radius: 3px;
  35. font-size: 16px;
  36. margin-right: 30px;
  37. }
  38. .message{
  39. position: relative;
  40. padding: 5px 10px;
  41. border-radius: 0px 3px 3px 3px;
  42. font-size: 16px;
  43. text-align: center;
  44. background-color: white;
  45. position: relative;
  46. min-height: 30px;
  47. &:before{
  48. content: "";
  49. position: absolute;
  50. width: 20px;
  51. height: 20px;
  52. background-color: rgb(255, 255, 255);
  53. left: -19px;
  54. top: 0px;
  55. clip-path: polygon(75% 0, 100% 0, 100% 100%, 98% 82%, 97% 71%, 96% 61%, 94% 50%, 92% 40%, 90% 31%, 87% 21%, 84% 13%, 80% 6%);
  56. }
  57. .mes-time{
  58. text-align: right;
  59. font-size: 10px;
  60. color: cadetblue;
  61. }
  62. }
  63. }
  64. }
  65. .wrapper-form{
  66. position: relative;
  67. width: 100%;
  68. min-height: 50px;
  69. background-color: rgb(255, 255, 255);
  70. border-radius: 10px;
  71. .nick-inp, .message-inp{
  72. margin-left: 20px;
  73. font-size: 16px;
  74. display: block;
  75. border: none;
  76. width: 400px;
  77. height: 40px;
  78. outline: none;
  79. }
  80. img{
  81. position: absolute;
  82. width: 30px;
  83. height: 30px;
  84. right: 10px;
  85. bottom: 10px;
  86. }
  87. }
  88. }
  89. .hr{
  90. background-color: rgb(226, 226, 226);
  91. width: 85%;
  92. margin-left: 20px;
  93. height: 1px;
  94. }
  95. .mes-date{
  96. text-align: center;
  97. color: rgb(219, 219, 219);
  98. }