AxL95's picture
Update frontend/src/components/AdminPanel.css
1cdc1bc verified
raw
history blame
2.97 kB
/*** ADMIN ***/
.admin-panel {
background-color: #f8f9fa;
min-height: 100vh;
padding: 20px;
width: 100%; /* Assurer que le panneau prend toute la largeur */
max-width: 100%; /* Empêcher tout dépassement */
box-sizing: border-box; /* Inclure le padding dans la largeur totale */
position: absolute; /* Position absolue pour sortir des contraintes du parent */
left: 0;
right: 0;
}
/* Ajuster la disposition des éléments dans l'en-tête pour la largeur complète */
.admin-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
padding-bottom: 15px;
border-bottom: 1px solid #ddd;
width: 100%;
}
.admin-user-info {
display: flex;
align-items: center;
gap: 15px;
}
.logout-btn {
background-color: #dc3545;
color: white;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
}
.admin-content {
display: flex;
flex-direction: column;
gap: 30px;
width: 100%;
}
.admin-section {
width: 100%;
box-sizing: border-box;
}
.upload-form {
display: flex;
flex-direction: column;
gap: 15px;
max-width: 600px;
}
.form-group {
display: flex;
flex-direction: column;
gap: 5px;
}
.form-group label {
font-weight: bold;
}
.form-group input[type="text"] {
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
}
.upload-btn {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px;
border-radius: 4px;
cursor: pointer;
max-width: 200px;
}
.upload-status {
padding: 10px;
border-radius: 4px;
margin-top: 10px;
}
.upload-status.success {
background-color: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.upload-status.error {
background-color: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
.documents-table {
width: 100%;
border-collapse: collapse;
table-layout: fixed; /* Maintenir une répartition égale des colonnes */
}
.documents-table th, .documents-table td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #ddd;
}
.documents-table th, .documents-table td {
word-break: break-word; /* Empêcher le texte de faire déborder le tableau */
}
.documents-table th {
background-color: #f2f2f2;
font-weight: bold;
}
.delete-btn {
background-color: #dc3545;
color: white;
border: none;
padding: 6px 10px;
border-radius: 4px;
cursor: pointer;
}
.error-message {
color: #721c24;
background-color: #f8d7da;
padding: 10px;
border-radius: 4px;
border: 1px solid #f5c6cb;
}
.back-btn {
background-color: #4285f4;
color: white;
border: none;
padding: 8px 16px;
margin-right: 10px;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
}
.back-btn:hover {
background-color: #2a75f3;
}