From 37169c4f9b7edbcf0b3195ea2e863e52c5204a5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Tue, 10 Sep 2024 15:00:27 +0200 Subject: [PATCH] align last column to the right --- games/static/base.css | 8 ++++++++ games/templates/cotton/table_row.html | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/games/static/base.css b/games/static/base.css index 0d71b12..e4d1faa 100644 --- a/games/static/base.css +++ b/games/static/base.css @@ -3188,6 +3188,10 @@ textarea:disabled:is(.dark *) { border-end-end-radius: 0.5rem; } +.\[\&_\:last-child\]\:text-right :last-child { + text-align: right; +} + .\[\&_a\]\:underline a { text-decoration-line: underline; } @@ -3203,3 +3207,7 @@ textarea:disabled:is(.dark *) { .\[\&_h1\]\:mb-2 h1 { margin-bottom: 0.5rem; } + +.\[\&_td\]\:last-of-type\:text-right:last-of-type td { + text-align: right; +} diff --git a/games/templates/cotton/table_row.html b/games/templates/cotton/table_row.html index 2610d9a..c2d9c7d 100644 --- a/games/templates/cotton/table_row.html +++ b/games/templates/cotton/table_row.html @@ -1,4 +1,4 @@ - + {% if slot %} {{ slot }} {% else %}