Jump to content

MediaWiki:Gadget-tts-dashes.user.css: Difference between revisions

From Philosophical Research
m redo all css lines, hope stylesheet doesn't break this time
m use .mw-body because body ID is apparently not used sometimes
Line 2: Line 2:
@name          TTS: remove Item dashes
@name          TTS: remove Item dashes
@namespace      github.com/openstyles/stylus
@namespace      github.com/openstyles/stylus
@version        1.0.5
@version        1.0.6
@description    A new userstyle
@description    A new userstyle
@author        reverseDragon
@author        reverseDragon
Line 17: Line 17:
ol.hue      li[value]:before { content: attr(value) " / " counter(list); }
ol.hue      li[value]:before { content: attr(value) " / " counter(list); }
ol.hue.clean li[value]:before { content: attr(value); }
ol.hue.clean li[value]:before { content: attr(value); }
#mw-content-text ol.hue.clean.compound [data-qid]:before, ol.hue [data-qid]:before { content: attr(data-qid); }
.mw-body ol.hue.clean.compound [data-qid]:before, ol.hue [data-qid]:before { content: attr(data-qid); }
ol.hue      li[value][data-dimension]:before { content: attr(data-dimension) "" attr(value) " / " counter(list); }
ol.hue      li[value][data-dimension]:before { content: attr(data-dimension) " " attr(value) " / " counter(list); }
ol.hue.clean li[value][data-dimension]:before { content: attr(data-dimension) "" attr(value) }
ol.hue.clean li[value][data-dimension]:before { content: attr(data-dimension) " " attr(value) }
#mw-content-text ol.hue.clean.compound [data-qid][data-dimension]:before, ol.hue li[data-qid][data-dimension]:before, ol.hue.clean li[data-qid][data-dimension]:before { content: attr(data-dimension) "" attr(data-qid) }
.mw-body ol.hue.clean.compound [data-qid][data-dimension]:before, ol.hue li[data-qid][data-dimension]:before, ol.hue.clean li[data-qid][data-dimension]:before { content: attr(data-dimension) " " attr(data-qid) }


#mw-content-text ol.hue li[value][data-dimension="L"]:before, ol.hue li[value][data-dimension="P"]:before { content: attr(data-dimension) attr(value) " / " counter(list); }
ol.hue li[value][data-dimension="L"]:before, ol.hue li[value][data-dimension="P"]:before { content: attr(data-dimension) attr(value) " / " counter(list); }
#mw-content-text ol.hue.clean li[value][data-dimension="L"]:before, ol.hue.clean li[value][data-dimension="P"]:before { content: attr(data-dimension) attr(value) }
ol.hue.clean li[value][data-dimension="L"]:before, ol.hue.clean li[value][data-dimension="P"]:before { content: attr(data-dimension) attr(value) }
#mw-content-text ol.hue.clean.compound [data-qid][data-dimension="L"]:before, ol.hue.clean.compound [data-qid][data-dimension="P"]:before { content: attr(data-dimension) attr(data-qid) }
ol.hue.clean.compound [data-qid][data-dimension="L"]:before, ol.hue.clean.compound [data-qid][data-dimension="P"]:before { content: attr(data-dimension) attr(data-qid) }


#mw-content-text  ol.hue li[data-serial]:before, ol.hue.clean.compound [data-serial]:before { content: attr(data-serial); }
ol.hue li[data-serial]:before, ol.hue.clean.compound [data-serial]:before { content: attr(data-serial); }
#mw-content-text  ol.hue li[data-edition][data-serial]:before,  ol.hue.clean.compound [data-edition][data-serial]:before { content: attr(data-edition) "/" attr(data-serial); }
ol.hue li[data-edition][data-serial]:before,  ol.hue.clean.compound [data-edition][data-serial]:before { content: attr(data-edition) "/" attr(data-serial); }
#mw-content-text  ol.hue li[data-edprefix][data-serial]:before, ol.hue.clean.compound [data-edprefix][data-serial]:before { content: attr(data-edprefix) "" attr(data-serial); }
ol.hue li[data-edprefix][data-serial]:before, ol.hue.clean.compound [data-edprefix][data-serial]:before { content: attr(data-edprefix) "" attr(data-serial); }
#mw-content-text  ol.hue li[data-edsuffix][data-serial]:before, ol.hue.clean.compound [data-edsuffix][data-serial]:before { content: attr(data-serial) "" attr(data-edsuffix); }
ol.hue li[data-edsuffix][data-serial]:before, ol.hue.clean.compound [data-edsuffix][data-serial]:before { content: attr(data-serial) "" attr(data-edsuffix); }


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

Revision as of 02:18, 11 March 2026

/* ==UserStyle==
@name           TTS: remove Item dashes
@namespace      github.com/openstyles/stylus
@version        1.0.6
@description    A new userstyle
@author         reverseDragon
==/UserStyle== */

/* Gadget "tts-dashes"  -  replace fancy dashes that TTS typically pronounces "to the" with empty space that should be pronounced as a pause

To turn this on for your wiki account, go to Preferences and select  gadget-tts-dashes:   [https://research.moraleconomy.au/index.php?title=Special:Preferences#mw-prefsection-gadgets]
Alternatively, install a user styles add-on and then open this URL:
https://research.moraleconomy.au/index.php?action=raw&title=MediaWiki:Gadget-tts-dashes.user.css */

ol.hue ol li:before  { content: none; }
ol.hue > li:before { content: attr(value); }
ol.hue       li[value]:before { content: attr(value) " / " counter(list); }
ol.hue.clean li[value]:before { content: attr(value); }
.mw-body ol.hue.clean.compound [data-qid]:before, ol.hue [data-qid]:before { content: attr(data-qid); }
ol.hue       li[value][data-dimension]:before { content: attr(data-dimension) " " attr(value) " / " counter(list); }
ol.hue.clean li[value][data-dimension]:before { content: attr(data-dimension) " " attr(value) }
.mw-body ol.hue.clean.compound [data-qid][data-dimension]:before, ol.hue li[data-qid][data-dimension]:before, ol.hue.clean li[data-qid][data-dimension]:before { content: attr(data-dimension) " " attr(data-qid) }

ol.hue li[value][data-dimension="L"]:before, ol.hue li[value][data-dimension="P"]:before { content: attr(data-dimension) attr(value) " / " counter(list); }
ol.hue.clean li[value][data-dimension="L"]:before, ol.hue.clean li[value][data-dimension="P"]:before { content: attr(data-dimension) attr(value) }
ol.hue.clean.compound [data-qid][data-dimension="L"]:before, ol.hue.clean.compound [data-qid][data-dimension="P"]:before { content: attr(data-dimension) attr(data-qid) }

ol.hue li[data-serial]:before, ol.hue.clean.compound [data-serial]:before { content: attr(data-serial); }
ol.hue li[data-edition][data-serial]:before,  ol.hue.clean.compound [data-edition][data-serial]:before { content: attr(data-edition) "/" attr(data-serial); }
ol.hue li[data-edprefix][data-serial]:before, ol.hue.clean.compound [data-edprefix][data-serial]:before { content: attr(data-edprefix) "" attr(data-serial); }
ol.hue li[data-edsuffix][data-serial]:before, ol.hue.clean.compound [data-edsuffix][data-serial]:before { content: attr(data-serial) "" attr(data-edsuffix); }

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