Jump to content

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

From Philosophical Research
attempt fixing Item dashes
 
m try again... 12
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ==UserStyle==
/* ==UserStyle==
@name          TTS: fix Item dashes
@name          TTS: remove Item dashes
@namespace      github.com/openstyles/stylus
@namespace      github.com/openstyles/stylus
@version        1.0.0
@version        1.0.12
@description    A new userstyle
@description    A new userstyle
@author        reverseDragon
@author        reverseDragon
==/UserStyle== */
==/UserStyle== */


/* Gadget "tts-dashes"  -  replace fancy dashes that TTS typically pronounces "to the" with normal hyphens which are typically pronounced as a pause
/* 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]
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:
Alternatively, install a user styles add-on and then open this URL:
https://research.moraleconomy.au/index.php?action=raw&title=MediaWiki:Gadget-tts-caps.user.css */
https://research.moraleconomy.au/index.php?action=raw&title=MediaWiki:Gadget-tts-dashes.user.css */


ol.hue      li[value][data-dimension]:before { content: attr(data-dimension) "-" attr(value) " / " counter(list); }
ol.hue      li[value]:before { content: attr(value) " / " counter(list); }
ol.hue.clean li[value][data-dimension]:before { content: attr(data-dimension) "-" attr(value) }
ol.hue.clean li[value]:before { content: attr(value); }
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      li[value][data-dimension]:before { content: attr(data-dimension) " " attr(value) " / " counter(list); }
.mw-body ol.hue.clean li[value][data-dimension]:before { content: attr(data-dimension) " " attr(value); }
.mw-body ol.hue.clean.compound li[data-qid]:before, .mw-body ol.hue.clean.compound dfn[data-qid]:before,
  .mw-body ol.hue li[data-qid]:before, .mw-body ol.hue dfn[data-qid]:before
  { content: attr(data-qid); }
.mw-body .mw-body-content ol.hue.clean.compound li[data-qid][data-dimension]:before, .mw-body .mw-body-content ol.hue.clean.compound dfn[data-qid][data-dimension]:before,
.mw-body .mw-body-content ol.hue li[data-qid][data-dimension]:before, .mw-body .mw-body-content ol.hue dfn[data-qid][data-dimension]:before, .mw-body .mw-body-content ol.hue.clean li[data-qid][data-dimension]:before
  { content: attr(data-dimension) " " attr(data-qid); }


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

Latest revision as of 02:47, 11 March 2026

/* ==UserStyle==
@name           TTS: remove Item dashes
@namespace      github.com/openstyles/stylus
@version        1.0.12
@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       li[value]:before { content: attr(value) " / " counter(list); }
ol.hue.clean li[value]:before { content: attr(value); }
.mw-body ol.hue       li[value][data-dimension]:before { content: attr(data-dimension) " " attr(value) " / " counter(list); }
.mw-body ol.hue.clean li[value][data-dimension]:before { content: attr(data-dimension) " " attr(value); }
.mw-body ol.hue.clean.compound li[data-qid]:before, .mw-body ol.hue.clean.compound dfn[data-qid]:before,
  .mw-body ol.hue li[data-qid]:before, .mw-body ol.hue dfn[data-qid]:before
  { content: attr(data-qid); }
.mw-body .mw-body-content ol.hue.clean.compound li[data-qid][data-dimension]:before, .mw-body .mw-body-content ol.hue.clean.compound dfn[data-qid][data-dimension]:before,
.mw-body .mw-body-content ol.hue li[data-qid][data-dimension]:before, .mw-body .mw-body-content ol.hue dfn[data-qid][data-dimension]:before, .mw-body .mw-body-content ol.hue.clean li[data-qid][data-dimension]:before
  { content: attr(data-dimension) " " attr(data-qid); }

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