MediaWiki:Common.css: Difference between revisions
mNo edit summary Tag: Reverted |
mNo edit summary Tags: Manual revert Reverted |
||
| Line 1: | Line 1: | ||
/* ========================================================= | /* ========================================================= | ||
MediaWiki:Common.css — cleaned | MediaWiki:Common.css — cleaned and corrected | ||
Preserves fonts and key layout; fixes syntax and link colors | |||
========================================================= */ | ========================================================= */ | ||
| Line 29: | Line 29: | ||
src: url("/styles/Gotham-BookItalic.otf"); | src: url("/styles/Gotham-BookItalic.otf"); | ||
} | } | ||
/* ---------- Base typography ---------- */ | /* ---------- Base typography ---------- */ | ||
body { | body { | ||
font-family: | font-family: Gotham-Book, Montserrat, sans-serif; | ||
max-width: 1366px; | max-width: 1366px; | ||
} | } | ||
h1, h2, h3, h4, h5, h6 { | h1, h2, h3, h4, h5, h6 { | ||
font-family: | 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; | |||
} | } | ||
| Line 53: | Line 46: | ||
font-family: "Gotham-Bold", "Gotham-Book", Montserrat, sans-serif; | font-family: "Gotham-Bold", "Gotham-Book", Montserrat, sans-serif; | ||
background: #ffffff; | background: #ffffff; | ||
padding: | padding: 2px; | ||
width: | width: 300px; | ||
} | } | ||
| Line 62: | Line 54: | ||
td { vertical-align: top; } | td { vertical-align: top; } | ||
/* ---------- Hide specific page title ---------- */ | /* ---------- 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-view h1.firstHeading, | ||
body.page-The_Bose_Professional_Portable_PA_Encyclopedia_FAQ_Wiki.action-submit h1.firstHeading { | body.page-The_Bose_Professional_Portable_PA_Encyclopedia_FAQ_Wiki.action-submit h1.firstHeading { | ||
| Line 84: | Line 76: | ||
max-width: 1366px; | max-width: 1366px; | ||
display: grid; | display: grid; | ||
gap: 15px; | grid-gap: 15px; | ||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | ||
grid-auto-rows: minmax(100px, auto); | grid-auto-rows: minmax(100px, auto); | ||
| Line 93: | Line 85: | ||
iframe { | iframe { | ||
max-width: 100% !important; | max-width: 100% !important; | ||
width: | width: auto !important; | ||
height: auto !important; | height: auto !important; | ||
} | } | ||
| Line 101: | Line 93: | ||
@font-face { | @font-face { | ||
font-family: 'power_symbols'; | font-family: 'power_symbols'; | ||
src: url('https://toonz.ca/fonts/unicode/Unicode_IEC_symbol. | src: url('https://toonz.ca/fonts/unicode/Unicode_IEC_symbol.ttf') format('truetype'), | ||
url('https://toonz.ca/fonts/unicode/Unicode_IEC_symbol. | url('https://toonz.ca/fonts/unicode/Unicode_IEC_symbol.woff2') format('woff2'), | ||
url('https://toonz.ca/fonts/unicode/Unicode_IEC_symbol. | url('https://toonz.ca/fonts/unicode/Unicode_IEC_symbol.woff') format('woff'); | ||
font-weight: normal; | font-weight: normal; | ||
font-style: normal; | font-style: normal; | ||
| Line 110: | Line 102: | ||
/* ---------- Link colors (LVHA order) ---------- */ | /* ---------- Link colors (LVHA order) ---------- */ | ||
.mw-body-content a:link { color: #0645AD; } | .mw-body-content a:link { | ||
.mw-body-content a:visited { color: #551A8B; } | color: #0645AD; /* unvisited */ | ||
.mw-body-content a:hover { color: #0B0080; text-decoration: underline; } | } | ||
.mw-body-content a:active { color: # | .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 */ | /* Special link types */ | ||
.mw-body-content a.new { color: #CC0000; } | .mw-body-content a.new { | ||
color: #CC0000; /* non-existent pages */ | |||
} | |||
.mw-body-content a.external, | .mw-body-content a.external, | ||
.mw-body-content a.extiw { color: #3366BB; } | .mw-body-content a.extiw { | ||
.mw-body-content a.stub { color: #772233; } | color: #3366BB; /* external/interwiki */ | ||
} | |||
.mw-body-content a.stub { | |||
color: #772233; /* stub links */ | |||
} | |||
/* ---------- L1 comparison table container ---------- */ | /* ---------- L1 comparison table container ---------- */ | ||
| Line 125: | Line 132: | ||
display: block; | display: block; | ||
overflow-x: auto; | overflow-x: auto; | ||
overflow-y: visible; | |||
width: 100%; | width: 100%; | ||
max-width: 100%; | |||
-webkit-overflow-scrolling: touch; | |||
background: #ffffff; | background: #ffffff; | ||
} | } | ||
| Line 136: | Line 145: | ||
width: max-content; | width: max-content; | ||
min-width: 1400px; | min-width: 1400px; | ||
max-width: none !important; | |||
border-collapse: separate; | border-collapse: separate; | ||
border-spacing: 0; | border-spacing: 0; | ||
| Line 161: | Line 171: | ||
/* ---------- Hover image popup ---------- */ | /* ---------- Hover image popup ---------- */ | ||
.hover-image-wrapper { position: relative; display: inline-block; cursor: help; } | .hover-image-wrapper { | ||
position: relative; | |||
display: inline-block; | |||
cursor: help; | |||
} | |||
.hover-image-popup { | .hover-image-popup { | ||
position: absolute; | position: absolute; | ||
| Line 170: | Line 184: | ||
padding: 4px; | padding: 4px; | ||
border: 1px solid #ccc; | border: 1px solid #ccc; | ||
visibility: hidden; | visibility: hidden !important; | ||
opacity: 0; | opacity: 0 !important; | ||
pointer-events: none; | 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; | visibility: visible !important; | ||
opacity: 1; | opacity: 1 !important; | ||
pointer-events: auto; | pointer-events: auto !important; | ||
} | } | ||
/* ---------- Mobile: hide desktop sidebar and adjust content spacing ---------- */ | /* ---------- Mobile: hide desktop sidebar and adjust content spacing ---------- */ | ||
@media (max-width: 800px) { | @media (max-width: 800px) { | ||
#mw-panel, .mw-sidebar, .vectorSidebar { display: none !important | #mw-panel, .mw-sidebar, .vectorSidebar { | ||
display: none !important; | |||
} | } | ||
#content, #mw-content-text { | |||
margin-left: 0 !important; | |||
padding-left: 1rem !important; | |||
padding | |||
} | } | ||
} | } | ||