MediaWiki:Common.css

Revision as of 2024-11-12T13:29:01 by Kai (talk | contribs)
(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.
/* CSS placed here will be applied to all skins */

/* color definitions */

:root {
    --rf-light-fg: white;
    --rf-light-bg: #777;
    --rf-dark-fg: #eee;
    --rf-dark-bg: #004;
}

/* style for displaying source code and terminal commands */

.code, .terminal {
    color: var(--rf-light-fg);
    background: var(--rf-light-bg);
}

@media (prefers-color-scheme: dark) {
    .code, .terminal {
        color: var(--rf-dark-fg);
        background: var(--rf-dark-bg);
    }
}

pre.code, pre.terminal {
    border: 0px;
    border-radius: 6px;
}

span.code, span.terminal {
    border-radius: 6px;
    padding-left: 4px;
    padding-right: 4px;
}