Skip to content
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 - the p class that controls the style for the song's title display.
  • .duration - the p class that controls the style for the song's duration display.
  • .ikirwrap - the div class that contains the elements IkirPlayer creates on initialization.
  • .ikirplaylist - the div class that contains the playlist and song selection.
  • .controlbutton - the a class that controls the playback buttons (previous song, pause, and next song).
    • .controlbutton:hover - controls the style of the .controlbutton when the cursor is hovering over it.
    • .controlbutton:active .controlimage - when the .controlbutton is active, this controls the .controlimage child of the button.
  • .controlimage - the img class that controls the icons on the playback buttons.
  • .songbutton - the a class that controls the playlist and song selection buttons.
    • .songbutton:hover - controls the style of the .songbutton when the cursor is hovering over it.
  • .ikirframe - the iframe class that controls the style of the inline frame which IkirPlayer controls.
  • .volumeslider - the input class which controls the range volume 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.

Clone this wiki locally