Files
suivi_achat/public/style.css
2025-01-03 09:19:18 +01:00

147 lines
2.6 KiB
CSS

/* Général */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
color: #333;
height: 100vh;
display: flex;
flex-direction: column;
overflow-x: hidden;
}
/* En-tête fixe */
.header {
position: fixed;
top: 0;
width: 100%;
height: 60px;
background-color: #555;
color: white;
padding: 10px 15px;
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
z-index: 1000;
}
.header-row {
display: flex;
justify-content: space-between;
align-items: center;
}
#datetime {
font-size: 16px;
font-weight: bold;
}
/* Bouton "+" */
.add-row-button {
position: fixed;
top: 70px;
right: 15px;
z-index: 2000;
padding: 10px 22px;
background-color: #007bff;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 20px;
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}
.add-row-button:hover {
background-color: #0056b3;
}
/* Section centrale défilante */
.articles {
position: relative;
top: 120px;
bottom: 60px;
padding: 10px;
overflow-y: auto;
background-color: #e9ecef;
flex: 1;
}
#articles-scroll {
overflow-x: auto;
width: 100%;
}
#articles-table {
width: 100%; /* Ajuste la table à 100% de la zone disponible */
border-collapse: collapse;
margin: auto;
}
#articles-table th,
#articles-table td {
border: 1px solid #ddd;
padding: 8px;
text-align: center;
font-size: 14px; /* Taille plus petite pour éviter les débordements */
}
#articles-table th {
width: 20%;
}
#articles-table td input,
#articles-table td select {
padding: 5px;
font-size: 16px; /* Taille réduite */
width: 90%;
box-sizing: border-box; /* Pour garantir que la largeur reste contrôlée */
}
#articles-table td input[type="radio"] {
cursor: pointer;
}
#articles-table tbody tr:nth-child(even) {
background-color: #f9f9f9;
}
/* Pied de page fixe */
.footer {
position: fixed;
bottom: 0;
width: 100%;
height: 60px;
background-color: #555;
color: white;
padding: 15px 20px;
box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
z-index: 1000;
}
.footer-content {
display: flex;
justify-content: space-between;
align-items: center;
}
.totals p {
margin: 0;
font-size: 18px;
padding-left: 15px;
}
#save {
margin-right: 20px;
padding: 12px 25px;
background-color: #28a745;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 18px;
}
#save:hover {
background-color: #218838;
}