Mediawiki:common.css

Вернуться

Line 2,234: Line 2,234:
}
}


/*Colors of tables for different departments*/
/* -----------------------------------------------------------------------------
  FAMILY 1 · Solid tables (header tint == table base; body rows tint down)
  Members: MED ENG RND SUP VIOLET YELLOW aSRV
  Per-table vars: --d-base (table + header), --d-title (row headers), --d-cell
  -------------------------------------------------------------------------- */
#MED    { --d-base: oklch(0.351 0.062 183.5); --d-title: oklch(0.424 0.075 184.6); --d-cell: oklch(0.456 0.068 186.8); }
#ENG    { --d-base: oklch(0.496 0.096 90.4);  --d-title: oklch(0.565 0.111 90.1); --d-cell: oklch(0.601 0.100 91.0); }
#RND    { --d-base: oklch(0.355 0.166 325.4); --d-title: oklch(0.417 0.194 325.5);--d-cell: oklch(0.472 0.163 322.8); }
#SUP    { --d-base: oklch(0.414 0.092 59.2);  --d-title: oklch(0.469 0.106 58.6); --d-cell: oklch(0.516 0.098 63.2); }
#VIOLET { --d-base: oklch(0.303 0.113 300.7); --d-title: oklch(0.339 0.130 300.5);--d-cell: oklch(0.364 0.114 302.0); }
#YELLOW { --d-base: oklch(0.440 0.099 130.0); --d-title: oklch(0.493 0.111 129.7);--d-cell: oklch(0.518 0.098 128.7); }
#aSRV  { --d-base: oklch(0.442 0.119 143.2); --d-title: oklch(0.509 0.139 143.2);--d-cell: oklch(0.549 0.123 143.7); }


/* Table */
:is(#MED, #ENG, #RND, #SUP, #VIOLET, #YELLOW, #aSRV).wikitable {
#MED.wikitable {
    background: var(--d-base);
background: #01453e;
    border-spacing: 0;
border-spacing: 0px;
}
}
 
:is(#MED, #ENG, #RND, #SUP, #VIOLET, #YELLOW, #aSRV).wikitable thead tr th,
/* Header */
:is(#MED, #ENG, #RND, #SUP, #VIOLET, #YELLOW, #aSRV).wikitable:not(:has(thead)) tr:first-of-type th {
#MED.wikitable thead tr th,
#MED.wikitable:not(:has(thead)) tr:first-of-type th {
    position: relative;
    background-color: #01453e;
    border-bottom: 4px solid #00000015;
}
 
/* Title cell */
#MED.wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) th,
#MED.wikitable thead + tbody > tr th {
    background: #005b53;
    border-bottom: 1px solid #01453e;
}
 
/* Cell with contents */
#MED.wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) td,
#MED.wikitable thead + tbody > tr td {
    background: #1f635d;
    border-bottom: 1px solid #01453e;
    border-left: 1px solid #005b53;
}
 
#ENG.wikitable {
background: #775f0e;
border-spacing: 0px;
}
 
#ENG.wikitable thead tr th,
#ENG.wikitable:not(:has(thead)) tr:first-of-type th {
     position: relative;
     position: relative;
     background-color: #775f0e;
     background-color: var(--d-base);
    border-bottom: 4px solid #00000015;
     border-bottom: 0.2em solid oklch(0 0 0 / 0.13);
}
 
#ENG.wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) th,
#ENG.wikitable thead + tbody > tr th {
    background: #8f7210;
     border-bottom: 1px solid #775f0e;
}
 
#ENG.wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) td,
#ENG.wikitable thead + tbody > tr td {
    background: #977e31;
    border-bottom: 1px solid #775f0e;
    border-left: 1px solid #8f7210;
}
 
#SEC.wikitable {
    background: #404144;
    color: #dddddd;
}
 
#SEC.wikitable>*>tr>th {
    background: #912424;
    color: #dddddd;
}
 
#SEC.wikitable > * > tr > td {
    background: #515255;
    color: #dddddd;
}
}
 
:is(#MED, #ENG, #RND, #SUP, #VIOLET, #YELLOW, #aSRV).wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) th,
#SRV.wikitable {
:is(#MED, #ENG, #RND, #SUP, #VIOLET, #YELLOW, #aSRV).wikitable thead + tbody > tr th {
     background: #316f20;
     background: var(--d-title);
     color: #dddddd;
     border-bottom: 1px solid var(--d-base);
}
}
 
:is(#MED, #ENG, #RND, #SUP, #VIOLET, #YELLOW, #aSRV).wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) td,
#SRV.wikitable>*>tr>th {
:is(#MED, #ENG, #RND, #SUP, #VIOLET, #YELLOW, #aSRV).wikitable thead + tbody > tr td {
     background: #316f20;
     background: var(--d-cell);
     color: #dddddd;
    border-bottom: 1px solid var(--d-base);
     border-left: 1px solid var(--d-title);
}
}


#SRV.wikitable >*> tr > td {
/* -----------------------------------------------------------------------------
    background: #40852b;
  FAMILY 2 · Solid tables with a distinct header tint
    color: #dddddd;
  Members: BOTANY MUTATION
}
  Per-table vars: --d-base, --d-head, --d-title, --d-cell
  -------------------------------------------------------------------------- */
#BOTANY  { --d-base: oklch(0.328 0.067 158.9); --d-head: oklch(0.453 0.105 157.5); --d-title: oklch(0.511 0.136 150.1); --d-cell: oklch(0.544 0.118 153.4); }
#MUTATION { --d-base: oklch(0.224 0.081 299.7); --d-head: oklch(0.284 0.140 295.8); --d-title: oklch(0.310 0.133 297.4); --d-cell: oklch(0.343 0.128 297.5); }


#RND.wikitable {
:is(#BOTANY, #MUTATION).wikitable {
background: #630069;
    background: var(--d-base);
border-spacing: 0px;
}
}
 
:is(#BOTANY, #MUTATION).wikitable thead tr th,
#RND.wikitable thead tr th,
:is(#BOTANY, #MUTATION).wikitable:not(:has(thead)) tr:first-of-type th {
#RND.wikitable:not(:has(thead)) tr:first-of-type th {
     position: relative;
     position: relative;
     background-color: #630069;
     background-color: var(--d-head);
     border-bottom: 4px solid #00000015;
     border-bottom: 0.2em solid oklch(0 0 0 / 0.13);
}
}
 
:is(#BOTANY, #MUTATION).wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) th,
#RND.wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) th,
:is(#BOTANY, #MUTATION).wikitable thead + tbody > tr th {
#RND.wikitable thead + tbody > tr th {
     background: var(--d-title);
    background: #7c0183;
    border-bottom: 1px solid #630069;
}
 
#RND.wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) td,
#RND.wikitable thead + tbody > tr td {
     background: #84328f;
    border-bottom: 1px solid #630069;
    border-left: 1px solid #7c0183;
}
 
#SUP.wikitable {
background: #6f3d0a;
border-spacing: 0px;
}
 
#SUP.wikitable thead tr th,
#SUP.wikitable:not(:has(thead)) tr:first-of-type th {
    position: relative;
    background-color: #6f3d0a;
    border-bottom: 4px solid #00000015;
}
}
 
:is(#BOTANY, #MUTATION).wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) th:first-of-type,
#SUP.wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) th,
:is(#BOTANY, #MUTATION).wikitable thead + tbody > tr th:first-of-type {
#SUP.wikitable thead + tbody > tr th {
     border-left: 0.2em solid oklch(0 0 0 / 0.23);
    background: #85490c;
     border-bottom: 1px solid #6f3d0a;
}
}
 
:is(#BOTANY, #MUTATION).wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) td,
#SUP.wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) td,
:is(#BOTANY, #MUTATION).wikitable thead + tbody > tr td {
#SUP.wikitable thead + tbody > tr td {
     background: var(--d-cell);
     background: #8f5a23;
    border-bottom: 1px solid #6f3d0a;
    border-left: 1px solid #85490c;
}
}


/* -----------------------------------------------------------------------------
  FAMILY 3 · Simple flat tables (light text, plain header/cell)
  Members: SEC SRV aSEC
  Per-table vars: --d-base (table), --d-head, --d-cell
  -------------------------------------------------------------------------- */
#SEC  { --d-base: oklch(0.375 0.005 271.3); --d-head: oklch(0.437 0.145 25.5); --d-cell: oklch(0.439 0.005 271.3); }
#SRV  { --d-base: oklch(0.483 0.129 139.7); --d-head: oklch(0.483 0.129 139.7); --d-cell: oklch(0.552 0.143 139.2); }
#aSEC { --d-base: oklch(0.276 0.013 285.5); --d-head: oklch(0.437 0.145 25.5); --d-cell: oklch(0.321 0.018 285.4); }


#aMED.wikitable thead tr th,
:is(#SEC, #SRV, #aSEC).wikitable           { background: var(--d-base); color: #dddddd; }
#aMED.wikitable:not(:has(thead)) tr:first-of-type th {
:is(#SEC, #SRV, #aSEC).wikitable > * > tr > th { background: var(--d-head); color: #dddddd; }
    position: relative;
:is(#SEC, #SRV, #aSEC).wikitable > * > tr > td { background: var(--d-cell); color: #dddddd; }
    background-color: #004d45;
    border-bottom: 0.2em solid #00000059;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
}
 
#aMED.wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) th,
#aMED.wikitable thead + tbody > tr th {
    background: #0d747f;
    border-bottom: 0.1em solid #00000059;
    border-left: 0.2em solid #00000059;
}
 
#aENG.wikitable thead tr th,
#aENG.wikitable:not(:has(thead)) tr:first-of-type th {
    position: relative;
    background-color: #715609;
    border-bottom: 0.2em solid #00000059;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
}
 
#aENG.wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) th,
#aENG.wikitable thead + tbody > tr th {
    background: #957710;
    border-bottom: 0.1em solid #00000059;
    border-left: 0.2em solid #00000059;
}
 
#aRND.wikitable thead tr th,
#aRND.wikitable:not(:has(thead)) tr:first-of-type th {
    position: relative;
    background-color: #4e0163;
    border-bottom: 0.2em solid #00000059;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
}


#aRND.wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) th,
/* -----------------------------------------------------------------------------
#aRND.wikitable thead + tbody > tr th {
  FAMILY 4 · Accent-header tables (header + row-header tint only; body inherits
    background: #78027f;
  the normal .wikitable surface). Shadowed header strip.
     border-bottom: 0.1em solid #00000059;
  Members: aMED aENG aRND aSUP  +  #highlighted-header and its variants
     border-left: 0.2em solid #00000059;
  Per-table vars: --d-head (header strip), --d-title (row headers)
}
  -------------------------------------------------------------------------- */
#aMED                        { --d-head: oklch(0.377 0.067 183.1); --d-title: oklch(0.512 0.085 206.7); }
#aENG                        { --d-head: oklch(0.469 0.092 86.5);  --d-title: oklch(0.582 0.115 90.2); }
#aRND                       { --d-head: oklch(0.315 0.153 316.6); --d-title: oklch(0.407 0.189 325.4); }
#aSUP                        { --d-head: oklch(0.406 0.094 55.0);  --d-title: oklch(0.475 0.106 59.0); }
#highlighted-header          { --d-head: oklch(0.367 0.031 284.8); --d-title: oklch(0.451 0.149 25.5); }
#highlighted-header-classic  { --d-head: oklch(0.325 0.034 284.4); --d-title: oklch(0.368 0.034 284.6); }
#highlighted-header-cold     { --d-head: oklch(0.475 0.095 230.2); --d-title: oklch(0.498 0.085 206.7); }
#highlighted-header-dark     { --d-head: oklch(0.367 0.031 284.8); --d-title: oklch(0.427 0.144 25.8); }
#highlighted-header-CM      { --d-head: oklch(0.352 0.021 237.4); --d-title: oklch(0.451 0.051 175.2); }
#highlighted-header-xenomorph{ --d-head: oklch(0.312 0.113 301.8); --d-title: oklch(0.352 0.119 333.0); }


#aSUP.wikitable thead tr th,
:is(#aMED, #aENG, #aRND, #aSUP,
#aSUP.wikitable:not(:has(thead)) tr:first-of-type th {
    #highlighted-header, #highlighted-header-classic, #highlighted-header-cold,
    #highlighted-header-dark, #highlighted-header-CM, #highlighted-header-xenomorph).wikitable thead tr th,
:is(#aMED, #aENG, #aRND, #aSUP,
    #highlighted-header, #highlighted-header-classic, #highlighted-header-cold,
    #highlighted-header-dark, #highlighted-header-CM, #highlighted-header-xenomorph).wikitable:not(:has(thead)) tr:first-of-type th {
     position: relative;
     position: relative;
     background-color: #6f390a;
     background-color: var(--d-head);
     border-bottom: 0.2em solid #00000059;
     border-bottom: 0.2em solid oklch(0 0 0 / 0.35);
     box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
     box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
}
}
 
:is(#aMED, #aENG, #aRND, #aSUP,
#aSUP.wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) th,
     #highlighted-header, #highlighted-header-classic, #highlighted-header-cold,
#aSUP.wikitable thead + tbody > tr th {
     #highlighted-header-dark, #highlighted-header-CM, #highlighted-header-xenomorph).wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) th,
     background: #874b0e;
:is(#aMED, #aENG, #aRND, #aSUP,
    border-bottom: 0.1em solid #00000059;
     #highlighted-header, #highlighted-header-classic, #highlighted-header-cold,
    border-left: 0.2em solid #00000059;
     #highlighted-header-dark, #highlighted-header-CM, #highlighted-header-xenomorph).wikitable thead + tbody > tr th {
}
     background: var(--d-title);
 
     border-bottom: 0.1em solid oklch(0 0 0 / 0.35);
#aSEC.wikitable {
     border-left: 0.2em solid oklch(0 0 0 / 0.35);
    background: #27272E;
     color: #dddddd;
}
 
#aSEC.wikitable>*>tr>th {
    background: #912424;
    color: #dddddd;
}
 
#aSEC.wikitable > * > tr > td {
    background: #32323C;
    color: #dddddd;
}
 
#aSRV.wikitable {
background: #216321;
border-spacing: 0px;
}
 
#aSRV.wikitable thead tr th,
#aSRV.wikitable:not(:has(thead)) tr:first-of-type th {
    position: relative;
    background-color: #216321;
    border-bottom: 0.2em solid #00000021;
}
 
#aSRV.wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) th,
#aSRV.wikitable thead + tbody > tr th {
     background: #297929;
     border-bottom: 1px solid #216321;
}
 
#aSRV.wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) td,
#aSRV.wikitable thead + tbody > tr td {
     background: #3f833f;
     border-bottom: 1px solid #216321;
    border-left: 1px solid #297929;
}   
 
#BOTANY.wikitable {
background: #0d3f28;
}
 
 
#BOTANY.wikitable thead tr th,
#BOTANY.wikitable:not(:has(thead)) tr:first-of-type th {
    position: relative;
    background-color: #04673e !important;
     border-bottom: 0.2em solid #00000021;
}
}


 
/* Opt-out helper — unchanged */
#BOTANY.wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) th,
#no-highlight {
#BOTANY.wikitable thead + tbody > tr th {
     border-bottom: none !important;
    background: #0d7b39;
     box-shadow: none !important;
}
 
 
#BOTANY.wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) th:first-of-type,
#BOTANY.wikitable thead + tbody > tr th:first-of-type {
     border-left: 0.2em solid #0000003b;
}
 
 
#BOTANY.wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) td,
#BOTANY.wikitable thead + tbody > tr td {
     background: #2a834e;
}
 
 
#MUTATION.wikitable {
background: #220f3b;
}
 
 
#MUTATION.wikitable thead tr th,
#MUTATION.wikitable:not(:has(thead)) tr:first-of-type th {
    position: relative;
    background-color: #330b65 !important;
    border-bottom: 0.2em solid #00000021;
}
 
 
#MUTATION.wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) th,
#MUTATION.wikitable thead + tbody > tr th {
    background: #3a1769;
}
 
 
#MUTATION.wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) th:first-of-type,
#MUTATION.wikitable thead + tbody > tr th:first-of-type {
    border-left: 0.2em solid #0000003b;
}
 
 
#MUTATION.wikitable:not(:has(thead)) tbody > tr:nth-of-type(n+2) td,
#MUTATION.wikitable thead + tbody > tr td {
    background: #422371;
}
}