From 2e08db40b60a49061d12bfb03054fe8f191f865d Mon Sep 17 00:00:00 2001 From: augustin64 Date: Thu, 4 Apr 2024 12:48:41 +0200 Subject: [PATCH] A bit of styling --- static/style.css | 24 +++++++++++++++----- templates/index.html | 52 +++++++++++++++++++++++--------------------- 2 files changed, 46 insertions(+), 30 deletions(-) diff --git a/static/style.css b/static/style.css index b1c8cae..ecf4826 100644 --- a/static/style.css +++ b/static/style.css @@ -4,7 +4,7 @@ /* Themes used: Catppuccin Latte & Moccha * https://github.com/catppuccin/catppuccin */ -/* Dark theme: Catpuccin Mocha */ +/* Dark theme: Catpuccin Mocha :root { --color-rosewater: #f5e0dc; --color-flamingo: #f2cdcd; @@ -34,10 +34,10 @@ --color-crust: #11111b; --color-action: #333d5d; --font-family: Iosevka Web; -} +}*/ /* Light theme: Catppuccin Latte */ -@media (prefers-color-scheme: light) { +/*@media (prefers-color-scheme: light) {*/ :root { --color-rosewater: #dc8a78; --color-flamingo: #dd7878; @@ -67,7 +67,7 @@ --color-crust: #dce0e8; --color-action: #cdd6f4; } -} +/*}*/ * { font-family: var(--font-family); @@ -284,4 +284,18 @@ dialog { #add-book { max-width: 300px; margin: auto; -} \ No newline at end of file +} + +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; +} diff --git a/templates/index.html b/templates/index.html index 9d7a1ee..25ab85b 100644 --- a/templates/index.html +++ b/templates/index.html @@ -40,31 +40,33 @@ - - - - - - - - - - - {% for book in books %} - - - - - - - - - - {% endfor %} -
ISBNTitreAuteurDateÉditeurQuantitéActions
{{ book.isbn }}

{{ book.title }}

{{ book.author }}

{{ book.publish_date }}

{{ book.publisher }}

{{ book.count }}

- - -
+
+ + + + + + + + + + + {% for book in books %} + + + + + + + + + + {% endfor %} +
ISBNTitreAuteurDateÉditeurQuantitéActions
{{ book.isbn }}

{{ book.title }}

{{ book.author }}

{{ book.publish_date }}

{{ book.publisher }}

{{ book.count }}

+ + +
+

Exporter en CSV {% endblock %}