/
miragecatv
/
library-api-csharp
Обзор
Документация
Войти
/
miragecatv
/
library-api-csharp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
frontend/styles.css
395 строк
5 KB
Nikita P
Initial BookDB project
22 июл 2026, 21:33
22 июл 2026, 21:33
1c0f3fe
Код
Авторство
О чём код?
* { box-sizing: border-box; } :root { color-scheme: light; font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #1f1f1f; background: #ffffff; } body { margin: 0; padding: 16px 20px 28px; } a { color: #1f1f1f; text-decoration: none; } a:hover { text-decoration: underline; } button, input, textarea { font: inherit; } .page-header { display: flex; align-items: center; justify-content: space-between; min-height: 38px; margin-bottom: 16px; border-bottom: 1px solid #222222; } .brand { display: flex; align-items: baseline; gap: 10px; } .brand h1 { margin: 0; font-size: 17px; font-weight: 600; } .brand span { color: #777777; } .page-header > a { color: #555555; } /* AI */ .assistant { display: grid; grid-template-columns: minmax(280px, 38%) minmax(0, 1fr); margin-bottom: 18px; border-top: 1px solid #888888; border-bottom: 1px solid #888888; } .assistant-question, .assistant-answer { min-height: 128px; padding: 10px 12px; } .assistant-question { display: flex; flex-direction: column; border-right: 1px solid #b8b8b8; } .assistant-question label, .section-label, .search span { display: block; margin-bottom: 6px; color: #666666; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; } .assistant-question textarea { display: block; width: 100%; min-height: 68px; padding: 0; resize: vertical; border: 0; border-radius: 0; outline: 0; color: #1f1f1f; background: transparent; line-height: 1.45; } .assistant-question textarea::placeholder { color: #999999; } .assistant-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; border-top: 1px solid #dddddd; } .assistant-actions button { padding: 3px 0; border: 0; border-bottom: 1px solid #333333; border-radius: 0; color: #222222; background: transparent; cursor: pointer; } .assistant-actions button:hover { border-bottom-color: transparent; } .assistant-actions button:disabled { color: #999999; border-bottom-color: #bbbbbb; cursor: wait; } .ai-status { color: #777777; } .ai-status.error { color: #a00000; } .assistant-answer { overflow: auto; } .answer-text { max-width: 900px; color: #333333; line-height: 1.5; white-space: pre-wrap; } /* Каталог */ .catalog-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 8px; } .search { display: block; width: min(360px, 100%); } .search input { display: block; width: 100%; height: 26px; padding: 2px 0; border: 0; border-bottom: 1px solid #777777; border-radius: 0; outline: 0; color: #1f1f1f; background: transparent; } .search input:focus { border-bottom-color: #111111; } .book-count { padding-bottom: 4px; color: #777777; white-space: nowrap; } .status { padding: 10px 0; color: #777777; } .status.error { color: #a00000; } /* Таблица */ .table-wrapper { width: 100%; overflow-x: auto; border-top: 1px solid #555555; border-bottom: 1px solid #555555; } .catalog-table { width: max-content; min-width: 100%; border-collapse: collapse; table-layout: auto; font-size: 11px; } .catalog-table th, .catalog-table td { padding: 5px 7px; text-align: left; vertical-align: middle; white-space: nowrap; border-right: 1px solid #d6d6d6; border-bottom: 1px solid #d6d6d6; } .catalog-table th:last-child, .catalog-table td:last-child { border-right: 0; } .catalog-table thead th { padding: 0; color: #555555; background: #f5f5f5; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; } .catalog-table tbody tr:last-child td { border-bottom: 0; } .catalog-table tbody tr:hover { background: #fafafa; } .numeric { text-align: right !important; font-variant-numeric: tabular-nums; } .muted { color: #999999; } /* Сортировка */ .sort-button { display: flex; align-items: center; gap: 4px; width: 100%; min-height: 28px; padding: 5px 7px; border: 0; border-radius: 0; color: inherit; background: transparent; font: inherit; font-weight: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; } .sort-button:hover { color: #111111; background: #eeeeee; } .sort-button::after { content: ""; width: 0; height: 0; opacity: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; } .sort-button[data-direction="asc"]::after { opacity: 1; border-bottom: 4px solid currentColor; } .sort-button[data-direction="desc"]::after { opacity: 1; border-top: 4px solid currentColor; } @media (max-width: 760px) { body { padding: 12px; } .assistant { grid-template-columns: 1fr; } .assistant-question { border-right: 0; border-bottom: 1px solid #b8b8b8; } .catalog-header { align-items: stretch; flex-direction: column; gap: 8px; } .brand span { display: none; } }