File size: 3,582 Bytes
9da4125 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 |
/* Стили для страницы сообщений */
/* Контейнер сообщений */
.chat-messages {
height: 400px;
overflow-y: auto;
padding: 15px;
background-color: rgba(248, 249, 250, 0.8);
border-radius: 0.5rem;
}
/* Стили для вложений в сообщениях */
.message-attachment {
border-top: 1px solid rgba(0, 0, 0, 0.1);
padding-top: 8px;
margin-top: 8px;
}
.message-sent .message-attachment {
border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.attachment-info {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.9rem;
margin-bottom: 5px;
}
.attachment-link {
color: inherit;
text-decoration: underline;
word-break: break-all;
}
.message-sent .attachment-link {
color: white;
}
.attachment-size {
font-size: 0.75rem;
opacity: 0.7;
}
.attachment-preview {
margin-top: 8px;
border-radius: 8px;
overflow: hidden;
}
.attachment-preview img,
.attachment-preview video {
max-width: 100%;
border-radius: 8px;
display: block;
}
.attachment-preview audio {
width: 100%;
max-width: 250px;
}
/* Стили для сообщений */
.message {
margin-bottom: 15px;
max-width: 100%;
}
.message-sent {
display: flex;
justify-content: flex-end;
}
.message-received {
display: flex;
justify-content: flex-start;
}
.message-content {
max-width: 70%;
word-wrap: break-word;
padding: 10px 15px;
border-radius: 18px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.message-sent .message-content {
background-color: var(--bs-primary);
color: white;
border-bottom-right-radius: 5px;
}
.message-received .message-content {
background-color: #f1f1f1;
color: #333;
border-bottom-left-radius: 5px;
}
.message-time {
font-size: 0.75rem;
margin-top: 5px;
text-align: right;
}
/* Стили для списка контактов */
.contact-list {
max-height: 500px;
overflow-y: auto;
}
.contact-item {
padding: 10px 15px;
border-bottom: 1px solid #eee;
transition: background-color 0.2s;
}
.contact-item:hover {
background-color: rgba(var(--bs-primary-rgb), 0.1);
}
.contact-item.active {
background-color: rgba(var(--bs-primary-rgb), 0.2);
}
/* Форма отправки сообщения */
.message-form {
padding: 15px;
background-color: rgba(248, 249, 250, 0.8);
border-radius: 0.5rem;
}
/* Анимация для новых сообщений */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.message {
animation: fadeIn 0.3s ease-out;
}
/* Стили для полноэкранного просмотра медиафайлов */
.attachment-preview img,
.attachment-preview video {
cursor: pointer;
transition: transform 0.2s ease;
}
.attachment-preview img:hover,
.attachment-preview video:hover {
transform: scale(1.05);
}
/* Стили для модального окна с медиафайлами */
#mediaModal .modal-body {
background-color: rgba(0, 0, 0, 0.9);
padding: 20px;
}
#mediaContent {
max-width: 100%;
max-height: 100vh;
}
#mediaContent img,
#mediaContent video {
max-height: 90vh;
max-width: 100%;
object-fit: contain;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
} |