summaryrefslogtreecommitdiff
path: root/javascript/videojs/src/css/_icons.scss
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/videojs/src/css/_icons.scss')
-rw-r--r--javascript/videojs/src/css/_icons.scss29
1 files changed, 29 insertions, 0 deletions
diff --git a/javascript/videojs/src/css/_icons.scss b/javascript/videojs/src/css/_icons.scss
new file mode 100644
index 0000000..fc0f974
--- /dev/null
+++ b/javascript/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);
+}