MediaWiki:Common.css
Note: After publishing, 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)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/*Hide sidebar links*/
#p-tb {
display: none !important;
}
#t-info { display: none; }
/* Comments should always take priority */
pre.csharp .csharp-comment {
color: green;
font-style: italic;
z-index: 10; /* Ensure it's on top */
position: relative; /* Prevent overlaps */
}
/* Add z-index to other elements to prevent overlap */
pre.csharp span {
position: relative;
z-index: 1;
}
/* Styling for C# keywords */
.csharp-keyword {
color: #1E90FF; /* DodgerBlue */
font-weight: bold;
}
/* Styling for C# types */
.csharp-type {
color: #8A2BE2; /* BlueViolet */
font-weight: bold;
}
/* Styling for C# method names */
.csharp-method {
color: #3CB371; /* MediumSeaGreen */
font-weight: bold;
}
/* Styling for C# variables */
.csharp-variable {
color: #FF8C00; /* DarkOrange */
font-style: italic;
}
/* Styling for C# class names */
.csharp-class {
color: #6A5ACD; /* SlateBlue */
font-weight: bold;
}
/* Styling for C# property names */
.csharp-property {
color: #00BFFF; /* DeepSkyBlue */
font-style: italic;
}
/* Styling for curly braces */
.csharp-brace {
font-weight: bold;
font-size: 1.1em;
}
/* Add spacing for nested items */
ul {
margin-left: 20px;
}
/* Improve readability of bullet points */
ul li {
margin-bottom: 5px;
}
/* Optional: Style for section titles for better separation */
h2, h3, h4 {
margin-top: 20px;
margin-bottom: 10px;
color: #2c3e50;
}