From c346bc64f24f01ae40b75a8a4ae03747d014266f Mon Sep 17 00:00:00 2001 From: Volpeon Date: Mon, 30 Jan 2023 07:20:47 +0100 Subject: Update --- src/scopes/_lists.scss | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/scopes/_lists.scss') diff --git a/src/scopes/_lists.scss b/src/scopes/_lists.scss index dd47b93..1322f2d 100644 --- a/src/scopes/_lists.scss +++ b/src/scopes/_lists.scss @@ -6,6 +6,10 @@ --dims: ( --indent: calc(fn.global-dim(--list --indent) + 1em), --margin-top: fn.global-dim(--paragraph --margin-top), + + --compact: ( + --indent: fn.global-dim(--list --compact-indent), + ), ) ), 'dims'); @@ -48,5 +52,16 @@ dd { margin: 0 0 0 fn.dim(--indent); } + + @include iro.bem-modifier('compact') { + ul, + ol { + padding-left: calc(fn.dim(--compact --indent) - 3px); + } + + dd { + margin-left: calc(fn.dim(--compact --indent) - 3px); + } + } } } -- cgit v1.2.3-70-g09d2