From 81fc7ade5f4e4ff00c0677dc9a33c547d53e8b5d Mon Sep 17 00:00:00 2001 From: moerp Date: Thu, 1 Feb 2024 17:34:28 +0100 Subject: [PATCH] test --- src/static/style.css | 41 ++++++++++++++++++----------------------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/src/static/style.css b/src/static/style.css index 06fbf4b..8ae4e9e 100644 --- a/src/static/style.css +++ b/src/static/style.css @@ -46,12 +46,26 @@ button#remove-button:not(:disabled):hover { background-color: #490000; /* Dunkleres Rot */ } +table th:first-child { + border-top-left-radius: 10px; +} +table th:last-child { + border-top-right-radius: 10px; +} + +table tr:last-child td:first-child { + border-bottom-left-radius: 10px; +} + +table tr:last-child td:last-child { + border-bottom-right-radius: 10px; +} table { width: 100%; - border-collapse: collapse; - border-radius: 10px; + border-collapse: separate; /* Erlaubt die Anwendung von border-radius */ + border-spacing: 0; } table, th, td { @@ -139,27 +153,7 @@ tr:hover:not(.selected) { } -#nutrition-input-table { - width: 100%; - border-collapse: separate; /* Erlaubt die Anwendung von border-radius */ - border-spacing: 0; /* Entfernt den Abstand zwischen den Zellen */ -} -#nutrition-input-table th:first-child { - border-top-left-radius: 10px; -} - -#nutrition-input-table th:last-child { - border-top-right-radius: 10px; -} - -#nutrition-input-table tr:last-child td:first-child { - border-bottom-left-radius: 10px; -} - -#nutrition-input-table tr:last-child td:last-child { - border-bottom-right-radius: 10px; -} #nutrition-input-table th, #nutrition-input-table td { @@ -189,7 +183,8 @@ tr:hover:not(.selected) { #database-nutrition-table { width: 100%; - border-collapse: collapse; + border-collapse: separate; /* Erlaubt die Anwendung von border-radius */ + border-spacing: 0; } #database-nutrition-table th, #database-nutrition-table td {