MediaWiki:Common.css
From GxPlex
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Hide selected toolbox entries site-wide.
* Kept as display:none (not deleted) so they can be restored by removing this rule. */
#t-print,
#t-whatlinkshere,
#t-info {
display: none;
}
/* Special:SpecialPages — short description injected under each link by Common.js */
.mw-specialpages-list li {
margin-bottom: 0.4em;
}
.gplx-sp-desc {
font-size: 0.85em;
color: #64748b;
margin-top: 0.1em;
}
/* Document: pages (ns 3000), ANG-2026-0011 task 3:
* Document information on top, full content width, larger type.
* Overrides the floated 350px infobox from the inline CSS in LocalSettings.php.
* Reference: pages (ns 3002) keep the sidebar layout built by Common.js. */
.ns-3000 .mw-parser-output table.gplx-infobox {
display: table; /* undo display:flow-root set on .wikitable in ns 3000 */
float: none;
clear: both;
width: 100%;
margin: 0 0 2rem 0;
font-size: 1rem;
line-height: 1.5;
}
.ns-3000 .mw-parser-output table.gplx-infobox .gplx-infobox-header {
font-size: 0.875rem;
padding: 0.6rem 0.75rem;
}
.ns-3000 .mw-parser-output table.gplx-infobox th:not( .gplx-infobox-header ) {
width: 25%;
min-width: 9rem;
padding: 0.5rem 0.75rem;
}
.ns-3000 .mw-parser-output table.gplx-infobox td {
padding: 0.5rem 0.75rem;
overflow-wrap: anywhere; /* long references and URLs must not force horizontal scrolling */
}
/* Reflow down to 320px CSS width (WCAG 1.4.10) */
@media ( max-width: 480px ) {
.ns-3000 .mw-parser-output table.gplx-infobox th:not( .gplx-infobox-header ) {
width: 40%;
min-width: 0;
}
.ns-3000 .mw-parser-output table.gplx-infobox th,
.ns-3000 .mw-parser-output table.gplx-infobox td {
padding: 0.4rem 0.5rem;
}
}
/* Narrow screens: general skin reflow rules live in skins/Cavendish/resources/responsive.css.
* Only rules for GxPlex-specific markup stay here. */
@media ( max-width: 720px ) {
/* Reference: pages: stacked columns take the full width (the flex-start alignment
* in LocalSettings.php would size them to their widest unbreakable content) */
.gplx-page-layout {
align-items: stretch;
}
}
/* Wide data tables scroll inside their own region instead of the whole page (set up by Common.js) */
.gplx-table-scroll {
max-width: 100%;
overflow-x: auto;
}
/* Some tables (e.g. SMW result tables) get display:block on narrow screens and would scroll
* themselves without being keyboard reachable; keep them real tables inside the region. */
.gplx-table-scroll > table {
display: table;
max-width: none;
}
/* Same for infoboxes (they are not wrapped, they fit by design) */
.mw-parser-output table.gplx-infobox {
display: table;
}
.gplx-table-scroll:focus-visible {
outline: 3px solid #005a5a;
outline-offset: 2px;
}
/* "Skip to content" link, visible on keyboard focus only */
.gplx-skip-link {
position: absolute;
left: -9999px;
top: 0;
z-index: 1000;
padding: 0.5rem 1rem;
background: #ffffff;
color: #003535;
font-weight: 700;
}
.gplx-skip-link:focus {
left: 0.5rem;
top: 0.5rem;
outline: 3px solid #005a5a;
}