From 871b6f430328e97d4079dec801211d4388e9e886 Mon Sep 17 00:00:00 2001 From: "jindra12.underdark" <jindra12.underdark@gmail.com> Date: Sat, 1 Jul 2023 15:27:12 +0200 Subject: [PATCH] Bugfixes after edit #209 --- donate/static/donate/assets/css/style.css | 6 +++--- donate/wagtail_hooks.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/donate/static/donate/assets/css/style.css b/donate/static/donate/assets/css/style.css index f63d0d44..4363a1cd 100644 --- a/donate/static/donate/assets/css/style.css +++ b/donate/static/donate/assets/css/style.css @@ -1204,12 +1204,12 @@ img.full-width { font-weight: inherit; } -/* OVERRIDE RICHTEXT IMAGES FOR MAIN PAGE (TODO: find out if we can apply this to all richtext images in donate */ -.section--custom .richtext-image.left { +/* OVERRIDE RICHTEXT IMAGES */ +.richtext-image.left { float: left; margin-right: 1.5rem; } -.section--custom .richtext-image.right { +.richtext-image.right { float: right; margin-left: 1.5rem; } diff --git a/donate/wagtail_hooks.py b/donate/wagtail_hooks.py index 37302522..d1377bcf 100644 --- a/donate/wagtail_hooks.py +++ b/donate/wagtail_hooks.py @@ -28,7 +28,7 @@ def register_font_color_feature(features): for color_name, color_value in font_colors: feature_name = "font_color_" + color_value type_ = "FONT_COLOR_" + color_value - tag = "span" + tag = f"span{color_name.lower()}" # This must be a "custom" HTML element in order for wagtail to correctly save it :-) control = { "type": type_, -- GitLab