MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
.mp-box { | .mp-box { | ||
background: #1e1f22; | background: #1e1f22; | ||
| Line 74: | Line 6: | ||
overflow: hidden; | overflow: hidden; | ||
margin-bottom: 20px; | margin-bottom: 20px; | ||
} | } | ||
| Line 92: | Line 13: | ||
font-weight: bold; | font-weight: bold; | ||
margin-bottom: 10px; | margin-bottom: 10px; | ||
} | } | ||
| Line 119: | Line 39: | ||
} | } | ||
/* 2. Infobox Compatibility */ | |||
/* Adds support for standard MediaWiki 'infobox' class alongside Fandom's 'pi' classes */ | |||
.small-text-row .pi-data-label, | |||
.small-text-row .infobox-label, | |||
.infobox.small-text .label { | |||
font-size: 11px !important; | |||
line-height: 1.1 !important; | |||
padding-right: 5px !important; | |||
} | |||
.small-text-row .pi-data-value, | |||
.small-text-row .infobox-data, | |||
.infobox.small-text .data { | |||
font-size: 12px !important; | |||
font-weight: bold; | |||
} | |||
/* 3. Step Containers */ | |||
.step-container { | .step-container { | ||
background: #1e1e1e; | background: #1e1e1e; | ||
| Line 124: | Line 62: | ||
padding: 20px; | padding: 20px; | ||
text-align: center; | text-align: center; | ||
border-radius: | border-radius: 4px; | ||
} | } | ||
| Line 138: | Line 75: | ||
} | } | ||
/* 4. Tabber Compatibility */ | |||
/* Fandom uses WDS; standard MediaWiki uses 'tabber' or 'oo-ui'. | |||
These updates ensure your horizontal scrolling works on both. */ | |||
.wds-tabs__wrapper, .tabber__tabs, .tabbernav { | |||
margin-bottom: 0 !important; | |||
overflow-x: auto !important; | |||
overflow-y: hidden !important; | |||
display: flex !important; | |||
padding-bottom: 5px; | |||
} | |||
.wds-tabs, .tabbernav { | |||
display: flex !important; | |||
flex-wrap: nowrap !important; | |||
list-style: none !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
} | |||
/* Scrollbar styling for tabs */ | |||
.wds-tabs__wrapper::-webkit-scrollbar, | |||
.tabbernav::-webkit-scrollbar { | |||
height: 8px; | |||
} | |||
.wds-tabs__wrapper::-webkit-scrollbar-thumb, | |||
.tabbernav::-webkit-scrollbar-thumb { | |||
background: #555; | |||
border-radius: 10px; | |||
} | |||
/* 5. Character Sliders */ | |||
.char-slider-container { | .char-slider-container { | ||
display: flex; | display: flex; | ||
| Line 150: | Line 118: | ||
} | } | ||
.char-slider-container | .char-slider-container::-webkit-scrollbar { | ||
height: 8px; | height: 8px; | ||
} | } | ||
.char-slider-container::-webkit-scrollbar-thumb { | |||
.char-slider-container | |||
background: #555; | background: #555; | ||
border-radius: 10px; | border-radius: 10px; | ||
| Line 171: | Line 138: | ||
.char-card:hover { | .char-card:hover { | ||
transform: translateY(-5px); | transform: translateY(-5px); | ||
border-color: # | border-color: #ff0000; | ||
} | } | ||
| Line 187: | Line 154: | ||
} | } | ||
. | /* 6. Moveboxes */ | ||
.movebox-container { | .movebox-container { | ||
background-color: #1a1a1a; | background-color: #1a1a1a; | ||
border: 2px solid #333333; | border: 2px solid #333333; | ||
border-radius: | border-radius: 4px; | ||
width: 100%; | width: 100%; | ||
max-width: 450px; | max-width: 450px; | ||
Revision as of 01:18, 25 April 2026
.mp-box {
background: #1e1f22;
border: 1px solid #2b2d31;
border-radius: 8px;
padding: 15px;
overflow: hidden;
margin-bottom: 20px;
}
.mp-title {
text-align: center;
font-size: 18px;
font-weight: bold;
margin-bottom: 10px;
}
.mp-title img {
max-width: 100%;
height: auto;
display: block;
margin: 0 auto;
}
.mp-content {
padding: 15px;
background: transparent !important;
color: #fff;
font-family: Arial, sans-serif;
font-size: 14px;
line-height: 1.5;
}
.mp-content img {
display: block;
max-width: 100%;
height: auto;
background: transparent;
margin-bottom: 10px;
}
/* 2. Infobox Compatibility */
/* Adds support for standard MediaWiki 'infobox' class alongside Fandom's 'pi' classes */
.small-text-row .pi-data-label,
.small-text-row .infobox-label,
.infobox.small-text .label {
font-size: 11px !important;
line-height: 1.1 !important;
padding-right: 5px !important;
}
.small-text-row .pi-data-value,
.small-text-row .infobox-data,
.infobox.small-text .data {
font-size: 12px !important;
font-weight: bold;
}
/* 3. Step Containers */
.step-container {
background: #1e1e1e;
border: 2px solid #3c3c3c;
padding: 20px;
text-align: center;
border-radius: 4px;
}
.step-text {
margin-top: 15px;
font-size: 1.1em;
color: #ececec;
line-height: 1.5;
max-width: 500px;
margin-left: auto;
margin-right: auto;
}
/* 4. Tabber Compatibility */
/* Fandom uses WDS; standard MediaWiki uses 'tabber' or 'oo-ui'.
These updates ensure your horizontal scrolling works on both. */
.wds-tabs__wrapper, .tabber__tabs, .tabbernav {
margin-bottom: 0 !important;
overflow-x: auto !important;
overflow-y: hidden !important;
display: flex !important;
padding-bottom: 5px;
}
.wds-tabs, .tabbernav {
display: flex !important;
flex-wrap: nowrap !important;
list-style: none !important;
margin: 0 !important;
padding: 0 !important;
}
/* Scrollbar styling for tabs */
.wds-tabs__wrapper::-webkit-scrollbar,
.tabbernav::-webkit-scrollbar {
height: 8px;
}
.wds-tabs__wrapper::-webkit-scrollbar-thumb,
.tabbernav::-webkit-scrollbar-thumb {
background: #555;
border-radius: 10px;
}
/* 5. Character Sliders */
.char-slider-container {
display: flex;
overflow-x: auto;
gap: 15px;
padding: 20px;
background: #1e1e1e;
border: 2px solid #3c3c3c;
border-radius: 8px;
scrollbar-width: thin;
scrollbar-color: #555 #1e1e1e;
}
.char-slider-container::-webkit-scrollbar {
height: 8px;
}
.char-slider-container::-webkit-scrollbar-thumb {
background: #555;
border-radius: 10px;
}
.char-card {
flex: 0 0 200px;
text-align: center;
background: #2a2a2a;
border: 1px solid #444;
padding: 10px;
border-radius: 4px;
transition: transform 0.2s;
}
.char-card:hover {
transform: translateY(-5px);
border-color: #ff0000;
}
.char-card img {
max-width: 100%;
height: auto;
border-radius: 2px;
}
.char-name {
margin-top: 10px;
font-weight: bold;
color: #fff;
font-size: 0.9em;
}
/* 6. Moveboxes */
.movebox-container {
background-color: #1a1a1a;
border: 2px solid #333333;
border-radius: 4px;
width: 100%;
max-width: 450px;
margin: 10px 0;
color: #ffffff;
font-family: sans-serif;
overflow: hidden;
}
.movebox-header {
background-color: #111111;
padding: 10px;
font-weight: bold;
font-size: 1.2em;
text-align: center;
border-bottom: 2px solid #333333;
text-transform: uppercase;
letter-spacing: 1px;
}
.movebox-image {
background-color: #000000;
padding: 5px;
text-align: center;
}
.movebox-stats {
display: flex;
background-color: #222222;
border-top: 1px solid #333333;
border-bottom: 1px solid #333333;
}
.movebox-stat-item {
flex: 1;
padding: 8px;
text-align: center;
border-right: 1px solid #333333;
}
.movebox-stat-item:last-child {
border-right: none;
}
.movebox-stat-label {
display: block;
font-size: 0.75em;
color: #888888;
text-transform: uppercase;
}
.movebox-stat-value {
font-weight: bold;
font-size: 1em;
}
.movebox-description {
padding: 15px;
font-size: 0.95em;
line-height: 1.4;
background-color: #1a1a1a;
}