/
rostislav1
/
ReqMaster
Обзор
Документация
Войти
/
rostislav1
/
ReqMaster
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/index.css
299 строк
5 KB
Wenn911
fix
25 мар 2025, 09:34
25 мар 2025, 09:34
b7529f3
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; } html { overflow: hidden; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; color: #1f1f1f; font-size: 16px; background-color: rgb(238, 238, 238); margin: 0; } p { white-space: pre-wrap; } ol { padding-left: 24px; } .header { display: flex; align-items: center; gap: 24px; padding: 12px; background-color: rgb(203, 255, 207); } .title { font-size: 24px; line-height: 32px; font-weight: 600; } #input-prompt { flex: 1; font-family: inherit; font-size: inherit; border: 0; border-top-left-radius: 16px; border-bottom-left-radius: 16px; resize: none; overflow-y: auto; height: 38px; transition: height 0.2s ease-out; } .container { display: grid; height: 100dvh; grid-template-rows: auto 1fr; } .chat { display: grid; height: 100%; grid-template-rows: 1fr auto; min-height: 0; padding-inline: 8px; grid-gap: 8px; } .answerContainer { margin-top: 24px; overflow-y: auto; min-height: 0; padding-right: 16px; scroll-behavior: smooth; } .quickMessage { background-color: rgb(203, 255, 207); border-radius: 16px; padding: 8px 12px; font-size: 14px; transition: all 0.2s ease; width: fit-content; } .quickMessage:hover { cursor: pointer; background-color: rgb(174, 223, 179); } .formContainer { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; padding-inline: 8px; } .input { display: flex; } .responseText { display: flex; flex-direction: column; gap: 16px; } @keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } } .message { max-width: 80%; padding: 10px; border-radius: 10px; word-wrap: break-word; animation: fadeIn 0.3s ease; } .user-message { align-self: flex-end; background-color: rgb(161, 252, 165); color: #000; position: relative; max-height: 9.8em; line-height: 1.4em; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1); padding-right: 20px; } .user-message.expanded { max-height: 1000px; } .user-message.collapsed { mask-image: linear-gradient(to bottom, black 80%, transparent 98%); -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 98%); } .expand-btn { position: absolute; bottom: 18px; right: 0; width: 20px; height: 20px; background: rgb(161, 252, 165); border-radius: 50%; display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 2; font-size: 12px; user-select: none; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: all 0.3s ease; } .expand-btn.visible { display: flex; } .expand-btn:hover { background: rgb(109, 193, 114); } .expand-btn.collapsed::after { content: '▼'; } .expand-btn.expanded::after { content: '▲'; } .bot-message { align-self: flex-start; background-color: #fff; color: #000; overflow: hidden; white-space: pre-wrap; word-wrap: break-word; } .sendButton { background-color: #fff; display: flex; border-top-right-radius: 16px; border-bottom-right-radius: 16px; border: none; align-items: flex-end; padding: 8px; } .sendButton:hover { cursor: pointer; background-color: rgb(161, 252, 165); } .disable { opacity: 0.5; cursor: not-allowed !important; background-color: #eee; } .disable:hover { background-color: #eee; } textarea[type='range'] { margin-top: 16px; accent-color: black; } textarea { width: 100%; background-color: white; padding: 8px 12px; outline: none; } code { display: inline-block; max-width: 100%; background-color: #f5f5f5; border-radius: 4px; padding: 2px 4px; font-family: 'Courier New', monospace; font-size: 0.9em; color: #c7254e; overflow-x: auto; word-break: break-word; white-space: pre-wrap; } pre code { display: block; padding: 12px; margin: 8px 0; line-height: 1.4; white-space: pre; overflow-x: auto; max-width: 100%; box-sizing: border-box; } .typing-indicator { display: inline-block; margin-left: 5px; } .typing-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background-color: #888; margin-right: 3px; animation: typing-blink 1.4s infinite both; } .typing-dot:nth-child(2) { animation-delay: 0.2s; } .typing-dot:nth-child(3) { animation-delay: 0.4s; } @keyframes typing-blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } } [hidden] { display: none; } ::-webkit-scrollbar { margin-right: -16px; width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: inherit; border-radius: 5px; } ::-webkit-scrollbar-thumb { background: #888; /* Цвет бегунка */ border-radius: 5px; /* Скругление углов */ } ::-webkit-scrollbar-thumb:hover { background: #555; /* Цвет бегунка при наведении */ }