From 9e705012da60ffa0e4795e10ba30a6ce298372dd Mon Sep 17 00:00:00 2001 From: Ahed Date: Wed, 26 Jul 2023 11:33:39 +0300 Subject: [PATCH] CIWEMB-376: Update default table styles --- scss/civicrm/_variables.scss | 3 +++ scss/civicrm/common/_tables.scss | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/scss/civicrm/_variables.scss b/scss/civicrm/_variables.scss index 6f8a3508..46f5104c 100644 --- a/scss/civicrm/_variables.scss +++ b/scss/civicrm/_variables.scss @@ -1,5 +1,8 @@ $crm-standard-gap: 20px; $crm-table-form-cell-padding: 4px; +$crm-table-cell-line-height: 18px; +$crm-table-cell-padding: 16px 10px; +$crm-table-first-cell-padding-left: 20px; $crm-contact-info-block-min-height: 60px; $crm-contact-info-block-padding-top: 20px; diff --git a/scss/civicrm/common/_tables.scss b/scss/civicrm/common/_tables.scss index 98de058b..592aedb8 100644 --- a/scss/civicrm/common/_tables.scss +++ b/scss/civicrm/common/_tables.scss @@ -34,7 +34,17 @@ table { tr td { border: initial; border-bottom: solid 1px $table-border-color; - line-height: 35px; + line-height: $crm-table-cell-line-height; + } + + tr > th:first-child, + tr > td:first-child { + padding-left: $crm-table-first-cell-padding-left; + } + + tr > td, + tr > th { + padding: $crm-table-cell-padding; } tr:last-child {