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

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 5: Line 5:
   margin-left: 5px;
   margin-left: 5px;
}
}
/* Dark-mode scopes */
@layer base {
:is(html.skin-theme-clientpref-night,
  /* Always apply */
    html.skin-citizen-dark,
  .citizen-overflow-wrapper:has(.citizen-overflow-content .wikitable) {
    [data-theme="dark"]) .navbox {
    float: right;
  color: #9a9a9a !important;
    clear: right;
  background: #000 !important;
    margin-left: 5px;
}
  }


/* Zebra striping by MW's navbox-odd/even classes */
  /* Dark-mode scopes */
:is(html.skin-theme-clientpref-night,
  :is(html.skin-theme-clientpref-night,
    html.skin-citizen-dark,
      html.skin-citizen-dark,
    [data-theme="dark"]) .navbox tr:has(> td.navbox-list.navbox-odd),
      [data-theme="dark"]) .navbox {
:is(html.skin-theme-clientpref-night,
     color: #9a9a9a !important;
     html.skin-citizen-dark,
     background: #000 !important;
    [data-theme="dark"]) .navbox td.navbox-list.navbox-odd,
  }
:is(html.skin-theme-clientpref-night,
     html.skin-citizen-dark,
    [data-theme="dark"]) .navbox th.navbox-group:has(+ td.navbox-list.navbox-odd) {
  background-color: #000 !important; /* odd row */
}


:is(html.skin-theme-clientpref-night,
  /* Zebra striping */
     html.skin-citizen-dark,
  :is(html.skin-theme-clientpref-night,
    [data-theme="dark"]) .navbox tr:has(> td.navbox-list.navbox-even),
      html.skin-citizen-dark,
:is(html.skin-theme-clientpref-night,
      [data-theme="dark"]) .navbox tr:has(> td.navbox-list.navbox-odd),
    html.skin-citizen-dark,
  :is(html.skin-theme-clientpref-night,
    [data-theme="dark"]) .navbox td.navbox-list.navbox-even,
      html.skin-citizen-dark,
:is(html.skin-theme-clientpref-night,
      [data-theme="dark"]) .navbox td.navbox-list.navbox-odd,
    html.skin-citizen-dark,
  :is(html.skin-theme-clientpref-night,
    [data-theme="dark"]) .navbox th.navbox-group:has(+ td.navbox-list.navbox-even) {
      html.skin-citizen-dark,
  background-color: #111 !important; /* even row */
      [data-theme="dark"]) .navbox th.navbox-group:has(+ td.navbox-list.navbox-odd) {
}
     background-color: #000 !important;
  }
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox tr:has(> td.navbox-list.navbox-even),
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox td.navbox-list.navbox-even,
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox th.navbox-group:has(+ td.navbox-list.navbox-even) {
    background-color: #111 !important;
  }


/* looks better in dark */
  /* Title style */
:is(html.skin-theme-clientpref-night,
  :is(html.skin-theme-clientpref-night,
    html.skin-citizen-dark,
      html.skin-citizen-dark,
    [data-theme="dark"]) .navbox .navbox-title {
      [data-theme="dark"]) .navbox .navbox-title {
  background: #1b1b1b !important;
    background: #1b1b1b !important;
  color: #e6e6e6 !important;
    color: #e6e6e6 !important;
  border-color: #2a2a2a !important;
    border-color: #2a2a2a !important;
}
  }


/* Borders & links */
  /* Borders & links */
:is(html.skin-theme-clientpref-night,
  :is(html.skin-theme-clientpref-night,
    html.skin-citizen-dark,
      html.skin-citizen-dark,
    [data-theme="dark"]) .navbox,
      [data-theme="dark"]) .navbox,
:is(html.skin-theme-clientpref-night,
  :is(html.skin-theme-clientpref-night,
    html.skin-citizen-dark,
      html.skin-citizen-dark,
    [data-theme="dark"]) .navbox td,
      [data-theme="dark"]) .navbox td,
:is(html.skin-theme-clientpref-night,
  :is(html.skin-theme-clientpref-night,
    html.skin-citizen-dark,
      html.skin-citizen-dark,
    [data-theme="dark"]) .navbox th {
      [data-theme="dark"]) .navbox th {
  border-color: #2a2a2a !important;
    border-color: #2a2a2a !important;
  }
  .navbox a {
    color: inherit;
  }
}
}
.navbox a { color: inherit; }


/* Specific overrides for known inline background colors */
@layer overrides {
:is(html.skin-theme-clientpref-night,
  /* White group bg → keep white text */
    html.skin-citizen-dark,
  :is(html.skin-theme-clientpref-night,
    [data-theme="dark"]) .navbox .navbox-group[style*="background: #ffffff"],
      html.skin-citizen-dark,
:is(html.skin-theme-clientpref-night,
      [data-theme="dark"]) .navbox .navbox-group[style*="background: #ffffff"],
    html.skin-citizen-dark,
  :is(html.skin-theme-clientpref-night,
    [data-theme="dark"]) .navbox .navbox-group[style*="background:#ffffff"],
      html.skin-citizen-dark,
:is(html.skin-theme-clientpref-night,
      [data-theme="dark"]) .navbox .navbox-group[style*="background:#ffffff"],
    html.skin-citizen-dark,
  :is(html.skin-theme-clientpref-night,
    [data-theme="dark"]) .navbox .navbox-group[style*="background: white"],
      html.skin-citizen-dark,
:is(html.skin-theme-clientpref-night,
      [data-theme="dark"]) .navbox .navbox-group[style*="background: white"],
    html.skin-citizen-dark,
  :is(html.skin-theme-clientpref-night,
    [data-theme="dark"]) .navbox .navbox-group[style*="background:white"] {
      html.skin-citizen-dark,
  background: none !important;
      [data-theme="dark"]) .navbox .navbox-group[style*="background:white"] {
  color: #ffffff !important; /* keep white group text white in dark mode */
    background: none !important;
}
    color: #ffffff !important;
  }


/* Green */
  /* Green */
:is(html.skin-theme-clientpref-night,
  :is(html.skin-theme-clientpref-night,
    html.skin-citizen-dark,
      html.skin-citizen-dark,
    [data-theme="dark"]) .navbox .navbox-group[style*="background: #07f507"],
      [data-theme="dark"]) .navbox .navbox-group[style*="background: #07f507"],
:is(html.skin-theme-clientpref-night,
  :is(html.skin-theme-clientpref-night,
    html.skin-citizen-dark,
      html.skin-citizen-dark,
    [data-theme="dark"]) .navbox .navbox-group[style*="background:#07f507"] {
      [data-theme="dark"]) .navbox .navbox-group[style*="background:#07f507"] {
  background: none !important;
    background: none !important;
  color: #07f507 !important;
    color: #07f507 !important;
}
  }


/* Blue */
  /* Blue */
:is(html.skin-theme-clientpref-night,
  :is(html.skin-theme-clientpref-night,
    html.skin-citizen-dark,
      html.skin-citizen-dark,
    [data-theme="dark"]) .navbox .navbox-group[style*="background: #42caff"],
      [data-theme="dark"]) .navbox .navbox-group[style*="background: #42caff"],
:is(html.skin-theme-clientpref-night,
  :is(html.skin-theme-clientpref-night,
    html.skin-citizen-dark,
      html.skin-citizen-dark,
    [data-theme="dark"]) .navbox .navbox-group[style*="background:#42caff"] {
      [data-theme="dark"]) .navbox .navbox-group[style*="background:#42caff"] {
  background: none !important;
    background: none !important;
  color: #42caff !important;
    color: #42caff !important;
}
  }


/* Red */
  /* Red */
:is(html.skin-theme-clientpref-night,
  :is(html.skin-theme-clientpref-night,
    html.skin-citizen-dark,
      html.skin-citizen-dark,
    [data-theme="dark"]) .navbox .navbox-group[style*="background: #ff0f0f"],
      [data-theme="dark"]) .navbox .navbox-group[style*="background: #ff0f0f"],
:is(html.skin-theme-clientpref-night,
  :is(html.skin-theme-clientpref-night,
    html.skin-citizen-dark,
      html.skin-citizen-dark,
    [data-theme="dark"]) .navbox .navbox-group[style*="background:#ff0f0f"] {
      [data-theme="dark"]) .navbox .navbox-group[style*="background:#ff0f0f"] {
  background: none !important;
    background: none !important;
  color: #ff0f0f !important;
    color: #ff0f0f !important;
}
  }


/* Special-case black → white bg, black text */
  /* Special black group → white bg, black text */
:is(html.skin-theme-clientpref-night, html.skin-citizen-dark, [data-theme="dark"])
  :is(html.skin-theme-clientpref-night, html.skin-citizen-dark, [data-theme="dark"])
.navbox th.navbox-group[style*="background:#000"],
  .navbox th.navbox-group[style*="background:#000"],
:is(html.skin-theme-clientpref-night, html.skin-citizen-dark, [data-theme="dark"])
  :is(html.skin-theme-clientpref-night, html.skin-citizen-dark, [data-theme="dark"])
.navbox th.navbox-group[style*="background: #000"],
  .navbox th.navbox-group[style*="background: #000"],
:is(html.skin-theme-clientpref-night, html.skin-citizen-dark, [data-theme="dark"])
  :is(html.skin-theme-clientpref-night, html.skin-citizen-dark, [data-theme="dark"])
.navbox th.navbox-group[style*="background-color:#000"],
  .navbox th.navbox-group[style*="background-color:#000"],
:is(html.skin-theme-clientpref-night, html.skin-citizen-dark, [data-theme="dark"])
  :is(html.skin-theme-clientpref-night, html.skin-citizen-dark, [data-theme="dark"])
.navbox th.navbox-group[style*="background-color: #000"],
  .navbox th.navbox-group[style*="background-color: #000"],
:is(html.skin-theme-clientpref-night, html.skin-citizen-dark, [data-theme="dark"])
  :is(html.skin-theme-clientpref-night, html.skin-citizen-dark, [data-theme="dark"])
.navbox th.navbox-group[style*="background:#000000"],
  .navbox th.navbox-group[style*="background:#000000"],
:is(html.skin-theme-clientpref-night, html.skin-citizen-dark, [data-theme="dark"])
  :is(html.skin-theme-clientpref-night, html.skin-citizen-dark, [data-theme="dark"])
.navbox th.navbox-group[style*="background: #000000"],
  .navbox th.navbox-group[style*="background: #000000"],
:is(html.skin-theme-clientpref-night, html.skin-citizen-dark, [data-theme="dark"])
  :is(html.skin-theme-clientpref-night, html.skin-citizen-dark, [data-theme="dark"])
.navbox th.navbox-group[style*="background:black"] {
  .navbox th.navbox-group[style*="background:black"] {
  background: none !important;
    background: none !important;
  color: #000 !important;
    color: #000 !important;
  text-shadow: 0 0 10px #fff;
    text-shadow: 0 0 10px #fff;
  }
}
}

Revision as of 21:56, 15 August 2025

/* CSS placed here will be applied to all skins */
.citizen-overflow-wrapper:has(.citizen-overflow-content .wikitable) {
  float: right;
  clear: right;
  margin-left: 5px;
}
@layer base {
  /* Always apply */
  .citizen-overflow-wrapper:has(.citizen-overflow-content .wikitable) {
    float: right;
    clear: right;
    margin-left: 5px;
  }

  /* Dark-mode scopes */
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox {
    color: #9a9a9a !important;
    background: #000 !important;
  }

  /* Zebra striping */
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox tr:has(> td.navbox-list.navbox-odd),
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox td.navbox-list.navbox-odd,
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox th.navbox-group:has(+ td.navbox-list.navbox-odd) {
    background-color: #000 !important;
  }
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox tr:has(> td.navbox-list.navbox-even),
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox td.navbox-list.navbox-even,
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox th.navbox-group:has(+ td.navbox-list.navbox-even) {
    background-color: #111 !important;
  }

  /* Title style */
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox .navbox-title {
    background: #1b1b1b !important;
    color: #e6e6e6 !important;
    border-color: #2a2a2a !important;
  }

  /* Borders & links */
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox,
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox td,
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox th {
    border-color: #2a2a2a !important;
  }
  .navbox a {
    color: inherit;
  }
}

@layer overrides {
  /* White group bg → keep white text */
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox .navbox-group[style*="background: #ffffff"],
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox .navbox-group[style*="background:#ffffff"],
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox .navbox-group[style*="background: white"],
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox .navbox-group[style*="background:white"] {
    background: none !important;
    color: #ffffff !important;
  }

  /* Green */
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox .navbox-group[style*="background: #07f507"],
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox .navbox-group[style*="background:#07f507"] {
    background: none !important;
    color: #07f507 !important;
  }

  /* Blue */
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox .navbox-group[style*="background: #42caff"],
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox .navbox-group[style*="background:#42caff"] {
    background: none !important;
    color: #42caff !important;
  }

  /* Red */
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox .navbox-group[style*="background: #ff0f0f"],
  :is(html.skin-theme-clientpref-night,
      html.skin-citizen-dark,
      [data-theme="dark"]) .navbox .navbox-group[style*="background:#ff0f0f"] {
    background: none !important;
    color: #ff0f0f !important;
  }

  /* Special black group → white bg, black text */
  :is(html.skin-theme-clientpref-night, html.skin-citizen-dark, [data-theme="dark"])
  .navbox th.navbox-group[style*="background:#000"],
  :is(html.skin-theme-clientpref-night, html.skin-citizen-dark, [data-theme="dark"])
  .navbox th.navbox-group[style*="background: #000"],
  :is(html.skin-theme-clientpref-night, html.skin-citizen-dark, [data-theme="dark"])
  .navbox th.navbox-group[style*="background-color:#000"],
  :is(html.skin-theme-clientpref-night, html.skin-citizen-dark, [data-theme="dark"])
  .navbox th.navbox-group[style*="background-color: #000"],
  :is(html.skin-theme-clientpref-night, html.skin-citizen-dark, [data-theme="dark"])
  .navbox th.navbox-group[style*="background:#000000"],
  :is(html.skin-theme-clientpref-night, html.skin-citizen-dark, [data-theme="dark"])
  .navbox th.navbox-group[style*="background: #000000"],
  :is(html.skin-theme-clientpref-night, html.skin-citizen-dark, [data-theme="dark"])
  .navbox th.navbox-group[style*="background:black"] {
    background: none !important;
    color: #000 !important;
    text-shadow: 0 0 10px #fff;
  }
}