From b41efab496ce49192c70068925e53eb9cce0a0ac Mon Sep 17 00:00:00 2001 From: John Cowen Date: Wed, 9 Sep 2020 09:12:56 +0100 Subject: [PATCH] ui: Move %definition-table to use CSS grid (#8629) --- .../components/definition-table/layout.scss | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/ui-v2/app/styles/components/definition-table/layout.scss b/ui-v2/app/styles/components/definition-table/layout.scss index 8af08c50d4..c90c209da6 100644 --- a/ui-v2/app/styles/components/definition-table/layout.scss +++ b/ui-v2/app/styles/components/definition-table/layout.scss @@ -1,16 +1,5 @@ %definition-table > dl { - position: relative; -} -%definition-table > dl > dt { - position: absolute; -} -%definition-table > dl > dt { - width: 140px; -} -%definition-table > dl > dd { - padding-left: 140px; -} -%definition-table > dl > * { - min-height: 1em; - margin-bottom: 0.4em; + display: grid; + grid-template-columns: 140px auto; + grid-gap: 0.4em 20px; }