Repository navigation
Styles
Ramen Guy edited this page Mar 27, 2024
·
2 revisions
Much of IkirPlayer's versatility comes from its styling possibilities. This page will document the class names of IkirPlayer's elements, and what each of them controls.
-
.songtitle- thepclass that controls the style for the song's title display. -
.duration- thepclass that controls the style for the song's duration display. -
.ikirwrap- thedivclass that contains the elements IkirPlayer creates on initialization. -
.ikirplaylist- thedivclass that contains the playlist and song selection. -
.controlbutton- theaclass that controls the playback buttons (previous song, pause, and next song).-
.controlbutton:hover- controls the style of the.controlbuttonwhen the cursor is hovering over it. -
.controlbutton:active .controlimage- when the.controlbuttonis active, this controls the.controlimagechild of the button.
-
-
.controlimage- theimgclass that controls the icons on the playback buttons. -
.songbutton- theaclass that controls the playlist and song selection buttons.-
.songbutton:hover- controls the style of the.songbuttonwhen the cursor is hovering over it.
-
-
.ikirframe- theiframeclass that controls the style of the inline frame which IkirPlayer controls. -
.volumeslider- theinputclass which controls therangevolume slider.-
.volumeslider::-webkit-slider-thumb- controls the indicator of the slider.-
.volumeslider::-webkit-slider-thumb:hover- controls the indicator of the slider when the cursor is hovering over it. -
.volumeslider::-webkit-slider-thumb:active- when the slider is active, this controls the indicator of the slider.
-
-
.volumeslider::-moz-range-thumb- same as-webkit-slider-thumb, included for compatibility.
-
A stylesheet template can be found here, and can be seen in action here. This default style does not make use of every possibility, and I recommend playing around with it on your own and seeing what you can make.