Skip to content

Commit 36359b2

Browse files
authored
Merge pull request #10566 from tetrapod00/fix-video-align
Fix video alignment after dependency update
2 parents 7813926 + 0e87849 commit 36359b2

File tree

5 files changed

+12
-0
lines changed

5 files changed

+12
-0
lines changed

_static/css/custom.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,3 +1844,11 @@ p + .classref-constant {
18441844
#godot-giscus {
18451845
margin-bottom: 1em;
18461846
}
1847+
1848+
/** Center videos embedded using the sphinxcontrib-video plugin.
1849+
* That plugin makes assumptions about `align-center` and `align-left` that our
1850+
* theme does not follow, so we set the `align-default` class instead to avoid
1851+
* collisions and have full control of how videos are aligned. */
1852+
.align-default {
1853+
text-align: center
1854+
}

contributing/documentation/docs_image_guidelines.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ videos should be included with the following code snippet::
242242
:autoplay:
243243
:loop:
244244
:muted:
245+
:align: default
245246

246247
Where ``documentation_video.webp`` would be changed to the name of the video you
247248
created. Name your videos in a way that makes their meaning clear, possibly with

tutorials/2d/2d_parallax.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ The video below displays how these values affect scrolling while in-game:
5454
:autoplay:
5555
:loop:
5656
:muted:
57+
:align: default
5758

5859
Infinite repeat
5960
---------------

tutorials/3d/csg_tools.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Interior environments can be created by using inverted primitives.
2727
:autoplay:
2828
:loop:
2929
:muted:
30+
:align: default
3031

3132
.. seealso::
3233

tutorials/3d/spring_arm.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,4 @@ Run the game and notice that mouse movement now rotates the camera around the ch
121121
:autoplay:
122122
:loop:
123123
:muted:
124+
:align: default

0 commit comments

Comments
 (0)