Jump to content

MediaWiki:AudioButton.css

From SPS Wiki

Note: After publishing, 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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/** Copied from Genshin Impact Wiki **/

/** For audio-button OggPlayer **/
.audio-button.custom-theme {
	background-color: var(--theme-link-color);
}
.audio-button.custom-theme:hover {
	background-color: var(--theme-link-color--hover);
}
.audio-button.custom-theme.now-playing,
.audio-button.custom-theme.no-audio {
	background-color: var(--theme-alert-color);
}
.audio-button {
	display: inline-block;
}

/** For Mobile mobile-player OggPlayer **/
.skin-minerva .audio-button audio {
	height: 1em;
	opacity: 0;
	position: absolute;
    max-width: unset;
    width: 100px; /* mobile players do not show mute/play until 100px bc reasons */
}
.skin-minerva .audio-button {
	position: relative;
	display: inline-block;
	vertical-align: -0.1em;
	width: 1em;
	height: 1em;
	overflow: hidden;
	border-radius: 3px;
	transition: background-color 0.2s;
	cursor: pointer;
	background-repeat: no-repeat;
	background-position: center;
	background-image: url('https://vignette.wikia.nocookie.net/dev/images/d/d6/OggPlayer_play.svg');
}

/* iOS does not support, so disable */
@supports (-webkit-touch-callout: none) {
	.skin-minerva .audio-button {
		cursor: help;
		background-color: #b30000;
		background-image: url('https://vignette.wikia.nocookie.net/dev/images/a/ae/OggPlayer_mute.svg');
	}
	.skin-minerva .audio-button audio {
		display: none !important;
	}
}

/* [[Category:Stylesheets]] */