User:Timeshifter/common.css

From mediawiki.org

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.
/* Height of wikitext editing window */
textarea {height:15em}

/* === Easy method of auto numbering of table rows === 
/* Just add class="sortable autonumber" to top line of table wikitext.
/* This is Yair_rand's CSS (slightly adapted). See his comment and CSS: 
/* See https://phabricator.wikimedia.org/T42618#434018 */

  table.autonumber > tbody {
    counter-reset: autonumbering;
  }
  table.autonumber > tbody > tr::before {
    counter-increment: autonumbering;
    content: counter(autonumbering);
  }
  table.autonumber > thead > tr::before {
    content: "#";
  }
  table.autonumber > thead > tr::before, table.autonumber > tbody > tr::before
{
    display: table-cell;
    padding: 0.2em;
    border: 1px solid #AAA;
    vertical-align: middle;
    text-align: center;
  }