MediaWiki:Common.css: Difference between revisions

From Marupedia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
.page-Home #mw-panel {
  display: none;
}
/* =========================
/* =========================
   CLEAN HOME PAGE (Marupedia)
   MOBILE VIEW FIX (MINERVA)
   ========================= */
   ========================= */


/* Hide page tabs (Read / Edit / Edit source / History) on Home */
@media screen and (max-width: 768px) {
.page-Home #p-views,
.page-Home #ca-edit,
.page-Home #ca-editsource,
.page-Home #ca-history {
    display: none !important;
}


/* Hide user menu (Login, Username, Preferences) */
  /* Hide left sidebar completely */
.page-Home #p-personal {
  #mw-panel,
  .mw-sidebar,
  .vector-sidebar-container,
  .vector-main-menu-container {
     display: none !important;
     display: none !important;
}
  }


/* Hide sidebar completely on Home */
  /* Full width content */
.page-Home #mw-panel {
  #content,
    display: none !important;
  #mw-content-text,
}
  .mw-parser-output {
 
/* Make content full width */
.page-Home #content {
     margin-left: 0 !important;
     margin-left: 0 !important;
}
     padding-left: 12px !important;
 
     padding-right: 12px !important;
/* Hide footer links */
  }
.page-Home #footer-places,
.page-Home #footer-icons {
     display: none !important;
}
 
/* Remove page title "Home" */
.page-Home h1.firstHeading {
    display: none;
}
 
/* Remove category links at bottom */
.page-Home #catlinks {
    display: none;
}
/* ===============================
  ULTRA CLEAN HOME PAGE (Marupedia)
  =============================== */
 
/* Hide page tabs bar completely */
.page-Home #p-views,
.page-Home #ca-nstab-main,
.page-Home #ca-talk,
.page-Home #ca-more,
.page-Home .vector-page-toolbar {
    display: none !important;
}
 
/* Hide top search box + icon */
.page-Home #p-search,
.page-Home .vector-search-box {
    display: none !important;
}
 
/* Hide personal tools (login, username, prefs) */
.page-Home #p-personal {
     display: none !important;
}
 
/* Hide site header strip spacing */
.page-Home .vector-header-container {
    display: none !important;
}


/* Hide sidebar completely */
  /* Increase base font size */
.page-Home #mw-panel {
  body {
     display: none !important;
    font-size: 18px !important;
}
     line-height: 1.6 !important;
  }


/* Full width content */
  /* Paragraph text */
.page-Home #content {
  .mw-parser-output p {
     margin-left: 0 !important;
     font-size: 18px !important;
}
    line-height: 1.7 !important;
  }


/* Remove page title "Home" */
  /* Headings bigger like Wikipedia mobile */
.page-Home h1.firstHeading {
  h1 {
     display: none !important;
     font-size: 26px !important;
}
  }


/* Remove footer links */
  h2 {
.page-Home #footer-places,
     font-size: 22px !important;
.page-Home #footer-icons {
  }
     display: none !important;
}


/* Remove categories */
  h3 {
.page-Home #catlinks {
     font-size: 20px !important;
     display: none !important;
  }
}


/* ===============================
  h4 {
  REMOVE BOTTOM META FROM HOME
    font-size: 18px !important;
  =============================== */
  }


/* Hide last edited text */
  /* Infobox image responsiveness */
.page-Home #footer-info-lastmod {
  .infobox,
    display: none !important;
  .infobox_v2,
}
  .infobox biography,
 
  .infobox img {
/* Hide copyright/license text */
     width: 100% !important;
.page-Home #footer-info-copyright {
     max-width: 100% !important;
    display: none !important;
     float: none !important;
}
     margin: 0 auto 12px auto !important;
 
  }
/* Hide entire footer info area */
.page-Home #footer-info {
     display: none !important;
}
 
/* Remove bottom blue border */
.page-Home #footer {
     border-top: none !important;
}
 
/* Remove page info links if any */
.page-Home .printfooter {
    display: none !important;
}
 
 
/* =========================================
  REMOVE TOP BLANK SPACE ON HOME PAGE ONLY
  ========================================= */
 
/* Hide page title bar (Home heading area) */
.page-Home #firstHeading {
     display: none !important;
}
 
/* Remove top padding added by MediaWiki */
.page-Home #content {
     margin-top: 0 !important;
    padding-top: 0 !important;
}
 
/* Remove content action tabs space */
.page-Home #contentSub,
.page-Home #siteSub {
    display: none !important;
}
 
/* Remove page tabs (Read, Edit, etc.) spacing */
.page-Home #p-cactions,
.page-Home #p-views {
    display: none !important;
}
 
/* Remove header empty area */
.page-Home #mw-head {
    display: none !important;
}


/* Force body top alignment */
  /* Make TOC readable */
.page-Home #mw-page-base,
  #toc,
.page-Home #mw-panel {
  .toc {
     margin-top: 0 !important;
     font-size: 16px !important;
}
  }


/* Extra safety: remove any top blank gap */
.page-Home .mw-body-content {
    padding-top: 0 !important;
}
}

Revision as of 15:14, 20 January 2026

/* =========================
   MOBILE VIEW FIX (MINERVA)
   ========================= */

@media screen and (max-width: 768px) {

  /* Hide left sidebar completely */
  #mw-panel,
  .mw-sidebar,
  .vector-sidebar-container,
  .vector-main-menu-container {
    display: none !important;
  }

  /* Full width content */
  #content,
  #mw-content-text,
  .mw-parser-output {
    margin-left: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Increase base font size */
  body {
    font-size: 18px !important;
    line-height: 1.6 !important;
  }

  /* Paragraph text */
  .mw-parser-output p {
    font-size: 18px !important;
    line-height: 1.7 !important;
  }

  /* Headings bigger like Wikipedia mobile */
  h1 {
    font-size: 26px !important;
  }

  h2 {
    font-size: 22px !important;
  }

  h3 {
    font-size: 20px !important;
  }

  h4 {
    font-size: 18px !important;
  }

  /* Infobox image responsiveness */
  .infobox,
  .infobox_v2,
  .infobox biography,
  .infobox img {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 auto 12px auto !important;
  }

  /* Make TOC readable */
  #toc,
  .toc {
    font-size: 16px !important;
  }

}