iu9-ca-web-chat/assets/css/list-rooms.css
2024-09-12 15:46:17 +03:00

194 lines
3.7 KiB
CSS

/* Общий стиль контейнера документа */
.document-container {
display: flex;
flex-direction: column;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
background-color: #f9f9f9;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
/* Панель навигации */
#navigation-panel {
display: flex;
align-items: center;
background-color: #1e90ff;
padding: 10px;
border-radius: 8px;
margin-bottom: 20px;
color: white;
}
.profile-link {
margin-right: 15px;
}
.profile-icon {
width: 40px;
height: 40px;
border-radius: 50%;
}
.panel-description {
font-size: 1.2em;
font-weight: bold;
}
/* Стиль всплывающего окна */
.popup-window {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
z-index: 100;
}
.popup-window-header {
font-size: 1.5em;
margin-bottom: 15px;
color: #333;
}
.popup-window-subheader {
font-size: 1.2em;
margin-bottom: 20px;
color: #666;
}
.form-table {
width: 100%;
margin-bottom: 20px;
}
.form-label {
text-align: left;
padding-right: 10px;
font-weight: bold;
color: #333;
}
.form-input {
width: 100%;
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
}
.popup-actions {
display: flex;
justify-content: space-between;
}
.popup-btn {
background-color: #1e90ff;
color: white;
border: none;
padding: 10px 20px;
border-radius: 4px;
cursor: pointer;
font-size: 1em;
}
.popup-btn:hover {
background-color: #005fbb;
}
/* Контейнер списка чатов */
.chat-list-container {
display: flex;
flex-direction: column;
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.button-add {
margin-bottom: 10px;
cursor: pointer;
width: 40px;
}
/* Список чатов */
.chat-list {
display: flex;
flex-direction: column;
max-height: 400px;
overflow-y: auto;
}
/* Стиль для каждой комнаты чата */
.chat-room {
display: flex;
align-items: center;
background-color: #40e0d0; /* Бирюзовый цвет */
padding: 10px;
margin-bottom: 10px;
border-radius: 8px;
height: 40px; /* Низкая высота */
width: 85%; /* По умолчанию для портретного режима */
position: relative;
}
.chat-room-name {
flex-grow: 1;
padding-left: 10px;
font-size: 1.1em;
color: white;
font-weight: bold;
}
.chat-room-close {
position: absolute;
right: 10px; /* Красный крестик справа */
background-color: red;
color: white;
border: none;
padding: 5px 10px;
border-radius: 4px;
cursor: pointer;
font-size: 1em;
}
.chat-room-close:hover {
background-color: darkred;
}
/* Кастомный скроллбар для списка чатов */
.chat-list::-webkit-scrollbar {
width: 8px;
}
.chat-list::-webkit-scrollbar-track {
background: #f1f1f1;
}
.chat-list::-webkit-scrollbar-thumb {
background: #888;
border-radius: 8px;
}
.chat-list::-webkit-scrollbar-thumb:hover {
background: #555;
}
/* Адаптация ширины комнат под ориентацию экрана */
@media (orientation: landscape) {
.chat-room {
width: 50%; /* Ширина для ландшафтной ориентации */
}
}
@media (orientation: portrait) {
.chat-room {
width: 85%; /* Ширина для портретной ориентации */
}
}