Difference between revisions of "MediaWiki:Common.css"

From Nick's Personal Wiki
Jump to navigation Jump to search
(Created page with "→‎CSS placed here will be applied to all skins: /* ======================================== Dark Mode MediaWiki:Common.css Purple Accent Theme ====================...")
 
Line 1: Line 1:
 
/* CSS placed here will be applied to all skins */
 
/* CSS placed here will be applied to all skins */
 
/* ========================================
 
/* ========================================
   Dark Mode MediaWiki:Common.css
+
   Basic MediaWiki:Common.css Starter
  Purple Accent Theme
 
 
   ======================================== */
 
   ======================================== */
 
/* --- Color Variables for Easy Customization --- */
 
:root {
 
    --bg-primary: #1a1a2e;
 
    --bg-secondary: #16213e;
 
    --bg-tertiary: #0f0f1a;
 
    --text-primary: #e8e8e8;
 
    --text-secondary: #b8b8b8;
 
    --accent-purple: #9b59b6;
 
    --accent-purple-dark: #8e44ad;
 
    --accent-purple-light: #bb86fc;
 
    --link-color: #bb86fc;
 
    --link-visited: #a569bd;
 
    --border-color: #3d3d5c;
 
    --code-bg: #252540;
 
    --table-header: #2d2d4a;
 
    --warning-red: #ff6b6b;
 
}
 
  
 
/* --- General Page Layout --- */
 
/* --- General Page Layout --- */
Line 27: Line 8:
 
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
 
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
 
     line-height: 1.6;
 
     line-height: 1.6;
     color: var(--text-primary);
+
     color: #333;
     background-color: var(--bg-primary);
+
     background-color: #f9f9f9;
 
}
 
}
  
 
/* --- Headings --- */
 
/* --- Headings --- */
 
h1, h2, h3, h4, h5, h6 {
 
h1, h2, h3, h4, h5, h6 {
     color: var(--text-primary);
+
     color: #222;
 
     margin-top: 1.5em;
 
     margin-top: 1.5em;
 
     margin-bottom: 0.5em;
 
     margin-bottom: 0.5em;
 
}
 
}
  
h1 {  
+
h1 { font-size: 2em; border-bottom: 2px solid #a2a9b1; padding-bottom: 0.3em; }
    font-size: 2em;  
+
h2 { font-size: 1.6em; border-bottom: 1px solid #a2a9b1; padding-bottom: 0.3em; }
    border-bottom: 2px solid var(--accent-purple);  
 
    padding-bottom: 0.3em;  
 
}
 
 
 
h2 {  
 
    font-size: 1.6em;  
 
    border-bottom: 1px solid var(--accent-purple-dark);  
 
    padding-bottom: 0.3em;  
 
}
 
 
 
 
h3 { font-size: 1.4em; }
 
h3 { font-size: 1.4em; }
 
h4 { font-size: 1.2em; font-weight: bold; }
 
h4 { font-size: 1.2em; font-weight: bold; }
  
 
/* --- Links --- */
 
/* --- Links --- */
a {  
+
a { color: #0645ad; text-decoration: none; }
    color: var(--link-color);  
+
a:hover { text-decoration: underline; }
    text-decoration: none;  
+
a:visited { color: #0b0080; }
}
+
a.new { color: #ba0000; } /* Red links for non-existent pages */
 
 
a:hover {  
 
    text-decoration: underline;  
 
    color: var(--accent-purple-light);
 
}
 
 
 
a:visited {  
 
    color: var(--link-visited);  
 
}
 
 
 
a.new {  
 
    color: var(--warning-red);  
 
}
 
  
 
/* --- Tables --- */
 
/* --- Tables --- */
Line 79: Line 37:
  
 
table th {
 
table th {
     background-color: var(--table-header);
+
     background-color: #eaecf0;
    color: var(--text-primary);
 
 
     font-weight: bold;
 
     font-weight: bold;
 
     padding: 0.5em;
 
     padding: 0.5em;
     border: 1px solid var(--border-color);
+
     border: 1px solid #a2a9b1;
 
}
 
}
  
 
table td {
 
table td {
 
     padding: 0.5em;
 
     padding: 0.5em;
     border: 1px solid var(--border-color);
+
     border: 1px solid #a2a9b1;
    color: var(--text-secondary);
 
 
}
 
}
  
 
/* --- Infoboxes --- */
 
/* --- Infoboxes --- */
 
.infobox {
 
.infobox {
     border: 1px solid var(--accent-purple-dark);
+
     border: 1px solid #a2a9b1;
     background-color: var(--bg-secondary);
+
     background-color: #f8f9fa;
 
     padding: 0.5em;
 
     padding: 0.5em;
 
     width: 300px;
 
     width: 300px;
Line 106: Line 62:
 
     font-weight: bold;
 
     font-weight: bold;
 
     text-align: center;
 
     text-align: center;
     background-color: var(--accent-purple-dark);
+
     background-color: #eaecf0;
    color: var(--text-primary);
 
 
     padding: 0.3em;
 
     padding: 0.3em;
 
}
 
}
Line 114: Line 69:
 
pre, code {
 
pre, code {
 
     font-family: monospace, monospace;
 
     font-family: monospace, monospace;
     background-color: var(--code-bg);
+
     background-color: #f8f9fa;
     border: 1px solid var(--border-color);
+
     border: 1px solid #eaecf0;
 
     border-radius: 3px;
 
     border-radius: 3px;
 
}
 
}
Line 139: Line 94:
 
/* --- Content Area --- */
 
/* --- Content Area --- */
 
#content {
 
#content {
     background-color: var(--bg-secondary);
+
     background-color: #fff;
 
     padding: 1.5em;
 
     padding: 1.5em;
     border: 1px solid var(--border-color);
+
     border: 1px solid #a2a9b1;
 
     border-radius: 3px;
 
     border-radius: 3px;
 
}
 
}
Line 149: Line 104:
 
     margin-top: 2em;
 
     margin-top: 2em;
 
     padding: 1em;
 
     padding: 1em;
     background-color: var(--bg-tertiary);
+
     background-color: #f8f9fa;
     border-top: 1px solid var(--border-color);
+
     border-top: 1px solid #a2a9b1;
 
     font-size: 0.9em;
 
     font-size: 0.9em;
     color: var(--text-secondary);
+
     color: #555;
}
 
 
 
/* --- Buttons & Interactive Elements --- */
 
.mw-ui-button {
 
    background-color: var(--accent-purple);
 
    color: var(--text-primary);
 
    border: none;
 
    border-radius: 3px;
 
    padding: 0.5em 1em;
 
}
 
 
 
.mw-ui-button:hover {
 
    background-color: var(--accent-purple-dark);
 
}
 
 
 
/* --- Search Box --- */
 
input[type="search"], input[type="text"] {
 
    background-color: var(--bg-tertiary);
 
    color: var(--text-primary);
 
    border: 1px solid var(--border-color);
 
    padding: 0.5em;
 
    border-radius: 3px;
 
}
 
 
 
input[type="search"]:focus, input[type="text"]:focus {
 
    outline: none;
 
    border-color: var(--accent-purple);
 
 
}
 
}
  
Line 195: Line 123:
 
}
 
}
  
/* --- Print Styles (Light Mode for Print) --- */
+
/* --- Print Styles --- */
 
@media print {
 
@media print {
 
     body {
 
     body {
Line 205: Line 133:
 
         display: none;
 
         display: none;
 
     }
 
     }
   
 
    :root {
 
        --bg-primary: #fff;
 
        --bg-secondary: #fff;
 
        --text-primary: #000;
 
        --text-secondary: #333;
 
        --accent-purple: #555;
 
    }
 
}
 
 
/* --- Toggle Switch for Light/Dark Mode (Optional JS Required) --- */
 
.dark-mode-toggle {
 
    position: fixed;
 
    bottom: 20px;
 
    right: 20px;
 
    background-color: var(--accent-purple);
 
    color: var(--text-primary);
 
    padding: 10px 15px;
 
    border-radius: 50%;
 
    cursor: pointer;
 
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
 
 
}
 
}

Revision as of 03:52, 27 March 2026

/* CSS placed here will be applied to all skins */
/* ========================================
   Basic MediaWiki:Common.css Starter
   ======================================== */

/* --- General Page Layout --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
    color: #222;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 { font-size: 2em; border-bottom: 2px solid #a2a9b1; padding-bottom: 0.3em; }
h2 { font-size: 1.6em; border-bottom: 1px solid #a2a9b1; padding-bottom: 0.3em; }
h3 { font-size: 1.4em; }
h4 { font-size: 1.2em; font-weight: bold; }

/* --- Links --- */
a { color: #0645ad; text-decoration: none; }
a:hover { text-decoration: underline; }
a:visited { color: #0b0080; }
a.new { color: #ba0000; } /* Red links for non-existent pages */

/* --- Tables --- */
table {
    border-collapse: collapse;
    margin: 1em 0;
}

table th {
    background-color: #eaecf0;
    font-weight: bold;
    padding: 0.5em;
    border: 1px solid #a2a9b1;
}

table td {
    padding: 0.5em;
    border: 1px solid #a2a9b1;
}

/* --- Infoboxes --- */
.infobox {
    border: 1px solid #a2a9b1;
    background-color: #f8f9fa;
    padding: 0.5em;
    width: 300px;
    float: right;
    margin: 0.5em 0 0.5em 1em;
    font-size: 0.9em;
}

.infobox-title {
    font-weight: bold;
    text-align: center;
    background-color: #eaecf0;
    padding: 0.3em;
}

/* --- Code Blocks --- */
pre, code {
    font-family: monospace, monospace;
    background-color: #f8f9fa;
    border: 1px solid #eaecf0;
    border-radius: 3px;
}

pre {
    padding: 1em;
    overflow-x: auto;
}

code {
    padding: 0.2em 0.4em;
}

/* --- Navigation --- */
#mw-navigation {
    margin-bottom: 1em;
}

#mw-panel {
    padding-left: 0.5em;
}

/* --- Content Area --- */
#content {
    background-color: #fff;
    padding: 1.5em;
    border: 1px solid #a2a9b1;
    border-radius: 3px;
}

/* --- Footer --- */
#footer {
    margin-top: 2em;
    padding: 1em;
    background-color: #f8f9fa;
    border-top: 1px solid #a2a9b1;
    font-size: 0.9em;
    color: #555;
}

/* --- Responsive Design --- */
@media screen and (max-width: 768px) {
    .infobox {
        float: none;
        width: 100%;
        margin: 1em 0;
    }
    
    #content {
        padding: 1em;
    }
}

/* --- Print Styles --- */
@media print {
    body {
        background-color: #fff;
        color: #000;
    }
    
    #footer, #mw-navigation, #mw-panel {
        display: none;
    }
}