MediaWiki:Common.css

MediaWiki interface page
Revision as of 11:37, 18 March 2024 by Matt (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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* Main page CSS */

.tile {
    width: 100%;
    padding: 1.3rem 1.5rem 0.6rem;
    background: var(--color-surface-2);
    border: 1px solid var(--border-color-base);
}

/* Homepage Buttons effects (main content grid) */
.home-tile {
	position: relative;
	display: inline-block;
	height: 100px;
	width: 100px;
	margin: 1px;
	overflow: hidden;
}

.home-tile img {
	position: absolute;
	width: 100px;
	height: 100px;
	transition: 0.3s;
}

.home-tile .home-tile-silver img {
	top: 0;
	z-index: 1;
}

.home-tile .home-tile-gold img {
	bottom: 0;
	background: radial-gradient(circle at 50% 75%, #727272 0, #151515 50%);
	z-index: 2;
	opacity: 0;
}

.home-tile .home-tile-link {
	position: absolute;
	bottom: 0;
	width: 100%;
	background-color: var(--color-surface-0);
	text-align: center;
	text-transform: uppercase;
	color: var(--color-primary);
	text-shadow: 0 0 2px;
	font-size: 12px;
	z-index: 4;
	font-family: "Noto Sans", sans-serif;
}

.home-tile .home-tile-link a {
	color: var(--color-primary);
	text-decoration: none;
}

.home-tile:hover .home-tile-gold img {
	opacity: 1;
}

h1, h2 {
	margin-top: 0;
}

/* Tables */

.wikitable th {
	text-align:center;
}

.wikitable th, .wikitable td {
	padding: var(--space-xs);
}

.wikitable tbody tr:hover {
    background:none;
}

.client-js .sortable:not(.jquery-tablesorter) > * > tr:first-child > th:not(.unsortable), .jquery-tablesorter th.headerSort { 
	background-position-x: center;
	background-position-y: 90%;
	padding-bottom: 12px;
	padding-right: 0.5em;
}

/* Stuff for Item Infobox */

.smallClassHeader {
  border: 1px solid black;
  box-shadow: inset 0 0 3px 4px rgba(0,0,0,0.3);
  mix-blend-mode: hard-light;
  padding: 4px;
  flex: 1;
  text-align: center;
  font-size: x-small;
}

.uncoloredClass {
  color: black;
  border: 1px solid black;
  box-shadow: inset 0 0 3px 4px rgba(0,0,0,0.3);
  mix-blend-mode: hard-light;
  padding: 4px;
  flex: 1;
  text-align: center;
  font-size: x-small;
  background-color: #eee;
}

.classCannotUse {
  color: black;
  border: 1px solid black;
  box-shadow: inset 0 0 3px 4px rgba(0,0,0,0.3);
  mix-blend-mode: hard-light;
  padding: 4px;
  flex: 1;
  background-color: rgba(255, 158, 77, 1);
  text-align: center;
}

.classCanUse {
  color: black;
  border: 1px solid black;
  box-shadow: inset 0 0 3px 4px rgba(0,0,0,0.3);
  mix-blend-mode: hard-light;
  padding: 4px;
  flex: 1;
  background-color: rgba(221, 255, 83, 1);
  text-align: center;
}

.more_info {
  border-bottom: 1px dotted;
  position: relative;
}

.more_info .title {
    position: absolute;
    top: 20px;
    background: silver;
    padding: 4px;
    left: 0;
    white-space: nowrap;
    color:black;
}

.citizen-table-wrapper {
    	overflow-x: clip;
    }