Semaine 11

This commit is contained in:
gauvainboiche
2026-07-11 21:38:00 +02:00
parent d3d2416dea
commit 0d071d2843
281 changed files with 54412 additions and 0 deletions
@@ -0,0 +1,63 @@
:root {
--bg: #f5f5f7;
--card: #ffffff;
--border: #d2d2d7;
--accent: #0071e3;
--danger: #ff3b30;
--success: #34c759;
}
body { font-family: -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); margin: 2rem; }
nav { margin-bottom: 1.5rem; }
nav a { color: var(--accent); text-decoration: none; margin-right: 1rem; }
.flash { padding: .75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.flash-success { background: #d1f5d3; color: #0a6b1f; }
.flash-error { background: #ffd5d2; color: #a0190d; }
form { background: var(--card); padding: 1.5rem; border-radius: 8px; border: 1px solid var(--border); }
form label { display: block; margin-bottom: .75rem; }
form input, form select { padding: .5rem; border: 1px solid var(--border); border-radius: 4px; }
fieldset { margin-top: 1rem; border: 1px solid var(--border); padding: 1rem; border-radius: 6px; }
.interface-row { display: flex; gap: .5rem; margin-bottom: .5rem; }
.interface-row input { flex: 1; }
.equipment-grid { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.equipment { background: var(--card); padding: 1rem; border-radius: 8px; border: 1px solid var(--border); }
.equipment.inactive { opacity: .6; }
.equipment header { display: flex; justify-content: space-between; align-items: center; }
.badge { background: var(--accent); color: white; padding: .2rem .6rem; border-radius: 12px; font-size: .8rem; }
.equipment footer { display: flex; gap: .5rem; margin-top: 1rem; }
.equipment footer form { flex: 1; padding: 0; border: none; background: none; }
.equipment button { width: 100%; padding: .5rem; border: none; border-radius: 4px; cursor: pointer; color: white; }
.btn-toggle { background: var(--accent); }
.btn-delete { background: var(--danger); }
.empty { color: #6e6e73; font-style: italic; }
.equipments-table {
width: 100%;
border-collapse: collapse;
margin-top: 1rem;
}
.equipments-table th,
.equipments-table td {
border: 1px solid #ddd;
padding: 0.5rem 0.75rem;
text-align: left;
vertical-align: top;
}
.equipments-table thead {
background: #f4f4f4;
}
.equipments-table .row-inactive {
opacity: 0.6;
background: #fafafa;
}
.status {
font-weight: 600;
}
.status-active { color: #1a7f37; }
.status-inactive { color: #b42318; }
.actions form { display: inline-block; margin-right: 0.25rem; }
.interfaces-list { margin: 0; padding-left: 1rem; }