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

MediaWiki:Citizen.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Line 1: Line 1:


/* =========================
/* =========================
   ISOLATE TAB AREA FROM CITIZEN UI STYLING
   ROOT ISOLATION (CRITICAL)
  prevents Citizen "card UI" inheritance
========================= */
========================= */
.subtab-isolated,
.mw-subtabs,
.subtab-isolated * {
.mw-subtabs * {
     background: transparent !important;
     background: transparent !important;
     box-shadow: none !important;
     box-shadow: none !important;
Line 11: Line 12:


/* =========================
/* =========================
   STOP CITIZEN "CARDIFYING" LINKS/SPANS
   CONTAINER
========================= */
========================= */
.subtab-isolated a,
.mw-subtabs {
.subtab-isolated span {
    display: block;
     background: transparent !important;
     border-bottom: 1px solid #a2a9b1;
     box-shadow: none !important;
     margin-bottom: 1em;
     border: none !important;
     padding-bottom: 0.25em;
}
}


/* =========================
/* =========================
   FORCE FLEX LAYOUT
   FLEX ROW (NO STACKING EVER)
========================= */
========================= */
.subtab-isolated .subtab-list {
.mw-subtabs__list {
     display: flex !important;
     display: flex !important;
    flex-direction: row;
     flex-wrap: wrap;
     flex-wrap: wrap;
     gap: 0.4rem;
     gap: 0.5rem;
 
     align-items: center;
     align-items: center;


Line 34: Line 37:


/* =========================
/* =========================
   FORCE INLINE TAB LOOK
   TAB ITEMS
========================= */
========================= */
.subtab-isolated .subtab-item {
.mw-subtabs__item {
     display: inline-flex !important;
     display: inline-flex !important;


     padding: 0.25em 0.6em;
     padding: 0.3em 0.65em;


     white-space: nowrap;
     white-space: nowrap;


     background: transparent !important;
     border-radius: 4px;
     border: none !important;
 
    color: inherit;
 
    text-decoration: none;
}
 
/* links inside MediaWiki output */
.mw-subtabs__item a {
    color: inherit !important;
     text-decoration: none !important;
}
}


Line 50: Line 62:
   ACTIVE TAB
   ACTIVE TAB
========================= */
========================= */
.subtab-isolated .subtab-item.active {
.mw-subtabs__item.is-active {
     font-weight: 600;
     font-weight: 600;
     border-bottom: 2px solid #36c;
     border-bottom: 2px solid #36c;
Line 56: Line 68:


/* =========================
/* =========================
   NUCLEAR OPTION (CITIZEN CARD KILLER)
   HOVER STATE
  THIS is what removes blue boxes
========================= */
========================= */
.mw-parser-output .subtab-isolated * {
.mw-subtabs__item:hover {
    background: rgba(54,108,204,0.08) !important;
}
 
/* =========================
  FINAL CITIZEN OVERRIDE (IMPORTANT)
========================= */
.mw-parser-output .mw-subtabs__item {
     background: transparent !important;
     background: transparent !important;
    box-shadow: none !important;
}
}

Revision as of 16:19, 21 April 2026

/* =========================
   ROOT ISOLATION (CRITICAL)
   prevents Citizen "card UI" inheritance
========================= */
.mw-subtabs,
.mw-subtabs * {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* =========================
   CONTAINER
========================= */
.mw-subtabs {
    display: block;
    border-bottom: 1px solid #a2a9b1;
    margin-bottom: 1em;
    padding-bottom: 0.25em;
}

/* =========================
   FLEX ROW (NO STACKING EVER)
========================= */
.mw-subtabs__list {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;

    align-items: center;

    margin: 0;
    padding: 0;
}

/* =========================
   TAB ITEMS
========================= */
.mw-subtabs__item {
    display: inline-flex !important;

    padding: 0.3em 0.65em;

    white-space: nowrap;

    border-radius: 4px;

    color: inherit;

    text-decoration: none;
}

/* links inside MediaWiki output */
.mw-subtabs__item a {
    color: inherit !important;
    text-decoration: none !important;
}

/* =========================
   ACTIVE TAB
========================= */
.mw-subtabs__item.is-active {
    font-weight: 600;
    border-bottom: 2px solid #36c;
}

/* =========================
   HOVER STATE
========================= */
.mw-subtabs__item:hover {
    background: rgba(54,108,204,0.08) !important;
}

/* =========================
   FINAL CITIZEN OVERRIDE (IMPORTANT)
========================= */
.mw-parser-output .mw-subtabs__item {
    background: transparent !important;
    box-shadow: none !important;
}