Jump to content

MediaWiki:Common.css

From Drifters Almanac
Revision as of 19:50, 10 May 2025 by Mildew (talk | contribs)

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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */


$(document).ready(function () {
  $('form.createbox input[name="wpNewTitle"]').removeAttr('autofocus');
});

/* Ensure both <form> and <div> wrappers for #forminput are styled */
form.createbox, div.createbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: fit-content;
}

/* Style the text input */
form.createbox input[name="wpNewTitle"],
div.createbox input[name="wpNewTitle"] {
  width: 300px;
  padding: 0.4em;
  margin-bottom: 0.6em;
  text-align: center;
  background-color: #111;
  color: #ccc;
  border: 1px solid #444;
}

/* Style the submit button */
form.createbox input[type="submit"],
div.createbox input[type="submit"] {
  background-color: #2e4e2e;
  color: #eee;
  border: 1px solid #4a774a;
  padding: 0.4em 1em;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}