iu9-ca-web-chat/assets/css/list-rooms.css

194 lines
3.7 KiB
CSS
Raw Normal View History

2024-09-12 12:46:17 +00:00
/* Общий стиль контейнера документа */
2024-09-12 11:43:53 +00:00
.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);
2024-08-05 11:42:32 +00:00
}
2024-09-12 12:46:17 +00:00
/* Панель навигации */
2024-09-12 11:43:53 +00:00
#navigation-panel {
2024-08-05 11:42:32 +00:00
display: flex;
2024-09-12 11:43:53 +00:00
align-items: center;
background-color: #1e90ff;
padding: 10px;
border-radius: 8px;
margin-bottom: 20px;
color: white;
2024-08-05 11:42:32 +00:00
}
2024-09-12 11:43:53 +00:00
.profile-link {
margin-right: 15px;
2024-08-05 11:42:32 +00:00
}
2024-09-12 11:43:53 +00:00
.profile-icon {
width: 40px;
height: 40px;
border-radius: 50%;
2024-08-05 11:42:32 +00:00
}
2024-09-12 11:43:53 +00:00
.panel-description {
font-size: 1.2em;
font-weight: bold;
2024-08-05 11:42:32 +00:00
}
2024-09-12 12:46:17 +00:00
/* Стиль всплывающего окна */
2024-09-12 11:43:53 +00:00
.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;
2024-08-05 11:42:32 +00:00
}
2024-09-12 11:43:53 +00:00
.popup-window-header {
font-size: 1.5em;
margin-bottom: 15px;
color: #333;
}
2024-09-12 11:43:53 +00:00
.popup-window-subheader {
font-size: 1.2em;
margin-bottom: 20px;
color: #666;
2024-08-11 12:17:53 +00:00
}
2024-09-12 11:43:53 +00:00
.form-table {
width: 100%;
margin-bottom: 20px;
}
.form-label {
text-align: left;
2024-09-12 11:43:53 +00:00
padding-right: 10px;
font-weight: bold;
color: #333;
}
2024-09-12 11:43:53 +00:00
.form-input {
width: 100%;
2024-09-12 11:43:53 +00:00
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;
}
2024-09-12 12:46:17 +00:00
/* Контейнер списка чатов */
2024-09-12 11:43:53 +00:00
.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;
}
2024-09-12 12:46:17 +00:00
/* Список чатов */
2024-09-12 11:43:53 +00:00
.chat-list {
display: flex;
flex-direction: column;
max-height: 400px;
overflow-y: auto;
}
2024-09-12 12:46:17 +00:00
/* Стиль для каждой комнаты чата */
.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;
}
/* Кастомный скроллбар для списка чатов */
2024-09-12 11:43:53 +00:00
.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;
}
2024-09-12 12:46:17 +00:00
/* Адаптация ширины комнат под ориентацию экрана */
@media (orientation: landscape) {
.chat-room {
width: 50%; /* Ширина для ландшафтной ориентации */
}
}
@media (orientation: portrait) {
.chat-room {
width: 85%; /* Ширина для портретной ориентации */
}
}