Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
Wikiadmin (talk | contribs)
No edit summary
Wikiadmin (talk | contribs)
No edit summary
Tag: Reverted
Line 83: Line 83:
         overflow-wrap: break-word;
         overflow-wrap: break-word;
     }
     }
}
/* PAS ALLEEN DE DONKERE MODUS VAN CITIZEN AAN */
html[data-theme="dark"],
html.skin-citizen-dark {
    --color-primary: #58a6ff !important;
    --color-primary-variant: #388bfd !important;
}
/* Pas specifiek de links aan, maar uitsluitend binnen de donkere modus */
html[data-theme="dark"] a,
html.skin-citizen-dark a {
    color: #58a6ff !important;
}
/* Optioneel: bezochte links in de donkere modus een beter leesbare kleur geven */
html[data-theme="dark"] a:visited,
html.skin-citizen-dark a:visited {
    color: #a371f7 !important;
}
}

Revision as of 11:43, 5 July 2026

/* CSS placed here will be applied to all skins */

/* ====== Universal Infobox Styles ====== */
.infobox {
  border: 1px solid #aaa;
  background-color: var(--infobox-bg, #f9f9f9);
  color: var(--infobox-text, #000);
  padding: 10px;
  margin: 1em 0;
  width: 280px;
  font-size: 90%;
  line-height: 1.6em;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Header styling */
.infobox-header {
  font-weight: bold;
  font-size: 120%;
  text-align: center;
  margin-bottom: 8px;
  padding: 4px;
  border-bottom: 1px solid #ccc;
}

/* Image block */
.infobox-image {
  text-align: center;
  margin: 10px 0;
}
.infobox-image img {
  max-width: 250px;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  padding: 2px;
}

/* Row styling */
.infobox-row {
  margin: 6px 0;
}

/* ====== Specific Classes (all inherit base .infobox) ====== */
.mod-infobox     { background-color: var(--infobox-bg, #f9f9f9); }
.enemy-infobox   { background-color: var(--infobox-bg, #f9f9f9); }
.utility-infobox { background-color: var(--infobox-bg, #f9f9f9); }
.modder-infobox  { background-color: var(--infobox-bg, #f9f9f9); }

/* ====== Dark mode overrides (if skin supports CSS variables) ====== */
html[data-theme='dark'] {
  --infobox-bg: #1e1e1e;
  --infobox-text: #e0e0e0;
}

.cs-comment-wrapper {
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 6px;
    margin-top: 20px;
}

/* Responsieve fix voor infoboxen op alle mobiele browsers */
@media screen and (max-width: 768px) {
    /* Dit pakt de tabel van uw {{Mod}} sjabloon aan */
    .infobox, 
    table.infobox,
    table[style*="float: right"], 
    table[style*="float:right"] {
        float: none !important;
        width: 100% !important;
        margin: 1em 0 !important;
        clear: both !important;
        display: table !important;
    }
    
    /* Zorgt dat tekst op mobiel nooit buiten het scherm valt of kolommen uitrekt */
    body, #content, .mw-body {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* PAS ALLEEN DE DONKERE MODUS VAN CITIZEN AAN */
html[data-theme="dark"],
html.skin-citizen-dark {
    --color-primary: #58a6ff !important;
    --color-primary-variant: #388bfd !important;
}

/* Pas specifiek de links aan, maar uitsluitend binnen de donkere modus */
html[data-theme="dark"] a,
html.skin-citizen-dark a {
    color: #58a6ff !important;
}

/* Optioneel: bezochte links in de donkere modus een beter leesbare kleur geven */
html[data-theme="dark"] a:visited,
html.skin-citizen-dark a:visited {
    color: #a371f7 !important;
}