A bit of styling

This commit is contained in:
augustin64 2024-04-04 12:48:41 +02:00
parent befbf7c485
commit 2e08db40b6
2 changed files with 46 additions and 30 deletions

View File

@ -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;
}

View File

@ -40,6 +40,7 @@
<input type="submit" value="Ajouter"> <input type="submit" value="Ajouter">
</form> </form>
</div> </div>
<div id="table-container">
<table id="books-table"> <table id="books-table">
<tr> <tr>
<th>ISBN</th> <th>ISBN</th>
@ -65,6 +66,7 @@
</tr> </tr>
{% endfor %} {% endfor %}
</table> </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 %}