MediaWiki:Mobile.css: Difference between revisions

first light
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 54: Line 54:
     margin: 0 0 1rem 0 !important;
     margin: 0 0 1rem 0 !important;
     font-size: 0.9rem;
     font-size: 0.9rem;
}
/* Minerva wraps first section in .mf-section-0 before the infobox */
.mf-section-0 > p:empty,
.mf-section-0 > p:has(> br:only-child) {
    display: none;
    margin: 0;
    padding: 0;
}
.mf-section-0 > br:first-child {
    display: none;
}
}


Line 62: Line 74:
    
    
   We only need to patch our custom .bs-* components that
   We only need to patch our custom .bs-* components that
   Minerva has no knowledge of, and the infobox.
   Minerva has no knowledge of, the infobox, the license box,
  and the edit textarea.
    
    
   Do NOT re-declare Vector chrome rules here (#mw-head,
   Do NOT re-declare Vector chrome rules here (#mw-head,
Line 130: Line 143:
         border-top-color: var(--bs-gray-200);
         border-top-color: var(--bs-gray-200);
         color: var(--bs-gray-400);
         color: var(--bs-gray-400);
    }
    /* ── License box ────────────────────────────────── */
    /* Variables auto-remap via Common.css :root dark block;
      !important guards against Minerva's own table resets. */
    .license-box {
        background: var(--bs-gray-50) !important;
        border-color: var(--bs-gray-200) !important;
        color: var(--bs-text-primary) !important;
    }
    /* ── Edit textarea (Minerva) ────────────────────── */
    #wpTextbox1,
    .mw-editfont-default,
    textarea.mw-editfont-default {
        background-color: #1e1e1c;
        color: var(--bs-text-primary);
        border-color: #3a3a38;
     }
     }