diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-15 11:33:30 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-15 11:33:30 +0100 |
| commit | 8bf31bcde496852f35a00b847bb50ba05f5386c9 (patch) | |
| tree | 97e8f59e767207d673c3a3381b4e69fa6040a966 /js/videojs/src/css/_icons.scss | |
| parent | dcb7dd852a63d0a84056d3b84e2f05f0b5967900 (diff) | |
| download | themes-8bf31bcde496852f35a00b847bb50ba05f5386c9.tar.gz themes-8bf31bcde496852f35a00b847bb50ba05f5386c9.tar.bz2 themes-8bf31bcde496852f35a00b847bb50ba05f5386c9.zip | |
Add videojs package to javascript library
Diffstat (limited to 'js/videojs/src/css/_icons.scss')
| -rw-r--r-- | js/videojs/src/css/_icons.scss | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/js/videojs/src/css/_icons.scss b/js/videojs/src/css/_icons.scss new file mode 100644 index 0000000..fc0f974 --- /dev/null +++ b/js/videojs/src/css/_icons.scss @@ -0,0 +1,29 @@ +// CSS styles for SVG icons used throughout video.js. +// +// The goal is to replace all icons from the font family pulled from videojs/font entirely. +// This project currently uses fonts. We want to replace this with SVGs from +// images/icons.svg. This will ensure consitency between versions, as well as simplified +// and straight-forward customization. + +// Default styling for all SVG icons +.vjs-svg-icon { + display: inline-block; + background-repeat: no-repeat; + background-position: center; + + fill: currentColor; + height: 1.8em; + width: 1.8em; + + // Overwrite any font content + &:before { + content: none !important; + } +} + +// SVG shadow on hover and focus +.vjs-svg-icon:hover, +.vjs-control:focus .vjs-svg-icon { + -webkit-filter: drop-shadow(0 0 0.25em #fff); + filter: drop-shadow(0 0 0.25em #fff); +} |
