From dbcd369ba2dab35f0575b894d83a6d7a7bcadb7c Mon Sep 17 00:00:00 2001 From: Will Martin Date: Thu, 19 Oct 2023 23:38:48 -0400 Subject: [PATCH] [CL-137] add temporary CSS reset for cross-client styles (#6626) --- libs/components/src/reset.css | 16 ++++++++++++++++ libs/components/src/table/table.component.css | 4 ---- libs/components/src/tw-theme.css | 3 ++- 3 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 libs/components/src/reset.css delete mode 100644 libs/components/src/table/table.component.css diff --git a/libs/components/src/reset.css b/libs/components/src/reset.css new file mode 100644 index 0000000000..51d9041b5f --- /dev/null +++ b/libs/components/src/reset.css @@ -0,0 +1,16 @@ +/** + * Reset styles to be consistent with Bootstrap reset + * Reassess when Bootstrap is removed and Tailwind preflight is added +*/ + +fieldset { + min-width: 0; + padding: 0; + margin: 0; + border: 0; +} + +th { + text-align: inherit; + text-align: -webkit-match-parent; +} diff --git a/libs/components/src/table/table.component.css b/libs/components/src/table/table.component.css deleted file mode 100644 index e764a9130e..0000000000 --- a/libs/components/src/table/table.component.css +++ /dev/null @@ -1,4 +0,0 @@ -th { - text-align: inherit; - text-align: -webkit-match-parent; -} diff --git a/libs/components/src/tw-theme.css b/libs/components/src/tw-theme.css index 14b5fcb433..b2fa2bddce 100644 --- a/libs/components/src/tw-theme.css +++ b/libs/components/src/tw-theme.css @@ -1,3 +1,5 @@ +@import "./reset.css"; + :root { --color-transparent-hover: rgb(0 0 0 / 0.03); @@ -159,7 +161,6 @@ } @import "./search/search.component.css"; -@import "./table/table.component.css"; /** * tw-break-words does not work with table cells: