MediaWiki: Tweeki.css

From Serenes Forest - A Fire Emblem Resource
Revision as of 13:21, 27 October 2020 by Jyosua (talk | contribs)
Jump to: navigation, search

Note: After saving, 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: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
.table {
  width: auto;
  height: auto;
  max-width: 100vw;
  max-height: 100vh;
  overflow: auto;
  position: relative;
  display: inline-block;
}

.table table {
  position: relative;
  border-collapse: collapse;
  margin: 0;
}

td,
th {
  padding: 0.25em;
}

tr:first-child th {
  position: -webkit-sticky; /* for Safari */
  position: sticky;
  top: 0;
  background: #000;
  color: #FFF;
}

tr:nth-child(n+2) th {
  position: -webkit-sticky; /* for Safari */
  position: sticky;
  left: 0;
  background: #FFF;
  border-right: 1px solid #CCC;
}

tr th:first-child {
  left: 0;
  z-index: -1;
}