MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary Tag: Reverted |
m cleaned - regenerated version Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* | /* ========================================================= | ||
MediaWiki:Common.css — cleaned and corrected | |||
Preserves fonts and key layout; fixes syntax and link colors | |||
========================================================= */ | |||
/* ---------- Custom fonts ---------- */ | |||
@font-face { | @font-face { | ||
font-family: "Gotham-Black"; | |||
src: url("/styles/Gotham-Black.otf"); | |||
} | |||
@font-face { | |||
font-family: "Gotham-BlackItalic"; | |||
src: url("/styles/Gotham-BlackItalic.otf"); | |||
} | } | ||
@font-face { | @font-face { | ||
font-family: "Gotham-Bold"; | |||
src: url("/styles/Gotham-Bold.otf"); | |||
} | } | ||
@font-face { | @font-face { | ||
font-family: "Gotham-BoldItalic"; | |||
src: url("/styles/Gotham-BoldItalic.otf"); | |||
} | } | ||
@font-face { | @font-face { | ||
font-family: "Gotham-Book"; | |||
src: url("/styles/Gotham-Book.otf"); | |||
} | } | ||
@font-face { | @font-face { | ||
font-family: "Gotham-BookItalic"; | |||
src: url("/styles/Gotham-BookItalic.otf"); | |||
} | } | ||
/* ---------- Base typography ---------- */ | |||
body { | |||
font-family: Gotham-Book, Montserrat, sans-serif; | |||
max-width: 1366px; | |||
} | |||
h1, h2, h3, h4, h5, h6 { | |||
font-family: Gotham-Book, Montserrat, sans-serif; | |||
} | } | ||
h1, h2, h3, h4, h5 | .mw-body h1, .mw-body h2, .mw-body h3, .mw-body h4, .mw-body h5 { | ||
font-family: Gotham-Book, Montserrat, sans-serif; | |||
} | } | ||
/* ---------- Headline block ---------- */ | |||
.mw-headline { | |||
font-family: "Gotham-Bold", "Gotham-Book", Montserrat, sans-serif; | |||
background: #ffffff; | |||
.mw-headline | padding: 2px; | ||
{ | width: 300px; | ||
background:#ffffff; | |||
padding: 2px; | |||
} | } | ||
td {vertical-align:top} | /* ---------- Utility ---------- */ | ||
.structuredData { display: none; } | |||
td { vertical-align: top; } | |||
body { | /* ---------- Hide specific page title (Main/FAQ wiki) ---------- */ | ||
body.page-The_Bose_Professional_Portable_PA_Encyclopedia_FAQ_Wiki.action-view h1.firstHeading, | |||
body.page-The_Bose_Professional_Portable_PA_Encyclopedia_FAQ_Wiki.action-submit h1.firstHeading { | |||
display: none; | |||
} | } | ||
/* | /* ---------- Responsive images ---------- */ | ||
img { | img { | ||
max-width: 100%; | max-width: 100%; | ||
height: auto; | height: auto; | ||
-webkit-touch-callout: none; | |||
-webkit-user-select: none; | |||
-khtml-user-select: none; | |||
-moz-user-select: none; | |||
-ms-user-select: none; | |||
user-select: none; | |||
} | } | ||
/* | /* ---------- Responsive TOC container ---------- */ | ||
.tocdiv { | |||
max-width: 1366px; | |||
display: grid; | |||
grid-gap: 15px; | |||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | |||
grid-auto-rows: minmax(100px, auto); | |||
} | } | ||
/* | /* ---------- Responsive iframe (YouTube etc.) ---------- */ | ||
@media screen and (max-width: 750px) { | @media screen and (max-width: 750px) { | ||
iframe { | |||
max-width: 100% !important; | |||
width: auto !important; | |||
height: auto !important; | |||
} | |||
} | } | ||
/* Power | /* ---------- Power characters font ---------- */ | ||
@font-face { | @font-face { | ||
font-family: 'power_symbols'; | |||
src: url('https://toonz.ca/fonts/unicode/Unicode_IEC_symbol.ttf') format('truetype'), | |||
url('https://toonz.ca/fonts/unicode/Unicode_IEC_symbol.woff2') format('woff2'), | |||
url('https://toonz.ca/fonts/unicode/Unicode_IEC_symbol.woff') format('woff'); | |||
font-weight: normal; | |||
font-style: normal; | |||
} | } | ||
.power { font-family: 'power_symbols'; font-style: normal; } | |||
. | /* ---------- Link colors (LVHA order) ---------- */ | ||
.mw-body-content a:link { | |||
color: #0645AD; /* unvisited */ | |||
} | |||
.mw-body-content a:visited { | |||
color: #551A8B; /* visited */ | |||
} | |||
.mw-body-content a:hover { | |||
color: #0B0080; /* hover */ | |||
text-decoration: underline; | |||
} | |||
.mw-body-content a:active { | |||
color: #FF0000; /* active */ | |||
} | } | ||
/* | /* Special link types */ | ||
.mw-body-content a | .mw-body-content a.new { | ||
color: #CC0000; /* non-existent pages */ | |||
} | |||
.mw-body-content a | .mw-body-content a.external, | ||
.mw-body-content a | .mw-body-content a.extiw { | ||
color: #3366BB; /* external/interwiki */ | |||
.mw-body-content a | } | ||
.mw-body-content a.stub { | |||
color: #772233; /* stub links */ | |||
} | } | ||
/* | /* ---------- L1 comparison table container ---------- */ | ||
.mw-parser-output .l1-compare-wrap { | .mw-parser-output .l1-compare-wrap { | ||
display: block; | display: block; | ||
| Line 152: | Line 139: | ||
} | } | ||
/* | /* Desktop-only: allow very wide comparison table without breaking mobile */ | ||
*/ | |||
@media (min-width: 1200px) { | @media (min-width: 1200px) { | ||
.mw-parser-output .l1-compare-wrap table.l1-compare { | .mw-parser-output .l1-compare-wrap table.l1-compare { | ||
| Line 169: | Line 146: | ||
min-width: 1400px; | min-width: 1400px; | ||
max-width: none !important; | max-width: none !important; | ||
border-collapse: separate; | |||
border-spacing: 0; | |||
} | } | ||
} | } | ||
/* Sticky header row for comparison table */ | |||
/* | |||
.mw-parser-output .l1-compare-wrap table.l1-compare th { | .mw-parser-output .l1-compare-wrap table.l1-compare th { | ||
position: sticky; | position: sticky; | ||
| Line 182: | Line 160: | ||
} | } | ||
/* | /* Sticky first column */ | ||
.mw-parser-output .l1-compare-wrap table.l1-compare th:first-child, | .mw-parser-output .l1-compare-wrap table.l1-compare th:first-child, | ||
.mw-parser-output .l1-compare-wrap table.l1-compare td:first-child { | .mw-parser-output .l1-compare-wrap table.l1-compare td:first-child { | ||
| Line 192: | Line 170: | ||
} | } | ||
/* | /* ---------- Hover image popup ---------- */ | ||
.hover-image-wrapper { | .hover-image-wrapper { | ||
position: relative; | position: relative; | ||
| Line 199: | Line 176: | ||
cursor: help; | cursor: help; | ||
} | } | ||
.hover-image-popup { | .hover-image-popup { | ||
position: absolute; | position: absolute; | ||
| Line 205: | Line 181: | ||
left: 0; | left: 0; | ||
z-index: 9999; | z-index: 9999; | ||
background: #fff; | background: #fff; | ||
padding: 4px; | padding: 4px; | ||
border: 1px solid #ccc; | border: 1px solid #ccc; | ||
visibility: hidden !important; | visibility: hidden !important; | ||
opacity: 0 !important; | opacity: 0 !important; | ||
pointer-events: none !important; | pointer-events: none !important; | ||
transition: opacity 0.15s ease-in-out; | transition: opacity 0.15s ease-in-out; | ||
} | } | ||
.hover-image-wrapper:hover .hover-image-popup { | .hover-image-wrapper:hover .hover-image-popup { | ||
visibility: visible !important; | visibility: visible !important; | ||
| Line 223: | Line 195: | ||
} | } | ||
/* ---------- Mobile: hide desktop sidebar and adjust content spacing ---------- */ | |||
@media (max-width: 800px) { | @media (max-width: 800px) { | ||
#mw-panel, .mw-sidebar, .vectorSidebar { | #mw-panel, .mw-sidebar, .vectorSidebar { | ||
Revision as of 21:57, 31 March 2026
/* =========================================================
MediaWiki:Common.css — cleaned and corrected
Preserves fonts and key layout; fixes syntax and link colors
========================================================= */
/* ---------- Custom fonts ---------- */
@font-face {
font-family: "Gotham-Black";
src: url("/styles/Gotham-Black.otf");
}
@font-face {
font-family: "Gotham-BlackItalic";
src: url("/styles/Gotham-BlackItalic.otf");
}
@font-face {
font-family: "Gotham-Bold";
src: url("/styles/Gotham-Bold.otf");
}
@font-face {
font-family: "Gotham-BoldItalic";
src: url("/styles/Gotham-BoldItalic.otf");
}
@font-face {
font-family: "Gotham-Book";
src: url("/styles/Gotham-Book.otf");
}
@font-face {
font-family: "Gotham-BookItalic";
src: url("/styles/Gotham-BookItalic.otf");
}
/* ---------- Base typography ---------- */
body {
font-family: Gotham-Book, Montserrat, sans-serif;
max-width: 1366px;
}
h1, h2, h3, h4, h5, h6 {
font-family: Gotham-Book, Montserrat, sans-serif;
}
.mw-body h1, .mw-body h2, .mw-body h3, .mw-body h4, .mw-body h5 {
font-family: Gotham-Book, Montserrat, sans-serif;
}
/* ---------- Headline block ---------- */
.mw-headline {
font-family: "Gotham-Bold", "Gotham-Book", Montserrat, sans-serif;
background: #ffffff;
padding: 2px;
width: 300px;
}
/* ---------- Utility ---------- */
.structuredData { display: none; }
td { vertical-align: top; }
/* ---------- Hide specific page title (Main/FAQ wiki) ---------- */
body.page-The_Bose_Professional_Portable_PA_Encyclopedia_FAQ_Wiki.action-view h1.firstHeading,
body.page-The_Bose_Professional_Portable_PA_Encyclopedia_FAQ_Wiki.action-submit h1.firstHeading {
display: none;
}
/* ---------- Responsive images ---------- */
img {
max-width: 100%;
height: auto;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/* ---------- Responsive TOC container ---------- */
.tocdiv {
max-width: 1366px;
display: grid;
grid-gap: 15px;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
grid-auto-rows: minmax(100px, auto);
}
/* ---------- Responsive iframe (YouTube etc.) ---------- */
@media screen and (max-width: 750px) {
iframe {
max-width: 100% !important;
width: auto !important;
height: auto !important;
}
}
/* ---------- Power characters font ---------- */
@font-face {
font-family: 'power_symbols';
src: url('https://toonz.ca/fonts/unicode/Unicode_IEC_symbol.ttf') format('truetype'),
url('https://toonz.ca/fonts/unicode/Unicode_IEC_symbol.woff2') format('woff2'),
url('https://toonz.ca/fonts/unicode/Unicode_IEC_symbol.woff') format('woff');
font-weight: normal;
font-style: normal;
}
.power { font-family: 'power_symbols'; font-style: normal; }
/* ---------- Link colors (LVHA order) ---------- */
.mw-body-content a:link {
color: #0645AD; /* unvisited */
}
.mw-body-content a:visited {
color: #551A8B; /* visited */
}
.mw-body-content a:hover {
color: #0B0080; /* hover */
text-decoration: underline;
}
.mw-body-content a:active {
color: #FF0000; /* active */
}
/* Special link types */
.mw-body-content a.new {
color: #CC0000; /* non-existent pages */
}
.mw-body-content a.external,
.mw-body-content a.extiw {
color: #3366BB; /* external/interwiki */
}
.mw-body-content a.stub {
color: #772233; /* stub links */
}
/* ---------- L1 comparison table container ---------- */
.mw-parser-output .l1-compare-wrap {
display: block;
overflow-x: auto;
overflow-y: visible;
width: 100%;
max-width: 100%;
-webkit-overflow-scrolling: touch;
background: #ffffff;
}
/* Desktop-only: allow very wide comparison table without breaking mobile */
@media (min-width: 1200px) {
.mw-parser-output .l1-compare-wrap table.l1-compare {
white-space: nowrap;
width: max-content;
min-width: 1400px;
max-width: none !important;
border-collapse: separate;
border-spacing: 0;
}
}
/* Sticky header row for comparison table */
.mw-parser-output .l1-compare-wrap table.l1-compare th {
position: sticky;
top: 0;
background: #f8f9fa;
color: #202122;
z-index: 10;
}
/* Sticky first column */
.mw-parser-output .l1-compare-wrap table.l1-compare th:first-child,
.mw-parser-output .l1-compare-wrap table.l1-compare td:first-child {
position: sticky;
left: 0;
background: #ffffff;
z-index: 9;
border-right: 1px solid #a2a9b1;
}
/* ---------- Hover image popup ---------- */
.hover-image-wrapper {
position: relative;
display: inline-block;
cursor: help;
}
.hover-image-popup {
position: absolute;
top: 1.2em;
left: 0;
z-index: 9999;
background: #fff;
padding: 4px;
border: 1px solid #ccc;
visibility: hidden !important;
opacity: 0 !important;
pointer-events: none !important;
transition: opacity 0.15s ease-in-out;
}
.hover-image-wrapper:hover .hover-image-popup {
visibility: visible !important;
opacity: 1 !important;
pointer-events: auto !important;
}
/* ---------- Mobile: hide desktop sidebar and adjust content spacing ---------- */
@media (max-width: 800px) {
#mw-panel, .mw-sidebar, .vectorSidebar {
display: none !important;
}
#content, #mw-content-text {
margin-left: 0 !important;
padding-left: 1rem !important;
}
}