Jump to content

MediaWiki:Common.css: Difference between revisions

From Fedoverse Wiki, the free encyclopedia
No edit summary
No edit summary
Line 300: Line 300:
}
}


/* Black Discord button: base return state */
.your-button-class {
.your-button-class {
    border: 1.5px solid #000;
  position: relative;
    background-color: #000;
  border: 1.5px solid #000;
    color: #fff !important;
  background-color: #000;
    font-size: 1.2rem;
  color: #fff !important;
    font-weight: 500;
  font-size: 1.2rem;
    padding: 7px 22px;
  font-weight: 500;
    display: inline-block;
  padding: 7px 22px;
    transform-style: preserve-3d;
  display: inline-block;
    backface-visibility: hidden;
  cursor: pointer;
    transform: perspective(400px) scale(1) rotateX(0deg) rotateY(0deg);
  overflow: hidden;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important;
  isolation: isolate;
 
  /* 3D transforms */
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
  transform: perspective(400px) scale(1) rotateX(0deg) rotateY(0deg);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
}
}


.fedo-btn-outline:hover {
/* Base rainbow gradient layer */
     transform: scale(1.1);
.your-button-class::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #ff0055,
    #ff9900,
    #33cc33,
    #0099ff,
    #9900ff,
     #ff0055
  );
  background-size: 300% 300%;
  opacity: 0;
  z-index: -2;
  transition: opacity 0.5s ease;
}
}


/* 5. Black Discord button base */
/* Subtle gritty grain texture layer */
.your-button-class {
.your-button-class::after {
    border: 1.5px solid #000;
  content: "";
    background-color: #000;
  position: absolute;
    color: #fff !important;
  inset: 0;
    font-size: 1.2rem;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.18'/%3E%3C/svg%3E");
    font-weight: 500;
  mix-blend-mode: overlay;
    padding: 7px 22px;
  opacity: 0;
    transform-style: preserve-3d;
  pointer-events: none;
    will-change: transform;
  z-index: -1;
  transition: opacity 0.5s ease;
}
 
/* Hover State: Scale up, reveal texture, and animate rainbow colors */
.your-button-class:hover {
  transform: scale(1.1);
  border-color: transparent;
}
 
.your-button-class:hover::before {
  opacity: 1;
  animation: rainbow-shift 3s linear infinite;
}
 
.your-button-class:hover::after {
  opacity: 1;
}
}


/* Continuous hue cycling and gradient panning */
@keyframes rainbow-shift {
  0% {
    filter: hue-rotate(0deg);
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    filter: hue-rotate(360deg);
    background-position: 0% 50%;
  }
}
/* 6. Clean link styling */
/* 6. Clean link styling */
.plainlinks .fedo-btn,
.plainlinks .fedo-btn,

Revision as of 16:29, 12 September 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;
}

.your-button-class {
  position: relative;
  border: 1.5px solid #000;
  background-color: #000;
  color: #fff !important;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 7px 22px;
  display: inline-block;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;

  /* 3D transforms */
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
  transform: perspective(400px) scale(1) rotateX(0deg) rotateY(0deg);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
}

/* Base rainbow gradient layer */
.your-button-class::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #ff0055,
    #ff9900,
    #33cc33,
    #0099ff,
    #9900ff,
    #ff0055
  );
  background-size: 300% 300%;
  opacity: 0;
  z-index: -2;
  transition: opacity 0.5s ease;
}

/* Subtle gritty grain texture layer */
.your-button-class::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.18'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.5s ease;
}

/* Hover State: Scale up, reveal texture, and animate rainbow colors */
.your-button-class:hover {
  transform: scale(1.1);
  border-color: transparent;
}

.your-button-class:hover::before {
  opacity: 1;
  animation: rainbow-shift 3s linear infinite;
}

.your-button-class:hover::after {
  opacity: 1;
}

/* Continuous hue cycling and gradient panning */
@keyframes rainbow-shift {
  0% {
    filter: hue-rotate(0deg);
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    filter: hue-rotate(360deg);
    background-position: 0% 50%;
  }
}
/* 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;
}