From c346bc64f24f01ae40b75a8a4ae03747d014266f Mon Sep 17 00:00:00 2001 From: Volpeon Date: Mon, 30 Jan 2023 07:20:47 +0100 Subject: Update --- src/scopes/_blockquotes.scss | 10 ++++++++++ src/scopes/_lists.scss | 15 +++++++++++++++ 2 files changed, 25 insertions(+) (limited to 'src/scopes') diff --git a/src/scopes/_blockquotes.scss b/src/scopes/_blockquotes.scss index 3525cc3..5383bd7 100644 --- a/src/scopes/_blockquotes.scss +++ b/src/scopes/_blockquotes.scss @@ -6,6 +6,10 @@ --dims: ( --indent: fn.global-dim(--list --indent), --margin-top: fn.global-dim(--paragraph --margin-top), + + --compact: ( + --indent: fn.global-dim(--list --compact-indent), + ), ) ), 'dims'); @@ -21,5 +25,11 @@ padding-left: calc(fn.dim(--indent) - 3px); border-left: 3px solid fn.color(--border); } + + @include iro.bem-modifier('compact') { + blockquote { + padding-left: calc(fn.dim(--compact --indent) - 3px); + } + } } } 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