From 46bd1c76b9e9ab8b124601df7f5cc4a01248f1de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexa=20Valentov=C3=A1?= <git@imaniti.org> Date: Wed, 12 Mar 2025 13:17:46 +0100 Subject: [PATCH] Update centering --- .../includes/atoms/buttons/round_button_block.html | 13 ++++++++++++- .../includes/atoms/youtube_video/youtube_video.html | 4 ++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/shared/templates/styleguide2/includes/atoms/buttons/round_button_block.html b/shared/templates/styleguide2/includes/atoms/buttons/round_button_block.html index d584fec4..c1a749b5 100644 --- a/shared/templates/styleguide2/includes/atoms/buttons/round_button_block.html +++ b/shared/templates/styleguide2/includes/atoms/buttons/round_button_block.html @@ -1,5 +1,16 @@ {% firstof self.page.url self.link as link %} -<div class="py-4 {% if self.align == 'center' %}flex justify-center items-center max-w-[100ch]{% endif %}"> + +<div + class=" + {% if page.root_page.content_is_centered %} + mx-auto + {% endif %} + + py-4 + + {% if self.align == 'center' %}flex justify-center items-center max-w-[100ch]{% endif %} + " +> {% include "styleguide2/includes/atoms/buttons/round_button.html" with url=link size=self.size text=self.title show_arrow_on_hover=self.hoveractive classes=color_classes %} </div> diff --git a/shared/templates/styleguide2/includes/atoms/youtube_video/youtube_video.html b/shared/templates/styleguide2/includes/atoms/youtube_video/youtube_video.html index 90aee17c..3df56743 100644 --- a/shared/templates/styleguide2/includes/atoms/youtube_video/youtube_video.html +++ b/shared/templates/styleguide2/includes/atoms/youtube_video/youtube_video.html @@ -12,6 +12,10 @@ max-w-[100ch] {% endif %} + {% if page.root_page.content_is_centered %} + mx-auto + {% endif %} + group text-center rounded cursor-pointer -- GitLab