Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ============================================
/* ============================================
   WIKIVERSA — "Registry" Theme
   WIKIVERSA — Custom Theme
  Ek permanent, verified digital-identity record
  jaisa look — na ki generic purple SaaS card.
   Paste this entire file into: MediaWiki:Common.css
   Paste this entire file into: MediaWiki:Common.css
   ============================================ */
   ============================================ */
Line 8: Line 6:


/* ============================================
/* ============================================
   LOGO SECTION (positioning only — kept, bug fixed)
   LOGO SECTION
   ============================================ */
   ============================================ */
#mw-panel { padding-top: 0 !important; }
#mw-panel { padding-top: 0 !important; }
Line 41: Line 39:
   ============================================ */
   ============================================ */
:root {
:root {
     --wv-ink:     #14213D;
     --wv-ink:       #14213D;
     --wv-ink-soft:  #33405e;
     --wv-ink-soft:  #33405e;
     --wv-paper:   #FAF7F0;
     --wv-paper:     #F1F5F9;
     --wv-white:   #FFFFFF;
     --wv-white:     #FFFFFF;
     --wv-teal:     #0F766E;
     --wv-teal:     #0F766E;
     --wv-gold:     #B8902E;
     --wv-gold:     #B8902E;
     --wv-line:     #DAD2C0;
     --wv-line:     #DAD2C0;
     --wv-slate:   #5B6472;
     --wv-slate:     #5B6472;
     --wv-font-display: 'Fraunces', serif;
     --wv-font-display: 'Fraunces', serif;
     --wv-font-body:    'Inter', sans-serif;
     --wv-font-body:    'Inter', sans-serif;
Line 55: Line 53:


/* ============================================
/* ============================================
   BASE
   BASE / BODY (ONLY THIS SECTION CHANGED)
   ============================================ */
   ============================================ */
body,
body,
Line 64: Line 62:
     line-height: 1.75;
     line-height: 1.75;
     color: var(--wv-ink);
     color: var(--wv-ink);
     background: var(--wv-paper);
   
    /* Modern 3D Ambient Light Background */
     background-color: #f1f5f9 !important;
    background-image:
        radial-gradient(at 10% 10%, rgba(79, 70, 229, 0.08) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(236, 72, 153, 0.06) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(255, 255, 255, 0.8) 0px, transparent 100%) !important;
    background-attachment: fixed !important;
}
}


Line 115: Line 120:
     box-sizing: border-box;
     box-sizing: border-box;
     position: relative;
     position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
}


Line 180: Line 186:


/* ============================================
/* ============================================
   INDEX CARDS (replaces rounded shadow cards)
   INDEX CARDS
   ============================================ */
   ============================================ */
.wv-grid {
.wv-grid {
Line 189: Line 195:
     border: 1px solid var(--wv-line);
     border: 1px solid var(--wv-line);
     margin-bottom: 0;
     margin-bottom: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}
}


Line 299: Line 306:


/* ============================================
/* ============================================
   INFOBOX (single, consolidated style)
   INFOBOX
   ============================================ */
   ============================================ */
.infobox.biography.vcard,
.infobox.biography.vcard,
Line 423: Line 430:
     .wv-cat-grid a { border-right: none; }
     .wv-cat-grid a { border-right: none; }
     .wv-cta { padding: 32px 24px; }
     .wv-cta { padding: 32px 24px; }
}
/* Hide Discussion */
a[href*="action=edit&section=new"],
.vector-talk-link,
#ca-talk {
    display: none !important;
}
/* Hide 3-dot menu
.citizen-dropdown-details{
    display: none !important;
}*/
/* ============================================================
  WIKIVERSA — HOMEPAGE DYNAMIC BOXES (ADD-ON ONLY)
  Ye poora block apne maujuda MediaWiki:Common.css ke SABSE
  NEECHE paste karo. Upar wala poora CSS jaisa hai waisa hi
  rehne do — kuch bhi delete/edit karne ki zaroorat nahi.
  ============================================================ */
/* ---- shared box shell (Featured / News / OTD / Newest / Browse) ---- */
.wv-mp-box {
    background: var(--wv-white);
    border: 1px solid var(--wv-line);
    margin-bottom: 20px;
    box-sizing: border-box;
    box-shadow: 0 6px 18px rgba(0,0,0,0.03);
}
.wv-mp-box-header {
    padding: 12px 18px;
    font-family: var(--wv-font-display);
    font-weight: 600;
    font-size: 17px;
    color: var(--wv-ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wv-mp-box-header .wv-view-all {
    font-family: var(--wv-font-body);
    font-weight: 500;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
}
.wv-mp-box-body { padding: 18px; }
/* header color variants, matched to your screenshots */
.wv-mp-header-green  { background: #d9f2e0; }
.wv-mp-header-blue  { background: #d7e6f7; }
.wv-mp-header-pink  { background: #f6dde6; }
.wv-mp-header-grey  { background: #ebebeb; }
.wv-mp-header-purple { background: #e3e0f7; }
/* ---- two-column top row: Featured (left) / News + OTD (right) ---- */
.wv-mp-toprow {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
}
.wv-mp-toprow-left  { flex: 2 1 0; min-width: 0; }
.wv-mp-toprow-right { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
/* ---- featured article ---- */
.wv-mp-featured { display: flex; gap: 18px; }
.wv-mp-featured img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
}
.wv-mp-featured .wv-mp-featured-text { font-size: 15px; color: var(--wv-ink-soft); line-height: 1.6; }
.wv-mp-featured .wv-mp-featured-text a { font-weight: 600; }
.wv-mp-featured-more { display: block; text-align: right; margin-top: 10px; font-style: italic; font-size: 14px; }
/* ---- in the news / on this day lists ---- */
.wv-mp-news-list { margin: 0; padding-left: 18px; font-size: 15px; color: var(--wv-ink-soft); line-height: 1.9; }
.wv-mp-news-list li { margin-bottom: 4px; }
.wv-mp-empty { color: var(--wv-slate); font-size: 14px; font-style: italic; }
/* ---- newest additions / category card grids ---- */
.wv-mp-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.wv-mp-card {
    flex: 1 1 220px;
    max-width: 260px;
    border: 1px solid var(--wv-line);
    background: var(--wv-white);
}
.wv-mp-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.wv-mp-card-body { padding: 14px 16px; }
.wv-mp-card-title { font-weight: 600; font-size: 15px; display: block; margin-bottom: 4px; }
.wv-mp-card-cat { font-style: italic; color: var(--wv-slate); font-size: 13px; display: block; margin-bottom: 6px; }
.wv-mp-card-snippet { font-size: 13.5px; color: var(--wv-ink-soft); line-height: 1.5; }
/* ---- browse by category: repeated sub-sections ---- */
.wv-mp-catsection { margin-bottom: 26px; }
.wv-mp-catsection-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--wv-line);
    padding-bottom: 6px;
    margin-bottom: 14px;
}
.wv-mp-catsection-title h3 {
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--wv-font-display);
    font-size: 18px;
    font-weight: 600;
}
@media (max-width: 768px) {
    .wv-mp-toprow { flex-direction: column; }
    .wv-mp-featured { flex-direction: column; }
    .wv-mp-featured img { width: 100%; height: 180px; }
    .wv-mp-card { flex: 1 1 100%; max-width: 100%; }
}
}

Latest revision as of 21:50, 28 July 2026

/* ============================================
   WIKIVERSA — Custom Theme
   Paste this entire file into: MediaWiki:Common.css
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ============================================
   LOGO SECTION
   ============================================ */
#mw-panel { padding-top: 0 !important; }

#p-logo {
    margin: 0 !important;
    padding: 0 !important;
    width: 300px !important;
    height: 80px !important;
}

#p-logo a {
    display: block !important;
    height: 80px !important;
    background-image: url("/images/Logo.png") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    margin: 0 !important;
    padding: 0 !important;
}

#p-logo,
#p-logo a,
#p-logo .mw-wiki-logo {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    --wv-ink:       #14213D;
    --wv-ink-soft:  #33405e;
    --wv-paper:     #F1F5F9;
    --wv-white:     #FFFFFF;
    --wv-teal:      #0F766E;
    --wv-gold:      #B8902E;
    --wv-line:      #DAD2C0;
    --wv-slate:     #5B6472;
    --wv-font-display: 'Fraunces', serif;
    --wv-font-body:    'Inter', sans-serif;
    --wv-font-mono:    'IBM Plex Mono', monospace;
}

/* ============================================
   BASE / BODY (ONLY THIS SECTION CHANGED)
   ============================================ */
body,
.mw-body,
.vector-body {
    font-family: var(--wv-font-body) !important;
    font-size: 16px;
    line-height: 1.75;
    color: var(--wv-ink);
    
    /* Modern 3D Ambient Light Background */
    background-color: #f1f5f9 !important;
    background-image: 
        radial-gradient(at 10% 10%, rgba(79, 70, 229, 0.08) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(236, 72, 153, 0.06) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(255, 255, 255, 0.8) 0px, transparent 100%) !important;
    background-attachment: fixed !important;
}

.mw-parser-output {
    max-width: 100% !important;
    width: 100%;
    box-sizing: border-box;
}

h1, .firstHeading {
    font-family: var(--wv-font-display) !important;
    font-weight: 600;
    font-size: 2.5rem;
    color: var(--wv-ink);
    letter-spacing: -0.5px;
}

h2 {
    font-family: var(--wv-font-display) !important;
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--wv-ink);
    border-bottom: none;
    margin-top: 40px;
    padding-bottom: 0;
}

h3 {
    font-family: var(--wv-font-body) !important;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--wv-ink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

a { color: var(--wv-teal); text-decoration: none; }
a:hover { color: var(--wv-ink); text-decoration: underline; }

/* ============================================
   HERO — "Registry Header"
   ============================================ */
.wv-hero {
    background: var(--wv-white);
    border: 1px solid var(--wv-line);
    border-left: 4px solid var(--wv-teal);
    padding: 48px 48px 40px;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.wv-hero .eyebrow {
    font-family: var(--wv-font-mono);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--wv-teal);
    display: block;
    margin-bottom: 14px;
}

.wv-hero h1 {
    font-size: 3.2rem;
    margin: 0 0 12px;
}

.wv-hero .tag {
    font-family: var(--wv-font-body);
    font-size: 17px;
    color: var(--wv-ink-soft);
    max-width: 640px;
}

.wv-hero .seal {
    position: absolute;
    top: 40px;
    right: 48px;
    width: 108px;
    height: 108px;
    transform: rotate(-8deg);
    opacity: 0.9;
}

/* ============================================
   SECTIONS — "Dossier Entries"
   ============================================ */
.wv-section {
    background: transparent;
    border-top: 1px solid var(--wv-line);
    padding: 32px 0;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

.wv-section .wv-index {
    font-family: var(--wv-font-mono);
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--wv-gold);
    display: block;
    margin-bottom: 6px;
}

.wv-section h2 {
    margin: 0 0 18px;
}

.wv-section p {
    color: var(--wv-ink-soft);
    max-width: 760px;
}

/* ============================================
   INDEX CARDS
   ============================================ */
.wv-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
    border: 1px solid var(--wv-line);
    margin-bottom: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.wv-card {
    flex: 1 1 280px;
    background: var(--wv-white);
    border-right: 1px solid var(--wv-line);
    padding: 28px;
    position: relative;
}

.wv-card:last-child { border-right: none; }

.wv-card .tag-no {
    font-family: var(--wv-font-mono);
    font-size: 11px;
    color: var(--wv-slate);
    position: absolute;
    top: 14px;
    right: 18px;
}

.wv-card h3 {
    margin: 0 0 14px;
    padding-right: 30px;
}

.wv-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--wv-ink-soft);
    font-size: 15px;
    line-height: 1.8;
}

/* ============================================
   CTA STRIP
   ============================================ */
.wv-cta {
    background: var(--wv-ink);
    color: var(--wv-white);
    padding: 44px 48px;
    text-align: left;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

.wv-cta h2 { color: var(--wv-white); margin: 0 0 8px; }
.wv-cta p  { color: #c7cede; margin-bottom: 22px; font-size: 16px; }

.wv-btn {
    display: inline-block;
    background: var(--wv-teal);
    color: #fff;
    padding: 12px 26px;
    border-radius: 2px;
    font-weight: 500;
    font-size: 14px;
    margin: 4px 8px 4px 0;
    text-decoration: none;
    letter-spacing: 0.3px;
}
.wv-btn:hover { background: #0d5f58; text-decoration: none; }

.wv-btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--wv-white);
    border: 1px solid rgba(255,255,255,0.4);
    padding: 12px 26px;
    border-radius: 2px;
    font-weight: 500;
    font-size: 14px;
    margin: 4px 0;
    text-decoration: none;
}
.wv-btn-outline:hover { background: rgba(255,255,255,0.1); text-decoration: none; }

/* ============================================
   ARTICLE / CATEGORY LISTS
   ============================================ */
.wv-list-col {
    border: 1px solid var(--wv-line);
    background: var(--wv-white);
}

.wv-list-item {
    padding: 14px 20px;
    border-bottom: 1px solid var(--wv-line);
    font-size: 15px;
}
.wv-list-item:last-child { border-bottom: none; }

.wv-cat-grid {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid var(--wv-line);
}
.wv-cat-grid a {
    flex: 1 1 200px;
    padding: 16px 20px;
    border-right: 1px solid var(--wv-line);
    border-bottom: 1px solid var(--wv-line);
    color: var(--wv-ink);
    font-weight: 500;
    font-size: 14px;
}
.wv-cat-grid a:hover { background: #f2eee3; text-decoration: none; }

/* ============================================
   INFOBOX
   ============================================ */
.infobox.biography.vcard,
.wikiverse-infobox {
    float: right;
    clear: right;
    width: 300px;
    margin: 0 0 24px 24px;
    border: 1px solid var(--wv-line);
    background: var(--wv-white);
    font-size: 14px;
    line-height: 1.6;
    border-radius: 0;
    box-shadow: none;
}

.infobox.biography.vcard th[colspan="2"] {
    background: var(--wv-ink);
    color: #fff;
    font-family: var(--wv-font-display);
    font-size: 19px;
    font-weight: 600;
    text-align: left;
    padding: 16px 18px;
}

.infobox.biography.vcard th,
.infobox.biography.vcard td,
.wikiverse-infobox th,
.wikiverse-infobox td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--wv-line);
    border-left: none;
    border-right: none;
    border-top: none;
    vertical-align: top;
}

.infobox.biography.vcard th,
.wikiverse-infobox th {
    width: 38%;
    background: #f2efe6;
    color: var(--wv-ink-soft);
    font-weight: 600;
    text-align: left;
    font-size: 13px;
}

.infobox.biography.vcard img,
.wikiverse-infobox img {
    max-width: 100%;
    border-radius: 0;
    border: none;
}

.infobox.biography.vcard .verified {
    width: 16px;
    vertical-align: middle;
    margin-left: 4px;
}

/* ============================================
   TABLES
   ============================================ */
.wikitable {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--wv-line);
    margin: 20px 0;
    font-size: 15px;
}
.wikitable th {
    background: #f2efe6;
    color: var(--wv-ink);
    font-weight: 600;
    padding: 12px;
    border: 1px solid var(--wv-line);
}
.wikitable td { padding: 12px; border: 1px solid var(--wv-line); }

/* ============================================
   TOC / CATLINKS
   ============================================ */
.toc {
    background: var(--wv-white);
    border: 1px solid var(--wv-line);
    padding: 15px 20px;
    display: inline-block;
    min-width: 280px;
}

.catlinks {
    background: transparent;
    border-top: 1px solid var(--wv-line);
    padding: 15px 0;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}

pre, code { border-radius: 4px; padding: 12px; }

.footer__description,
.footer__tagline { display: none !important; }

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 768px) {
    .infobox.biography.vcard,
    .wikiverse-infobox { float: none; width: 100%; margin: 20px 0; }

    body, .mw-body, .vector-body { font-size: 15px; }
    h1, .firstHeading { font-size: 1.9rem; }
    h2 { font-size: 1.35rem; }

    .wv-hero { padding: 32px 24px; }
    .wv-hero h1 { font-size: 2.1rem; }
    .wv-hero .seal { display: none; }

    .wv-grid, .wv-cat-grid { flex-direction: column; }
    .wv-card { border-right: none; border-bottom: 1px solid var(--wv-line); }
    .wv-cat-grid a { border-right: none; }
    .wv-cta { padding: 32px 24px; }
}

/* Hide Discussion */
a[href*="action=edit&section=new"],
.vector-talk-link,
#ca-talk {
    display: none !important;
}

/* Hide 3-dot menu 
.citizen-dropdown-details{
    display: none !important;
}*/



/* ============================================================
   WIKIVERSA — HOMEPAGE DYNAMIC BOXES (ADD-ON ONLY)
   Ye poora block apne maujuda MediaWiki:Common.css ke SABSE
   NEECHE paste karo. Upar wala poora CSS jaisa hai waisa hi
   rehne do — kuch bhi delete/edit karne ki zaroorat nahi.
   ============================================================ */

/* ---- shared box shell (Featured / News / OTD / Newest / Browse) ---- */
.wv-mp-box {
    background: var(--wv-white);
    border: 1px solid var(--wv-line);
    margin-bottom: 20px;
    box-sizing: border-box;
    box-shadow: 0 6px 18px rgba(0,0,0,0.03);
}

.wv-mp-box-header {
    padding: 12px 18px;
    font-family: var(--wv-font-display);
    font-weight: 600;
    font-size: 17px;
    color: var(--wv-ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wv-mp-box-header .wv-view-all {
    font-family: var(--wv-font-body);
    font-weight: 500;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
}

.wv-mp-box-body { padding: 18px; }

/* header color variants, matched to your screenshots */
.wv-mp-header-green  { background: #d9f2e0; }
.wv-mp-header-blue   { background: #d7e6f7; }
.wv-mp-header-pink   { background: #f6dde6; }
.wv-mp-header-grey   { background: #ebebeb; }
.wv-mp-header-purple { background: #e3e0f7; }

/* ---- two-column top row: Featured (left) / News + OTD (right) ---- */
.wv-mp-toprow {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
}
.wv-mp-toprow-left  { flex: 2 1 0; min-width: 0; }
.wv-mp-toprow-right { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }

/* ---- featured article ---- */
.wv-mp-featured { display: flex; gap: 18px; }
.wv-mp-featured img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
}
.wv-mp-featured .wv-mp-featured-text { font-size: 15px; color: var(--wv-ink-soft); line-height: 1.6; }
.wv-mp-featured .wv-mp-featured-text a { font-weight: 600; }
.wv-mp-featured-more { display: block; text-align: right; margin-top: 10px; font-style: italic; font-size: 14px; }

/* ---- in the news / on this day lists ---- */
.wv-mp-news-list { margin: 0; padding-left: 18px; font-size: 15px; color: var(--wv-ink-soft); line-height: 1.9; }
.wv-mp-news-list li { margin-bottom: 4px; }
.wv-mp-empty { color: var(--wv-slate); font-size: 14px; font-style: italic; }

/* ---- newest additions / category card grids ---- */
.wv-mp-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.wv-mp-card {
    flex: 1 1 220px;
    max-width: 260px;
    border: 1px solid var(--wv-line);
    background: var(--wv-white);
}
.wv-mp-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.wv-mp-card-body { padding: 14px 16px; }
.wv-mp-card-title { font-weight: 600; font-size: 15px; display: block; margin-bottom: 4px; }
.wv-mp-card-cat { font-style: italic; color: var(--wv-slate); font-size: 13px; display: block; margin-bottom: 6px; }
.wv-mp-card-snippet { font-size: 13.5px; color: var(--wv-ink-soft); line-height: 1.5; }

/* ---- browse by category: repeated sub-sections ---- */
.wv-mp-catsection { margin-bottom: 26px; }
.wv-mp-catsection-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--wv-line);
    padding-bottom: 6px;
    margin-bottom: 14px;
}
.wv-mp-catsection-title h3 {
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--wv-font-display);
    font-size: 18px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .wv-mp-toprow { flex-direction: column; }
    .wv-mp-featured { flex-direction: column; }
    .wv-mp-featured img { width: 100%; height: 180px; }
    .wv-mp-card { flex: 1 1 100%; max-width: 100%; }
}