A bit of styling
This commit is contained in:
parent
befbf7c485
commit
2e08db40b6
@ -4,7 +4,7 @@
|
|||||||
/* Themes used: Catppuccin Latte & Moccha
|
/* Themes used: Catppuccin Latte & Moccha
|
||||||
* https://github.com/catppuccin/catppuccin */
|
* https://github.com/catppuccin/catppuccin */
|
||||||
|
|
||||||
/* Dark theme: Catpuccin Mocha */
|
/* Dark theme: Catpuccin Mocha
|
||||||
:root {
|
:root {
|
||||||
--color-rosewater: #f5e0dc;
|
--color-rosewater: #f5e0dc;
|
||||||
--color-flamingo: #f2cdcd;
|
--color-flamingo: #f2cdcd;
|
||||||
@ -34,10 +34,10 @@
|
|||||||
--color-crust: #11111b;
|
--color-crust: #11111b;
|
||||||
--color-action: #333d5d;
|
--color-action: #333d5d;
|
||||||
--font-family: Iosevka Web;
|
--font-family: Iosevka Web;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
/* Light theme: Catppuccin Latte */
|
/* Light theme: Catppuccin Latte */
|
||||||
@media (prefers-color-scheme: light) {
|
/*@media (prefers-color-scheme: light) {*/
|
||||||
:root {
|
:root {
|
||||||
--color-rosewater: #dc8a78;
|
--color-rosewater: #dc8a78;
|
||||||
--color-flamingo: #dd7878;
|
--color-flamingo: #dd7878;
|
||||||
@ -67,7 +67,7 @@
|
|||||||
--color-crust: #dce0e8;
|
--color-crust: #dce0e8;
|
||||||
--color-action: #cdd6f4;
|
--color-action: #cdd6f4;
|
||||||
}
|
}
|
||||||
}
|
/*}*/
|
||||||
|
|
||||||
* {
|
* {
|
||||||
font-family: var(--font-family);
|
font-family: var(--font-family);
|
||||||
@ -285,3 +285,17 @@ dialog {
|
|||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table tr td {
|
||||||
|
border-right: 2px solid var(--color-crust);
|
||||||
|
padding: 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
table tr td:last-of-type {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#table-container {
|
||||||
|
max-width: 100vw;
|
||||||
|
overflow-x: scroll;
|
||||||
|
}
|
||||||
|
@ -40,31 +40,33 @@
|
|||||||
<input type="submit" value="Ajouter">
|
<input type="submit" value="Ajouter">
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<table id="books-table">
|
<div id="table-container">
|
||||||
<tr>
|
<table id="books-table">
|
||||||
<th>ISBN</th>
|
<tr>
|
||||||
<th>Titre</th>
|
<th>ISBN</th>
|
||||||
<th>Auteur</th>
|
<th>Titre</th>
|
||||||
<th>Date</th>
|
<th>Auteur</th>
|
||||||
<th>Éditeur</th>
|
<th>Date</th>
|
||||||
<th>Quantité</th>
|
<th>Éditeur</th>
|
||||||
<th>Actions</th>
|
<th>Quantité</th>
|
||||||
</tr>
|
<th>Actions</th>
|
||||||
{% for book in books %}
|
</tr>
|
||||||
<tr>
|
{% for book in books %}
|
||||||
<td>{{ book.isbn }}</td>
|
<tr>
|
||||||
<td><p {% if book.title == None %}class="red"{% endif %}>{{ book.title }}</p></td>
|
<td>{{ book.isbn }}</td>
|
||||||
<td><p {% if book.author == None %}class="red"{% endif %}>{{ book.author }}</p></td>
|
<td><p {% if book.title == None %}class="red"{% endif %}>{{ book.title }}</p></td>
|
||||||
<td><p {% if book.publish_date == None %}class="red"{% endif %}>{{ book.publish_date }}</p></td>
|
<td><p {% if book.author == None %}class="red"{% endif %}>{{ book.author }}</p></td>
|
||||||
<td><p {% if book.publisher == None %}class="red"{% endif %}>{{ book.publisher }}</p></td>
|
<td><p {% if book.publish_date == None %}class="red"{% endif %}>{{ book.publish_date }}</p></td>
|
||||||
<td><p {% if book.count != 1 %}class="red"{% endif %}>{{ book.count }}</p></td>
|
<td><p {% if book.publisher == None %}class="red"{% endif %}>{{ book.publisher }}</p></td>
|
||||||
<td>
|
<td><p {% if book.count != 1 %}class="red"{% endif %}>{{ book.count }}</p></td>
|
||||||
<button class="action" onclick="edit_book({{ book.isbn }})">✏️</button>
|
<td>
|
||||||
<button class="action" onclick="delete_book({{ book.isbn }})">🗑️</button>
|
<button class="action" onclick="edit_book({{ book.isbn }})">✏️</button>
|
||||||
</td>
|
<button class="action" onclick="delete_book({{ book.isbn }})">🗑️</button>
|
||||||
</tr>
|
</td>
|
||||||
{% endfor %}
|
</tr>
|
||||||
</table>
|
{% endfor %}
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
<a href="/export-csv" download="books.csv">Exporter en CSV</a>
|
<a href="/export-csv" download="books.csv">Exporter en CSV</a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user