onébien
This commit is contained in:
parent
4c5d8f4414
commit
d3c6bd4edb
58
index.html
58
index.html
@ -254,27 +254,6 @@
|
|||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.add-controls {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
margin-left: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.add-btn, .remove-btn {
|
|
||||||
width: 20px;
|
|
||||||
height: 20px;
|
|
||||||
padding: 0;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
background-color: #e5e7eb;
|
|
||||||
border-radius: 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.add-btn:hover {
|
|
||||||
background-color: #d1d5db;
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal {
|
.modal {
|
||||||
display: none;
|
display: none;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@ -337,6 +316,37 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 40px;
|
width: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media print {
|
||||||
|
body {
|
||||||
|
background: white;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Tout cacher */
|
||||||
|
body * {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Sauf la grille */
|
||||||
|
.grid-container,
|
||||||
|
.grid-container * {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid-container {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
box-shadow: none;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cell {
|
||||||
|
border: 1px solid #000;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@ -974,12 +984,6 @@
|
|||||||
window._cellEls[rowIndex][colIndex] = cellEl;
|
window._cellEls[rowIndex][colIndex] = cellEl;
|
||||||
});
|
});
|
||||||
|
|
||||||
// Bouton d'ajout de colonne
|
|
||||||
const addColBtn = document.createElement('div');
|
|
||||||
addColBtn.className = 'add-controls';
|
|
||||||
addColBtn.innerHTML = '<button class="add-btn" onclick="addColumn()">+</button>';
|
|
||||||
rowEl.appendChild(addColBtn);
|
|
||||||
|
|
||||||
gridEl.appendChild(rowEl);
|
gridEl.appendChild(rowEl);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user