/
Centermant
/
web-nodejs
Обзор
Документация
Войти
/
Centermant
/
web-nodejs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
public/lab10/task1/css/admin.css
424 строки
7 KB
Centermant
feat(lab9.1 final)
04 дек 2025, 00:36
04 дек 2025, 00:36
8ccd8ce
Код
Авторство
О чём код?
/* Admin panel specific styles */ .admin-section { padding: 20px 0; } .section-title { font-size: 2rem; font-weight: 600; margin-bottom: 20px; color: var(--primary-color); text-align: center; } .admin-tabs { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); } .admin-tabs .tab-btn { padding: 10px 20px; background: none; border: none; color: #a0a0ff; cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 500; transition: var(--transition); position: relative; } .admin-tabs .tab-btn:hover { color: var(--text-color); } .admin-tabs .tab-btn.active { color: var(--primary-color); } .admin-tabs .tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--primary-color); } .tab-content { display: none; } .tab-content.active { display: block; } .admin-actions { display: flex; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 15px; } .search-filter { position: relative; width: 300px; } .search-filter input, .search-filter select { width: 100%; padding: 8px 15px; border: 1px solid var(--border-color); border-radius: 25px; background: rgba(0, 0, 0, 0.3); color: white; font-family: 'Inter', sans-serif; font-size: 14px; transition: var(--transition); } .search-filter input:focus, .search-filter select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 5px rgba(110, 142, 251, 0.5); } .table-container { overflow-x: auto; border-radius: 10px; margin-bottom: 20px; } table { width: 100%; border-collapse: collapse; font-family: 'Inter', sans-serif; } table th { background: rgba(110, 142, 251, 0.1); padding: 12px 15px; text-align: left; font-weight: 600; color: var(--primary-color); border-bottom: 2px solid var(--border-color); } table td { padding: 10px 15px; border-bottom: 1px solid var(--border-color); vertical-align: middle; } table tr:hover { background: rgba(110, 142, 251, 0.05); } .status-badge { padding: 3px 8px; border-radius: 10px; font-size: 12px; font-weight: 500; } .status-created { background: rgba(255, 165, 0, 0.2); color: #ffa500; } .status-processing { background: rgba(255, 209, 102, 0.2); color: #ffd166; } .status-shipped { background: rgba(56, 149, 211, 0.2); color: #3895d3; } .status-delivered { background: rgba(29, 209, 161, 0.2); color: #1dd1a1; } .status-cancelled { background: rgba(255, 107, 107, 0.2); color: #ff6b6b; } .action-buttons { display: flex; gap: 5px; justify-content: flex-end; } .action-btn { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); border: none; } .action-btn:hover { transform: scale(1.1); } .edit-btn { background: rgba(29, 209, 161, 0.2); color: #1dd1a1; } .delete-btn { background: rgba(255, 107, 107, 0.2); color: #ff6b6b; } .view-btn { background: rgba(110, 142, 251, 0.2); color: #6e8efb; } .status-btn { background: rgba(255, 165, 0, 0.2); color: #ffa500; } /* Modal styles */ .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; transition: var(--transition); } .modal-overlay.show { opacity: 1; visibility: visible; } .modal-content { background: var(--bg-darker); border-radius: 15px; width: 90%; max-width: 600px; padding: 30px; position: relative; transform: translateY(20px); transition: var(--transition); box-shadow: var(--shadow); } .modal-overlay.show .modal-content { transform: translateY(0); } .order-modal { max-width: 800px; } .confirm-modal { max-width: 500px; } .modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; color: var(--text-color); font-size: 1.5rem; cursor: pointer; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; } .modal-close:hover { color: var(--accent-color); } .modal-title { margin-top: 0; margin-bottom: 20px; font-size: 1.5rem; color: var(--primary-color); text-align: center; } .form-group { margin-bottom: 15px; } .form-group label { display: block; margin-bottom: 5px; color: #a0a0ff; font-weight: 500; } .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px; border: 1px solid var(--border-color); border-radius: 8px; background: rgba(0, 0, 0, 0.3); color: white; font-family: 'Inter', sans-serif; font-size: 14px; box-sizing: border-box; } .form-group textarea { min-height: 100px; resize: vertical; } .form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 5px rgba(110, 142, 251, 0.5); } .form-row { display: flex; gap: 15px; } .form-row .form-group { flex: 1; } .form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; } .form-error { color: var(--accent-color); font-size: 0.9rem; margin-top: 5px; min-height: 20px; } /* Order details styles */ .order-header { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); } .order-header div { background: rgba(0, 0, 0, 0.2); padding: 10px; border-radius: 8px; } .order-header h3 { margin: 0 0 5px 0; color: #a0a0ff; font-size: 0.9rem; font-weight: 500; } .order-header p { margin: 0; font-weight: 600; color: var(--text-color); } .order-items { margin-bottom: 20px; } .order-items table { width: 100%; border-collapse: collapse; } .order-items th, .order-items td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border-color); } .order-items th { background: rgba(0, 0, 0, 0.2); font-weight: 500; color: #a0a0ff; } .order-total { text-align: right; font-size: 1.2rem; font-weight: 700; color: var(--accent-color); margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border-color); } .loading { text-align: center; padding: 20px; color: #a0a0ff; } .no-data { text-align: center; padding: 40px; color: #a0a0ff; font-style: italic; } /* Responsive styles */ @media (max-width: 768px) { .form-row { flex-direction: column; gap: 0; } .search-filter { width: 100%; } .admin-actions { flex-direction: column; } .order-header { grid-template-columns: 1fr; } }