MediaWiki:Common.css

MediaWiki interface page
Revision as of 10:19, 5 November 2023 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: 140px;
	width: 140px;
	margin: 1px;
	overflow: hidden;
}

.home-tile img {
	position: absolute;
	width: 140px;
	height: 140px;
	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;
}