MediaWiki:Common.css: Difference between revisions

From TetrisWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 173: Line 173:
border-radius: 11px;
border-radius: 11px;
font-weight: bold;
font-weight: bold;
transform: scale(0.8);
}
}

Revision as of 04:15, 30 October 2020

/* CSS placed here will be applied to all skins */

/* logo fix */
#p-logo a {
	background-size: 100%;
}

/* Utility styles */
/* Spaces direct children 10 px apart, top and bottom. */
.spaced-10 > * {
	margin: 5px;
}

.list-spaced-v-10 > ul > li {
	margin: 10px;
}
.list-bare > ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
/* Extension:Math */
/* https://www.mediawiki.org/wiki/Extension:Math/advancedSettings#CSS_for_the_MathML_with_SVG_fallback_mode */
/*
.mwe-math-mathml-a11y {
	clip: auto !important;
	overflow: visible !important;
	position: static !important;
	width: auto !important;
	height: auto !important;
	opacity: 1 !important;
}
.mwe-math-fallback-image-inline, .mwe-math-fallback-image-display {
	display: none !important;
}
*/
/* .mw-body, */
/*
mtext {
	font-family: Latin Modern Roman;
}
math {
	font-family: Latin Modern Math;
}
*/

/* Front page styles */
.page-Tetris_wiki .firstHeading {
	display: none;
}

.main-page-header {
	margin-bottom: 15px;
	padding: 15px 60px;
    background: url(/images/7/74/MainPage_background.jpg);
    background-size: cover;
    color: white;
    background-position: top;
    text-align: left;
}
.main-page-header h1 {
	font-size: 28px;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}
.main-page-header > p {
	font-size: 16px;
    letter-spacing: 0.02em;
    margin-bottom: 25px;
}
.main-page-header a,
.main-page-header a.external {
	color: #8ba8ff;
}
.main-page-header a:visited {
	color: #a4b9f6;
}
.main-page-header a.external:visited {
	color: #ca00fb;
}
.main-page-header .red {
	color: #2b59e7;
}
.main-page-header h1 {
	border-bottom: none;
	color: white;
    font-weight: bold;
    font-family: sans-serif;
}
.main-page-header__nav ul {
	margin-left: 0;
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	justify-content: center;
}
.main-page-header__nav li:not(:last-child) {
	margin-right: 15px;
}
.main-page-header__nav li a {
	background: #347CFF;
	color: white;
	padding: 5px 10px;
	border-radius: 2px;
}
.main-page-header__nav li .new {
	color: #CB4554;
	background: #cfd5de;
}
.main-page-header__nav li a:visited {
	color: white;
}

/* Main page container */
.page-Tetris_wiki .mw-body-content {
	max-width: 1200px;
	margin: auto;
}

/* Main page styles */
.page-Tetris_wiki .mw-body h2 {
	border: none;
	font-family: sans-serif;
	font-weight: bold;
	color: #1f2456;
}
.page-Tetris_wiki .mw-body h2 img {
    margin-top: -3px;
}

/* Main page content */
.main-page-content {
	display: grid;
	grid-gap: 30px;
	grid-template-columns: 1fr 320px;
}

/* Game list */
.main-page-game-list {
	display: grid;
	grid-gap: 15px;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}
.main-page-game {
	text-align: center;
}
.main-page-game > p {
    height: 0;
    padding-top: 162%;
    position: relative;
}
.main-page-game > p > a {
	position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.main-page-game img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.badge {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 22px;
	height: 22px;
	background: white;
	mix-blend-mode: difference;
	border-radius: 11px;
	font-weight: bold;
	transform: scale(0.8);
}