MediaWiki:Common.css

From Nick's Personal Wiki
Revision as of 03:52, 27 March 2026 by Nick (talk | contribs)
Jump to navigation Jump to search

Note: After saving, 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: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* 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;
    }
}