Actualiser css/admin.css
This commit is contained in:
+61
-65
@@ -12,9 +12,9 @@ admin.css — Backoffice Mon Cinéma (Version Finale 6 Colonnes)
|
||||
|
||||
/* BOUTONS */
|
||||
.btn-action { background: var(--surface-card); color: var(--text); border: 1px solid var(--border); padding: 0.6rem 1rem; border-radius: 8px; font-family: inherit; font-size: 0.85rem; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.25s; text-decoration: none; }
|
||||
.btn-action:hover { border-color: var(--gold); background: var(--gold-dim); color: var(--gold); }
|
||||
.btn-action:hover { border-color: var(--gold); background: var(--surface-hover); color: var(--gold); }
|
||||
.btn-action.primary { background: var(--gold); color: var(--background); border-color: var(--gold); font-weight: 600; }
|
||||
.btn-action.primary:hover { background: var(--gold); box-shadow: 0 4px 15px var(--gold-glow); }
|
||||
.btn-action.primary:hover { background: #e5c347; transform: translateY(-1px); }
|
||||
.btn-action.danger-solid { background: #ff4757; color: #fff; border-color: #ff4757; }
|
||||
.btn-action.danger-solid:hover { background: #ff6b81; }
|
||||
.btn-action.outline { background: transparent; border-color: var(--muted); color: var(--muted); }
|
||||
@@ -26,94 +26,90 @@ admin.css — Backoffice Mon Cinéma (Version Finale 6 Colonnes)
|
||||
.pub-tabs { background-color: var(--surface); border: 1px solid var(--border); padding: 0.4rem; border-radius: 30px; display: inline-flex; gap: 0.4rem; }
|
||||
.tab-btn { background: none; border: none; color: #d4d4de; font-family: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer; padding: 0.65rem 1.6rem; border-radius: 25px; display: flex; align-items: center; gap: 0.6rem; transition: all 0.3s; }
|
||||
.tab-btn:hover { color: var(--text); background-color: var(--surface-hover); }
|
||||
.tab-btn.active { color: var(--background); background-color: var(--gold); font-weight: 600; box-shadow: 0 4px 15px var(--gold-glow); }
|
||||
.tab-btn.active { color: var(--background); background-color: var(--gold); font-weight: 600; }
|
||||
|
||||
/* TOOLBAR */
|
||||
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
|
||||
.count { font-weight: 600; color: var(--muted); background: var(--surface); padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 0.85rem; }
|
||||
.search-box { position: relative; max-width: 400px; width: 100%; }
|
||||
.search-box { position: relative; flex-grow: 1; max-width: 400px; }
|
||||
.search-box input { width: 100%; padding: 0.75rem 1rem 0.75rem 2.8rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: inherit; font-size: 0.9rem; }
|
||||
.search-box input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
|
||||
.search-box input:focus { outline: none; border-color: var(--gold); }
|
||||
.search-box i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.1rem; pointer-events: none; }
|
||||
|
||||
/* BULK ACTIONS */
|
||||
.bulk-actions-bar { background: var(--gold-dim); border: 1px solid var(--gold); border-radius: 8px; padding: 0.8rem 1.5rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; color: var(--gold); animation: slideDown 0.3s ease; }
|
||||
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
|
||||
.bulk-actions-bar { background: rgba(212, 175, 55, 0.1); border: 1px solid var(--gold); border-radius: 8px; padding: 0.8rem 1.5rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; color: var(--gold); }
|
||||
|
||||
/* TABLEAU (6 COLONNES FIXES) */
|
||||
.table-container { background: var(--surface-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); max-height: 65vh; overflow-y: auto; }
|
||||
.table-container { background: var(--surface-card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); max-height: 65vh; overflow-y: auto; }
|
||||
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; table-layout: fixed; }
|
||||
.admin-table thead th { background: var(--surface); color: var(--muted); font-weight: 600; padding: 1rem 0.8rem; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; position: sticky; top: 0; z-index: 10; }
|
||||
.admin-table tbody td { padding: 0.9rem 0.8rem; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.admin-table tbody tr:hover { background: var(--surface-hover); }
|
||||
.admin-table tbody tr:last-child td { border-bottom: none; }
|
||||
.admin-table tbody td strong { color: var(--text); font-weight: 600; font-size: 1rem; }
|
||||
.admin-table thead th { background: var(--surface); color: var(--muted); font-weight: 600; padding: 1rem 0.8rem; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.75rem; text-transform: uppercase; position: sticky; top: 0; z-index: 10; }
|
||||
.admin-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.2s; }
|
||||
.admin-table tbody tr:hover { background: var(--surface); }
|
||||
.admin-table td { padding: 0.8rem; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; }
|
||||
|
||||
/* Largeurs des 6 colonnes */
|
||||
.admin-table thead th:nth-child(1), .admin-table tbody td:nth-child(1) { width: 50px; text-align: center; }
|
||||
.admin-table thead th:nth-child(2), .admin-table tbody td:nth-child(2) { width: auto; } /* Titre prend l'espace restant */
|
||||
.admin-table thead th:nth-child(3), .admin-table tbody td:nth-child(3) { width: 80px; }
|
||||
.admin-table thead th:nth-child(4), .admin-table tbody td:nth-child(4) { width: 20%; }
|
||||
.admin-table thead th:nth-child(5), .admin-table tbody td:nth-child(5) { width: 25%; }
|
||||
.admin-table thead th:nth-child(6), .admin-table tbody td:nth-child(6) { width: 100px; text-align: right; }
|
||||
/* ÉLÉMENTS DU TABLEAU */
|
||||
.tbl-stars { color: var(--gold); font-size: 1rem; letter-spacing: 1px; }
|
||||
.half-star { position: relative; display: inline-block; color: rgba(255,255,255,0.2); }
|
||||
.half-star::before { content: '★'; position: absolute; left: 0; width: 50%; overflow: hidden; color: var(--gold); }
|
||||
.stars-muted { color: rgba(255,255,255,0.2); }
|
||||
.badge-format { font-size: 0.75rem; padding: 0.25rem 0.6rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--gold); color: var(--gold); font-weight: 600; }
|
||||
.tbl-actions button { background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer; width: 34px; height: 34px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: all 0.2s; }
|
||||
.tbl-actions button:hover { border-color: var(--gold); color: var(--gold); }
|
||||
.tbl-actions button.del:hover { border-color: #ff4757; color: #ff4757; background: rgba(255, 71, 87, 0.1); }
|
||||
|
||||
/* Éléments tableau */
|
||||
.badge-format { background: var(--surface); border: 1px solid var(--border); padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.8rem; color: var(--gold); display: inline-block; font-weight: 500; }
|
||||
.tbl-stars { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; }
|
||||
.half-star { position: relative; display: inline-block; color: #ffffff; opacity: 0.45; }
|
||||
.half-star::before { content: '★'; position: absolute; left: 0; width: 50%; overflow: hidden; color: var(--gold); opacity: 1; }
|
||||
.stars-muted { color: #ffffff; opacity: 0.35; }
|
||||
|
||||
/* Actions */
|
||||
.tbl-actions { display: flex; justify-content: flex-end; gap: 0.3rem; }
|
||||
.tbl-actions button { background: transparent; border: none; color: var(--muted); cursor: pointer; padding: 0.5rem; font-size: 1.2rem; transition: all 0.2s; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; }
|
||||
.tbl-actions button:hover { color: var(--gold); background: var(--surface); }
|
||||
.tbl-actions button.del:hover { color: #ff4757; }
|
||||
|
||||
/* Checkbox */
|
||||
input[type="checkbox"] { appearance: none; width: 20px; height: 20px; border: 2px solid var(--muted); border-radius: 6px; background: var(--surface); cursor: pointer; position: relative; transition: all 0.2s; display: inline-block; vertical-align: middle; }
|
||||
/* CHECKBOX */
|
||||
input[type="checkbox"] { appearance: none; width: 18px; height: 18px; border: 2px solid var(--muted); border-radius: 4px; background: var(--surface); cursor: pointer; position: relative; }
|
||||
input[type="checkbox"]:checked { background: var(--gold); border-color: var(--gold); }
|
||||
input[type="checkbox"]:checked::after { content: '✓'; color: var(--background); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 13px; font-weight: 900; }
|
||||
input[type="checkbox"]:checked::after { content: '✓'; color: var(--background); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 12px; font-weight: 900; }
|
||||
|
||||
/* PAGINATION */
|
||||
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.4rem; margin-top: 2rem; padding: 1rem 0; flex-wrap: wrap; }
|
||||
.pagination button { background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary); min-width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.25s; font-weight: 500; font-size: 0.9rem; }
|
||||
.pagination button:hover:not(:disabled):not(.active) { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
|
||||
.pagination button.active { background: var(--gold); color: var(--background); border-color: var(--gold); font-weight: 600; box-shadow: 0 4px 10px var(--gold-glow); }
|
||||
.pagination button:disabled { opacity: 0.3; cursor: not-allowed; }
|
||||
.pagination-info { color: var(--muted); font-size: 0.9rem; margin: 0 1rem; font-weight: 500; }
|
||||
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.5rem; padding-top: 1.5rem; }
|
||||
.pagination span.pagination-info { color: var(--muted); font-size: 0.85rem; margin-right: 1rem; }
|
||||
.pagination button { background: var(--surface-card); border: 1px solid var(--border); color: var(--text); min-width: 36px; height: 36px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
|
||||
.pagination button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
|
||||
.pagination button.active { background: var(--gold); color: var(--background); border-color: var(--gold); }
|
||||
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
|
||||
|
||||
/* MODALES & FORMULAIRES */
|
||||
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 1000; }
|
||||
/* MODALES */
|
||||
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 1000; }
|
||||
.overlay.open { opacity: 1; visibility: visible; }
|
||||
.modal { background: var(--surface-card); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; width: 90%; max-width: 600px; position: relative; transform: translateY(30px) scale(0.95); transition: all 0.4s; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9); max-height: 90vh; overflow-y: auto; }
|
||||
.modal { background: var(--surface-card); border: 1px solid var(--border); border-radius: 12px; padding: 2.5rem; width: 90%; max-width: 600px; position: relative; transform: translateY(20px) scale(0.95); transition: all 0.3s ease; max-height: 90vh; overflow-y: auto; }
|
||||
.overlay.open .modal { transform: translateY(0) scale(1); }
|
||||
.modal-close { position: absolute; top: 1.5rem; right: 1.5rem; background: var(--surface); border: 1px solid var(--border); color: var(--muted); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; }
|
||||
.modal-close:hover { color: var(--text); border-color: var(--text); }
|
||||
.modal-h { margin-bottom: 2rem; color: var(--text); font-size: 1.4rem; display: flex; align-items: center; gap: 0.6rem; }
|
||||
.modal-h i { color: var(--gold); font-size: 1.6rem; }
|
||||
.modal-close { position: absolute; top: 1.5rem; right: 1.5rem; background: var(--surface); border: none; color: var(--muted); width: 32px; height: 32px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; transition: all 0.2s; }
|
||||
.modal-close:hover { background: #ff4757; color: #fff; }
|
||||
.modal-h { margin-bottom: 1.5rem; color: var(--text); font-size: 1.3rem; display: flex; align-items: center; gap: 0.6rem; border-bottom: 1px solid var(--border); padding-bottom: 0.8rem; }
|
||||
.modal-h i { color: var(--gold); }
|
||||
|
||||
/* FORMULAIRES */
|
||||
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
|
||||
.form-group { margin-bottom: 1.2rem; text-align: left; }
|
||||
.form-group label { display: block; margin-bottom: 0.6rem; font-size: 0.9rem; color: var(--muted); font-weight: 500; }
|
||||
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.8rem 1rem; background: var(--background); border: 1px solid var(--border); color: var(--text); border-radius: 8px; font-family: inherit; font-size: 0.95rem; }
|
||||
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
|
||||
.divider { margin: 2rem 0 1.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); color: var(--gold); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
|
||||
.import-box { border: 2px dashed var(--border); border-radius: 12px; padding: 3rem 2rem; text-align: center; background: var(--surface); transition: all 0.2s; cursor: pointer; position: relative; }
|
||||
.import-box:hover { border-color: var(--gold); background: var(--gold-dim); }
|
||||
.import-box input[type="file"] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
|
||||
.import-box i { font-size: 3rem; color: var(--gold); margin-bottom: 1rem; display: block; }
|
||||
.security-banner { background: rgba(255, 71, 87, 0.05); border: 1px solid rgba(255, 71, 87, 0.3); color: #ff4757; padding: 1.2rem 1.5rem; border-radius: 12px; margin-bottom: 2.5rem; display: flex; justify-content: space-between; align-items: center; }
|
||||
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
|
||||
.form-group label { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
|
||||
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.8rem 1rem; background: var(--background); border: 1px solid var(--border); color: var(--text); border-radius: 8px; font-size: 0.9rem; transition: border-color 0.2s; }
|
||||
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--gold); }
|
||||
.divider { margin: 1.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px dashed var(--border); color: var(--gold); font-size: 0.8rem; text-transform: uppercase; font-weight: 700; }
|
||||
.import-box { border: 2px dashed var(--border); border-radius: 8px; padding: 2rem 1rem; text-align: center; background: var(--surface); cursor: pointer; transition: all 0.2s; }
|
||||
.import-box:hover { border-color: var(--gold); }
|
||||
.import-box i { font-size: 2.5rem; color: var(--gold); margin-bottom: 0.5rem; display: block; }
|
||||
.security-banner { background: rgba(255, 71, 87, 0.1); border: 1px solid rgba(255, 71, 87, 0.3); color: #ff4757; padding: 1rem 1.5rem; border-radius: 8px; margin-bottom: 2rem; display: flex; justify-content: space-between; align-items: center; }
|
||||
|
||||
/* RESPONSIVE MOBILE */
|
||||
@media (max-width: 768px) {
|
||||
.admin-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
|
||||
.admin-header { flex-direction: column; align-items: flex-start; }
|
||||
.form-grid { grid-template-columns: 1fr; }
|
||||
.form-group[style*="grid-column: span 2"] { grid-column: span 1 !important; }
|
||||
|
||||
/* Transformation du tableau en cartes */
|
||||
.table-container { background: transparent; border: none; box-shadow: none; overflow-y: visible; max-height: none; }
|
||||
.admin-table, .admin-table thead, .admin-table tbody, .admin-table th, .admin-table td, .admin-table tr { display: block; }
|
||||
.admin-table thead { display: none; }
|
||||
.admin-table tbody tr { background: var(--surface-card); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 0.8rem; padding: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
|
||||
.admin-table td { display: flex; align-items: center; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.88rem; }
|
||||
.admin-table td:last-child { border-bottom: none; }
|
||||
.admin-table td:first-child { justify-content: flex-end; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); margin-bottom: 0.4rem; }
|
||||
.search-box { max-width: 100%; }
|
||||
.admin-table tbody tr { background: var(--surface-card); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 1rem; padding: 1rem; position: relative; }
|
||||
|
||||
.admin-table td { border: none; padding: 0.3rem 0; text-align: left; }
|
||||
.admin-table td:nth-child(1) { position: absolute; top: 1rem; right: 1rem; }
|
||||
.admin-table td:nth-child(2) { font-size: 1.1rem; color: var(--gold); padding-right: 2.5rem; margin-bottom: 0.5rem; }
|
||||
.admin-table td:nth-child(3)::before { content: '🗓 '; opacity: 0.7; }
|
||||
.admin-table td:nth-child(4)::before { content: '🎬 '; opacity: 0.7; }
|
||||
.admin-table td:nth-child(5) { margin-top: 0.5rem; }
|
||||
.admin-table td:nth-child(6) { margin-top: 1rem; border-top: 1px dashed var(--border); padding-top: 1rem; text-align: left !important; }
|
||||
.tbl-actions { justify-content: flex-start; }
|
||||
}
|
||||
Reference in New Issue
Block a user