From 46ffc7a73dd16346cad341de9f0287a2a7cbf978 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Tue, 7 Mar 2023 12:39:29 +0800 Subject: [PATCH] Changed the display style of the rows in the income statement from grid to flex, to simplify the layout. --- src/accounting/static/css/style.css | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/accounting/static/css/style.css b/src/accounting/static/css/style.css index 5527eaa..5841995 100644 --- a/src/accounting/static/css/style.css +++ b/src/accounting/static/css/style.css @@ -172,10 +172,8 @@ a.accounting-report-table-row { border-bottom: thick double slategray; } .accounting-income-statement-table .accounting-report-table-row { - grid-template-columns: 3fr 1fr; -} -.accounting-income-statement-table .accounting-report-table-header .accounting-report-table-row, .accounting-income-statement-table .accounting-report-table-row.accounting-income-statement-category, .accounting-income-statement-table .accounting-report-table-row.accounting-income-statement-subcategory { - grid-template-columns: 1fr; + display: flex; + justify-content: space-between; } .accounting-income-statement-category, .accounting-income-statement-total { font-size: 1.2rem; @@ -190,6 +188,7 @@ a.accounting-report-table-row { /* Indents */ .accounting-income-statement-subcategory { margin-left: 0.5rem; + margin-right: 0.5rem; } .accounting-income-statement-account, .accounting-income-statement-subtotal { margin-left: 1rem;