/
bibi
/
sber
Обзор
Документация
Войти
/
bibi
/
sber
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
stilek.css
496 строк
10 KB
bibi
upload files
27 июн 2025, 13:37
27 июн 2025, 13:37
80556e0
Код
Авторство
О чём код?
* { box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-weight: bold; } body { background: #83dafc; background: linear-gradient(90deg,rgba(131, 218, 252, 1) 4%, rgba(114, 247, 120, 1) 66%); margin: 0; padding: 10px; background-color: #f0f2f5; color: #333; min-height: 100vh; overflow-x: hidden; } .header{ max-width: 1400px; margin: 0 auto; height: auto; min-height: 90vh; } .container { display: flex; height: auto; min-height: 90vh; gap: 20px; max-width: 1400px; margin: 0 auto; padding-bottom: 20px; } .panel { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); padding: 24px; display: flex; flex-direction: column; transition: all 0.3s ease; } .left-panel { flex: 4; background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%); } .right-panel { flex: 2; background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%); position: relative; } .chat-header, .summary-header { font-size: 1.3rem; font-weight: 600; margin-bottom: 15px; color: #2c3e50; padding-bottom: 10px; border-bottom: 2px solid #eaeaea; } .chat-box { flex: 1; overflow-y: auto; border: 1px solid #e1e5eb; border-radius: 10px; padding: 20px; margin-bottom: 20px; background-color: white; box-shadow: inset 0 2px 4px rgba(0,0,0,0.03); display: flex; flex-direction: column; gap: 15px; height: 600px; /* Фиксированная высота */ max-height: 600px; /* Максимальная высота */ min-height: 600px; } .message { padding: 12px 16px; border-radius: 18px; max-width: 85%; line-height: 1.4; animation: fadeIn 0.3s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.05); position: relative; font-weight: normal; } .bot-message { background-color: #e3f2fd; align-self: flex-start; border-bottom-left-radius: 5px; border: 1px solid #bbdefb; } .user-message { background-color: #d1ecf1; align-self: flex-end; margin-left: auto; border-bottom-right-radius: 5px; border: 1px solid #a3d9e5; text-align: right; } .message::after { content: ""; position: absolute; bottom: -8px; border-style: solid; } .bot-message::after { left: 0; border-width: 8px 8px 0 0; border-color: #e3f2fd transparent transparent transparent; } .user-message::after { right: 0; border-width: 8px 0 0 8px; border-color: #d1ecf1 transparent transparent transparent; } .input-area { display: flex; gap: 15px; } .input-group { display: flex; margin-top: 15px; gap: 15px; } #user-input, #link-input { flex: 1; padding: 12px 16px; border: 1px solid #d1d8e0; border-radius: 30px; font-size: 1rem; transition: all 0.3s; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); color: #333; } #user-input::placeholder, #link-input::placeholder { color: #9ca3af; opacity: 1; } #user-input:focus, #link-input:focus { outline: none; border-color: #00ADEE; box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.2); } button { padding: 12px 24px; border: none; border-radius: 30px; background: #00ADEE; color: white; font-weight: 600; cursor: pointer; transition: all 0.3s; font-size: 0.95rem; box-shadow: 0 4px 6px rgba(77, 166, 255, 0.3); } button:hover { background: #42E3B4; transform: translateY(-2px); box-shadow: 0 6px 8px rgba(77, 166, 255, 0.4); } button:active { transform: translateY(0); } #login-btn { padding: 8px 12px !important; width: auto !important; min-width: 0 !important; margin-left: 10px; font-size: 0.9rem; background: #6c5ce7; box-shadow: 0 4px 6px rgba(108, 92, 231, 0.3); } #login-btn:hover { background: #5d4de0; box-shadow: 0 6px 8px rgba(108, 92, 231, 0.4); } .summary-box { position: relative; flex: 1; overflow-y: auto; border: 1px solid #e1e5eb; border-radius: 10px; padding: 20px; background-color: white; font-size: 1.1rem; line-height: 1.6; box-shadow: inset 0 2px 4px rgba(0,0,0,0.03); margin-bottom: 15px; height: 400px; /* Фиксированная высота */ } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } /* Модальное окно */ .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); align-items: center; justify-content: center; } .modal-content { background-color: white; padding: 25px; border-radius: 15px; box-shadow: 0 5px 25px rgba(0,0,0,0.3); width: 100%; max-width: 400px; position: relative; } .close { position: absolute; top: 15px; right: 20px; font-size: 28px; font-weight: bold; cursor: pointer; color: #777; transition: color 0.3s; } .close:hover { color: #333; } #auth-tabs { display: flex; margin-bottom: 20px; border-bottom: 2px solid #eee; } .tab { padding: 10px 20px; background: none; border: none; font-size: 1rem; cursor: pointer; color: #777; position: relative; transition: all 0.3s; } .tab.active { color: #00ADEE; font-weight: 600; } .tab.active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 3px; background: #00ADEE; border-radius: 3px; } .auth-form { padding: 10px 0; } .auth-form h2 { margin-top: 0; margin-bottom: 20px; color: #2c3e50; text-align: center; font-size: 1.3rem; } .form-group { margin-bottom: 15px; } .form-group label { display: block; margin-bottom: 8px; color: #555; } .form-group input { width: 100%; padding: 12px; border: 1px solid #d1d8e0; border-radius: 8px; font-size: 1rem; transition: all 0.3s; } .form-group input:focus { outline: none; border-color: #00ADEE; box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.2); } .error-message { color: #e74c3c; margin-top: 15px; text-align: center; min-height: 20px; } #user-info { margin: auto; display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; padding: 8px 12px !important; background: #f8f9fa; border-radius: 8px; border: 1px solid #e9ecef; } #username-display { font-weight: 600; color: #495057; font-size: 1.1rem; } #logout-btn { padding: 8px 16px; background: #e74c3c; font-size: 0.9rem; box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3); } #logout-btn:hover { background: #c0392b; box-shadow: 0 3px 6px rgba(231, 76, 60, 0.4); } #send-link-btn { padding: 12px 20px; margin-left: auto; width: auto; } #summary-btn { padding: 12px 20px; margin-top: 10px; width: 100%; max-width: 300px; align-self: center; } /* Адаптивные стили */ @media (max-width: 800px) { .container { flex-direction: column; gap: 15px; } .panel { width: 100%; min-height: auto; padding: 15px; } .left-panel, .right-panel { flex: none; } } @media (max-width: 600px) { .input-area, .input-group { flex-direction: column; gap: 10px; } #user-input, #link-input { width: 100%; } button, #send-link-btn { width: 100%; padding: 12px; } .message { max-width: 90%; padding: 10px 14px; } } @media (max-width: 500px) { .modal-content { width: 95%; padding: 20px 15px; margin: 10px; } #user-info { flex-wrap: wrap; gap: 10px; } .summary-box { height: 400px; /* Фиксированная высота */ max-height: 400px; /* Максимальная высота */ min-height: 400px; } #username-display { width: 100%; text-align: center; font-size: 0.9rem; } #login-btn { padding: 6px 8px !important; font-size: 0.8rem; margin-left: 5px; } #login-btn, #logout-btn { flex: 1; min-width: 120px; } } /* Дополнительные улучшения */ .chat-box, .summary-box { height: 400px; /* Фиксированная высота */ max-height: 400px; /* Максимальная высота */ min-height: 400px; scroll-behavior: auto; -webkit-overflow-scrolling: touch; } .summary-box { height: 300px; /* Фиксированная высота */ overflow-y: auto; /* Вертикальный скролл при необходимости */ } .chat-box::-webkit-scrollbar { width: 10px; } .chat-box::-webkit-scrollbar-thumb { background: #2A7B9B; background: linear-gradient(to bottom,rgba(42, 123, 155, 1) 17%, rgba(87, 199, 133, 1) 49%, rgba(237, 221, 83, 1) 100%); border-radius: 5px; } .summary-box::-webkit-scrollbar { width: 10px; } .summary-box::-webkit-scrollbar-thumb { background: #2A7B9B; background: linear-gradient(to bottom,rgba(42, 123, 155, 1) 17%, rgba(87, 199, 133, 1) 49%, rgba(237, 221, 83, 1) 100%); border-radius: 5px; } input, textarea { font-size: 16px; } @supports (-webkit-touch-callout: none) { body { height: -webkit-fill-available; } }