MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 28: Line 28:
     background: linear-gradient(135deg, #226065 0%, #1f4b4f 60%, #17373a 100%);
     background: linear-gradient(135deg, #226065 0%, #1f4b4f 60%, #17373a 100%);
     border-radius: 16px;
     border-radius: 16px;
     padding: 22px 22px 18px 22px;
     padding: 28px 28px 22px 28px; /* more breathing room */
     color: #fff;
     color: #fff;
     box-shadow: 0 10px 30px rgba(0,0,0,.15);
     box-shadow: 0 10px 30px rgba(0,0,0,.15);
Line 34: Line 34:


.bc-hero h1 {
.bc-hero h1 {
     margin: 0 0 6px 0;
     margin: 0 0 10px 0;
     font-size: 28px;
     font-size: 34px;
     line-height: 1.15;
     line-height: 1.12;
}
}


Line 42: Line 42:
     margin: 0;
     margin: 0;
     opacity: .92;
     opacity: .92;
     max-width: 900px;
     font-size: 16px;
    line-height: 1.55;
    margin-top: 2px;
    margin-bottom: 14px;
}
}


.bc-hero .bc-meta {
.bc-hero .bc-meta {
     margin-top: 10px;
     margin-top: 10px;
    margin-bottom: 14px;
     font-size: 13px;
     font-size: 13px;
     opacity: .9;
     opacity: .9;
Line 57: Line 61:
     color: rgba(255,255,255,.85);
     color: rgba(255,255,255,.85);
     margin-top: 10px;
     margin-top: 10px;
}
/* ============================================================
  HERO polish: spacing + hierarchy
  ============================================================ */
.bc-hero {
    padding: 28px 28px 22px 28px; /* more breathing room */
}
.bc-hero h1 {
    font-size: 34px;
    line-height: 1.12;
    margin-bottom: 10px;
}
.bc-hero p {
    font-size: 16px;
    line-height: 1.55;
    margin-top: 2px;
    margin-bottom: 14px;
    max-width: 920px;
}
.bc-hero .bc-meta {
    margin-top: 10px;
    margin-bottom: 14px;
}
}


Line 118: Line 95:
.bc-hero .bc-kicker {
.bc-hero .bc-kicker {
     color: rgba(255,255,255,.80) !important;
     color: rgba(255,255,255,.80) !important;
}
/* Remove MediaWiki heading underline inside hero */
.bc-hero h1,
.bc-hero h2,
.bc-hero .mw-heading1,
.bc-hero .mw-heading2 {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
}


/* ============================================================
/* ============================================================
   HERO: search bar (works on all MediaWiki installs)
   Pills (UPDATED: bigger + more padding + guaranteed wrap)
   ============================================================ */
   ============================================================ */


.bc-hero-search {
.bc-pillrow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;          /* prevents overlap + adds breathing room */
     margin-top: 10px;
     margin-top: 10px;
    margin-bottom: 14px;
    max-width: 900px;
}
}


.bc-hero-search-link {
.bc-pill {
     display: grid;
     display: inline-flex;
    grid-template-columns: 1fr auto;
    gap: 10px;
     align-items: center;
     align-items: center;
     height: 46px;
     justify-content: center;
     padding: 0 10px 0 14px;
margin: 5px;
     border-radius: 12px;
     padding: 8px 14px;       /* bigger click target */
     border-radius: 999px;
     border: 1px solid rgba(255,255,255,.22);
     border: 1px solid rgba(255,255,255,.22);
     background: rgba(255,255,255,.10);
     background: rgba(255,255,255,.14);
    text-decoration: none !important;
}


.bc-hero-search-placeholder {
    font-size: 14px;        /* slightly larger */
     color: rgba(255,255,255,.70) !important;
     line-height: 1.1;
     white-space: nowrap;
     white-space: nowrap;
     overflow: hidden;
     box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
     text-overflow: ellipsis;
 
     transition: background .15s ease, transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
}


.bc-hero-search-cta {
/* Force pill link color across normal/visited/hover/focus */
    height: 34px;
.bc-pill a,
    display: inline-flex;
.bc-pill a:visited {
    align-items: center;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.16);
     color: #fff !important;
     color: #fff !important;
     font-weight: 700;
     text-decoration: none !important;
    white-space: nowrap;
}
}
 
.bc-pill a:hover,
.bc-hero-search-link:hover {
.bc-pill a:focus {
     background: rgba(255,255,255,.14);
     color: #fff !important;
     border-color: rgba(255,255,255,.30);
     text-decoration: none !important;
}
}


.bc-hero-search-link:hover .bc-hero-search-cta {
.bc-pill:hover {
     background: rgba(255,255,255,.22);
     background: rgba(255,255,255,.22);
     border-color: rgba(255,255,255,.30);
     border-color: rgba(255,255,255,.30);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
}


/* Mobile: keep it clean */
/* Slightly roomier on small screens (helps long labels) */
@media (max-width: 640px) {
@media (max-width: 600px) {
     .bc-hero-search-link {
     .bc-pill {
        grid-template-columns: 1fr;
         padding: 9px 16px;
        height: auto;
         font-size: 13px;
         padding: 12px 14px;
        gap: 10px;
    }
    .bc-hero-search-cta {
         width: 100%;
        justify-content: center;
        height: 40px;
     }
     }
}
}


/* ============================================================
/* ============================================================
   Pills
   HERO – center alignment
   ============================================================ */
   ============================================================ */


.bc-pillrow {
.bc-hero {
     display: flex;
     text-align: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
}


.bc-pill {
/* Center meta + kicker text */
    padding: 7px 12px;
.bc-hero .bc-meta,
    border-radius: 999px;
.bc-hero .bc-kicker {
    border: 1px solid rgba(255,255,255,.18);
     text-align: center;
    background: rgba(255,255,255,.12);
    font-size: 13px;
    white-space: nowrap;
     box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
}


/* Force pill link color across normal/visited/hover/focus */
/* Center pill rows and wrapped pills */
.bc-pill a,
.bc-hero .bc-pillrow {
.bc-pill a:visited {
     justify-content: center;   /* centers pills horizontally */
     color: #fff !important;
    text-decoration: none !important;
}
.bc-pill a:hover,
.bc-pill a:focus {
    color: #fff !important;
    text-decoration: none !important;
}
}


.bc-pill:hover {
/* Optional: keep max-width content visually centered */
     background: rgba(255,255,255,.18);
.bc-hero p {
     border-color: rgba(255,255,255,.26);
     margin-left: auto;
     margin-right: auto;
}
}


Line 317: Line 277:


.bc-btn span {
.bc-btn span {
     font-size: 12px;
     font-size: 13px;
     color: #555;
     color: #555;
}
}
Line 360: Line 320:


/* ============================================================
/* ============================================================
   HEADER — LARGE LOGO, TIGHT HEIGHT, BODY-ALIGNED
   HEADER — LARGE LOGO, TIGHT HEIGHT, PERFECTLY BODY-ALIGNED
   ============================================================ */
   ============================================================ */


/* Hide default Vector wordmark/tagline */
.mw-logo-wordmark,
.mw-logo-wordmark,
.mw-logo-tagline {
.mw-logo-tagline {
Line 368: Line 329:
}
}


/* Disable logo link */
.mw-logo a,
.mw-logo a,
.mw-logo a * {
.mw-logo a * {
Line 374: Line 336:
}
}


/* Use Vector’s own layout width so header & body match exactly */
.vector-header {
.vector-header {
     background: #fff;
     background: #fff;
    padding-left: var(--padding-inline-page-container, 16px) !important;
    padding-right: var(--padding-inline-page-container, 16px) !important;
     box-sizing: border-box !important;
     box-sizing: border-box !important;
}
}
Line 386: Line 347:
     margin-right: auto !important;
     margin-right: auto !important;
     width: 100% !important;
     width: 100% !important;
    padding-left: var(--padding-inline-page-container, 16px) !important;
    padding-right: var(--padding-inline-page-container, 16px) !important;
     box-sizing: border-box !important;
     box-sizing: border-box !important;
}
}


/* Header height control */
.mw-header {
.mw-header {
     height: 90px;
     height: 90px;
Line 396: Line 360:
}
}


/* Prevent Vector forcing tall minimums */
.mw-header,
.mw-header,
.vector-header,
.vector-header,
Line 402: Line 367:
}
}


/* Left cluster flush */
.vector-header-start {
    margin-left: 0 !important;
    padding-left: 0 !important;
}
/* Hamburger safety */
#mw-panel-button,
.vector-main-menu-dropdown {
    margin-left: 0 !important;
}
/* Logo sizing */
.mw-logo {
.mw-logo {
     display: flex;
     display: flex;
Line 408: Line 386:
}
}


.mw-logo img {
.mw-logo img,
#p-logo img {
     height: 135px !important;
     height: 135px !important;
     width: auto;
     width: auto;
Line 414: Line 393:
}
}


#p-logo img {
    height: 135px !important;
    width: auto;
}


/* ============================================================
/* ============================================================
Line 484: Line 459:
     background: rgba(255,255,255,.22);
     background: rgba(255,255,255,.22);
     border-color: rgba(255,255,255,.30);
     border-color: rgba(255,255,255,.30);
}
/* ============================================================
  Internet link grid
  ============================================================ */
.bc-linkgrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:10px;
}
@media (max-width: 900px){ .bc-linkgrid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px){ .bc-linkgrid{ grid-template-columns:1fr; } }
/* Tile wrapper */
.bc-linktile{}
/* The <a> that MediaWiki generates inside each tile */
.bc-linktile > a{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:12px;
  border-radius:14px;
  background:rgba(255,255,255,.85);
  border:1px solid rgba(0,0,0,.08);
  text-decoration:none !important;
  color:inherit !important;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  min-height:84px;
}
/* Remove MediaWiki external-link icon and any default background */
.bc-linktile > a.external{
  background-image:none !important;
  padding-right:12px; /* prevents MW from reserving space */
}
.bc-linktile > a.external::after{ display:none !important; }
.bc-linktile > a:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(0,0,0,.10);
  border-color:rgba(34,96,101,.28);
}
.bc-linkicon{
  width:38px;
  height:38px;
  min-width:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:rgba(34,96,101,.10);
  font-size:18px;
  line-height:1;
}
.bc-linktext{ display:block; }
.bc-linktitle{
  display:block;
  font-weight:700;
  font-size:15px;
  line-height:1.15;
}
.bc-linkdesc{
  display:block;
  margin-top:4px;
  font-size:13px;
  line-height:1.35;
  opacity:.85;
}
/* ============================================================
  Wikipedia-style infobox
  (restores float-right + wrap + smaller type)
  ============================================================ */
.mw-parser-output .infobox {
  float: right;
  clear: right;
  width: 22em;
  margin: 0 0 1em 1em;
  font-size: 88%;
  line-height: 1.35;
  border: 1px solid var(--border-color-base, #a2a9b1);
  background: var(--background-color-base, #f8f9fa);
  color: inherit;
  border-spacing: 3px;
}
.mw-parser-output .infobox caption,
.mw-parser-output .infobox > caption {
  font-size: 125%;
  font-weight: 700;
  text-align: center;
  padding: .2em;
}
.mw-parser-output .infobox th,
.mw-parser-output .infobox td {
  padding: .25em .4em;
  vertical-align: top;
}
.mw-parser-output .infobox th {
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}
.mw-parser-output .infobox td {
  text-align: left;
}
.mw-parser-output .infobox .infobox-image,
.mw-parser-output .infobox .infobox-above,
.mw-parser-output .infobox .infobox-header,
.mw-parser-output .infobox .infobox-subheader {
  text-align: center;
}
.mw-parser-output .infobox a.image img {
  height: auto;
  max-width: 100%;
}
}