From 1cd078317e3276098aca4deda1fd9c2da92c556b Mon Sep 17 00:00:00 2001 From: Peter Savchenko Date: Tue, 13 Sep 2022 18:57:50 +0300 Subject: [PATCH] chore(styles): list and image blocks style improved (#260) * update image margings * upd list style --- src/frontend/styles/components/page.pcss | 14 +++++++++----- src/frontend/styles/components/writing.pcss | 4 ++++ 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/frontend/styles/components/page.pcss b/src/frontend/styles/components/page.pcss index f37596e..dd6d9f2 100644 --- a/src/frontend/styles/components/page.pcss +++ b/src/frontend/styles/components/page.pcss @@ -258,7 +258,11 @@ .block-list { margin: 0; list-style: outside; - padding-left: 26px; + padding-left: 40px; + + &--ordered { + list-style-type: decimal + } li:not(:last-of-type) { margin-bottom: 8px; @@ -270,8 +274,7 @@ * ================== */ .block-image { - margin: 40px auto; - text-align: center; + margin: 0 auto; &__content { img, video { @@ -298,8 +301,9 @@ } &__caption { - margin: 1em auto; - color: var(--color-text-second); + margin-top: 10px; + color: var(--color-text-second); + font-size: 0.9em; } } diff --git a/src/frontend/styles/components/writing.pcss b/src/frontend/styles/components/writing.pcss index c8b77e3..945c694 100644 --- a/src/frontend/styles/components/writing.pcss +++ b/src/frontend/styles/components/writing.pcss @@ -91,6 +91,10 @@ padding: 6px 8px; } + .cdx-list { + padding-left: 40px; + } + @media (--desktop) { .ce-block__content, .ce-toolbar__content {