MediaWiki:Common.css: Difference between revisions

From DefacerID Encyclopedia
No edit summary
Tag: Reverted
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 39: Line 39:
}
}


/* Dark theme for syntax-highlighted code blocks */
/* Hide the "Discussion" tab */
.mw-highlight {
#ca-talk a{
     background-color: #2e2e2e; /* Dark background */
     display: none;
    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 */
/* Ensures even extremely long words will break */
.mw-highlight pre {
#mw-content-text h3 {
     margin: 0; /* Remove default margins */
     word-wrap: break-word;
     overflow: auto; /* Ensure scrollbars appear if needed */
     overflow-wrap: break-word;
}
     word-break: break-all;
 
/* 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 */
}
}

Latest revision as of 16:15, 11 October 2024

.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;
}

/* Hide the "Discussion" tab */
#ca-talk a{
    display: none;
}

/* Ensures even extremely long words will break */
#mw-content-text h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
}