MediaWiki:Common.css
Appearance
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.
/* CSS placed here will be applied to all skins */
html,
body,
#content,
.mw-page-container,
.mw-body,
.mw-body-content,
.vector-body,
.vector-toc,
.vector-toc *,
.infobox,
.portable-infobox,
.cdx-search-input,
.cdx-text-input__input,
.cdx-menu,
.cdx-menu-item,
.mw-heading,
.mw-body :is(h2, h3, h4, h5, h6),
.mw-body-content :is(h2, h3, h4, h5, h6),
button,
input,
select,
textarea {
font-family: var(--fedo-font) !important;
}
/* Page title keeps the classic serif look */
h1.firstHeading,
.mw-first-heading {
font-family: 'Times New Roman', Times, 'Liberation Serif', serif !important;
}
/* =====================================================================
1. UI CLEANUP & READ-ONLY HIDING
===================================================================== */
/* Unify background & fix viewport height */
html,
body,
.mw-page-container,
.mw-header,
.mw-content-container {
background-color: #ffffff !important;
}
html,
body {
min-height: 100% !important;
}
.mw-page-container {
min-height: 100vh !important;
box-sizing: border-box !important;
border: none !important;
box-shadow: none !important;
}
/* Footers: privacy, disclaimers, powered by */
#footer-places,
#footer-icons,
.mw-footer-container {
display: none !important;
}
/* Sidebar & navigation controls */
#mw-sidebar-button,
#vector-main-menu-dropdown {
display: none !important;
}
/* User account / log in links */
#p-personal,
#pt-login,
#pt-login-2,
#p-vector-user-menu-overflow,
.vector-user-links,
.user-links-collapsible-item {
display: none !important;
}
/* Page tabs & toolbars (namespaces, views, actions) */
.vector-page-toolbar,
.mw-article-toolbar,
#p-namespaces,
#p-views,
#p-cactions,
#vector-page-tools-dropdown {
display: none !important;
}
/* Spacing left behind by removed tabs */
.mw-body-header {
border-bottom: none !important;
margin-bottom: 0 !important;
}
/* Watch page elements (forms & VisualEditor) */
#wpWatchthis,
.page-mw-watchthis,
.mw-editWatchlist,
.mw-widget-checkDef-watchthis,
label[for="wpWatchthis"],
.oo-ui-fieldLayout:has(#wpWatchthis),
.oo-ui-fieldLayout:has([name="wpWatchthis"]) {
display: none !important;
}
/* Right sidebar / column tools / appearance column */
.vector-column-end,
.no-font-mode-scale.vector-column-end {
display: none !important;
}
/* Category links */
#catlinks {
display: none;
}
/* Hide the 'home' page from the search suggestions dropdown */
li.cdx-menu-item[title="home"] {
display: none !important;
}
/* =====================================================================
2. HEADER ALIGNMENT & INSTANT SEARCH POSITIONING
===================================================================== */
/* Remove gap between header items */
.mw-header .vector-header-start {
gap: 0 !important;
}
/* Eliminate search shift, margin delays and animation latency */
#p-search,
.vector-search-box,
.vector-typeahead-search-container,
.cdx-typeahead-search,
.vector-typeahead-search {
margin-left: 0 !important;
margin-right: 0 !important;
padding-left: 0 !important;
transition: none !important;
}
.cdx-typeahead-search__input-wrapper,
.cdx-search-input {
margin-left: 0 !important;
transition: none !important;
}
/* =====================================================================
3. TABLE OF CONTENTS
===================================================================== */
#vector-toc,
.vector-toc {
margin-top: 0 !important;
}
ul#mw-panel-toc-list.vector-toc-contents {
margin-left: 6px !important;
}
/* Hide TOC header & unpin button */
.vector-pinnable-header-pinned.vector-toc-pinnable-header.vector-pinnable-header,
.vector-pinnable-header-toggle-button.vector-pinnable-header-unpin-button {
display: none !important;
}
/* =====================================================================
4. BRANDING & MEDIA
===================================================================== */
/* Neutralize any legacy container inversion */
.mw-logo-container.skin-invert {
filter: none !important;
}
/* Wordmark typography & light mode colour */
.mw-logo-wordmark,
.mw-logo-wordmark * {
color: #202122 !important;
font-family: "Mountains of Christmas", cursive, serif !important;
font-weight: 700 !important;
}
/* Modern infobox images */
.portable-infobox .pi-image img,
.infobox img {
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* =====================================================================
5. MATERIAL FLOATING SEARCH BAR
===================================================================== */
/* Hide search buttons & dropdown filler */
#searchButton,
.cdx-search-input__end-button,
.cdx-menu-item--search-for {
display: none !important;
}
/* Search container & layout stability */
.vector-typeahead-search-container {
max-width: none !important;
margin: 0 !important;
transform: none !important;
}
.cdx-search-input {
border-radius: 8px !important;
border: 1px solid transparent !important;
background-color: #f1f3f4 !important;
transition: background-color 0.2s, box-shadow 0.2s, border 0.2s;
}
.cdx-search-input:focus-within {
background-color: #ffffff !important;
box-shadow: 0 4px 6px rgba(32, 33, 36, 0.2) !important;
border: 1px solid #dfe1e5 !important;
border-radius: 8px !important;
}
/* Search inputs */
.cdx-text-input,
.cdx-text-input:focus-within,
.cdx-text-input.cdx-text-input--status-default {
border: none !important;
box-shadow: none !important;
outline: none !important;
background: transparent !important;
}
.cdx-text-input__input {
background: transparent !important;
border: none !important;
box-shadow: none !important;
padding-right: 32px !important;
transition: none !important;
}
/* Search dropdown results */
.cdx-menu {
border-radius: 8px !important;
box-shadow: 0 6px 12px rgba(32, 33, 36, 0.15) !important;
border: 1px solid #dfe1e5 !important;
margin-top: 8px !important;
background-color: #ffffff !important;
overflow: hidden !important;
padding: 0 !important;
}
.cdx-menu-item:hover,
.cdx-menu-item[aria-selected="true"] {
background-color: #eeeeee !important;
}
/* =====================================================================
6. MOBILE FIXES (LOGO, SEARCH & INFOBOX)
===================================================================== */
/* Mobile search toggle button spacing */
.search-toggle {
margin-right: 8px !important;
}
/* Restore the logo icon on mobile using inline alignment */
.mw-logo-icon {
display: inline-block !important;
vertical-align: middle !important;
margin-right: 6px !important;
}
.mw-logo-container {
display: inline-block !important;
vertical-align: middle !important;
}
/* Unfloat infobox only on narrow viewports (<= 500px) */
@media (max-width: 500px) {
.portable-infobox,
.infobox {
float: none !important;
clear: both !important;
margin: 1em auto !important;
max-width: 100% !important;
}
}
/* Centre the table-style infobox on phones */
@media screen and (max-width: 639px) {
table.infobox {
display: table;
width: 100%;
max-width: 22em;
margin-left: auto;
margin-right: auto;
box-sizing: border-box;
}
}
/* =====================================================================
7. MAIN PAGE / FEDOVERSE_WIKI PAGE
===================================================================== */
/* Remove Vector default top padding on Main Page */
.page-Main_Page #content,
.page-Main_Page .mw-body,
.page-Main_Page .vector-body,
.page-Main_Page #bodyContent {
padding-top: 0 !important;
margin-top: 0 !important;
}
/* Hide Vector titlebar on Main Page */
.page-Main_Page .no-font-mode-scale.vector-page-titlebar.mw-body-header {
display: none !important;
}
/* Hide elements only on Fedoverse_Wiki */
body.page-Fedoverse_Wiki .vector-sitenotice-container,
body.page-Fedoverse_Wiki .vector-column-start {
display: none !important;
}
/* =====================================================================
8. BUTTONS
===================================================================== */
.btn {
display: inline-block;
position: relative;
border: 2px solid #000;
border-radius: 6px;
padding: 8px 18px;
font-family: var(--fedo-font);
font-size: 0.9rem;
font-weight: 700;
line-height: 1.4;
text-align: center;
text-decoration: none !important;
white-space: nowrap;
vertical-align: middle;
color: #fff !important;
background-color: var(--btn-bg, #4FBD4F);
}
/* Button colors */
.btn-green {
--btn-bg: #4FBD4F;
}
.btn-blue {
--btn-bg: #646afc;
}
.btn-red {
--btn-bg: #f42447;
font-size: 1.2rem;
padding: 8px 22px;
}
/* Clean link styling */
.plainlinks a,
.plainlinks a:hover {
text-decoration: none !important;
}
.plainlinks a .btn {
color: #fff !important;
}
/* =====================================================================
9. INFOBOX SHOWCASE & AUDIO PLAYER
===================================================================== */
.infobox-showcase {
text-align: center;
padding: 0.1em 0.1em 0.1em;
}
.infobox-showcase pre {
all: unset;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 0.1em;
}
.infobox-showcase img {
margin: 0 1px;
}
.featured-song-label {
font-weight: bold;
font-size: 14px;
line-height: 1.4em;
margin-bottom: 4px;
}
.infobox-audio {
padding-top: 0;
margin: 0;
}
.infobox-audio-title {
font-size: 14px;
font-style: italic;
line-height: 1.3em;
margin: 0 0 6px 0;
padding: 0;
}
.infobox-audio audio {
width: 100%;
display: block;
border-radius: 8px;
}
.custom-audio-player {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
height: 34px;
box-sizing: border-box;
padding: 0 12px;
background: #F5F5F5;
border-radius: 10px;
color: white;
}
.custom-audio-player button {
border: none;
background: none;
color: #1F1F1F;
cursor: pointer;
padding: 0;
font-size: 16px;
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
}
.custom-audio-player button:hover {
opacity: 0.75;
}
.audio-play {
font-size: 18px !important;
}
.audio-progress-container {
flex: 1 1 auto;
min-width: 48px;
display: flex;
align-items: center;
}
/* The input itself is just a transparent hit area; the visible bar is the track below */
.audio-progress {
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 14px;
margin: 0;
padding: 0;
background: transparent;
cursor: pointer;
}
/* Track (separate rules: a browser drops the whole rule if it dislikes one selector) */
.audio-progress::-webkit-slider-runnable-track {
height: 5px;
border-radius: 5px;
background: #4F4F4F;
}
.audio-progress::-moz-range-track {
height: 5px;
border-radius: 5px;
background: #4F4F4F;
}
/* Thumb: same colour in both browsers */
.audio-progress::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 14px;
height: 14px;
margin-top: -4.5px; /* centres the 14px thumb on the 5px track in Chromium */
border: none;
border-radius: 50%;
background: #A89797;
cursor: pointer;
}
.audio-progress::-moz-range-thumb {
width: 14px;
height: 14px;
border: none;
border-radius: 50%;
background: #A89797;
cursor: pointer;
}
.audio-time {
font-size: 13px;
white-space: nowrap;
color: #4F4F4F;
}
.audio-volume {
font-size: 16px !important;
}
/* Small screens: keep the progress bar, just tighten the spacing */
@media (max-width: 600px) {
.custom-audio-player {
gap: 8px;
padding: 0 10px;
}
.audio-time {
font-size: 12px;
}
}
/* =====================================================================
11. PODCAST CAROUSEL
===================================================================== */
.pc-podcast{
--ink:#26231f;
--muted:#6f6a62;
width:calc(100% - 24px);
max-width:740px;
box-sizing:border-box;
margin:24px auto;
color:var(--ink);
font-family:var(--fedo-font);
}
.pc-deck{
display:grid;
padding-bottom:30px;
touch-action:pan-y;
}
.pc-deck:empty{
min-height:180px;
background:linear-gradient(160deg,#f1efea,#e6e3dd);
border:1px solid #d8d4cc;
border-radius:24px;
box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 10px 28px rgba(40,30,20,.10);
}
.pc-card{
grid-area:1/1;
position:relative;
box-sizing:border-box;
min-width:0;
display:grid;
grid-template-columns:auto minmax(0,1fr);
align-items:center;
gap:24px;
padding:28px;
background:linear-gradient(160deg,#f1efea,#e6e3dd);
border:1px solid #d8d4cc;
border-radius:24px;
box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 10px 28px rgba(40,30,20,.10);
transform-origin:50% 100%;
will-change:transform;
transition:transform .45s cubic-bezier(.2,.8,.2,1),filter .45s;
}
.pc-ghost{
pointer-events:none;
}
.pc-card[data-pos="0"]{z-index:3}
.pc-card[data-pos="1"]{z-index:2;transform:translateY(14px) scale(.95);filter:brightness(.975)}
.pc-card[data-pos="2"]{z-index:1;transform:translateY(28px) scale(.9);filter:brightness(.95)}
.pc-cover{
width:120px;
height:120px;
border-radius:22px;
overflow:hidden;
background:#ddd9d2;
border:1px solid #cfcac2;
box-shadow:0 4px 12px rgba(40,30,20,.12);
display:flex;
align-items:center;
justify-content:center;
font-size:2.2rem;
}
.pc-cover img{
width:100%;
height:100%;
object-fit:cover;
display:block;
}
.pc-body{
min-width:0;
padding-right:32px;
display:flex;
flex-direction:column;
align-items:flex-start;
gap:10px;
}
.pc-meta{
display:flex;
flex-wrap:wrap;
gap:8px;
}
.pc-pill{
display:inline-flex;
align-items:center;
padding:6px 12px;
border-radius:999px;
background:rgba(255,255,255,.6);
border:1px solid #dad6ce;
font-size:.8rem;
font-weight:600;
line-height:1;
color:var(--muted);
white-space:nowrap;
}
.pc-pill-strong{
color:var(--ink);
font-weight:700;
}
.pc-title{
font-weight:800;
font-size:clamp(1.15rem,3.4vw,1.6rem);
line-height:1.15;
letter-spacing:-.01em;
overflow-wrap:anywhere;
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden;
}
.pc-title a{
color:inherit!important;
text-decoration:none!important;
transition:color .15s;
}
.pc-title a:hover{
color:#3f7a35!important;
}
.pc-desc{
margin:0;
font-size:.92rem;
line-height:1.4;
color:var(--muted);
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden;
}
.pc-desc:empty{
display:none;
}
/* arrows + dots */
.pc-nav{
display:flex;
justify-content:center;
align-items:center;
gap:14px;
}
.pc-nav:empty{
display:none;
}
.pc-btn{
width:36px;
height:36px;
padding:0;
border-radius:50%;
border:1px solid #dad6ce;
background:rgba(255,255,255,.6);
color:var(--muted);
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
transition:background .15s,color .15s;
-webkit-tap-highlight-color:transparent;
}
.pc-btn:hover,
.pc-btn:focus-visible{
background:#fff;
color:#3f7a35;
}
.pc-btn svg{
width:18px;
height:18px;
}
.pc-dots{
display:flex;
align-items:center;
gap:7px;
}
.pc-dot{
width:8px;
height:8px;
padding:0;
border:0;
border-radius:99px;
background:#cbc6bd;
cursor:pointer;
transition:width .25s,background .25s;
}
.pc-dot[aria-current="true"]{
width:22px;
background:var(--ink);
}
@media(max-width:640px){
.pc-podcast{margin:16px auto}
.pc-card{gap:14px;padding:18px;border-radius:20px}
.pc-cover{width:84px;height:84px;border-radius:18px;font-size:1.8rem}
.pc-body{padding-right:34px;gap:8px}
.pc-title{font-size:1.05rem}
.pc-desc{font-size:.85rem}
.pc-meta{display:none}
}
.pc-nav {
padding-top: 24px;
}
/* Fix podcast cards on narrow screens */
.pc-podcast {
container-type: normal;
}
.pc-card {
min-width: 0;
grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
gap: 20px;
}
.pc-body {
min-width: 0;
max-width: 100%;
padding-right: 0;
overflow: hidden;
}
.pc-title,
.pc-desc {
width: 100%;
max-width: 100%;
min-width: 0;
overflow-wrap: anywhere;
word-break: normal;
}
.pc-title {
font-size: clamp(1rem, 2.5vw, 1.6rem);
line-height: 1.2;
}
.pc-desc {
font-size: clamp(0.8rem, 1.5vw, 0.92rem);
}
/* Phone layout */
@media (max-width: 480px) {
.pc-card {
grid-template-columns: 64px minmax(0, 1fr);
gap: 12px;
padding: 14px;
border-radius: 18px;
}
.pc-cover {
width: 64px;
height: 64px;
border-radius: 14px;
}
.pc-body {
gap: 6px;
}
.pc-title {
font-size: 0.95rem;
line-height: 1.25;
-webkit-line-clamp: 3;
}
.pc-desc {
font-size: 0.78rem;
line-height: 1.35;
-webkit-line-clamp: 2;
}
}
/* =====================================================================
FEDOVERSE HOMEPAGE IMAGE LAYOUT
===================================================================== */
.fed-home-image {
display: block !important;
position: relative !important;
flex: 1 1 520px;
min-width: 0 !important;
overflow: hidden !important;
border-radius: 26px !important;
background: transparent !important;
border: none !important;
padding: 0 !important;
margin: 0 !important;
box-shadow: none !important;
line-height: 0 !important;
isolation: isolate;
}
/* Remove MediaWiki-generated image wrappers */
.fed-home-image .thumb,
.fed-home-image .thumbinner,
.fed-home-image .mw-default-size,
.fed-home-image figure,
.fed-home-image .mw-file-description {
display: block !important;
width: 100% !important;
height: 100% !important;
max-width: none !important;
padding: 0 !important;
margin: 0 !important;
border: none !important;
background: transparent !important;
box-shadow: none !important;
}
/* Make the image link fill the container */
.fed-home-image a {
display: block !important;
width: 100% !important;
height: 100% !important;
padding: 0 !important;
margin: 0 !important;
border: none !important;
background: transparent !important;
}
/* Actual image */
.fed-home-image img {
display: block !important;
width: 100% !important;
height: 100% !important;
max-width: none !important;
object-fit: cover !important;
border: none !important;
border-radius: 26px !important;
box-shadow: none !important;
}
/* Centered image */
.fed-home-image-centered {
width: 100% !important;
flex: none !important;
}