Jump to content

MediaWiki:Gadget-furigana.user.css

From Philosophical Research

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.
/* ==UserStyle==
@name           Show furigana  (gadget-furigana)
@description    Show TTS pronunciations on Japanese text as furigana
@namespace      github.com/openstyles/stylus
@version        1.0.0
@author         reverseDragon
==/UserStyle== */

/* To turn this on all the time, go to Preferences and select  gadget-furigana -   [https://research.moraleconomy.au/index.php?title=Special:Preferences#mw-prefsection-gadgets]
To easily toggle this style on and off, install a user styles add-on, and then open this URL:
https://research.moraleconomy.au/index.php?action=raw&title=MediaWiki:Gadget-furigana.user.css

this style is experimental. **it's unknown if and when it might cause pages to break.** use it with caution. */

.mediawiki .tts[lang=ja]
  { display: inline-block; position: relative; }

.mediawiki .tts[lang=ja] rt.aural
  { display: block; height: auto; width: 100%;
    overflow: auto !important; max-width: none !important;
    position: absolute; top: -3px; left: 0; text-align: center; }

/* [[C:Hue configuration Gadgets]] */