summaryrefslogtreecommitdiff
path: root/javascript/videojs/src/css/_icons.scss
blob: fc0f974939f1a32ed2aa449e3ac33c90140d7261 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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);
}