1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-12 11:15:04 +02:00
video.js/docs/guides/skins.md
2013-10-28 18:25:28 -07:00

1.3 KiB

Skins

The default Video.js skin is made using HTML and CSS, so there's no need to learn a complicated skinning language to update colors or even create an entirely new skin.

Icons

New in version 4.0 is the use of font icons. All of the icons (play, pause, etc.) use the new custom font, which allows the icons to be scaled and colored just like any other text font.

All of the icons are available as variables in the LESS source, making it easy to replace icons (such as the loading spinner). The easiest way to try this out is by using the player skin designer.

available icons

Customization

When you create a new skin, you can either override styles in the default skin:

.vjs-default-skin .vjs-play-progress { background: #900; }

Or remove the 'vjs-default-skin' class from the video tag and create a new skin from scratch.

<video class="video-js my-custom-skin" ...>

More custom skins will be available for download soon. If you have one you like you can share it by forking this example on CodePen.io, and adding a link on the Skins wiki page.