123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- .visually-hidden:not(:focus):not(:active),
- input[type=checkbox].visually-hidden,
- input[type=radio].visually-hidden{
- position: absolute;
- width: 1px;
- height: 1px;
- margin: -1px;
- border: 0;
- padding: 0;
- white-space: nowrap;
- -webkit-clip-path: inset(100%);
- clip-path: inset(100%);
- clip: rect(0 0 0 0);
- overflow: hidden;
- }
- body {
- font-family: sans-serif;
- margin: 0;
- height: 100vh;
- }
- .chat__wrapper {
- box-sizing: border-box;
- height: 100%;
- background-color: #696969;
- padding: 30px 100px;
- }
- .chat__messages-box {
- display: flex;
- flex-direction: column;
- height: 90%;
- overflow-y: scroll;
- background-color: #575757;
- background-image: url("chat-background.jpg");
- background-position: center;
- background-size: cover;
- border-radius: 14px;
- padding: 10px;
- }
- .chat__message-wrap {
- align-self: flex-start;
- background: linear-gradient(to bottom right, #483D8B, #9400D3);
- border-radius: 14px;
- padding: 10px;
- }
- .chat__message-wrap + .chat__message-wrap {
- margin-top: 10px;
- }
- .chat__message-head {
- display: flex;
- flex-wrap: nowrap;
- justify-content: space-between;
- align-items: center;
- }
- .chat__user-nick {
- font-size: 14px;
- font-weight: 600;
- }
- .chat__timespan {
- color: #a39a8a;
- font-size: 10px;
- font-weight: 600;
- }
- .chat__user-message {
- color: #ffffff;
- font-size: 18px;
- margin: 0;
- }
- .chat__inputs-wrapp {
- display: flex;
- flex-wrap: nowrap;
- background-color: #575757;
- padding: 10px 15px;
- border-radius: 12px;
- }
- .chat__input {
- color: white;
- font-size: 16px;
- outline: none;
- border: none;
- background-color: #575757;
- }
- .chat__input::placeholder {
- color: white;
- }
- .chat__input--nick {
- width: 140px;
- }
- .chat__input--message {
- flex-grow: 1;
- }
- .chat__send-button {
- position: relative;
- cursor: pointer;
- width: 40px;
- height: 40px;
- background: linear-gradient(to bottom right, #483D8B, #9400D3);
- border: none;
- border-radius: 50%;
- margin: 0;
- padding: 0;
- }
- .chat__send-button::before {
- content: "";
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- display: block;
- width: 20px;
- height: 20px;
- background-image: url("send.svg");
- background-position: center;
- background-repeat: no-repeat;
- }
|