MediaWiki

Common.css

From Shadow Era Wiki

Revision as of 07:00, 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;
}
/* Variables de couleur */
:root {
    --black: hsl(0, 0%, 0%);
    --blue: hsl(210, 50%, 60%);
    --blue-vibrant: hsl(210, 60%, 60%);
    --blue2: hsla(210, 13%, 40%, 0.7);
    --blue3: hsl(210, 15%, 22%);
    --blue4: hsl(210, 13%, 45%);
    --blue5: hsl(180, 36%, 54%);
    --blue6: hsl(221, 12%, 69%);
    --green: hsl(114, 31%, 68%);
    --grey: hsl(0, 0%, 20%);
    --orange: hsl(32, 93%, 66%);
    --orange2: hsl(32, 85%, 55%);
    --orange3: hsl(40, 94%, 68%);
    --pink: hsl(300, 30%, 68%);
    --red: hsl(357, 79%, 65%);
    --red2: hsl(13, 93%, 66%);
    --white: hsl(0, 0%, 100%);
    --white2: hsl(0, 0%, 97%);
    --white3: hsl(219, 28%, 88%);
}
 
/* Règles globales */
pre .source-csharp {
    background-color: var(--blue3) !important;
    color: var(--white3) !important;
}
 
pre .source-csharp .selection {
    background-color: var(--blue2) !important;
}
 
pre .source-csharp .caret {
    color: var(--orange) !important;
}
 
/* Règles spécifiques */
pre .source-csharp .co1 { color: var(--blue6) !important; } /* Commentaires */
pre .source-csharp .st0 { color: var(--green) !important; } /* Chaînes de caractères */
pre .source-csharp .op0 { color: var(--red2) !important; } /* Opérateurs */
pre .source-csharp .nu0 { color: var(--orange) !important; } /* Nombres */
pre .source-csharp .kw1 { color: var(--pink) !important; } /* Mots-clés */
pre .source-csharp .pu0 { color: var(--blue6) !important; } /* Ponctuation */
pre .source-csharp .fu0 { color: var(--blue5) !important; } /* Appels de fonction */
pre .source-csharp .bo0 { color: var(--red2) !important; } /* Booléens */
pre .source-csharp .va0 { color: var(--orange2) !important; } /* Variables */
 
/* Additional rules from Sublime Text theme */
pre .source-csharp .constant.language { color: var(--red) !important; font-style: italic; } /* Built-in constant */
pre .source-csharp .constant.other { color: var(--pink) !important; } /* User-defined constant */
pre .source-csharp .variable.member { color: var(--red) !important; } /* Member Variable */
pre .source-csharp .storage { color: var(--red) !important; } /* Storage */
pre .source-csharp .storage.type { color: var(--pink) !important; font-style: italic; } /* Storage type */
pre .source-csharp .entity.name.function { color: var(--blue5) !important; } /* Function name */
pre .source-csharp .entity.name { color: var(--orange) !important; } /* Entity name */
pre .source-csharp .variable.parameter { color: var(--orange) !important; } /* Function argument */
pre .source-csharp .variable.language { color: var(--red) !important; font-style: italic; } /* Language variable */
pre .source-csharp .entity.name.tag { color: var(--red) !important; } /* Tag name */
pre .source-csharp .entity.other.attribute-name { color: var(--pink) !important; } /* Tag attribute */
pre .source-csharp .support.function { color: var(--blue) !important; font-style: italic; } /* Library function */
pre .source-csharp .support.constant { color: var(--pink) !important; font-style: italic; } /* Library constant */
pre .source-csharp .support.type { color: var(--blue) !important; font-style: italic; } /* Library class/type */
pre .source-csharp .markup.deleted { color: var(--red) !important; } /* Diff deleted */
pre .source-csharp .markup.inserted { color: var(--green) !important; } /* Diff inserted */
pre .source-csharp .markup.changed { color: var(--orange) !important; } /* Diff changed */
 
/* Mots-clés C# (public, void, etc.) */
.csharp.source-csharp .kw1 {
    color: var(--pink) !important;
}
 
/* Mots-clés C# (public, void, etc.) */
.csharp.source-csharp .kw1 {
    color: var(--pink) !important;
}
 
/* Opérateurs (comme +, -, =, etc.) */
.csharp.source-csharp .op0 {
    color: var(--red2) !important;
}
 
/* Commentaires */
.csharp.source-csharp .co1 {
    color: var(--blue6) !important;
}
 
/* Chaînes de caractères (entre guillemets) */
.csharp.source-csharp .st0 {
    color: var(--green) !important;
}
 
/* Nombres (constantes numériques) */
.csharp.source-csharp .nu0 {
    color: var(--orange) !important;
}
 
/* Appels de fonction (par exemple, MyFunction()) */
.csharp.source-csharp .fu0 {
    color: var(--blue5) !important;
}
 
/* Variables */
.csharp.source-csharp .va0 {
    color: var(--orange2) !important;
}
 
/* Booléens (true, false) */
.csharp.source-csharp .bo0 {
    color: var(--red2) !important;
}
 
/* Ponctuation (parenthèses, points-virgules, etc.) */
.csharp.source-csharp .pu0 {
    color: var(--blue6) !important;
}