/
mxerf
/
ai-helper
Обзор
Документация
Войти
/
mxerf
/
ai-helper
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
frontend/src/index.css
194 строки
3 KB
MXerFix
init
21 июн 2024, 19:51
21 июн 2024, 19:51
4c5bebd
Код
Авторство
О чём код?
:root { font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; line-height: 1.5; font-weight: 400; color-scheme: light dark; color: rgba(255, 255, 255, 0.87); background-color: #242424; font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } * { margin: 0; padding: 0; box-sizing: border-box; } a { font-weight: 500; color: #646cff; text-decoration: inherit; } a:hover { color: #535bf2; } body { margin: 0; display: flex; place-items: center; min-width: 320px; min-height: 100vh; } h1 { font-size: 3.2em; line-height: 1.1; } button { border-radius: 8px; border: 1px solid transparent; padding: 0.6em 1.2em; font-size: 1em; font-weight: 500; font-family: inherit; background-color: #1a1a1a; cursor: pointer; transition: border-color 0.25s; } button:hover { border-color: #646cff; } button:focus, button:focus-visible { outline: 4px auto -webkit-focus-ring-color; } @media (prefers-color-scheme: light) { :root { color: #213547; background-color: #ffffff; } a:hover { color: #747bff; } button { background-color: #f9f9f9; } } .btn-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; } .btn-inbox { display: flex; align-items: center; justify-content: center; gap: 10px; } .messages-box { max-width: 75vw; width: 75vw; display: flex; flex-direction: column; align-items: center; justify-content: start; gap: 10px; height: 500px; overflow-y: auto; } .message { width: 100%; display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; } .bot-message { justify-content: start; } .user-message { justify-content: end; } .message-text { max-width: 100%; width: max-content; padding: 10px; border-radius: 12px; background-color: #1a1a1a; color: white; font-size: 20px; } .user-message-text { background-color: #1a1a1a; text-align: end; } .bot-message-text { background-color: #695ff8; color: white; text-align: start; } .loader { width: calc(100px - 24px); height: 50px; position: relative; animation: flippx 2s infinite linear; } .loader:before { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%; background: #FFF; transform-origin: -24px 50%; animation: spin 1s infinite linear; } .loader:after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50% , -50%); background: #fff; width: 48px; height: 48px; border-radius: 50%; } @keyframes flippx { 0%, 49% { transform: scaleX(1); } 50%, 100% { transform: scaleX(-1); } } @keyframes spin { 100% { transform: rotate(360deg); } } .loader-box { width: 100%; display: flex; align-items: center; justify-content: start; gap: 10px; padding-left: 64px; }