Skip to content

Commit 33402a1

Browse files
committed
Fix width of videos with a style, as video does not support percentages
1 parent cacaebc commit 33402a1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/_static/custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,4 +461,8 @@ div.viewcode-block:target {
461461
#main-content ol > li > p:nth-child(n+2),
462462
#main-content ul > li > p:nth-child(n+2) {
463463
margin-top: 1em;
464+
}
465+
466+
video {
467+
width: 100%;
464468
}

docs/contributing/myst-reference.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@ Example MyST syntax is shown below.
261261

262262
````md
263263
```{video} /_static/user-manual/blocks/block-copy-cut.mp4
264-
:width: 100
265264
```
266265
````
267266

@@ -270,7 +269,6 @@ Don't use file-relative paths.
270269
The above MyST markup renders as shown below.
271270

272271
```{video} /_static/user-manual/blocks/block-copy-cut.mp4
273-
:width: 100
274272
```
275273

276274

0 commit comments

Comments
 (0)