Media

The media.css file provides styling for all media elements such as audio and video. It enhances both the UI and UX, especially on Chromium-based browsers.

Examples

Below are some examples of audio and video elements:

Useful Info

Here are some useful details about media elements:

  • Media elements can be customized using CSS variables such as: --radius, --play-button-color, --video-bg, --video-control-bg, and --caption-bg.
  • Apply the .vertical class to media elements to display them in a vertical layout.
  • Use the .fullscreen-cover class to make a video element cover the full screen.
See Example