More actions
Fix ShowHide: neutralize PRE tag styling to match source inline rendering Tag: Manual revert |
Complete ShowHide CSS fix: add pre override and button styling |
||
| Line 77: | Line 77: | ||
} | } | ||
/* ShowHide inline fix — match source wiki rendering */ | /* ShowHide inline fix — match source wiki rendering | ||
.showhide- | Our extension wraps title+button in <pre> inside a toggle DIV. | ||
Source uses flat SPAN + A with no PRE. Override PRE styling. */ | |||
.showhide-toggle { | |||
display: inline; | display: inline; | ||
padding: 0; | |||
font-weight: normal; | |||
} | } | ||
.showhide-toggle { | .showhide-toggle pre { | ||
display: inline; | display: inline; | ||
background: none; | |||
border: none; | |||
padding: 0; | padding: 0; | ||
margin: 0; | |||
font-family: inherit; | |||
font-size: inherit; | |||
white-space: normal; | |||
} | } | ||
.showhide- | .showhide-button { | ||
color: #3366cc; | |||
cursor: pointer; | |||
} | } | ||
Revision as of 02:46, 27 March 2026
/* CSS placed here will be applied to all skins */
[data-event-name="tabs.talk"] { display:none!important; }
.mw-usertoollinks-talk { display:none!important; }
.button.talk { display:none!important; }
li#language-selector { display: none; }
/* - - - - - - - - -
| NYARTCC Customizations
|
| */
.phraseology-wrapper {
margin: 5px 0;
}
.phraseology,
.phraseology_syntax,
.phraseology_example {
color: #468847;
}
.ny-pull-left { float: left; }
.ny-pull-right { float: right; }
.ny-flex { display: flex; flex-wrap: wrap; }
.ny-flex div { flex-grow: 1; margin: 1em; }
.ny-badge {
padding: 0.2em 0.6em 0.3em;
font-size: 85%;
font-weight: bold;
border-radius: 0.25em;
}
.ny-warning {
background-color: #e99002;
color: #ffffff;
}
small {
font-style: oblique;
}
/* - - - - - - - - -
| List Numbering Styles
|
| */
@counter-style para-lower-alpha {
system: extends lower-alpha;
prefix: '(';
suffix: ') ';
}
@counter-style para-lower-roman {
system: extends lower-roman;
prefix: '(';
suffix: ') ';
}
ol { list-style-type: lower-alpha; }
ol li > ol { list-style-type: decimal; }
ol li > ol li > ol { list-style-type: para-lower-alpha; }
ol li > ol li > ol li > ol { list-style-type: para-lower-roman; }
/* Legacy Citizen CSS variables (needed for SOPHeader template) */
:root {
--font-size-h1: 2rem;
--font-size-h2: 1.5rem;
--font-size-h3: 1.25rem;
}
/* SOPHeader heading text class */
.h-text {
font-weight: 600;
}
/* ShowHide inline fix — match source wiki rendering
Our extension wraps title+button in <pre> inside a toggle DIV.
Source uses flat SPAN + A with no PRE. Override PRE styling. */
.showhide-toggle {
display: inline;
padding: 0;
font-weight: normal;
}
.showhide-toggle pre {
display: inline;
background: none;
border: none;
padding: 0;
margin: 0;
font-family: inherit;
font-size: inherit;
white-space: normal;
}
.showhide-button {
color: #3366cc;
cursor: pointer;
}