Jump to content

Template:Dfn/css: Difference between revisions

From Philosophical Research
m pre
completed .hue-term stylesheet
Line 2: Line 2:
@name          wikidata hue test 2
@name          wikidata hue test 2
@namespace      github.com/openstyles/stylus
@namespace      github.com/openstyles/stylus
@version        1.0.0
@version        1.0.1
@description    A new userstyle
@description    A new userstyle
@author        Me
@author        Me
==/UserStyle== */
==/UserStyle== */


.mw-body-content p dfn.hue-term ins, .mw-body-content p dfn.hue-term .wave-score { display: none; }
p dfn.hue-term ins, p dfn.hue-term .wave-score, .data_wavebuild dfn.hue-term .tag-after { display: none; }
.mw-body-content p mark.hue { background: transparent; border: none; display: inline-block; } /* mark tag is being used for semantics / activating hue rules, not for displaying highlighter itself */
p dfn.hue-term, p mark.hue, p dfn.hue-term.manual .figure { display: inline-block; }
p dfn.hue-term, p dfn.hue-term .a, p dfn.hue-term a, p dfn.hue-term .figure, p dfn.hue-term .tag-after { position: relative; }
p dfn.hue-term { font-style: normal; padding: 0.07em 0.2em; }
p mark.hue { background: transparent; border: none; } /* mark tag is being used for semantics / activating hue rules, not for displaying highlighter itself */


p dfn.hue-term, p dfn.hue-term .a, p dfn.hue-term a, p dfn.hue-term .figure, p dfn.hue-term .figure.after { position: relative; }
p dfn.hue-term:before {
.mw-body-content p dfn.hue-term { display: inline-block; font-style: normal; padding: 0.07em 0.2em; }
 
dfn.hue-term:before {
  content: " "; display: block; width: 100%; height: 100%; position: absolute; z-index: 0; left: 0; top: 0;
  content: " "; display: block; width: 100%; height: 100%; position: absolute; z-index: 0; left: 0; top: 0;
  background: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.7);
}
}


.mw-body-content p dfn.hue-term.manual .figure {
p dfn.hue-term.manual .mix-match {
  display: inline-block; vertical-align: middle;  bottom: 0.1em;
  overflow: hidden; width: 1em; height: 1em; vertical-align: middle; margin: 0 0.25em 0 0; padding: 0 0; bottom: 0.11em;
width: 1em; height: 1em; margin: 0 0.20em 0 0; padding: 0 0;
}
p dfn.hue-term.manual .figure {
  background: inherit; border: 1px solid var(--border-color-base,#a2a9b1);
  background: inherit; border: 1px solid var(--border-color-base,#a2a9b1);
}
}
 
p dfn.hue-term .tag-after { opacity: 0.6; font-size: 75%; bottom: 0.09em; }</pre>
p dfn.hue-term .figure.after { background: transparent; border: none; display: inline; padding: 0 0 0 0.25em; }
p dfn.hue-term abbr.figure.after, p dfn.hue-term .figure.after ins { text-decoration: none; z-index: 4; }
p dfn.hue-term .figure.after small { opacity: 0.6; font-size: 75%; }</pre>

Revision as of 02:51, 5 February 2026

/* ==UserStyle==
@name           wikidata hue test 2
@namespace      github.com/openstyles/stylus
@version        1.0.1
@description    A new userstyle
@author         Me
==/UserStyle== */

p dfn.hue-term ins, p dfn.hue-term .wave-score, .data_wavebuild dfn.hue-term .tag-after { display: none; }
p dfn.hue-term, p mark.hue, p dfn.hue-term.manual .figure { display: inline-block; }
p dfn.hue-term, p dfn.hue-term .a, p dfn.hue-term a, p dfn.hue-term .figure, p dfn.hue-term .tag-after { position: relative; }
p dfn.hue-term { font-style: normal; padding: 0.07em 0.2em; }
p mark.hue { background: transparent; border: none; } /* mark tag is being used for semantics / activating hue rules, not for displaying highlighter itself */

p dfn.hue-term:before {
 content: " "; display: block; width: 100%; height: 100%; position: absolute; z-index: 0; left: 0; top: 0;
 background: rgba(255,255,255,0.7);
}

p dfn.hue-term.manual .mix-match {
 overflow: hidden; width: 1em; height: 1em; vertical-align: middle; margin: 0 0.25em 0 0; padding: 0 0; bottom: 0.11em;
}
p dfn.hue-term.manual .figure {
 background: inherit; border: 1px solid var(--border-color-base,#a2a9b1);
}
p dfn.hue-term .tag-after { opacity: 0.6; font-size: 75%; bottom: 0.09em; }