Jump to content

MediaWiki:Common.css: Difference between revisions

From Fedoverse Wiki, the free encyclopedia
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 793: Line 793:


.audio-progress::-moz-range-thumb {
.audio-progress::-moz-range-thumb {
    padding-top: 10px;
     width: 14px;
     width: 14px;
     height: 8px;
     height: 14px;
     border: none;
     border: none;
     border-radius: 50%;
     border-radius: 50%;

Revision as of 13:05, 4 October 2026

/* CSS placed here will be applied to all skins */

/* --- 0. LOCAL FONT DECLARATIONS --- */
@font-face {
    font-family: 'Mountains of Christmas';
    font-style: normal;
    font-weight: 700;
    src: url('/images/fonts/MountainsofChristmas-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Mountains of Christmas';
    font-style: normal;
    font-weight: 400;
    src: url('/images/fonts/MountainsofChristmas-Regular.ttf') format('truetype');
}

/* --- 1. UI CLEANUP & READ-ONLY HIDING --- */

/* --- UNIFY BACKGROUND & FIX VIEWPORT HEIGHT --- */

/* 1. Force identical pure-white background across all document layers */
html,
body,
.mw-page-container,
.mw-header,
.mw-content-container {
    background-color: #ffffff !important;
}

/* 2. Stretch the container to fill 100% of the screen height */
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;
}

/* --- 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 color */
.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;
    }
}
/* 1. Remove Vector skin 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;
}

/* 2. Hide Vector titlebar on Main Page */
.page-Main_Page .no-font-mode-scale.vector-page-titlebar.mw-body-header {
    display: none !important;
}

/* 3. Base button reset */
.fedo-btn {
    display: inline-block;
    border-radius: 6px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    text-decoration: none !important;
    vertical-align: middle;
    cursor: pointer;
    white-space: nowrap;
    transform-origin: center center;
}

/* White buttons: smooth organic zoom in & out */
.fedo-btn-outline {
    border: 1.5px solid #000;
    color: #000 !important;
    background-color: #fff;
    font-size: 0.9rem;
    padding: 7px 18px;
    display: inline-block;
    backface-visibility: hidden;
    transform: translateZ(0) scale(1);
    /* 0.45s with cubic-bezier produces a cushioned ease in both directions */
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.fedo-btn-outline:hover {
    transform: translateZ(0) scale(1.08) !important;
}


/* 6. Clean link styling */
.plainlinks .fedo-btn,
.plainlinks a.external .fedo-btn {
    color: inherit;
    text-decoration: none !important;
}
.plainlinks a.external {
    background: none !important;
    padding: 0 !important;
    text-decoration: 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;
}

/* Hide the 'home' page from search suggestions dropdown */
li.cdx-menu-item[title="home"] {
    display: none !important;
}

#catlinks {
    display: none;
}



/* Register the variable so CSS can smoothly interpolate color values */
@property --btn-bg {
  syntax: '<color>';
  inherits: false;
  initial-value: #000000;
}

.your-button-class {

border: 1.5px solid #000;

background-color: #000;

color: #fff !important;

font-size: 1.2rem;

font-weight: 500;

padding: 7px 22px;

display: inline-block;

transform-style: preserve-3d;

backface-visibility: hidden;

transform: perspective(400px) scale(1) rotateX(0deg) rotateY(0deg);

transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important;

}
.fedo-btn-outline:hover {

transform: scale(1.1);

}
/* 5. Black Discord button base */

.your-button-class {

border: 1.5px solid #000;

background-color: #000;

color: #fff !important;

font-size: 1.2rem;

font-weight: 500;

padding: 7px 22px;

transform-style: preserve-3d;

will-change: transform;

}

@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;
	}
}

.infobox-showcase {
	padding-top: 0.5em;
}

.infobox-showcase pre {
	all: unset;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5em;
}

.mc-status{--mc-pad:28px;--ink:#26231f;--muted:#6f6a62;
  display:grid;grid-template-columns:auto minmax(0,1fr);
  grid-template-areas:"head main" "icon main" "players main";
  column-gap:var(--mc-pad);row-gap:12px;align-items:center;justify-items:center;
  width:100%;max-width:820px;box-sizing:border-box;margin:24px auto;padding:var(--mc-pad);
  background:linear-gradient(160deg,#e6f4ea,#bfe3cc);color:var(--ink);
  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);
  font-family:Inter,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif}

.mc-side{display:contents}
.mc-head{grid-area:head}
.mc-icon{grid-area:icon}
.mc-players{grid-area:players}
.mc-main{grid-area:main;justify-self:stretch;align-self:center}

/* pills */
.mc-head,.mc-players{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;
  background:rgba(255,255,255,.6);border:1px solid #dad6ce;font-size:.85rem;font-weight:600;line-height:1;
  white-space:nowrap;cursor:default}
.mc-dot{width:9px;height:9px;border-radius:50%;background:#a09b94}
.mc-status.is-online .mc-dot{background:#2fbf71;animation:mcpulse 2s infinite}
.mc-status.is-offline .mc-dot{background:#e5484d}
.mc-status.is-online .mc-head{background:#d6f3e2;border-color:#a9dfc0}
.mc-status.is-offline .mc-head{background:#f8d5d2;border-color:#ebb5b0}
@keyframes mcpulse{0%{box-shadow:0 0 0 0 rgba(47,191,113,.55)}100%{box-shadow:0 0 0 9px rgba(47,191,113,0)}}
.mc-players{font-weight:700}
.mc-players::after{content:" players";font-weight:500;color:var(--muted)}

/* logo */
.mc-icon{width:112px;height:112px;border-radius:24px;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.4rem}
.mc-icon img{width:100%;height:100%;display:block;object-fit:cover;image-rendering:pixelated}

/* address */
.mc-main{min-width:0;container-type:inline-size;cursor:pointer;user-select:none;
  -webkit-tap-highlight-color:transparent;border-radius:12px;outline-offset:6px}
.mc-addr{font-family:Inter,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;font-weight:800;
  text-transform:uppercase;letter-spacing:-.02em;line-height:1;white-space:nowrap;
  font-size:8.4cqw;color:var(--ink);transition:color .15s,transform .15s}
.mc-main:hover .mc-addr{color:#3f7a35}
.mc-main:active .mc-addr{transform:scale(.985)}
.mc-main:focus-visible{outline:2px solid #3f7a35}
.mc-motd{margin-top:14px;font-size:.95rem;line-height:1.35;color:var(--muted);white-space:pre-line}
.mc-motd:empty{display:none}

/* phones: icon + pills on top, address full width below */
@media(max-width:640px){
  .mc-status{--mc-pad:18px;grid-template-areas:"icon head" "icon players" "main main";
    row-gap:10px;column-gap:16px;justify-items:start;margin:16px auto;border-radius:20px}
  .mc-icon{width:88px;height:88px;border-radius:20px;grid-row:1 / span 2}
  .mc-main{margin-top:8px}
  .mc-motd{margin-top:10px;font-size:.9rem}
}

@media(prefers-reduced-motion:reduce){.mc-dot{animation:none!important}}

/* open-page icon, top right */
.mc-status{position:relative}
.mc-open{position:absolute;top:16px;right:16px;z-index:2}
.mc-open a{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;
  background:rgba(255,255,255,.6);border:1px solid #dad6ce;color:var(--muted);text-decoration:none!important;
  transition:background .15s,color .15s,transform .15s;-webkit-tap-highlight-color:transparent}
.mc-open a:hover,.mc-open a:focus-visible{background:#fff;color:#3f7a35;transform:translateY(-1px)}
.mc-open-icon{display:block;width:18px;height:18px;background-color:currentColor;
  -webkit-mask:var(--mc-ext) center/contain no-repeat;mask:var(--mc-ext) center/contain no-repeat;
  --mc-ext:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E")}
@media(max-width:640px){.mc-open{top:12px;right:12px}}

/* ---------- 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:Inter,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
}

.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}
}

@media(max-width:640px){
  .mc-status:not(.is-offline){display:none}
}

@media(prefers-reduced-motion:reduce){
  .pc-card{transition:none}
}

.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: #2f2f2f;
    border-radius: 10px;
    color: white;
}

.custom-audio-player button {
    border: none;
    background: none;
    color: white;
    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;
}

.audio-progress {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: #666;
    cursor: pointer;
}

.audio-progress::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

.audio-progress::-moz-range-thumb {
    padding-top: 10px;
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

.audio-time {
    font-size: 13px;
    white-space: nowrap;
    color: #ddd;
}

.audio-volume {
    font-size: 16px !important;
}