From 0e878494156e26e429b22b10ca31326156891cff Mon Sep 17 00:00:00 2001 From: tetrapod00 <145553014+tetrapod00@users.noreply.github.com> Date: Tue, 28 Jan 2025 23:24:49 -0800 Subject: [PATCH] Fix video alignment after dependency update --- _static/css/custom.css | 8 ++++++++ contributing/documentation/docs_image_guidelines.rst | 1 + tutorials/2d/2d_parallax.rst | 1 + tutorials/3d/csg_tools.rst | 1 + tutorials/3d/spring_arm.rst | 1 + 5 files changed, 12 insertions(+) diff --git a/_static/css/custom.css b/_static/css/custom.css index 5a57b8b4a..7573afeb4 100644 --- a/_static/css/custom.css +++ b/_static/css/custom.css @@ -1844,3 +1844,11 @@ p + .classref-constant { #godot-giscus { margin-bottom: 1em; } + +/** Center videos embedded using the sphinxcontrib-video plugin. + * That plugin makes assumptions about `align-center` and `align-left` that our + * theme does not follow, so we set the `align-default` class instead to avoid + * collisions and have full control of how videos are aligned. */ +.align-default { + text-align: center +} diff --git a/contributing/documentation/docs_image_guidelines.rst b/contributing/documentation/docs_image_guidelines.rst index 7be6c25c7..adfeea796 100644 --- a/contributing/documentation/docs_image_guidelines.rst +++ b/contributing/documentation/docs_image_guidelines.rst @@ -242,6 +242,7 @@ videos should be included with the following code snippet:: :autoplay: :loop: :muted: + :align: default Where ``documentation_video.webp`` would be changed to the name of the video you created. Name your videos in a way that makes their meaning clear, possibly with diff --git a/tutorials/2d/2d_parallax.rst b/tutorials/2d/2d_parallax.rst index a1dc370ae..7b7f1f4bb 100644 --- a/tutorials/2d/2d_parallax.rst +++ b/tutorials/2d/2d_parallax.rst @@ -45,6 +45,7 @@ The video below displays how these values affect scrolling while in-game: :autoplay: :loop: :muted: + :align: default Infinite repeat --------------- diff --git a/tutorials/3d/csg_tools.rst b/tutorials/3d/csg_tools.rst index a398057be..278cb5dc7 100644 --- a/tutorials/3d/csg_tools.rst +++ b/tutorials/3d/csg_tools.rst @@ -27,6 +27,7 @@ Interior environments can be created by using inverted primitives. :autoplay: :loop: :muted: + :align: default .. seealso:: diff --git a/tutorials/3d/spring_arm.rst b/tutorials/3d/spring_arm.rst index 40eee878d..b13167baf 100644 --- a/tutorials/3d/spring_arm.rst +++ b/tutorials/3d/spring_arm.rst @@ -121,3 +121,4 @@ Run the game and notice that mouse movement now rotates the camera around the ch :autoplay: :loop: :muted: + :align: default