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:


/* container */
/* =========================
.subtab-wrapper {
  ISOLATE TAB AREA FROM CITIZEN UI STYLING
     border-bottom: 1px solid #a2a9b1;
========================= */
     margin-bottom: 1em;
.subtab-isolated,
     padding-bottom: 0.25em;
.subtab-isolated * {
    background: transparent !important;
    box-shadow: none !important;
     border: none !important;
}
 
/* =========================
  STOP CITIZEN "CARDIFYING" LINKS/SPANS
========================= */
.subtab-isolated a,
.subtab-isolated span {
    background: transparent !important;
     box-shadow: none !important;
     border: none !important;
}
}


/* flex row */
/* =========================
.subtab-list {
  FORCE FLEX LAYOUT
========================= */
.subtab-isolated .subtab-list {
     display: flex !important;
     display: flex !important;
    flex-direction: row;
     flex-wrap: wrap;
     flex-wrap: wrap;
     gap: 0.4rem;
     gap: 0.4rem;
    align-items: center;


     margin: 0;
     margin: 0;
     padding: 0;
     padding: 0;
    align-items: center;
}
}


/* IMPORTANT: spans must NOT behave like blocks */
/* =========================
.subtab-item {
  FORCE INLINE TAB LOOK
========================= */
.subtab-isolated .subtab-item {
     display: inline-flex !important;
     display: inline-flex !important;
    width: auto !important;


     padding: 0.25em 0.6em;
     padding: 0.25em 0.6em;
Line 33: Line 47:
}
}


/* link styling */
/* =========================
.subtab-item a {
  ACTIVE TAB
    text-decoration: none;
========================= */
    color: inherit;
.subtab-isolated .subtab-item.active {
}
 
/* active tab */
.subtab-item.active {
     font-weight: 600;
     font-weight: 600;
     border-bottom: 2px solid #36c;
     border-bottom: 2px solid #36c;
}
}


/* safety override against Citizen cards */
/* =========================
.subtab-list > * {
  NUCLEAR OPTION (CITIZEN CARD KILLER)
  THIS is what removes blue boxes
========================= */
.mw-parser-output .subtab-isolated * {
     background: transparent !important;
     background: transparent !important;
    box-shadow: none !important;
}
}

Revision as of 16:18, 21 April 2026

/* =========================
   ISOLATE TAB AREA FROM CITIZEN UI STYLING
========================= */
.subtab-isolated,
.subtab-isolated * {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* =========================
   STOP CITIZEN "CARDIFYING" LINKS/SPANS
========================= */
.subtab-isolated a,
.subtab-isolated span {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* =========================
   FORCE FLEX LAYOUT
========================= */
.subtab-isolated .subtab-list {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;

    margin: 0;
    padding: 0;
}

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

    padding: 0.25em 0.6em;

    white-space: nowrap;

    background: transparent !important;
    border: none !important;
}

/* =========================
   ACTIVE TAB
========================= */
.subtab-isolated .subtab-item.active {
    font-weight: 600;
    border-bottom: 2px solid #36c;
}

/* =========================
   NUCLEAR OPTION (CITIZEN CARD KILLER)
   THIS is what removes blue boxes
========================= */
.mw-parser-output .subtab-isolated * {
    background: transparent !important;
}