MediaWiki:Common.css: Difference between revisions

Created page with "CSS placed here will be applied to all skins: Justify all wiki article text: #mw-content-text, .mw-body-content, .mw-parser-output { text-align: justify; } --- VERIFIED BADGE POPUP STYLE ---: Keep badge inline with heading and vertically centered: .verified-badge { display: inline-block; vertical-align: middle; position: relative; cursor: pointer; } Small visible badge icon (inline with title): .badge-icon { display: inline-block..."
 
No edit summary
Line 7: Line 7:




/* --- VERIFIED BADGE POPUP STYLE --- */
/* --- MAIN PAGE CLEAN LAYOUT (TOP BAR ONLY) --- */


/* Keep badge inline with heading and vertically centered */
/* Hide left sidebar */
.verified-badge {
.page-Main_Page .vector-sidebar-container,
  display: inline-block;
.page-Main_Page .vector-column-start,
  vertical-align: middle;
.page-Main_Page #mw-panel {
  position: relative;
    display: none !important;
  cursor: pointer;
}
}


/* Small visible badge icon (inline with title) */
/* Hide right side column & tools */
.badge-icon {
.page-Main_Page .vector-column-end,
  display: inline-block;
.page-Main_Page .vector-page-toolbar {
  vertical-align: middle;
    display: none !important;
}
}


/* Popup container */
/* Hide footer completely
.verified-popup {
.page-Main_Page #footer,
  opacity: 0;
.page-Main_Page footer {
  visibility: hidden;
    display: none !important;
  position: absolute;
}*/
  top: 28px;
 
  left: 50%;
 
  transform: translateX(-50%) translateY(4px);
/* Remove the horizontal line only on Main Page */
  background-color: #fff;
body.page-Main_Page .vector-toc .vector-toc-top,
  border: 1px solid #e1e8ed;
body.page-Main_Page .mw-body-header::after,
  border-radius: 12px;
body.page-Main_Page header.mw-body-header-vector-page-titlebar::after {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none !important;
  padding: 12px 14px;
    border: none !important;
  width: 300px;
  color: #0f1419;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  z-index: 9999;
  transition: all 0.20s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
}


/* Reveal popup on hover (or keyboard focus if you add focus styles later) */
.verified-badge:hover .verified-popup,
 
.verified-badge:focus-within .verified-popup {
/* Also hide title that appears inside the content area */
  opacity: 1;
.page-Main_Page h1.firstHeading {
  visibility: visible;
    display: none !important;
  transform: translateX(-50%) translateY(0);
}
}


/* Title line (appears above description) */
/* Hide the subtle horizontal line under the header on Main Page */
.popup-title {
.page-Main_Page #contentSub,
  font-weight: 700;
.page-Main_Page #siteSub {
  font-size: 15px;
    display: none !important;
  margin-bottom: 8px;
  color: #0f1419;
  line-height: 1.2;
}
}


/* Description: icon + text, icon visually aligns to start of first line */
 
.popup-description {
/*--------------------------------------- main page style-------------------------------------*/
  display: flex;
 
  align-items: flex-start; /* ensures icon aligns with first line top */
/* Hide Main Page title */
  gap: 8px;
body.page-Main_Page #firstHeading,
  color: #536471;
body.page-Main_Page .vector-page-titlebar,
  font-size: 14px;
body.page-Main_Page .mw-page-title-main {
  line-height: 1.4;
    display: none !important;
}
}


/* Inline verified icon placed inside popup-description */
/* Remove horizontal divider line */
.inline-verified-icon {
body.page-Main_Page .vector-divider {
  width: 16px;
    display: none !important;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px; /* nudge so it lines up with the first text baseline */
}
}


/* Make sure long description text wraps nicely */
/* Wikipedia-like width */
.popup-text {
body.page-Main_Page .mw-content-container {
  overflow-wrap: anywhere;
    max-width: 1500px !important;
    width: 95% !important;
}
}


/* Learn more link style */
/* Remove annoying top margin */
.popup-text a {
body.page-Main_Page .mw-content-container .mw-content-ltr {
  color: #1d9bf0;
    margin-top: 0 !important;
  text-decoration: none;
  margin-left: 4px;
}
}
.popup-text a:hover {
 
  text-decoration: underline;
/* General box consistency */
body.page-Main_Page div {
    box-sizing: border-box;
}
 
/* Center Main Page content */
body.page-Main_Page .mw-body,
body.page-Main_Page .mw-content-container {
    margin-left: auto !important;
    margin-right: 120px !important;
    max-width: 1200px !important;
}
}
/*---------------End-----------*/