Warning.png

Поддержка Wiki прекращена, она доступна в режиме архива. Информация в ней устарела и может быть неактуальной.

MediaWiki:Mobile.css — различия между версиями

Материал из Hilarious Wiki
Перейти к: навигация, поиск
(Новая страница: «CSS placed here will affect users of the mobile site: * Minecraft skin *: Give the background the stone and grass texture: body { background-color:…»)
(нет различий)

Версия 11:06, 21 августа 2016

/* CSS placed here will affect users of the mobile site */

/** Minecraft skin **/
/* Give the background the stone and grass texture */
body {
	background-color: #202020;
	background-image: url(http://hydra-media.cursecdn.com/minecraft-ru.gamepedia.com/2/29/Mobile-header-background.png), url(http://hydra-media.cursecdn.com/minecraft-ru.gamepedia.com/2/26/Background.png);
	background-repeat: repeat-x, repeat;
}

/* 3D search box */
#searchbox {
	background-color: #FFF;
}

.search_bar {
	background-image: url(http://hydra-media.cursecdn.com/minecraft-ru.gamepedia.com/8/8a/Mobile-search-start.png), url(http://hydra-media.cursecdn.com/minecraft-ru.gamepedia.com/0/05/Mobile-search-end.png), url(http://hydra-media.cursecdn.com/minecraft-ru.gamepedia.com/7/7d/Mobile-search-background.png);
	background-position: left top, right top, left top;
	background-repeat: no-repeat, no-repeat, repeat-x;
	color: #3C3B3B;
	height: 26px;
}

#sq {
	border: 0;
}

#search {
	background-color: transparent;
	width: 100% !important;
}

#searchbox #goButton {
	background: url(http://hydra-media.cursecdn.com/minecraft-ru.gamepedia.com/3/3f/Mobile-search-button.png) no-repeat 5px 5px / 18px;
}

/* Let nav go over the top of other things, instead of pushing them down */
#nav {
	position: absolute;
	z-index: 100;
}

/* Give the main content area its healthy blue glow */
#content {
	background: #E6EFF4 !important;
	border-top: 6px solid #B4BEC3;
	border-left: 6px solid #171717;
	margin-top: 18px;
}

/* Fake 3D corners */
#content {
	margin: -6px 0 -6px -6px;
	padding: 18px;
	background-image: url(http://hydra-media.cursecdn.com/minecraft-ru.gamepedia.com/a/af/Vector-tabs-background.png), url(http://hydra-media.cursecdn.com/minecraft-ru.gamepedia.com/4/4f/Content-background.png);
	background-position: top right, bottom left;
	background-repeat: no-repeat;
}

#firstHeading {
	margin-top: 0;
}

#copyright {
	color: #FFF;
}
#copyright a {
	color: #BFBFBF;
}

/* Clear floats */
.visualClear {
	clear: both;
}

/** Template stylings **/
/* [[Template:Grid]] */
.grid {
	display: inline-block;
	position: relative;
	text-align: left !important;
	background-color: #8B8B8B;
	height: 32px;
	width: 32px;
	padding: 2px;
	vertical-align: bottom;
}
.grid.output {
	height: 48px;
	width: 48px;
}

.grid img,
.pixel-image img {
	image-rendering: -moz-crisp-edges;
	image-rendering: -o-crisp-edges;
	image-rendering: -webkit-optimize-contrast;
	-ms-interpolation-mode: nearest-neighbor;
}
 
.grid .border {
	display: block;
	margin: -2px 0 0 -2px;
	border-style: solid none none solid;
	border-width: 2px;
	border-color: #373737;
	height: 100%;
}
.grid .border > span {
	display: block;
	margin-right: -2px;
	border-style: none solid solid none;
	border-width: 2px;
	border-color: #FFFFFF;
	height: 100%;
}
 
.grid .image,
.grid .default-image {
	position: absolute;
	line-height: 16px;
	top: 2px;
	width: 32px;
	height: 32px;
}
.grid.output .image {
	top: 10px;
	left: 10px;
}
.grid .image > a.new {
	background-image: url("http://hydra-media.cursecdn.com/minecraft-ru.gamepedia.com/3/35/Grid_Unknown.png");
	display: block;
	width: 32px;
	height: 32px;
	outline: none;
	text-indent: -99999px;
}
 
.grid .number {
	position: absolute;
	right: -2px;
	bottom: -2px;
	text-align: right;
	font-family: Minecraft;
	font-size: 16px;
	color: #FFF;
	pointer-events: none;
	z-index: 6;
	text-shadow: 2px 2px 0px #3F3F3F;
	filter: dropshadow(color=#3F3F3F, offx=2, offy=2);
}
.grid .number a {
	color: #FFF;
	text-decoration: none;
}
.grid .number .selflink {
	font-weight: normal;
}
.grid .image a.new + .number {
	display: none;
}

.grid .animated .image,
.grid .paused .image {
	display: none;
}
.grid .animated .image.active,
.grid .paused .image.active {
	display: block;
}

.animated > span,
.animated > div,
.paused > span,
.paused > div {
    display: none;
}

.animated > span.active,
.paused > span.active {
    display: inline;
}

.animated > div.active,
.paused > div.active {
    display: block;
}

.grid-Crafting_Table,
.grid-Furnace,
.grid-Brewing_Stand table,
.grid-generic {
	background: #C6C6C6;
	border: outset 2px #999;
	padding: 6px;
	text-align: left !important;
	width: 32px;
}
.grid-Crafting_Table td,
.grid-Furnace td,
.grid-Brewing_Stand td,
.grid-generic td {
	border: none;
	padding: 0;
}

/* [[Template:Grid/Crafting Table]] */
.grid-Crafting_Table .arrow,
.grid-Crafting_Table .shapeless {
	text-align: center;
	vertical-align: bottom;
}

.grid-Crafting_Table .arrow {
	width: 40px;
	padding-bottom: 5px;
}

.grid-Crafting_Table .shapeless span {
	cursor: help;
}

/* [[Template:Grid/Furnace]] */
.grid-Furnace {
	padding-left: 24px;
	padding-right: 24px;
}

.grid-Furnace .arrow,
.grid-Furnace .output {
	text-align: center;
	vertical-align: middle;
}

.grid-Furnace .arrow {
	padding-right: 18px !important;
	padding-left: 14px !important;
}

/* [[Template:Grid/Brewing Stand]] */
.grid-Brewing_Stand {
	position: relative;
	width: 144px;
}

.grid-Brewing_Stand .bubbles {
	text-align: right;
}

.grid-Brewing_Stand .input {
	padding: 3px 0 !important;
	vertical-align: top;
}
.grid-Brewing_Stand .output1 {
	padding: 4px 10px 14px 0 !important;
}
.grid-Brewing_Stand .output2 {
	padding-top: 18px !important;
}
.grid-Brewing_Stand .output3 {
	padding: 4px 0 14px 10px !important;
}

.grid-Brewing_Stand .paths {
	position: absolute;
	bottom: 42px;
	left: 42px;
	z-index: 5;
}

/* [[Template:Grid/Hotbar]] */
.grid-Hotbar {
	display: inline-block;
	position: relative;
}
.grid-Hotbar > .selector {
	position: absolute;
	top: -2px;
	margin-left: -2px;
}
.grid-Hotbar > .slots {
	position: absolute;
	top: 0;
	left: 0;
	margin: 2px;
}
.grid-Hotbar .grid {
	margin: 2px;
	background-color: transparent;
}
.grid-Hotbar .grid > .border,
.grid-Hotbar .grid > .border > span {
	border: 0;
	margin: 0;
}

/* [[Template:Infobox common]] */
.notaninfobox {
	clear: right;
	margin: 3px 0px 3px 3px;
	width: 300px;
	font-size: 90%;
	background: #FFFFFF;
	float: right;
	border: 1px solid #CCCCCC;
	padding: 2px;
}
.notaninfobox table,
.notaninfobox td {
	border: 0;
}
.notaninfobox p {
	margin: 0;
}

.infobox-title {
	font-weight: bold;
	text-align: center;
	font-size: 120%;
}

.infobox-imagearea {
	text-align: center;
	padding: 4px;
}

/* [[Template:Navbox]] */
.navbox {
	border: 1px solid #CCC;
	margin: 1em auto 0;
	clear: both;
}

.navbox-top {
	white-space: nowrap;
	background-color: #CCC;
}

.navbox-group {
	background-color: #EEE;
	white-space: nowrap;
	text-align: right;
}

.navbox-list {
	width: 100%;
}

/* [[Template:Sprite]] */
.sprite {
	display: inline-block;
	position: relative;
	overflow: hidden;
	vertical-align: middle;
	height: 32px;
	width: 32px;
}
.sprite > span {
	position: absolute;
	height: 256px;
	width: 256px;
}

/* The blue header used throughout the wiki */
.mcwiki-header {
	border: 1px solid #ccc;
	border-bottom: 4px groove #999999;
	border-right: 4px groove #999999;
	padding: 5px;
}

/* Horizontal list */
.hlist ul {
	display: inline;
	margin: 0;
	padding: 0;
}

.hlist li {
	display: inline-block;
	white-space: nowrap;
	margin: 0;
}
.hlist li:after {
	content: " •";
}
.hlist li:last-child:after,
.hlist li.last-child:after {
	content: "";
}

.hlist li > ul li:first-child:before {
	content: "(";
}
.hlist li > ul li:last-child:after,
.hlist li > ul li.last-child:after {
	content: ")";
}

.hlist li li li {
	font-size: x-small;
}

/* Turn a list into a tree view style (See [[.minecraft]]) */
.treeview {
	margin-top: 0.3em;
}

.treeview ul,
.treeview li {
	margin: 0;
	padding: 0;
	list-style-type: none;
	list-style-image: none;
}

.treeview li li {
	position: relative;
	padding-left: 13px;
	margin-left: 7px;
	border-left: 1px solid #636363;
}
.treeview li li:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 11px;
	height: 11px;
	border-bottom: 1px solid #636363;
}

.treeview li li.first:before {
	border-color: #636363;
	border-style: solid;
	border-width: 1px 0 0 1px;
	height: 100%;
	margin-top: 11px;
	width: 10px;
}
.treeview li li.first,
.treeview li li:last-child {
	border: 0;
	padding-left: 14px;
}
.treeview li li:last-child:before {
	border-left: 1px solid #636363;
	width: 10px;
}

/* Generic nowrap class */
.nowrap {
	white-space: nowrap;
}

.footer {
	clear:both;
}

/* Fix gallery */
ul.gallery li.gallerybox div.thumb {
	text-align: center;
}

ul.gallery li.gallerybox {
	display: inline-block;
	vertical-align: top;
}

ul.gallery {
	padding: 2px;
}

/* Set wikitable background to its intended color */
.wikitable {
	background: #F9F9F9;
}