/
NeGaTiVe333
/
Frontend
Обзор
Документация
Войти
/
NeGaTiVe333
/
Frontend
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/index.css
401 строка
6 KB
NeGaTiVe369
feat: стили
05 дек 2025, 19:05
05 дек 2025, 19:05
a780fa4
Код
Авторство
О чём код?
*, *::before, *::after { box-sizing: border-box; } html, body, #root { margin: 0; padding: 0; height: 100%; } body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: radial-gradient(circle at top, #f0f4ff 0, #f8fafc 45%, #fdfdfd 100%); color: #111827; } /* ====== Общий layout ====== */ .app { min-height: 100vh; display: flex; flex-direction: column; } .app-header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); background: rgba(255, 255, 255, 0.82); border-bottom: 1px solid rgba(148, 163, 184, 0.3); } .app-header-inner { max-width: 960px; margin: 0 auto; padding: 0.75rem 1.5rem; display: flex; align-items: center; justify-content: space-between; } .app-brand { font-weight: 700; letter-spacing: 0.06em; font-size: 0.85rem; text-transform: uppercase; color: #4f46e5; } .app-nav { display: flex; align-items: center; gap: 0.75rem; } .app-nav a { font-size: 0.9rem; text-decoration: none; color: #4b5563; padding: 0.35rem 0.7rem; border-radius: 999px; transition: background-color 0.15s ease, color 0.15s ease; } .app-nav a:hover { background-color: rgba(79, 70, 229, 0.06); color: #111827; } .app-main { flex: 1; display: flex; justify-content: center; padding: 2rem 1rem 3rem; } .app-main-inner { width: 100%; max-width: 960px; } /* ====== Кнопки, инпуты, формы ====== */ .btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: none; padding: 0.5rem 1.1rem; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: background-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease; font-family: inherit; } .btn:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; } .btn-primary { background: linear-gradient(135deg, #4f46e5, #6366f1); color: #fff; box-shadow: 0 8px 16px rgba(79, 70, 229, 0.25); } .btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, #4338ca, #4f46e5); transform: translateY(-1px); box-shadow: 0 10px 20px rgba(79, 70, 229, 0.35); } .btn-secondary { background-color: #e5e7eb; color: #111827; } .btn-secondary:hover:not(:disabled) { background-color: #d1d5db; } .btn-danger { background-color: #ef4444; color: #fff; } .btn-danger:hover:not(:disabled) { background-color: #dc2626; } .input, .textarea { width: 100%; padding: 0.45rem 0.7rem; border-radius: 0.5rem; border: 1px solid #d1d5db; font-size: 0.9rem; font-family: inherit; transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease; background-color: #ffffff; } .input:focus, .textarea:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2); } .label { display: block; font-size: 0.8rem; font-weight: 500; color: #4b5563; margin-bottom: 0.25rem; } .form-group { margin-bottom: 0.85rem; } /* ====== Страницы аутентификации ====== */ .auth-page { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 80px); } .auth-card { width: 100%; max-width: 400px; background-color: rgba(255, 255, 255, 0.97); border-radius: 1.25rem; box-shadow: 0 22px 40px rgba(15, 23, 42, 0.18); padding: 1.75rem 1.75rem 1.5rem; } .auth-title { margin: 0 0 0.3rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; } .auth-subtitle { margin: 0 0 1.25rem; font-size: 0.9rem; color: #6b7280; } .auth-footer-text { margin-top: 1rem; font-size: 0.85rem; color: #6b7280; } .auth-footer-text a { color: #4f46e5; text-decoration: none; } .auth-footer-text a:hover { text-decoration: underline; } /* ====== Страница задач ====== */ .page-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.2rem; gap: 1rem; } .page-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; } .page-subtitle { font-size: 0.85rem; color: #6b7280; } .card { background-color: rgba(255, 255, 255, 0.96); border-radius: 1rem; border: 1px solid rgba(209, 213, 219, 0.8); padding: 1.1rem 1.1rem 1rem; margin-bottom: 1rem; box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06); } .card-header { margin-bottom: 0.75rem; display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; } .card-title { font-size: 1rem; font-weight: 600; } .card-caption { font-size: 0.8rem; color: #6b7280; } .card-body { font-size: 0.9rem; } /* Фильтры */ .filters-row { display: flex; flex-wrap: wrap; gap: 0.75rem; } .filters-row .form-group { flex: 1 1 150px; } /* Задачи */ .tasks-list { list-style: none; padding: 0; margin: 0; } .task-item { border-radius: 0.85rem; border: 1px solid rgba(209, 213, 219, 0.9); padding: 0.75rem 0.85rem; margin-bottom: 0.6rem; background-color: #f9fafb; display: flex; justify-content: space-between; gap: 0.75rem; } .task-main { min-width: 0; } .task-title { font-weight: 600; } .task-meta { font-size: 0.75rem; color: #6b7280; margin-top: 0.2rem; } .task-tags { margin-top: 0.25rem; font-size: 0.8rem; color: #4b5563; } .badge { display: inline-flex; align-items: center; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.7rem; font-weight: 500; background-color: #e5e7eb; color: #374151; } .badge--status-todo { background-color: #e0f2fe; color: #0369a1; } .badge--status-in_progress { background-color: #fef3c7; color: #92400e; } .badge--status-done { background-color: #dcfce7; color: #166534; } .task-actions { display: flex; flex-direction: column; gap: 0.25rem; align-items: flex-end; } /* Пагинация */ .pagination { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; margin-top: 0.5rem; } /* Сообщения */ .text-error { color: #b91c1c; font-size: 0.85rem; } .text-muted { color: #6b7280; font-size: 0.85rem; } /* Мелкая адаптивность */ @media (max-width: 640px) { .app-header-inner { padding-inline: 1rem; } .app-main { padding-inline: 0.75rem; } .card { padding-inline: 0.9rem; } .task-item { flex-direction: column; } .task-actions { flex-direction: row; justify-content: flex-end; } }