MediaWiki:Common.css

From Toon Wiki
Revision as of 22:43, 22 December 2025 by Admin (talk | contribs) (Add wiki styling)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.
/* Toon Wiki Custom Styles */

/* ===== Quote Templates ===== */
.quote a {
    color: inherit !important;
}
.quote_link_color a {
    color: #fff !important;
    text-decoration: underline;
}
.quote_link_color a:hover {
    color: #ddd !important;
}
.quote_link_color_light a {
    color: #333 !important;
    text-decoration: underline;
}

/* ===== Infobox Styles ===== */
.infobox {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.character-infobox th {
    font-weight: 600;
    color: #333;
}
.character-infobox td {
    color: #444;
}
.character-infobox a.new {
    color: #ba0000;
}

/* ===== Content Improvements ===== */
.mw-parser-output {
    line-height: 1.65;
}
.mw-parser-output p {
    margin-bottom: 0.8em;
}

/* ===== Image Improvements ===== */
figure.mw-halign-left,
figure.mw-halign-right {
    margin: 0.5em 1em 0.5em 0;
}
figure.mw-halign-right {
    margin: 0.5em 0 0.5em 1em;
}
figure figcaption {
    font-size: 0.9em;
    color: #555;
    padding: 4px 8px;
    background: #f8f9fa;
    border: 1px solid #c8ccd1;
    border-top: none;
    text-align: center;
}

/* ===== Gallery Improvements ===== */
.gallery {
    margin: 1em 0;
}
.gallerybox {
    background: #f8f9fa;
    border: 1px solid #c8ccd1;
    border-radius: 4px;
    overflow: hidden;
}
.gallerytext {
    font-size: 0.85em;
    padding: 4px;
    text-align: center;
}

/* ===== Table of Contents ===== */
.toc {
    background: #f8f9fa;
    border: 1px solid #c8ccd1;
    border-radius: 4px;
    padding: 1em;
}

/* ===== Section Headers ===== */
.mw-headline {
    border-bottom: 1px solid #c8ccd1;
    padding-bottom: 0.3em;
}
h2 .mw-headline {
    font-size: 1.4em;
    color: #1a4d7a;
}
h3 .mw-headline {
    font-size: 1.15em;
    color: #2c5aa0;
    border-bottom: none;
}

/* ===== Imported Content Notice ===== */
.imported-content-notice {
    background: linear-gradient(135deg, #f8f9fa, #eaecf0);
    border-left: 4px solid #1a4d7a;
}

/* ===== Reference Styling ===== */
.reference {
    font-size: 0.85em;
    vertical-align: super;
    line-height: 0;
}
.references {
    font-size: 0.9em;
    color: #555;
}

/* ===== Category Links ===== */
#catlinks {
    background: #f8f9fa;
    border: 1px solid #c8ccd1;
    border-radius: 4px;
    padding: 0.5em 1em;
    margin-top: 2em;
}

/* ===== Red Links ===== */
a.new {
    color: #ba0000;
}
a.new:hover {
    color: #d33;
}

/* ===== Icons Template ===== */
#icons {
    float: right;
    margin: 0 0 0.5em 1em;
    padding: 4px 8px;
    background: #f8f9fa;
    border: 1px solid #c8ccd1;
    border-radius: 4px;
}
#icons img {
    margin: 0 2px;
    vertical-align: middle;
}