MediaWiki

Common.css

From Shadow Era Wiki

Revision as of 22:51, 6 September 2024 by Blopi (Talk | contribs)

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Clear the cache in Tools → Preferences
/* CSS placed here will be applied to all skins */
/* wikitable/prettytable */
table.wikitable,
table.prettytable {
    margin: 13px 13px 13px 0;
    background: #f9f9f9;
    border: 1px #aaa solid;
    border-collapse: collapse;
}
.wikitable > tr > th, .wikitable > tr > td,
.wikitable > * > tr > th, .wikitable > * > tr > td,
.prettytable > tr > th, .prettytable > tr > td,
.prettytable > * > tr > th, .prettytable > * > tr > td {
    border: 1px #aaa solid;
    padding: 3px;
}
.wikitable > tr > th, .wikitable > * > tr > th,
.prettytable > tr > th, .prettytable > * > tr > th {
    background: #f2f2f2;
    text-align: center;
}
.wikitable > caption,
.prettytable > caption {
    font-weight: bold;
}
 
/* style the backtick text */
.backtick-style {
    font-family: monospace;
    background-color: #f8f9fa;
    padding: 0.2em 0.4em;
    border: 1px solid #d1d5da;
    border-radius: 3px;
}
 
/* Couleur de fond et texte général pour les blocs de code */
.syntaxhighlight {
    background-color: hsl(210, 15%, 22%) !important;  /* Fond */
    color: hsl(219, 28%, 88%) !important;  /* Couleur générale du texte */
}
 
/* Styliser les mots-clés de type kw1 (mots-clés principaux comme public, class, etc.) */
.csharp.source-csharp .kw1 {
    color: hsl(300, 30%, 68%) !important;  /* Couleur rose pour les mots-clés principaux */
}
 
/* Styliser les mots-clés de type kw4 (autres mots-clés) */
.csharp.source-csharp .kw4 {
    color: hsl(300, 30%, 68%) !important;  /* Même couleur rose pour uniformité */
}
 
/* Styliser les chaînes de caractères (ex: strings) */
.csharp.source-csharp .st0 {
    color: hsl(114, 31%, 68%) !important;  /* Vert clair pour les chaînes de caractères */
}
 
/* Styliser les méthodes (fonctions comme UnhighlightCards, SetGameState) */
.csharp.source-csharp .me1 {
    color: hsl(210, 50%, 60%) !important;  /* Bleu clair pour les méthodes */
}
 
/* Styliser les symboles (comme ;, =, <, >, .) */
.csharp.source-csharp .sy0 {
    color: hsl(57, 93%, 66%) !important;  /* Jaune pour les symboles */
}
 
/* Styliser les parenthèses (comme () ) */
.csharp.source-csharp .br0 {
    color: hsl(32, 93%, 66%) !important;  /* Orange pour les parenthèses */
}
 
/* Styliser les nombres (numéros) */
.csharp.source-csharp .nu0 {
    color: hsl(32, 93%, 66%) !important;  /* Orange pour les nombres */
}
 
/* Styliser les mots-clés supplémentaires (kw3) */
.csharp.source-csharp .kw3 {
    color: hsl(300, 30%, 68%) !important;  /* Rose pour uniformité des mots-clés */
}
 
/* Styliser les commentaires */
.csharp.source-csharp .co1 {
    color: hsl(221, 12%, 69%) !important;  /* Bleu clair pour les commentaires */
}