style.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. .visually-hidden:not(:focus):not(:active),
  2. input[type=checkbox].visually-hidden,
  3. input[type=radio].visually-hidden{
  4. position: absolute;
  5. width: 1px;
  6. height: 1px;
  7. margin: -1px;
  8. border: 0;
  9. padding: 0;
  10. white-space: nowrap;
  11. -webkit-clip-path: inset(100%);
  12. clip-path: inset(100%);
  13. clip: rect(0 0 0 0);
  14. overflow: hidden;
  15. }
  16. body {
  17. font-family: sans-serif;
  18. margin: 0;
  19. height: 100vh;
  20. }
  21. .chat__wrapper {
  22. box-sizing: border-box;
  23. height: 100%;
  24. background-color: #696969;
  25. padding: 30px 100px;
  26. }
  27. .chat__messages-box {
  28. display: flex;
  29. flex-direction: column;
  30. height: 90%;
  31. overflow-y: scroll;
  32. background-color: #575757;
  33. background-image: url("chat-background.jpg");
  34. background-position: center;
  35. background-size: cover;
  36. border-radius: 14px;
  37. padding: 10px;
  38. }
  39. .chat__message-wrap {
  40. align-self: flex-start;
  41. background: linear-gradient(to bottom right, #483D8B, #9400D3);
  42. border-radius: 14px;
  43. padding: 10px;
  44. }
  45. .chat__message-wrap + .chat__message-wrap {
  46. margin-top: 10px;
  47. }
  48. .chat__message-head {
  49. display: flex;
  50. flex-wrap: nowrap;
  51. justify-content: space-between;
  52. align-items: center;
  53. }
  54. .chat__user-nick {
  55. font-size: 14px;
  56. font-weight: 600;
  57. }
  58. .chat__timespan {
  59. color: #a39a8a;
  60. font-size: 10px;
  61. font-weight: 600;
  62. }
  63. .chat__user-message {
  64. color: #ffffff;
  65. font-size: 18px;
  66. margin: 0;
  67. }
  68. .chat__inputs-wrapp {
  69. display: flex;
  70. flex-wrap: nowrap;
  71. background-color: #575757;
  72. padding: 10px 15px;
  73. border-radius: 12px;
  74. }
  75. .chat__input {
  76. color: white;
  77. font-size: 16px;
  78. outline: none;
  79. border: none;
  80. background-color: #575757;
  81. }
  82. .chat__input::placeholder {
  83. color: white;
  84. }
  85. .chat__input--nick {
  86. width: 140px;
  87. }
  88. .chat__input--message {
  89. flex-grow: 1;
  90. }
  91. .chat__send-button {
  92. position: relative;
  93. cursor: pointer;
  94. width: 40px;
  95. height: 40px;
  96. background: linear-gradient(to bottom right, #483D8B, #9400D3);
  97. border: none;
  98. border-radius: 50%;
  99. margin: 0;
  100. padding: 0;
  101. }
  102. .chat__send-button::before {
  103. content: "";
  104. position: absolute;
  105. top: 50%;
  106. left: 50%;
  107. transform: translate(-50%, -50%);
  108. display: block;
  109. width: 20px;
  110. height: 20px;
  111. background-image: url("send.svg");
  112. background-position: center;
  113. background-repeat: no-repeat;
  114. }