MediaWiki:Gadget-AudioPlayer.css

From Official Temtem Wiki
Jump to navigation Jump to search

In other languages: EspañolFrançais


CSS and Javascript changes must comply with the wiki design rules.


Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
.audio-player {
    position: relative;
    padding: 0 .5em 0 1.5em;
    cursor: pointer;
}

.audio-player audio {
    display: none;
}

.audio-player:before {
    content: "";
    display: inline-block;
    position: absolute;
    height: .9em;
    width: .9em;
    top: 50%;
    transform: translate(-1.1em, -50%);

    mask-image: url(https://static.wikia.nocookie.net/temtem_gamepedia_en/images/2/2d/Player_Buttons.svg/revision/latest);
    -webkit-mask-image: url(https://static.wikia.nocookie.net/temtem_gamepedia_en/images/2/2d/Player_Buttons.svg/revision/latest);
    mask-position-x: 0;
    -webkit-mask-position-x: 0;
    mask-size: auto .9em;
    -webkit-mask-size: auto .9em;

    background: white;
    vertical-align: middle;

    transition: -webkit-mask-position-x .1s, mask-position-x .1s;
}

.audio-player.playing:before {
    mask-position-x: .9em;
    -webkit-mask-position-x: .9em;
}

.audio-player.playing.pausable:before {
    mask-position-x: -.9em;
    -webkit-mask-position-x: .9em;
}