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)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
.cs-comment {
margin-top: 30px;
margin-bottom: 10px;
padding: 10px;
border: 1px solid #ddd;
background-color: #f9f9f9;
}
.cs-comment-author {
font-weight: bold;
color: #333;
}
.cs-comment-timestamp {
font-size: 0.9em;
color: #999;
}
.cs-comment-form {
display: block !important;
}
#random-articles {
font-family: Arial, sans-serif;
}
.category-group {
margin: 20px;
padding: 15px;
border: 1px solid #d3d3d3; /* Soft gray border */
background-color: transparent; /* Transparent background */
}
.category-group h2 {
font-size: 1.5em;
margin-bottom: 10px;
}
.category-group h3 {
font-size: 1.2em;
margin: 5px 0;
}
/* Dark theme for syntax-highlighted code blocks */
.mw-highlight {
background-color: #2e2e2e; /* Dark background */
color: #f8f8f2; /* Light text color */
border: 1px solid #444; /* Optional border */
padding: 10px;
overflow: auto;
border-radius: 4px; /* Optional rounded corners */
}
/* Style for the <pre> element inside .mw-highlight */
.mw-highlight pre {
margin: 0; /* Remove default margins */
overflow: auto; /* Ensure scrollbars appear if needed */
}
/* Syntax highlighting for various elements */
.mw-highlight .kw1, .mw-highlight .kw2, .mw-highlight .kw3 {
color: #f92672; /* Keywords */
}
.mw-highlight .com {
color: #75715e; /* Comments */
}
.mw-highlight .str {
color: #e6db74; /* Strings */
}
.mw-highlight .lit {
color: #ae81ff; /* Literals */
}
.mw-highlight .pln {
color: #f8f8f2; /* Plain text */
}
/* Additional styling for line numbers if enabled */
.mw-highlight .line {
color: #666; /* Line numbers color */
}