MediaWiki:Gadget-thèmesombre.css

De Poképédia
Aller à la navigation Aller à la recherche

Note : après avoir publié vos modifications, il se peut que vous deviez forcer le rechargement complet du cache de votre navigateur pour voir les changements.

  • Firefox / Safari : maintenez la touche Maj (Shift) en cliquant sur le bouton Actualiser ou appuyez sur Ctrl + F5 ou Ctrl + R (⌘ + R sur un Mac).
  • Google Chrome : appuyez sur Ctrl + Maj + R (⌘ + Shift + R sur un Mac).
  • Internet Explorer / Edge : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl + F5.
  • Opera : appuyez sur Ctrl + F5.
/* Adapté de https://en.wikipedia.org/wiki/MediaWiki:Gadget-dark-mode.css */

/* Pour conserver la couleur correcte pour les bordures, on traite séparément ces classes */
td.vert, td.rouge, td.bleu, td.jaune, td.rouge-bleu, td.or, td.argent, td.cristal, td.or-argent, td.rubis, td.saphir, td.émeraude, td.rubis-saphir, td.colosseum, td.xd, td.rougefeu, td.vertfeuille, td.rougefeu-vertfeuille, td.diamant, td.perle, td.platine, td.diamant-perle, td.orheartgold, td.argentsoulsilver, td.orheartgold-argentsoulsilver, td.pokéwalker, td.parcdesamis, td.noir, td.blanc, td.noir-blanc, td.dreamworld, td.noir2, td.blanc2, td.noir2-blanc2, td.x, td.y, td.x-y, td.rubisoméga, td.saphiralpha, td.rubisoméga-saphiralpha, td.soleil, td.lune, td.soleil-lune, td.ultrasoleil, td.ultralune, td.ultrasoleil-ultralune, td.letsgopikachu, td.letsgoévoli, td.letsgopikachu-letsgoévoli, td.épée, td.bouclier, td.épée-bouclier, td.isolarmure, td.couronneige, td.diamantétincelent, td.perlescintillante, td.diamantétincellent-perlescintillante, td.légendesarceus {
  background-color: black !important;
}

@media screen {

  /* Filter needs to reside on `html`, see https://phabricator.wikimedia.org/T221425#5153917 */
  html,
  /* All other selectors have `filter` double-applied to turn back to “normal” by inheritance */
  video,
  svg,
  .mw-wiki-logo,
  
  /* Restauration des couleurs correctes dans les tableaux notamment. La gestion des td et des img se fait dans le fichier JS, car le sélecteur not CSS ne peut gérer (dans la plupart des navigateurs) des règles complexes */
  th[style*="background"],
  span[style*=color],
  table.inconnu th, table.acier th, table.combat th, table.dragon th, table.eau th, table.Électrik th, table.Électrique th, table.électrik th, table.électrique th, table.feu th, table.fée th, table.glace th, table.insecte th, table.normal th, table.obscur th, table.plante th, table.poison th, table.psy th, table.roche th, table.sol th, table.spectre th, table.ténèbres th, table.vol th,
  td.vert, td.rouge, td.bleu, td.jaune, td.rouge-bleu, td.or, td.argent, td.cristal, td.or-argent, td.rubis, td.saphir, td.émeraude, td.rubis-saphir, td.colosseum, td.xd, td.rougefeu, td.vertfeuille, td.rougefeu-vertfeuille, td.diamant, td.perle, td.platine, td.diamant-perle, td.orheartgold, td.argentsoulsilver, td.orheartgold-argentsoulsilver, td.pokéwalker, td.parcdesamis, td.noir, td.blanc, td.noir-blanc, td.dreamworld, td.noir2, td.blanc2, td.noir2-blanc2, td.x, td.y, td.x-y, td.rubisoméga, td.saphiralpha, td.rubisoméga-saphiralpha, td.soleil, td.lune, td.soleil-lune, td.ultrasoleil, td.ultralune, td.ultrasoleil-ultralune, td.letsgopikachu, td.letsgoévoli, td.letsgopikachu-letsgoévoli, td.épée, td.bouclier, td.épée-bouclier, td.isolarmure, td.couronneige, td.diamantétincelent, td.perlescintillante, td.diamantétincellent-perlescintillante, td.légendesarceus,
  td.immunité, td.résistance, td.doublerésistance, td.standard, td.faiblesse, td.doublefaiblesse,
  .transition, .hautesherbes, .hautesherbesvolcaniques, .hautesherbesbrunes, .herbessombres, .longuesherbes, .longuesherbessombres, .hautesherbesremuantes, .algues, .trouéecachée, .fleursrouges, .fleursjaunes, .fleursviolettes, .caché, .vadrouilleur, .fossile, .marécage, .cave, .étage, .rezdechaussée, .soussol, .sable, .solaccidenté, .ausol, .arbre, .buisson, .éclateroc, .coupdboule, .air, .surf, .surf-ombre, .canne, .supercanne, .mégacanne, .canne-ombre, .baie, .essaim, .troupeau, .horde, .renfort, .pokéradar, .navidex, .scannerdesîles, .sonhoenn, .sonsinnoh, th.rubis, th.saphir, th.émeraude, th.rougefeu, th.vertfeuille, .rougefeu-vertfeuille-émeraude, .gameboy, .rencontrespéciale, .matin, .jour, .nuit, .printemps, .été, .automne, .hiver, .météo-soleil, .nuage, .pluie, .orage, .neige, .blizzard, .soleilintense, .tempêtedesable, .brume, .raid1, .raid2, .raid3, .raid4, .raid5,

  /* Appliqué trois fois pour ce dernier cas */
  td[style*="background"] table
  {
  	filter: invert( 0.9 ) hue-rotate( 180deg );
  }

  /* Reset overrides, needed where double application above isn't working. */

  img.image-lazy-loaded {
    filter: invert( 0.9 ) hue-rotate( 180deg );
  }

  /* Borders */
  body, h1, h2, h3, h4, h5, h6, .toc, .thumbinner, #mw-head, #mw-panel, #content.mw-body {
    border-color: #cdcbc8;
  }

  /* Links */
  /* Links: normal */
  a, .vector-menu-tabs li a,
  /* Backwards compatible VectorTabs, deprecated in MW v1.35. */
  .vectorTabs li a, .toctogglelabel, .mw-parser-output a.external, .mw-parser-output a.extiw, .mw-parser-output a.extiw:active, #mw-panel .portal .body li a {
    /* color: #69f; Proposal below for level AA conformance, see also https://phabricator.wikimedia.org/T233266
       `#36c` is transformed by :root `filter` to be closer to chosen `#69f`. */
    color: #36c;
  }

  /* Links: visited */
  a:visited, .mw-parser-output a.extiw:visited, #mw-panel .portal .body li a:visited {
    /* color: #709bbd; Proposal below uses to-be-standardized color from https://phabricator.wikimedia.org/T213778 */
    color: #6b4ba1;
  }

  /* Links: red */
  a.new, .vector-menu-tabs li.new a, .vectorTabs li.new a {
    color: #ff6e6e;
  }

  /* ::: Special Element Treatments ::: */
  /* Image thumbnails */
  .thumbimage {
    border: 0;
  }

  /* Content image (thumbnail) SVGs */
  .image img[ src*='svg' ] {
    background-color: #fff;
    border-radius: 1px;
  }

  /* Timeless globe fix */
  .skin-timeless #mw-site-navigation {
    position: relative;
  }

  .skin-timeless #p-logo.mw-no-invert {
    left: 1em;
    height: 124px;
  }
  
}

@-moz-document url-prefix() {
    body {
        background: #212121;
    }
}