From eaeca6f328d59a9518289f7db05654b8e5848f9a Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Tue, 3 May 2022 15:59:28 +0100 Subject: [PATCH] Move dd scroll hack to .content scope Bug: T304148 Change-Id: I24090527206e4ff7d53c5256cce1bd9981be8ae9 --- .../content/lists.less | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/resources/skins.minerva.base.styles/content/lists.less b/resources/skins.minerva.base.styles/content/lists.less index aaa00d641..c3438d48b 100644 --- a/resources/skins.minerva.base.styles/content/lists.less +++ b/resources/skins.minerva.base.styles/content/lists.less @@ -33,16 +33,8 @@ } } /* stylelint-enable no-descending-specificity */ -} -dl { - margin-left: 1em; - - dt { - font-weight: bold; - } - - dd { + dl dd { display: block; // Some dd's may contain images so these need to be scrollable // Text will not become scrollable. @@ -50,3 +42,12 @@ dl { overflow: auto; } } + +/* As in Vector, indenting of definition lists, and bolding of defintion terms is generically useful */ +dl { + margin-left: 1em; + + dt { + font-weight: bold; + } +}