User:Opencooper/highlightStrings.css
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | This user script seems to have a documentation page at User:Opencooper/highlightStrings and an accompanying .js page at User:Opencooper/highlightStrings.js. |
/*
This is the stylesheet for [[User:Opencooper/highlightStrings.js]].
It is loaded automatically.
License: CC0
*/
:root {
--oHL-primary-color: orange;
--oHL-highlight-color: var(--oHL-primary-color);
--oHL-keyed-color-primary: tomato;
--oHL-keyed-color-secondary: gold;
--oHL-highlight-background-color: var(--oHL-primary-color);
--oHL-highlight-group-color: green;
--oHL-clickable-color: #0645ad;
--oHL-unclickable-color: #9fa1af;
--oHL-code-background-color: #eda625;
--oHL-code-border-color: #b3852f;
--oHL-underline-color: var(--oHL-primary-color);
--oHL-refTable-hover-color: #eaf3ff;
--oHL-uncommonWords-symbol-color: var(--oHL-primary-color);
--oHL-error-color: red;
--oHL-warning-color: orange;
--oHL-italic-overline-color: red;
--oHL-trailing-space-color: #efefeffc;
}
#oHL_info, #oHL_matches, #oHL_results, #oHL_hover, .oHL_added, .oHL_piped,
.oHL_img_info, #oHL_wd_img, .oHL_shownAnchor, .oHL_ruby rt, .oHL_error,
.oHL_externalWarning, .oHL_internalWarning, .shortdescription, .cs1-maint {
font-family: system-ui;
}
.oHL_piped {
font-weight: lighter;
}
.oHL, .oHL-opt {
border-style: solid;
border-color: var(--oHL-highlight-color);
border-width: 2px;
}
.oHL_disabled {
border: none;
}
.oHL + .oHL, .oHL + .oHL-opt, .oHL-opt + .oHL, .oHL-opt + .oHL-opt {
margin-left: .1em;
}
#oHL_hover {
position: fixed;
color: white;
background-color: var(--oHL-highlight-background-color);
padding: 0 4px;
z-index: 1;
}
#oHL_info {
position: fixed;
top: 5px;
left: 5px;
z-index: 1;
background-color: var(--oHL-highlight-background-color);
width: 160px;
padding: 2px 4px;
}
/* Account for sticky header */
.skin-vector-2022 #oHL_info {
top: calc(3.125rem + 20px);
}
/* Put on bottom right for mobile */
.skin-minerva #oHL_info {
top: initial;
left: initial;
bottom: 5px;
right: 5px;
}
.oHL_keyed {
padding: 2px;
}
.oHL.oHL_keyed {
border-color: var(--oHL-keyed-color-primary);
}
.oHL-opt.oHL_keyed {
border-color: var(--oHL-keyed-color-secondary);
}
.oHL_keyed ~ .oHL_quoteAdditional {
border-style: dashed;
border-color: var(--oHL-highlight-group-color);
border-width: 2px;
padding: 2px;
}
#oHL_results summary {
font-weight: bold;
}
.oHL_summaryCount {
font-weight: normal;
}
#oHL_results details p, #oHL_results details table {
padding-left: 2em;
}
.oHL_tableCount {
text-align: right;
font-variant-numeric: tabular-nums;
}
.oHL_autoWikilink[href^='/wiki/MOS:'], .oHL_autoWikilink[href^='/wiki/WP:'] {
font-variant: all-small-caps;
letter-spacing: 0.05em;
}
.oHL_autoSectionLink {
font-variant: none;
letter-spacing: normal;
}
.oHL_wikitext-match {
font-family: monospace;
}
.oHL_wikitext-match-text {
text-decoration: underline;
text-decoration-color: var(--oHL-underline-color);
text-decoration-thickness: 2px;
text-underline-offset: 2px;
}
.oHL_i {
text-decoration: overline solid var(--oHL-italic-overline-color);
}
/* Needed to reset the text-decoration overline */
.oHL_i .oHL_piped {
display: inline-block;
}
.oHL_trailingSpace {
background-color: var(--oHL-trailing-space-color);
}
.oHL_refTable {
text-align: center;
}
#oHL_refTable thead tr {
position: sticky;
inset-block-start: 0;
}
/* Account for sticky header */
.skin-vector-2022 #oHL_refTable thead tr {
top: calc(3.125rem);
}
.oHL_refTable tr:hover td {
background-color: var(--oHL-refTable-hover-color);
}
.oHL_error {
color: var(--oHL-error-color);
}
.oHL_externalWarning, .oHL_internalWarning {
color: var(--oHL-warning-color);
}
.oHL_internalWarning {
display: none;
}
#oHL_info_counter {
font-variant-position: super;
}
#oHL_info_total {
font-variant-position: sub;
}
.oHL_counter_padding {
color: var(--oHL-highlight-background-color);
}
#oHL_info_class_name {
font-weight: bold;
}
#oHL_info_class_desc {
overflow-wrap: break-word;
}
#oHL_info_class_desc code {
background-color: var(--oHL-code-background-color);
border: 1px solid var(--oHL-code-border-color);
}
#oHL_info_arrows {
float: right;
}
#oHL_info_left_arrow, #oHL_info_right_arrow {
color: var(--oHL-clickable-color);
cursor: pointer;
}
#oHL_info_arrows .oHL_arrow_disabled {
color: var(--oHL-unclickable-color);
cursor: not-allowed;
}
#oHL_uncommonFilters {
margin: 0;
}
#oHL_uncommonFilters legend {
padding: 0.1em;
}
.oHL_uncommonWordHidden {
display: none;
}
#oHL_uncommonFilters label {
white-space: nowrap;
}
.oHL_filterDisabled .oHL_filterLabel {
text-decoration: line-through;
}
.oHL_filterableWordHighlighted {
outline-style: solid;
outline-color: var(--oHL-highlight-color);
outline-width: 2px;
}
.oHL_uncommonWordLowercase:not(.oHL_uncommonWordItalic, .oHL_uncommonWordQuote,
.oHL_uncommonWordWikilink, .oHL_uncommonWordReference,
.oHL_uncommonWordExternal) .oHL_uncommonWord {
text-decoration: underline;
text-decoration-color: var(--oHL-underline-color);
text-decoration-style: wavy;
}
#oHL_uncommon li {
margin-bottom: .2em;
}
.oHL_uncommonSymbols {
float: right;
font-family: monospace;
}
.oHL_uncommonSymbols span {
color: var(--oHL-uncommonWords-symbol-color);
border: 1px solid var(--oHL-uncommonWords-symbol-color);
margin: 1px;
padding: 1px 5px;
font-size: 110%;
}
#oHL_unbalanced .oHL_wikitext-match-text {
color: var(--oHL-underline-color);
}
.oHL_ruby rt {
font-weight: normal;
}
.oHL_ruby rt:hover {
font-size: 100%;
}
.oHL_dupe_ref_active {
outline-style: dashed;
outline-color: var(--oHL-highlight-group-color);
outline-width: 2px;
}
.oHL_img_info {
line-height: 1.4em;
max-width: 220px;
font-size: 88.4%;
}
.oHL-infobox-br, .oHL-infobox-title-br, .oHL-table-br {
font-size: 55%;
}
.oHL_shownAnchor {
font-size: 85%;
}
.oHL_shownAnchor + .oHL_shownAnchor {
padding-left: .25em;
}
.oHL-misplaced-template {
float: right;
}
.oHL-misplaced-sisterbox {
float: right;
clear: both;
}