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)
   HARD ISOLATION RESET
  (prevents Citizen "card UI")
========================= */
========================= */
.subtab-wrapper,
.subtab-wrapper,
Line 10: Line 10:


/* =========================
/* =========================
   REBUILD LAYOUT SAFELY
   CONTAINER
========================= */
========================= */
.subtab-wrapper {
.subtab-wrapper {
Line 19: Line 19:
}
}


/* FLEX ROW (NO STACKING) */
/* =========================
  FLEX ROW
========================= */
.subtab-list {
.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;


     list-style: none;
     align-items: center;
 
    width: 100%;
}
}


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


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


     border-radius: 4px;
     border-radius: 4px;


    text-decoration: none !important;
    background: transparent !important;  /* 🔴 KILLS BLUE BOX */
    border: none !important;
    color: inherit;
     white-space: nowrap;
     white-space: nowrap;
    background: transparent; /* kills blue box effect */
    border: 0;
}
}


/* LINKS INSIDE TABS */
/* links already are the item, so force neutrality */
.subtab-item a {
.subtab-item:visited,
.subtab-item:link {
     color: inherit;
     color: inherit;
    text-decoration: none;
}
}


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


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


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

Revision as of 16:12, 21 April 2026

/* =========================
   HARD ISOLATION RESET
   (prevents Citizen "card UI")
========================= */
.subtab-wrapper,
.subtab-list,
.subtab-item {
    all: unset;
}

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

/* =========================
   FLEX ROW
========================= */
.subtab-list {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.4rem;

    margin: 0;
    padding: 0;

    align-items: center;
}

/* =========================
   TABS (IMPORTANT FIX)
========================= */
.subtab-item {
    display: inline-flex !important;

    padding: 0.25em 0.6em;

    border-radius: 4px;

    text-decoration: none !important;

    background: transparent !important;  /* 🔴 KILLS BLUE BOX */
    border: none !important;

    color: inherit;
    white-space: nowrap;
}

/* links already are the item, so force neutrality */
.subtab-item:visited,
.subtab-item:link {
    color: inherit;
}

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

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

/* =========================
   FINAL CITIZEN OVERRIDE SAFETY NET
========================= */
.subtab-list > * {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}