sphinx-contrib / video

A sphinx plugin that enables embedding of HTML5 videos
https://sphinxcontrib-video.readthedocs.io
Apache License 2.0
42 stars 29 forks source link

How to set width to "100%"? #41

Closed Guts closed 1 day ago

Guts commented 3 months ago

Hello,

Thanks for your extension.

This following code (I'm using markdown + MyST Parser) is not working:

```{eval-rst}
.. video:: ../_static/qdt_assisted_edition_vscode.webm
  :alt: Your browser does not support HTML 5 video tag.
  :nocontrols:
  :preload: metadata
  :width: 100%
andreasciamanna commented 3 days ago

You can achieve this by adding the following to the custom CSS file:

video {
    max-width: 100%;
}

(I prefer using max-width)

You can narrow the scope with the :class: attribute, of course.

Guts commented 1 day ago

Thanks you!