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:
/* =========================
  HARD RESET (Citizen override protection)
========================= */
.subtab-wrapper,
.subtab-list,
.subtab-item {
    all: unset;
}
/* =========================
/* =========================
   SUBTABS WRAPPER
   REBUILD LAYOUT SAFELY
========================= */
========================= */
.subtab-wrapper {
.subtab-wrapper {
    display: block;
     border-bottom: 1px solid #a2a9b1;
     border-bottom: 1px solid #a2a9b1;
     margin-bottom: 1em;
     margin-bottom: 1em;
Line 8: Line 19:
}
}


/* =========================
/* FLEX ROW (NO STACKING) */
  FLEX CONTAINER FIX
========================= */
.subtab-list {
.subtab-list {
     display: flex !important;
     display: flex !important;
     flex-direction: row;
     flex-direction: row;
     flex-wrap: wrap; /* change to nowrap if you want scroll tabs */
     flex-wrap: wrap;
    gap: 0.4rem;


     gap: 0.4rem;
     align-items: center;


     margin: 0;
     margin: 0;
Line 23: Line 33:
     list-style: none;
     list-style: none;


    align-items: center;
    /* prevents Citizen overrides */
     width: 100%;
     width: 100%;
}
}


/* =========================
/* TAB ITEMS */
  TAB ITEMS (CRITICAL FIX)
========================= */
.subtab-item {
.subtab-item {
     display: inline-flex !important;
     display: inline-flex !important;
     width: auto !important;
     width: auto !important;


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


     border-radius: 4px;
     border-radius: 4px;
Line 42: Line 47:
     white-space: nowrap;
     white-space: nowrap;


     text-decoration: none;
     background: transparent; /* kills blue box effect */
    border: 0;
}
}


/* Make MediaWiki links inside spans behave properly */
/* LINKS INSIDE TABS */
.subtab-item a {
.subtab-item a {
    color: inherit;
     text-decoration: none;
     text-decoration: none;
    color: inherit;
}
}


/* =========================
/* ACTIVE TAB */
  ACTIVE TAB
========================= */
.subtab-item.active {
.subtab-item.active {
     font-weight: 600;
     font-weight: 600;
Line 59: Line 63:
}
}


/* =========================
/* HOVER */
  OPTIONAL: HOVER EFFECT
========================= */
.subtab-item:hover {
.subtab-item:hover {
     background: rgba(54, 108, 204, 0.08);
     background: rgba(54,108,204,0.08);
}
}


/* =========================
/* FINAL SAFETY NET AGAINST CITIZEN */
  EMERGENCY OVERRIDE (Citizen safety net)
========================= */
.subtab-list > * {
.subtab-list > * {
     display: inline-flex !important;
     display: inline-flex !important;
    background: transparent !important;
     width: auto !important;
     width: auto !important;
}
}

Revision as of 16:11, 21 April 2026

/* =========================
   HARD RESET (Citizen override protection)
========================= */
.subtab-wrapper,
.subtab-list,
.subtab-item {
    all: unset;
}

/* =========================
   REBUILD LAYOUT SAFELY
========================= */
.subtab-wrapper {
    display: block;
    border-bottom: 1px solid #a2a9b1;
    margin-bottom: 1em;
    padding-bottom: 0.25em;
}

/* FLEX ROW (NO STACKING) */
.subtab-list {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;

    align-items: center;

    margin: 0;
    padding: 0;

    list-style: none;

    width: 100%;
}

/* TAB ITEMS */
.subtab-item {
    display: inline-flex !important;
    width: auto !important;

    padding: 0.3em 0.65em;

    border-radius: 4px;

    white-space: nowrap;

    background: transparent; /* kills blue box effect */
    border: 0;
}

/* LINKS INSIDE TABS */
.subtab-item a {
    color: inherit;
    text-decoration: none;
}

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

/* HOVER */
.subtab-item:hover {
    background: rgba(54,108,204,0.08);
}

/* FINAL SAFETY NET AGAINST CITIZEN */
.subtab-list > * {
    display: inline-flex !important;
    background: transparent !important;
    width: auto !important;
}