/
kev
/
Nextcloud_File-Changes-Tracker
Обзор
Документация
Войти
/
kev
/
Nextcloud_File-Changes-Tracker
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
css/admin.css
471 строка
8 KB
Evgeny Konovalov
first_commit
16 фев 2026, 17:45
16 фев 2026, 17:45
476f06c
Код
Авторство
О чём код?
/** * Стили для админ-панели File Changes Tracker */ #file-changes-tracker-admin { padding: 20px; } #file-changes-tracker-admin h2 { margin-bottom: 10px; } #file-changes-tracker-admin .settings-hint { color: var(--color-text-maxcontrast); margin-bottom: 20px; } /* Секция папок */ .folders-section { margin-top: 30px; } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .section-header h3 { margin: 0; font-size: 18px; } /* Контейнер папок */ .folders-container { background: var(--color-main-background); border: 1px solid var(--color-border); border-radius: var(--border-radius-large); padding: 20px; min-height: 200px; } .empty-state { text-align: center; padding: 40px 20px; color: var(--color-text-maxcontrast); } .empty-state .icon-folder { display: inline-block; width: 64px; height: 64px; opacity: 0.3; margin-bottom: 15px; } .empty-state p { margin: 10px 0; } .empty-state .hint { font-size: 14px; color: var(--color-text-lighter); } /* Таблица папок */ .folders-table { width: 100%; border-collapse: collapse; } .folders-table th { text-align: left; padding: 12px; border-bottom: 2px solid var(--color-border); font-weight: 600; color: var(--color-text-maxcontrast); } .folders-table td { padding: 12px; border-bottom: 1px solid var(--color-border-dark); } .folders-table tr:hover { background-color: var(--color-background-hover); } .folders-table .folder-path-cell { font-weight: 500; } .folders-table .notifications-cell { color: var(--color-text-maxcontrast); } .folders-table .actions-cell { text-align: right; white-space: nowrap; } .action-edit, .action-delete { background: transparent; border: none; cursor: pointer; padding: 8px; margin: 0 2px; opacity: 0.5; transition: opacity 0.2s; display: inline-flex; align-items: center; justify-content: center; } .action-edit:hover, .action-delete:hover { opacity: 1; } .action-edit .icon, .action-delete .icon { width: 16px; height: 16px; } .action-settings, .action-edit, .action-delete { background: transparent; border: none; cursor: pointer; padding: 8px; margin: 0 2px; opacity: 0.5; transition: opacity 0.2s; display: inline-flex; align-items: center; justify-content: center; } .action-settings:hover, .action-edit:hover, .action-delete:hover { opacity: 1; } .action-settings .icon, .action-edit .icon, .action-delete .icon { width: 16px; height: 16px; } .action-delete:hover .icon { filter: invert(38%) sepia(89%) saturate(3527%) hue-rotate(348deg) brightness(97%) contrast(93%); } .action-settings:hover .icon { filter: invert(55%) sepia(89%) saturate(2395%) hue-rotate(180deg) brightness(95%) contrast(90%); } /* Модальное окно */ .folder-modal { display: none; position: fixed; z-index: 10000; 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: var(--color-main-background); border-radius: var(--border-radius-large); box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); max-width: 600px; width: 90%; max-height: 90vh; display: flex; flex-direction: column; } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--color-border); } .modal-header h3 { margin: 0; font-size: 18px; } .modal-close { background: transparent; border: none; cursor: pointer; padding: 8px; opacity: 0.5; } .modal-close:hover { opacity: 1; } .modal-body { padding: 20px; overflow-y: auto; } /* Форма */ .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 600; } .form-group input[type="text"], .form-group select { width: 100%; padding: 10px; border: 1px solid var(--color-border-dark); border-radius: var(--border-radius); background: var(--color-main-background); } .form-group .hint { display: block; margin-top: 5px; font-size: 13px; color: var(--color-text-maxcontrast); } /* Выбор папки */ .folder-picker, .responsible-picker { display: flex; gap: 10px; } .folder-picker input, .responsible-picker input { flex: 1; } .folder-picker button, .responsible-picker button { flex-shrink: 0; } /* Радио-группа */ .radio-group { display: flex; gap: 20px; } .radio-group label { display: flex; align-items: center; gap: 8px; font-weight: normal; } /* Чекбокс */ .checkbox-label { display: flex; align-items: center; gap: 8px; font-weight: normal !important; } /* Действия формы */ .form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--color-border); } /* Поиск ответственного */ .search-box { margin-bottom: 20px; } .search-box input { width: 100%; padding: 10px; border: 1px solid var(--color-border-dark); border-radius: var(--border-radius); background: var(--color-main-background); } .responsible-list { max-height: 400px; overflow-y: auto; } .hint-text { text-align: center; padding: 40px 20px; color: var(--color-text-maxcontrast); } .responsible-items { display: flex; flex-direction: column; gap: 2px; } .responsible-item { display: flex; align-items: center; gap: 10px; padding: 12px; cursor: pointer; border-radius: var(--border-radius); transition: background-color 0.2s; } .responsible-item:hover { background-color: var(--color-background-hover); } .responsible-item .icon-user, .responsible-item .icon-group { flex-shrink: 0; opacity: 0.7; } .responsible-item .name { flex: 1; font-weight: 500; } .responsible-item .email { font-size: 13px; color: var(--color-text-maxcontrast); } /* Информационная секция */ .info-section { margin-top: 40px; padding: 20px; background: var(--color-background-hover); border-radius: var(--border-radius-large); } .info-section h3 { margin-top: 0; } .info-section p { color: var(--color-text-maxcontrast); margin-bottom: 15px; } /* Индикатор загрузки */ .loading-indicator { text-align: center; padding: 40px 20px; } .loading-indicator .icon-loading { display: inline-block; margin-bottom: 10px; } .loading-indicator p { color: var(--color-text-maxcontrast); } /* Адаптивность */ @media (max-width: 768px) { .folders-table { display: block; overflow-x: auto; } .modal-content { width: 95%; max-height: 95vh; } .folder-picker, .responsible-picker { flex-direction: column; } .folder-picker button, .responsible-picker button { width: 100%; } .notification-types-grid, .form-row { grid-template-columns: 1fr; } } /* Модальное окно настроек уведомлений */ .modal-large { max-width: 700px !important; } .notification-section { margin-bottom: 25px; padding: 15px; background: var(--color-background-hover); border-radius: 8px; } .notification-section h4 { margin: 0 0 10px 0; font-size: 16px; color: var(--color-main-text); } .notification-types-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 15px; margin-left: 25px; } .checkbox-label-block { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; } .checkbox-label-block input[type="checkbox"] { cursor: pointer; } .section-divider { border: none; border-top: 1px solid var(--color-border); margin: 25px 0; } .form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 15px; } .input-field { width: 100%; padding: 8px 12px; border: 1px solid var(--color-border); border-radius: 4px; font-size: 14px; }