MediaWiki:Common.css: Difference between revisions
From Ultimate Dragon Ball Online Wiki
No edit summary |
No edit summary |
||
| (58 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
/* | /* ========================= | ||
EXISTING STYLES (unchanged) | |||
========================= */ | |||
.main-column { | .main-column { | ||
padding-top: 2em; | padding-top: 2em; | ||
padding-bottom: 2em; | padding-bottom: 2em; | ||
max-width: 1400px; | |||
margin: 0 auto; | |||
} | } | ||
div#mw-navigation { | div#mw-navigation { | ||
align-content: center; | align-content: center; | ||
} | } | ||
#p-logo .mw-wiki-logo { | #p-logo .mw-wiki-logo { | ||
| Line 17: | Line 18: | ||
} | } | ||
#p-personal-dropdown h3 { | |||
color: #ffffff !important; | |||
} | |||
#mw-footer { | |||
background-color: #17458a; | |||
} | |||
body { | |||
font-family: 'Roboto', 'Segoe UI', Arial, sans-serif; | |||
line-height: 1.6; | |||
color: #333; | |||
background-color: #f5f5f5; | |||
} | |||
div#mw-sidebar { | |||
position: sticky; | |||
top: 3em; | |||
} | |||
/* TEST | |||
#toc.toc { | |||
background-color: #fff; | |||
border: none; | |||
border-radius: 8px; | |||
padding: 20px; | |||
margin: 20px 0; | |||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); | |||
display: inline-block; | |||
max-width: 10%; | |||
max-height: 60vh; | |||
min-width: 13vw !important; | |||
position: fixed; | |||
right: 2vw; | |||
top: 27vh; | |||
overflow: auto; | |||
font-size: 0.8em; | |||
} | |||
#content { | |||
margin-bottom: 1.5em; | |||
width: 58vw; | |||
} | |||
#page-tools { | |||
border-bottom: solid 2px #26c; | |||
font-size: 0.9em; | |||
max-width: 58vw; | |||
} | |||
*/ | |||
/* ========================= | |||
TABLE STYLES | |||
========================= */ | |||
.wikitable { | .wikitable { | ||
border-collapse: collapse; | |||
width: 100%; | |||
margin: 1em 0; | |||
background-color: #fff; | |||
border-radius: 8px; | |||
overflow: hidden; | |||
box-shadow: 0 1px 3px rgba(0,0,0,0.12); | |||
border: none; | |||
} | |||
.wikitable > tr > th, | |||
.wikitable > * > tr > th { | |||
background-color: #2161c0; | |||
color: white; | |||
padding: 10px; | |||
text-align: left; | |||
border: none; | |||
} | |||
.wikitable > tr > td, | |||
.wikitable > * > tr > td { | |||
padding: 8px 10px; | |||
border-top: 1px solid #eee; | |||
border-left: none; | |||
border-right: none; | |||
border-bottom: none; | |||
} | |||
table.wikitable { | |||
border: none !important; | |||
} | |||
/* Collapsible sections */ | |||
.collapsible-header { | |||
background-color: #2161c0; | |||
color: white; | |||
padding: 10px 15px; | |||
border-radius: 8px 8px 0 0; | |||
margin-top: 20px; | |||
cursor: pointer; | |||
font-weight: bold; | |||
font-size: 1.2em; | |||
display: flex; | |||
justify-content: space-between; | |||
align-items: center; | |||
user-select: none; | |||
} | |||
.collapsible-header:hover { | |||
background-color: #3577BD; | |||
} | |||
.collapsible-header.collapsed { | |||
border-radius: 8px; | |||
} | |||
.collapsible-content { | |||
background-color: #ffffff; | |||
border: 1px solid #eee; | |||
border-top: none; | |||
border-radius: 0 0 8px 8px; | |||
padding: 15px; | |||
margin-bottom: 20px; | |||
box-shadow: 0 2px 4px rgba(0,0,0,0.1); | |||
} | |||
.collapse-icon { | |||
font-size: 0.8em; | |||
margin-left: 10px; | |||
} | |||
/* ========================= | |||
TOC IMPROVEMENTS | |||
========================= */ | |||
#toc.toc { | |||
background-color: #fff; | |||
border: none; | |||
border-radius: 8px; | |||
padding: 20px; | |||
margin: 20px 0; | |||
box-shadow: 0 2px 4px rgba(0,0,0,0.1); | |||
display: inline-block; | |||
min-width: 300px; | |||
} | |||
#toc.toc .toctitle { | |||
font-weight: bold; | |||
color: #212121; | |||
font-size: 1.2em; | |||
border-bottom: 2px solid #3577BD; | |||
padding-bottom: 8px; | |||
margin-bottom: 12px; | |||
} | |||
#toc.toc .toctitle h2 { | |||
font-size: inherit; | |||
display: inline; | |||
} | |||
#toc.toc ul { | |||
margin-left: 1.2em; | |||
margin-bottom: 0.5em; | |||
list-style-type: none; | |||
} | |||
#toc.toc ul ul { | |||
margin-top: 0.3em; | |||
} | |||
#toc.toc li { | |||
margin-bottom: 0.4em; | |||
line-height: 1.4; | |||
} | |||
#toc.toc a { | |||
color: #3577BD; | |||
text-decoration: none; | |||
display: inline-block; | |||
padding: 2px 0; | |||
transition: all 0.2s ease; | |||
} | |||
#toc.toc a:hover { | |||
color: #4C8DCE; | |||
transform: translateX(2px); | |||
} | |||
/* ========================= | |||
HEADINGS | |||
========================= */ | |||
h1, h2, h3, h4, h5, h6 { | |||
color: #2161c0; | |||
margin-top: 1.2em; | |||
margin-bottom: 0.5em; | |||
font-weight: 500; | |||
} | |||
h1 { | |||
font-size: 1.8em; | |||
border-bottom: 2px solid #eaecf0; | |||
padding-bottom: 0.2em; | |||
} | |||
h2 { | |||
font-size: 1.5em; | |||
border-bottom: 1px solid #eaecf0; | |||
padding-bottom: 0.2em; | |||
} | |||
h3 { | |||
font-size: 1.3em; | |||
} | |||
h4 { | |||
font-size: 1.1em; | |||
color: #333; | |||
} | |||
h5 { | |||
font-size: 1em; | |||
color: #444; | |||
font-weight: 600; | |||
} | |||
h6 { | |||
font-size: 0.9em; | |||
color: #555; | |||
font-weight: 600; | |||
font-style: italic; | |||
} | |||
/* Section headings for wiki pages */ | |||
.mw-headline { | |||
display: inline-block; | |||
padding-bottom: 2px; | |||
} | |||
/* Add nice border bottom animation to section headings */ | |||
h2 .mw-headline { | |||
position: relative; | |||
} | |||
h2 .mw-headline:after { | |||
content: ''; | |||
position: absolute; | |||
width: 0; | |||
height: 2px; | |||
bottom: -2px; | |||
left: 0; | |||
background-color: #3577BD; | |||
transition: width 0.3s ease; | |||
} | |||
h2:hover .mw-headline:after { | |||
width: 100%; | |||
} | |||
/* Edit section links */ | |||
.mw-editsection { | |||
font-size: 0.7em; | |||
margin-left: 8px; | |||
font-weight: normal; | |||
opacity: 0.5; | |||
transition: opacity 0.2s ease; | |||
} | |||
.mw-editsection:hover { | |||
opacity: 1; | |||
} | |||
/* Hide toolbox */ | |||
#p-tb { | |||
display: none; | |||
} | |||
/* ========================= | |||
TAB NAVIGATION SYSTEM | |||
========================= */ | |||
.clearfix:after { | |||
content: ""; | |||
display: table; | |||
clear: both; | |||
} | |||
.tab-navigation { | |||
margin: 20px 0; | |||
position: relative; | |||
} | |||
.tab-nav { | |||
display: flex; | |||
border-bottom: 2px solid #3577BD; | |||
margin-bottom: 20px; | |||
flex-wrap: wrap; | |||
} | |||
.tab-button { | |||
padding: 10px 20px; | |||
background-color: #f0f0f0; | |||
border-radius: 5px 5px 0 0; | |||
margin-right: 5px; | |||
margin-bottom: 5px; | |||
cursor: pointer; | |||
font-weight: bold; | |||
transition: all 0.3s ease; | |||
user-select: none; | |||
} | |||
.tab-button:hover { | |||
background-color: #e0e0e0; | |||
} | |||
.tab-button.active { | |||
background-color: #3577BD; | |||
color: white; | |||
} | |||
.tab-content { | |||
position: relative; | |||
} | |||
.tab-pane { | |||
display: none; | |||
} | |||
.tab-pane.active { | |||
display: block; | |||
} | |||
/* Sub Tab Navigation */ | |||
.sub-tab-navigation { | |||
margin: 10px 0 20px 0; | |||
position: relative; | |||
} | |||
.sub-tab-navigation .tab-nav { | |||
border-bottom: 1px solid #4C8DCE; | |||
} | |||
.sub-tab-navigation .tab-button { | |||
padding: 8px 15px; | |||
font-size: 0.9em; | |||
background-color: #e5e5e5; | |||
} | |||
.sub-tab-navigation .tab-button.active { | |||
background-color: #4C8DCE; | |||
} | |||
@keyframes tabFadeIn { | |||
from { opacity: 0; } | |||
to { opacity: 1; } | |||
} | |||
/* ========================= | |||
IMAGE TAB BUTTON STYLES FOR MEDIAWIKI - PURE IMAGE VERSION | |||
========================= */ | |||
.tab-button-image { | |||
position: relative; | |||
width: 120px; | |||
height: 80px; | |||
margin-right: 10px; | |||
margin-bottom: 10px; | |||
border-radius: 8px; | |||
overflow: hidden; | |||
cursor: pointer; | |||
transition: transform 0.3s ease; | |||
display: inline-block; | |||
background: transparent !important; | |||
border: none !important; | |||
padding: 0 !important; | |||
/* Removed box-shadow completely */ | |||
} | |||
.tab-button-image:hover { | |||
transform: translateY(-3px); | |||
/* Removed box-shadow */ | |||
background: transparent !important; | |||
} | |||
.tab-button-image.active { | |||
/* Simple border instead of box-shadow */ | |||
border: 3px solid #3577BD !important; | |||
background: transparent !important; | |||
} | |||
/* Tab image wrapper to handle MediaWiki's image rendering */ | |||
.tab-image-wrapper { | |||
width: 100%; | |||
height: 100%; | |||
position: absolute; | |||
top: 0; | |||
left: 0; | |||
overflow: hidden; | |||
background: transparent !important; | |||
} | |||
/* MediaWiki renders images with specific classes and divs */ | |||
.tab-image-wrapper .thumbimage, | |||
.tab-image-wrapper img { | |||
width: 100% !important; | |||
height: 100% !important; | |||
object-fit: cover !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
border: none !important; | |||
border-radius: 0 !important; | |||
box-shadow: none !important; | |||
max-width: none !important; | |||
min-width: 100% !important; | |||
min-height: 100% !important; | |||
max-height: none !important; | |||
position: absolute !important; | |||
top: 0 !important; | |||
left: 0 !important; | |||
transition: transform 0.5s ease !important; | |||
} | |||
/* Remove MediaWiki's default image borders and styles */ | |||
.tab-image-wrapper .thumbinner { | |||
border: none !important; | |||
background: transparent !important; | |||
padding: 0 !important; | |||
width: 100% !important; | |||
height: 100% !important; | |||
} | |||
.tab-image-wrapper .thumbcaption { | |||
display: none !important; | |||
} | |||
/* Hover effect for the image */ | |||
.tab-button-image:hover .thumbimage, | |||
.tab-button-image:hover img { | |||
transform: scale(1.1) !important; | |||
} | |||
.tab-button-image .tab-button-text { | |||
position: absolute; | |||
bottom: 0; | |||
left: 0; | |||
width: 100%; | |||
background: transparent !important; | |||
color: white; | |||
padding: 8px 0; | |||
text-align: center; | |||
font-weight: bold; | |||
font-size: 0.9em; | |||
text-shadow: 1px 1px 2px rgba(0,0,0,0.8); | |||
z-index: 10; | |||
} | |||
.tab-button-image.active .tab-button-text { | |||
background: transparent !important; | |||
color: white !important; | |||
} | |||
/* Adjust tab nav for image buttons */ | |||
.tab-nav.image-tabs { | |||
display: flex; | |||
flex-wrap: wrap; | |||
border-bottom: 2px solid #3577BD; | |||
justify-content: center; | |||
padding-bottom: 15px; | |||
margin-bottom: 25px; | |||
background: transparent !important; | |||
} | |||
/* Animations for tab switches */ | |||
@keyframes tabFadeIn { | |||
from { opacity: 0; transform: translateY(10px); } | |||
to { opacity: 1; transform: translateY(0); } | |||
} | |||
.tab-pane.active { | |||
animation: tabFadeIn 0.3s ease-out; | |||
} | |||
/* Sub-tab Image Buttons (smaller) */ | |||
.sub-tab-navigation .tab-button-image { | |||
width: 100px; | |||
height: 60px; | |||
} | |||
.sub-tab-navigation .tab-nav.image-tabs { | |||
border-bottom: 1px solid #4C8DCE; | |||
justify-content: flex-start; | |||
} | |||
.sub-tab-navigation .tab-button-image .tab-button-text { | |||
font-size: 0.8em; | |||
padding: 6px 0; | |||
} | |||
/* For mobile responsiveness */ | |||
@media (max-width: 768px) { | |||
.tab-nav.image-tabs { | |||
justify-content: flex-start; | |||
overflow-x: auto; | |||
flex-wrap: nowrap; | |||
padding-bottom: 15px; | |||
margin-bottom: 20px; | |||
} | |||
.tab-button-image { | |||
width: 100px; | |||
height: 70px; | |||
flex: 0 0 auto; | |||
} | |||
.sub-tab-navigation .tab-button-image { | |||
width: 90px; | |||
height: 55px; | |||
} | |||
.tab-button-image .tab-button-text { | |||
padding: 6px 0; | |||
font-size: 0.85em; | |||
} | |||
} | |||
/* ========================= | |||
MATERIAL UI–LIKE STYLES | |||
========================= */ | |||
.material-card { | |||
background-color: #ffffff; | |||
border-radius: 8px; | |||
box-shadow: 0 2px 8px rgba(0,0,0,0.1); | |||
padding: 24px; | |||
margin: 24px 0; | |||
border-left: 4px solid #3577BD; | |||
transition: transform 0.2s ease, box-shadow 0.2s ease; | |||
/* Fix for text overflow */ | |||
word-wrap: break-word; | |||
overflow-wrap: break-word; | |||
word-break: normal; | |||
hyphens: auto; | |||
max-width: 100%; | |||
} | |||
.material-card:hover { | |||
transform: translateY(-2px); | |||
box-shadow: 0 4px 12px rgba(0,0,0,0.15); | |||
} | |||
.material-heading { | |||
color: #2161c0; | |||
margin-bottom: 16px; | |||
font-weight: 600; | |||
font-size: 1.3rem; | |||
padding-bottom: 8px; | |||
border-bottom: 1px solid #f0f0f0; | |||
} | |||
.material-body { | |||
color: #404040; | |||
font-size: 1rem; | |||
line-height: 1.6; | |||
margin-bottom: 16px; | |||
/* Fix for text overflow */ | |||
word-wrap: break-word; | |||
overflow-wrap: break-word; | |||
word-break: normal; | |||
hyphens: auto; | |||
max-width: 100%; | |||
} | |||
/* Ensure paragraphs in material-body don't overflow */ | |||
.material-body p { | |||
max-width: 100%; | |||
overflow-wrap: break-word; | |||
word-wrap: break-word; | |||
} | |||
.material-body b, .material-body strong { | |||
color: #2161c0; | |||
font-weight: 600; | |||
} | |||
.material-body i, .material-body em { | |||
color: #555; | |||
} | |||
.material-body ul, .material-body ol { | |||
margin-left: 1.5em; | |||
margin-bottom: 1em; | |||
} | |||
.material-body li { | |||
margin-bottom: 0.5em; | |||
} | |||
/* Regular links styling */ | |||
.material-card a { | |||
color: #3577BD; | |||
text-decoration: none; | |||
transition: color 0.2s; | |||
} | |||
.material-card a:hover { | |||
text-decoration: underline; | |||
color: #4C8DCE; | |||
} | |||
/* Button container with centering */ | |||
.button-container { | |||
margin: 16px 0; | |||
display: block; | |||
text-align: center !important; | |||
} | |||
/* Style for span with material-button class */ | |||
span.material-button { | |||
background-color: #3577BD !important; | |||
color: #ffffff !important; | |||
padding: 10px 16px !important; | |||
border-radius: 4px !important; | |||
display: inline-block !important; | |||
box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important; | |||
transition: all 0.2s ease !important; | |||
margin: 8px 0 !important; | |||
cursor: pointer !important; | |||
} | |||
/* Style for links inside material-button spans */ | |||
span.material-button a, | |||
span.material-button a:visited, | |||
span.material-button a.external { | |||
color: #ffffff !important; | |||
text-decoration: none !important; | |||
background-image: none !important; | |||
padding-right: 0 !important; | |||
} | |||
/* Hover states */ | |||
span.material-button:hover { | |||
background-color: #4C8DCE !important; | |||
transform: translateY(-1px) !important; | |||
box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important; | |||
} | |||
/* Active state */ | |||
span.material-button:active { | |||
transform: translateY(1px) !important; | |||
box-shadow: 0 1px 2px rgba(0,0,0,0.2) !important; | |||
} | |||
/* Image styling in cards */ | |||
.material-card .thumb { | |||
border: none; | |||
background-color: transparent; | |||
margin: 16px auto; | |||
} | |||
.material-card .thumbinner { | |||
border: none; | |||
background-color: transparent; | |||
text-align: center; | |||
max-width: 100% !important; | |||
width: auto !important; | |||
} | |||
.material-card .thumbcaption { | |||
font-style: italic; | |||
color: #666; | |||
margin-top: 8px; | |||
font-size: 0.95em; | |||
} | |||
.material-card img { | |||
border-radius: 4px; | |||
max-width: 100%; | |||
height: auto; | |||
box-shadow: 0 2px 6px rgba(0,0,0,0.1); | |||
} | |||
/* Categories and references */ | |||
.catlinks { | |||
background-color: #f8f9fa; | |||
border: none; | |||
border-radius: 8px; | |||
padding: 16px; | |||
margin: 24px 0; | |||
box-shadow: 0 1px 3px rgba(0,0,0,0.05); | |||
} | |||
.catlinks a { | |||
color: #3577BD; | |||
text-decoration: none; | |||
} | |||
.catlinks a:hover { | |||
text-decoration: underline; | |||
color: #4C8DCE; | |||
} | |||
ol.references { | |||
font-size: 0.9em; | |||
background-color: #f9f9f9; | |||
padding: 16px 16px 16px 40px; | |||
border-radius: 8px; | |||
margin-top: 24px; | |||
} | } | ||
. | /* ========================= | ||
RESPONSIVE ADJUSTMENTS | |||
========================= */ | |||
@media (max-width: 768px) { | |||
.material-card { | |||
padding: 16px; | |||
} | |||
.material-heading { | |||
font-size: 1.2rem; | |||
} | |||
#toc.toc { | |||
width: 100%; | |||
min-width: 0; | |||
} | |||
.material-body { | |||
font-size: 0.95rem; | |||
/* Stronger word breaking for mobile */ | |||
word-break: break-word; | |||
} | |||
.tab-nav { | |||
flex-direction: row; /* Keep horizontal on mobile */ | |||
overflow-x: auto; /* Allow scrolling */ | |||
white-space: nowrap; | |||
-webkit-overflow-scrolling: touch; | |||
padding-bottom: 5px; | |||
} | |||
.tab-button { | |||
flex: 0 0 auto; /* Don't grow or shrink */ | |||
} | |||
} | } | ||
Latest revision as of 19:52, 26 July 2025
/* =========================
EXISTING STYLES (unchanged)
========================= */
.main-column {
padding-top: 2em;
padding-bottom: 2em;
max-width: 1400px;
margin: 0 auto;
}
div#mw-navigation {
align-content: center;
}
#p-logo .mw-wiki-logo {
width: 7.5em;
height: 5.5em;
margin-top: -1.5em;
}
#p-personal-dropdown h3 {
color: #ffffff !important;
}
#mw-footer {
background-color: #17458a;
}
body {
font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f5f5f5;
}
div#mw-sidebar {
position: sticky;
top: 3em;
}
/* TEST
#toc.toc {
background-color: #fff;
border: none;
border-radius: 8px;
padding: 20px;
margin: 20px 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
display: inline-block;
max-width: 10%;
max-height: 60vh;
min-width: 13vw !important;
position: fixed;
right: 2vw;
top: 27vh;
overflow: auto;
font-size: 0.8em;
}
#content {
margin-bottom: 1.5em;
width: 58vw;
}
#page-tools {
border-bottom: solid 2px #26c;
font-size: 0.9em;
max-width: 58vw;
}
*/
/* =========================
TABLE STYLES
========================= */
.wikitable {
border-collapse: collapse;
width: 100%;
margin: 1em 0;
background-color: #fff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 1px 3px rgba(0,0,0,0.12);
border: none;
}
.wikitable > tr > th,
.wikitable > * > tr > th {
background-color: #2161c0;
color: white;
padding: 10px;
text-align: left;
border: none;
}
.wikitable > tr > td,
.wikitable > * > tr > td {
padding: 8px 10px;
border-top: 1px solid #eee;
border-left: none;
border-right: none;
border-bottom: none;
}
table.wikitable {
border: none !important;
}
/* Collapsible sections */
.collapsible-header {
background-color: #2161c0;
color: white;
padding: 10px 15px;
border-radius: 8px 8px 0 0;
margin-top: 20px;
cursor: pointer;
font-weight: bold;
font-size: 1.2em;
display: flex;
justify-content: space-between;
align-items: center;
user-select: none;
}
.collapsible-header:hover {
background-color: #3577BD;
}
.collapsible-header.collapsed {
border-radius: 8px;
}
.collapsible-content {
background-color: #ffffff;
border: 1px solid #eee;
border-top: none;
border-radius: 0 0 8px 8px;
padding: 15px;
margin-bottom: 20px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.collapse-icon {
font-size: 0.8em;
margin-left: 10px;
}
/* =========================
TOC IMPROVEMENTS
========================= */
#toc.toc {
background-color: #fff;
border: none;
border-radius: 8px;
padding: 20px;
margin: 20px 0;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
display: inline-block;
min-width: 300px;
}
#toc.toc .toctitle {
font-weight: bold;
color: #212121;
font-size: 1.2em;
border-bottom: 2px solid #3577BD;
padding-bottom: 8px;
margin-bottom: 12px;
}
#toc.toc .toctitle h2 {
font-size: inherit;
display: inline;
}
#toc.toc ul {
margin-left: 1.2em;
margin-bottom: 0.5em;
list-style-type: none;
}
#toc.toc ul ul {
margin-top: 0.3em;
}
#toc.toc li {
margin-bottom: 0.4em;
line-height: 1.4;
}
#toc.toc a {
color: #3577BD;
text-decoration: none;
display: inline-block;
padding: 2px 0;
transition: all 0.2s ease;
}
#toc.toc a:hover {
color: #4C8DCE;
transform: translateX(2px);
}
/* =========================
HEADINGS
========================= */
h1, h2, h3, h4, h5, h6 {
color: #2161c0;
margin-top: 1.2em;
margin-bottom: 0.5em;
font-weight: 500;
}
h1 {
font-size: 1.8em;
border-bottom: 2px solid #eaecf0;
padding-bottom: 0.2em;
}
h2 {
font-size: 1.5em;
border-bottom: 1px solid #eaecf0;
padding-bottom: 0.2em;
}
h3 {
font-size: 1.3em;
}
h4 {
font-size: 1.1em;
color: #333;
}
h5 {
font-size: 1em;
color: #444;
font-weight: 600;
}
h6 {
font-size: 0.9em;
color: #555;
font-weight: 600;
font-style: italic;
}
/* Section headings for wiki pages */
.mw-headline {
display: inline-block;
padding-bottom: 2px;
}
/* Add nice border bottom animation to section headings */
h2 .mw-headline {
position: relative;
}
h2 .mw-headline:after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: -2px;
left: 0;
background-color: #3577BD;
transition: width 0.3s ease;
}
h2:hover .mw-headline:after {
width: 100%;
}
/* Edit section links */
.mw-editsection {
font-size: 0.7em;
margin-left: 8px;
font-weight: normal;
opacity: 0.5;
transition: opacity 0.2s ease;
}
.mw-editsection:hover {
opacity: 1;
}
/* Hide toolbox */
#p-tb {
display: none;
}
/* =========================
TAB NAVIGATION SYSTEM
========================= */
.clearfix:after {
content: "";
display: table;
clear: both;
}
.tab-navigation {
margin: 20px 0;
position: relative;
}
.tab-nav {
display: flex;
border-bottom: 2px solid #3577BD;
margin-bottom: 20px;
flex-wrap: wrap;
}
.tab-button {
padding: 10px 20px;
background-color: #f0f0f0;
border-radius: 5px 5px 0 0;
margin-right: 5px;
margin-bottom: 5px;
cursor: pointer;
font-weight: bold;
transition: all 0.3s ease;
user-select: none;
}
.tab-button:hover {
background-color: #e0e0e0;
}
.tab-button.active {
background-color: #3577BD;
color: white;
}
.tab-content {
position: relative;
}
.tab-pane {
display: none;
}
.tab-pane.active {
display: block;
}
/* Sub Tab Navigation */
.sub-tab-navigation {
margin: 10px 0 20px 0;
position: relative;
}
.sub-tab-navigation .tab-nav {
border-bottom: 1px solid #4C8DCE;
}
.sub-tab-navigation .tab-button {
padding: 8px 15px;
font-size: 0.9em;
background-color: #e5e5e5;
}
.sub-tab-navigation .tab-button.active {
background-color: #4C8DCE;
}
@keyframes tabFadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
/* =========================
IMAGE TAB BUTTON STYLES FOR MEDIAWIKI - PURE IMAGE VERSION
========================= */
.tab-button-image {
position: relative;
width: 120px;
height: 80px;
margin-right: 10px;
margin-bottom: 10px;
border-radius: 8px;
overflow: hidden;
cursor: pointer;
transition: transform 0.3s ease;
display: inline-block;
background: transparent !important;
border: none !important;
padding: 0 !important;
/* Removed box-shadow completely */
}
.tab-button-image:hover {
transform: translateY(-3px);
/* Removed box-shadow */
background: transparent !important;
}
.tab-button-image.active {
/* Simple border instead of box-shadow */
border: 3px solid #3577BD !important;
background: transparent !important;
}
/* Tab image wrapper to handle MediaWiki's image rendering */
.tab-image-wrapper {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
overflow: hidden;
background: transparent !important;
}
/* MediaWiki renders images with specific classes and divs */
.tab-image-wrapper .thumbimage,
.tab-image-wrapper img {
width: 100% !important;
height: 100% !important;
object-fit: cover !important;
margin: 0 !important;
padding: 0 !important;
border: none !important;
border-radius: 0 !important;
box-shadow: none !important;
max-width: none !important;
min-width: 100% !important;
min-height: 100% !important;
max-height: none !important;
position: absolute !important;
top: 0 !important;
left: 0 !important;
transition: transform 0.5s ease !important;
}
/* Remove MediaWiki's default image borders and styles */
.tab-image-wrapper .thumbinner {
border: none !important;
background: transparent !important;
padding: 0 !important;
width: 100% !important;
height: 100% !important;
}
.tab-image-wrapper .thumbcaption {
display: none !important;
}
/* Hover effect for the image */
.tab-button-image:hover .thumbimage,
.tab-button-image:hover img {
transform: scale(1.1) !important;
}
.tab-button-image .tab-button-text {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
background: transparent !important;
color: white;
padding: 8px 0;
text-align: center;
font-weight: bold;
font-size: 0.9em;
text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
z-index: 10;
}
.tab-button-image.active .tab-button-text {
background: transparent !important;
color: white !important;
}
/* Adjust tab nav for image buttons */
.tab-nav.image-tabs {
display: flex;
flex-wrap: wrap;
border-bottom: 2px solid #3577BD;
justify-content: center;
padding-bottom: 15px;
margin-bottom: 25px;
background: transparent !important;
}
/* Animations for tab switches */
@keyframes tabFadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.tab-pane.active {
animation: tabFadeIn 0.3s ease-out;
}
/* Sub-tab Image Buttons (smaller) */
.sub-tab-navigation .tab-button-image {
width: 100px;
height: 60px;
}
.sub-tab-navigation .tab-nav.image-tabs {
border-bottom: 1px solid #4C8DCE;
justify-content: flex-start;
}
.sub-tab-navigation .tab-button-image .tab-button-text {
font-size: 0.8em;
padding: 6px 0;
}
/* For mobile responsiveness */
@media (max-width: 768px) {
.tab-nav.image-tabs {
justify-content: flex-start;
overflow-x: auto;
flex-wrap: nowrap;
padding-bottom: 15px;
margin-bottom: 20px;
}
.tab-button-image {
width: 100px;
height: 70px;
flex: 0 0 auto;
}
.sub-tab-navigation .tab-button-image {
width: 90px;
height: 55px;
}
.tab-button-image .tab-button-text {
padding: 6px 0;
font-size: 0.85em;
}
}
/* =========================
MATERIAL UI–LIKE STYLES
========================= */
.material-card {
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
padding: 24px;
margin: 24px 0;
border-left: 4px solid #3577BD;
transition: transform 0.2s ease, box-shadow 0.2s ease;
/* Fix for text overflow */
word-wrap: break-word;
overflow-wrap: break-word;
word-break: normal;
hyphens: auto;
max-width: 100%;
}
.material-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.material-heading {
color: #2161c0;
margin-bottom: 16px;
font-weight: 600;
font-size: 1.3rem;
padding-bottom: 8px;
border-bottom: 1px solid #f0f0f0;
}
.material-body {
color: #404040;
font-size: 1rem;
line-height: 1.6;
margin-bottom: 16px;
/* Fix for text overflow */
word-wrap: break-word;
overflow-wrap: break-word;
word-break: normal;
hyphens: auto;
max-width: 100%;
}
/* Ensure paragraphs in material-body don't overflow */
.material-body p {
max-width: 100%;
overflow-wrap: break-word;
word-wrap: break-word;
}
.material-body b, .material-body strong {
color: #2161c0;
font-weight: 600;
}
.material-body i, .material-body em {
color: #555;
}
.material-body ul, .material-body ol {
margin-left: 1.5em;
margin-bottom: 1em;
}
.material-body li {
margin-bottom: 0.5em;
}
/* Regular links styling */
.material-card a {
color: #3577BD;
text-decoration: none;
transition: color 0.2s;
}
.material-card a:hover {
text-decoration: underline;
color: #4C8DCE;
}
/* Button container with centering */
.button-container {
margin: 16px 0;
display: block;
text-align: center !important;
}
/* Style for span with material-button class */
span.material-button {
background-color: #3577BD !important;
color: #ffffff !important;
padding: 10px 16px !important;
border-radius: 4px !important;
display: inline-block !important;
box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
transition: all 0.2s ease !important;
margin: 8px 0 !important;
cursor: pointer !important;
}
/* Style for links inside material-button spans */
span.material-button a,
span.material-button a:visited,
span.material-button a.external {
color: #ffffff !important;
text-decoration: none !important;
background-image: none !important;
padding-right: 0 !important;
}
/* Hover states */
span.material-button:hover {
background-color: #4C8DCE !important;
transform: translateY(-1px) !important;
box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}
/* Active state */
span.material-button:active {
transform: translateY(1px) !important;
box-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}
/* Image styling in cards */
.material-card .thumb {
border: none;
background-color: transparent;
margin: 16px auto;
}
.material-card .thumbinner {
border: none;
background-color: transparent;
text-align: center;
max-width: 100% !important;
width: auto !important;
}
.material-card .thumbcaption {
font-style: italic;
color: #666;
margin-top: 8px;
font-size: 0.95em;
}
.material-card img {
border-radius: 4px;
max-width: 100%;
height: auto;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* Categories and references */
.catlinks {
background-color: #f8f9fa;
border: none;
border-radius: 8px;
padding: 16px;
margin: 24px 0;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.catlinks a {
color: #3577BD;
text-decoration: none;
}
.catlinks a:hover {
text-decoration: underline;
color: #4C8DCE;
}
ol.references {
font-size: 0.9em;
background-color: #f9f9f9;
padding: 16px 16px 16px 40px;
border-radius: 8px;
margin-top: 24px;
}
/* =========================
RESPONSIVE ADJUSTMENTS
========================= */
@media (max-width: 768px) {
.material-card {
padding: 16px;
}
.material-heading {
font-size: 1.2rem;
}
#toc.toc {
width: 100%;
min-width: 0;
}
.material-body {
font-size: 0.95rem;
/* Stronger word breaking for mobile */
word-break: break-word;
}
.tab-nav {
flex-direction: row; /* Keep horizontal on mobile */
overflow-x: auto; /* Allow scrolling */
white-space: nowrap;
-webkit-overflow-scrolling: touch;
padding-bottom: 5px;
}
.tab-button {
flex: 0 0 auto; /* Don't grow or shrink */
}
}