🎨 CSS custom properties#
sc-videos defines CSS custom properties (variables) on :root that you can override in your project's theme to restyle the video player and widgets without modifying the add-on source.
🎬 Video player#
Variable |
Default |
Description |
|---|---|---|
|
|
Background color shown when no preview image is available. |
|
|
Size of the play button icon overlay. |
|
|
Background of the circular play button. |
|
|
Play button background on hover and focus. |
🔧 Widgets#
Variable |
Default |
Description |
|---|---|---|
|
|
Fill color of the clear (✕) button SVG icon in the |
📝 Usage#
Override these in your project's SCSS or CSS:
:root {
--video-player-fallback-bg: #000;
--video-player-play-bg: rgba(255, 255, 255, 0.3);
--video-player-play-bg-hover: rgba(255, 255, 255, 0.5);
--video-url-widget-cancel: #e40166;
}
Variables are defined in frontend/packages/volto-videos/src/theme/_root.scss.
See also
🎨 Customize the video player. Step-by-step theming guide.
🧱 Volto blocks. Block sizing and alignment options.