m |
m |
||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
| + | |||
/* wikitable/prettytable */ | /* wikitable/prettytable */ | ||
table.wikitable, | table.wikitable, | ||
| Line 18: | Line 19: | ||
.prettytable > tr > th, .prettytable > * > tr > th { | .prettytable > tr > th, .prettytable > * > tr > th { | ||
background: #f2f2f2; | background: #f2f2f2; | ||
| − | text-align: | + | text-align: centre; |
} | } | ||
.wikitable > caption, | .wikitable > caption, | ||
| Line 24: | Line 25: | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
| − | /* | + | |
| + | /* Colour variables */ | ||
:root { | :root { | ||
--black: hsl(0, 0%, 0%); | --black: hsl(0, 0%, 0%); | ||
| Line 47: | Line 49: | ||
} | } | ||
| − | /* | + | /* Global rules */ |
pre .source-csharp { | pre .source-csharp { | ||
| − | background- | + | background-colour: var(--blue3) !important; |
| − | + | colour: var(--white3) !important; | |
} | } | ||
pre .source-csharp .selection { | pre .source-csharp .selection { | ||
| − | background- | + | background-colour: var(--blue2) !important; |
} | } | ||
pre .source-csharp .caret { | pre .source-csharp .caret { | ||
| − | + | colour: var(--orange) !important; | |
} | } | ||
| − | /* | + | /* Specific rules */ |
| − | + | /* Comments */ | |
| − | + | pre .source-csharp .co1 { | |
| − | + | colour: var(--blue6) !important; | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | pre .source-csharp . | + | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
} | } | ||
| − | /* | + | /* Strings (inside quotation marks) */ |
| − | + | pre .source-csharp .st0 { | |
| − | + | colour: var(--green) !important; | |
} | } | ||
| − | /* | + | /* Operators (like +, -, =, etc.) */ |
| − | + | pre .source-csharp .op0 { | |
| − | + | colour: var(--red2) !important; | |
} | } | ||
| − | /* | + | /* Numbers (numeric constants) */ |
| − | + | pre .source-csharp .nu0 { | |
| − | + | colour: var(--orange) !important; | |
} | } | ||
| − | /* | + | /* Function calls (e.g., MyFunction()) */ |
| − | . | + | pre .source-csharp .fu0 { |
| − | + | colour: #6697d1 !important; /* Pastel blue */ | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | /* | + | |
| − | + | ||
| − | + | ||
} | } | ||
/* Variables */ | /* Variables */ | ||
| − | + | pre .source-csharp .va0 { | |
| − | + | colour: var(--orange2) !important; | |
} | } | ||
| − | /* | + | /* Booleans (true, false) */ |
| − | + | pre .source-csharp .bo0 { | |
| − | + | colour: #cc3333 !important; /* Soft red */ | |
} | } | ||
| − | /* | + | /* Punctuation (e.g., . and ;) in light grey or off-white */ |
| − | + | pre .source-csharp .pu0 { | |
| − | + | colour: #dcdcdc !important; | |
} | } | ||
| − | /* | + | /* Keywords like public, virtual in soft red */ |
.csharp.source-csharp .kw1 { | .csharp.source-csharp .kw1 { | ||
| − | + | colour: #cc3333 !important; | |
} | } | ||
| − | /* | + | /* Keywords like void, int, bool, if, return, for, case in pastel violet */ |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
.csharp.source-csharp .kw1 { | .csharp.source-csharp .kw1 { | ||
| − | + | colour: #c994ca !important; | |
} | } | ||
| − | + | /* Types or enumerations like CallbackCheckEnum in white */ | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | /* Types | + | |
.csharp.source-csharp .kw2 { | .csharp.source-csharp .kw2 { | ||
| − | + | colour: #ffffff !important; | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
} | } | ||
/* 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: centre; } .wikitable > caption, .prettytable > caption { font-weight: bold; } /* Colour variables */ :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%); } /* Global rules */ pre .source-csharp { background-colour: var(--blue3) !important; colour: var(--white3) !important; } pre .source-csharp .selection { background-colour: var(--blue2) !important; } pre .source-csharp .caret { colour: var(--orange) !important; } /* Specific rules */ /* Comments */ pre .source-csharp .co1 { colour: var(--blue6) !important; } /* Strings (inside quotation marks) */ pre .source-csharp .st0 { colour: var(--green) !important; } /* Operators (like +, -, =, etc.) */ pre .source-csharp .op0 { colour: var(--red2) !important; } /* Numbers (numeric constants) */ pre .source-csharp .nu0 { colour: var(--orange) !important; } /* Function calls (e.g., MyFunction()) */ pre .source-csharp .fu0 { colour: #6697d1 !important; /* Pastel blue */ } /* Variables */ pre .source-csharp .va0 { colour: var(--orange2) !important; } /* Booleans (true, false) */ pre .source-csharp .bo0 { colour: #cc3333 !important; /* Soft red */ } /* Punctuation (e.g., . and ;) in light grey or off-white */ pre .source-csharp .pu0 { colour: #dcdcdc !important; } /* Keywords like public, virtual in soft red */ .csharp.source-csharp .kw1 { colour: #cc3333 !important; } /* Keywords like void, int, bool, if, return, for, case in pastel violet */ .csharp.source-csharp .kw1 { colour: #c994ca !important; } /* Types or enumerations like CallbackCheckEnum in white */ .csharp.source-csharp .kw2 { colour: #ffffff !important; }