MediaWiki:Common.css

From Captain of Industry Wiki
Revision as of 22:48, 19 January 2022 by Thadius856 (talk | contribs) (Migrating mbox and cmbox styling from Template:Mbox/styles.css to affect all skins. Also adding ambox styling.)
Jump to: navigation, search

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 */

/* Scale logo to fit. */
#p-logo a { background-repeat: round; background-position: inherit; }

/* Remove top padding from the main menu, logo has already enough empty space.*/
div#mw-panel { padding-top: 0; }

/* Enable Template:Mbox and its associated parameters */
td.mbox-image { border: none; padding: 2px 0 2px 0.9em; text-align: center; }
th.mbox-text, td.mbox-text { border: none; padding: 0.25em 0.9em; width: 100%; }

/* Enable Template:Ambox and its associated parameters */
table.ambox { margin: 0 10%; border: 1px solid #a2a9b1; border-left: 10px solid #36c; background-color: #888888; box-sizing: border-box; }
table.ambox-speedy { border-left: 10px solid #b32424; background-color: #ff8282; }
table.ambox-delete { border-left: 10px solid #b32424; }
table.ambox-content { border-left: 10px solid #f28500; }
table.ambox-style { border-left: 10px solid #fc3; }
table.ambox-notice { border-left: 10px solid #36c; }
table.ambox-move { border-left: 10px solid #9932cc; }
table.ambox-protection { border-left: 10px solid #a2a9b1; }
table.ambox + table.ambox { margin-top: -1px; }

/* Enable Template:Cmbox and its associated parameters */
table.cmbox { margin: 3px 10%; border-collapse: collapse; border: 1px solid #a2a9b1; background-color: #dfe8ff; box-sizing: border-box; color: #222222; }
table.cmbox-speedy { margin-top: 4px; margin-bottom: 4px; border: 4px solid #b32424; background-color: #ffdbdb; }
table.cmbox-delete { background-color: #ffdbdb; }
table.cmbox-content { background-color: #ffe7ce; }
table.cmbox-style { background-color: #fff9db; }
table.cmbox-notice { background-color: #d8e8ff; }
table.cmbox-move { background-color: #e4d8ff; }
table.cmbox-protection { background-color: #efefe1; }