Minecraft Wiki
Advertisement
[создать | история | обновить]Документация
У этой таблицы стилей нет документации. Если вы знаете, как использовать эту таблицу стилей, пожалуйста, добавьте соответствующую информацию.

Замечание. Возможно, после сохранения вам придётся очистить кэш своего браузера, чтобы увидеть изменения.

  • Firefox / Safari: Удерживая клавишу Shift, нажмите на панели инструментов Обновить либо нажмите Ctrl-F5 или Ctrl-R (⌘-R на Mac)
  • Google Chrome: Нажмите Ctrl-Shift-R (⌘-Shift-R на Mac)
  • Internet Explorer: Удерживая Ctrl, нажмите Обновить либо нажмите Ctrl-F5
  • Opera: Выберите очистку кэша в меню Инструменты → Настройки
/** Размещённый здесь CSS будет применяться ко всем темам оформления */

/** Стили шаблонов **/
/* [[Шаблон:Сетка]] */
.grid {
	position: relative;
	display: inline-block;
	font-size: 16px;
	text-align: center !important;
	background-color: #8B8B8B;
	border: 2px solid #373737;
	border-right-color: #FFF;
	border-bottom-color: #FFF;
	width: 2em;
	height: 2em;
	vertical-align: bottom;
	padding: 0px;
}
.grid.output {
	font-size: 24px;
}

.grid:before,
.grid:after {
	content: "";
	position: absolute;
	background-color: #8B8B8B;
	height: 2px;
	width: 2px;
	pointer-events: none;
}
.grid:before {
	bottom: -2px;
	left: -2px;
}
.grid:after {
	top: -2px;
	right: -2px;
}

.grid img {
	padding: 2px;
}
 
.grid > .item,
.grid > .default-item {
	position: absolute;
	margin: -18px 0 0 -18px;
	top: 1em;
	left: 1em;
}
.grid > .item > a.new {
	background: url(http://hydra-media.cursecdn.com/minecraft-ru.gamepedia.com/3/35/Grid_Unknown.png) no-repeat 2px;
	display: block;
	width: 32px;
	height: 32px;
	padding: 2px;
	text-indent: -9999px;
	overflow: hidden;
}
 
.grid > .item > .number {
	position: absolute;
	right: 0;
	bottom: 0;
	font-family: Minecraft;
	font-size: 16px;
	font-weight: normal;
	line-height: 16px;
	color: #FFF;
	pointer-events: none;
	text-shadow: 2px 2px 0 #3F3F3F;
	filter: dropshadow(color=#3F3F3F, offx=2, offy=2);
	z-index: 6;
}
.grid > .item > .number > a {
	color: #FFF;
	text-decoration: none;
}
.grid > .item > .number > .selflink {
	font-weight: normal;
}
.grid > .item > a.new + .number {
	display: none;
}

/* Простая ячейка без границы или фона */
.grid.plain {
	background-color: transparent;
	border: 0;
}
.grid.plain:before,
.grid.plain:after {
	content: none;
}

/* Базовые стили сеток */
.grid-Crafting_Table,
.grid-Furnace,
.grid-Brewing_Stand table,
.grid-generic {
	background: #C6C6C6;
	border: outset 2px #999;
	padding: 6px;
	text-align: left !important;
}
.grid-Crafting_Table td,
.grid-Furnace td,
.grid-Brewing_Stand td,
.grid-generic td {
	border: none;
	padding: 0;
}

/* [[Шаблон:Карточка]] */
.notaninfobox {
    clear: right;
    margin: 3px 0px 3px 3px;
    width: 300px;
    font-size: 90%;
    background: #FFFFFF;
    float: right;
    border: 1px solid #CCCCCC;
    padding: 2px
}

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

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

.notaninfobox table {
    width: 100%
}

.notaninfobox p {
    margin: 0
}

.notaninfobox audio {
    width: 184px
}

.notaninfobox dl:last-child {
	margin-bottom: 0.2em;
}

.infobox-footer {
    text-align: center
}

/* Merge adjacent dls in the infobox (since they're usually supposed to be one, but the wiki screws up sometimes) */
.notaninfobox dl + dl {
	margin-top: -0.4em;
}

/* [[Шаблон:Карточка ряд]] */
.infobox-row {
    white-space: nowrap;
    font-weight: bold
}

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

.navbox table {
	background: #FFF;
	margin-left: -4px;
	margin-right: -2px;
}
.navbox table:first-child {
	margin-top: -2px;
}
.navbox table:last-child {
	margin-bottom: -2px;
}

.navbox-top {
	white-space: nowrap;
	background-color: #CCC;
	padding: 0 3px;
}

.navbox-navbar,
.navbox-navbar-mini {
	float: left;
	font-size: 80%;
}

.navbox-title {
	padding: 0 10px;
	font-size: 110%;
}

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

.navbox-list {
	width: 100%;
	padding: 0 0 0 2px;
}

/* [[Template:LoadBox]] with navbox */
.loadbox-navbox {
	padding: 2px !important;
	margin: 1em 0 0 !important;
	clear: both;
}
.loadbox-navbox > p {
	background-color: #CCC;
	text-align: center;
	margin: 0;
	padding: 0 3px;
}
.loadbox-navbox > p > b {
	font-size: 110%;
}

.loadbox-navbox .navbox {
	margin: 0 -2px -2px;
	border: 0;
}
.loadbox-navbox .navbox > tbody > tr:first-child {
	display: none;
}

/* [[Шаблон:История]] */
.history td > pre,
.history td > ol {
	display: none;
}

.history ul {
	margin-top: 0;
}

.history .toggleHistDetails {
	float: right;
	text-align: right;
	width: 150px;
}
.history > tbody > tr:first-child > th {
    padding-left: 152px;
}

/* Minor fix to prevent page jump from the toolbar loading, doesn't affect people with the toolbar disabled */
#toolbar {
    height: 22px
}

/* Remove the header from the main page */
body.page-Minecraft_Wiki.action-view h1.firstHeading {
    display: none
}

/* Collapsible Tables ([[MediaWiki:Common.js]]) */
table.collapsed tr.collapsible {
	display: none;
}
 
.collapsible-button {
	float: right;
	font-weight: normal;
	text-align: right;

	/* Other languages: Change this to a bit wider (~4px) than your collapse/expand button text */
	width: 6.5em;
}

.collapsible.collapse-button-left > tr > th .collapsible-button,
.collapsible.collapse-button-left > * > tr > th .collapsible-button {
	float: left;
	text-align: left;
}

.collapsible.collapse-button-none > tr > th .collapsible-button,
.collapsible.collapse-button-none > * > tr > th .collapsible-button {
	float: none;
}

/* Alternating table rows */
.alternatecells:nth-child(odd) {
    background-color: #F9F9F9
}

.alternaterows tr:nth-child(even) {
    background-color: #F9F9F9
}

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

/* Style the sitenotice and fix up its awful spacing (why is it even a table!?) */
#siteNotice #localNotice,
.page-MediaWiki_Sitenotice .mw-content-ltr > div
 {
    background-color: #FFFFFF;
    border: 1px solid #D3D3D3;
    margin-bottom: 12px;
    text-align: center
}
#siteNotice #mw-dismissable-notice #localNotice {
    /* Note to other languages: Change this to the same width as the "dismiss" button in your language, this makes the sitenotice centred better */
    margin-left: 55px
}

#siteNotice td:first-child {
    width: 100%
}

#localNotice div p {
    padding: 0.4em 0 0.5em;
    margin: 0;
}

/* Minecraft font */
@font-face {
    font-family: Minecraft;
    src: url("http://hydra-media.cursecdn.com/hydra/fonts/minecraft.eot?#iefix"),
         url("http://hydra-media.cursecdn.com/hydra/fonts/minecraft.woff") format('woff'),
         url("http://hydra-media.cursecdn.com/hydra/fonts/minecraft.ttf")  format('truetype')
}

/* Pre-style sidebar portlets before JS loads, so sidebar is less jumpy (reset in [[MediaWiki:Noscript.css]] when JS is off) */
div#mw-panel div.portal {
	margin: -11px 9px 10px 11px;
	padding: 0.25em 0;
	background-image: url(http://hydra-media.cursecdn.com/minecraft-ru.gamepedia.com/b/bf/Panel-divider.png);
	background-position: left top;
	background-repeat: no-repeat;
}
div#mw-panel div.portal div.body {
	background-image: none;
	padding: 0;
	margin: 0 0 0 1.25em;
}
div#mw-panel div.portal h5 {
	padding: 4px 0 3px 1.5em;
	margin-bottom: 0;
}
div#mw-panel div.portal div.body ul li {
	padding: 0.25em 0;
}

#mw-panel #p-Minecraft_Wiki {
	background-image: none;
	margin-top: 0;
}
#p-Minecraft_Wiki h5 {
	display: none;
}
#mw-panel #p-Minecraft_Wiki div.body {
	margin-left: 0.5em;
}

#p-Useful_pages div.body,
#p-tb div.body {
	display: none;
}

/* Pre-collapse collapsed tables, so there is no page jump when JS kicks in */
.collapsible.collapsed > tr,
.collapsible.collapsed > tbody > tr {
    display: none;
}
.collapsible.collapsed > tr:first-child,
.collapsible.collapsed > tbody > tr:first-child {
    display: table-row;
}
.collapsible.collapsed > thead + tbody > tr:first-child {
    display: none;
}

/* Move suggestions back into place (netbar moved them) */
.suggestions {
    margin-top: -29px !important;
}

/* Simulate link styling for JS only links */
.jslink {
	color: #0645AD;
	-webkit-user-select: none;
	   -moz-user-select: none;
		-ms-user-select: none;
}
.jslink:hover {
	text-decoration: underline;
	cursor: pointer;
}
.jslink:active {
	color: #FAA700;
}

/* Horizontal list */
.hlist ul {
	display: inline;
	margin: 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;
}

/* Generic styling for animation class */
.animated > span,
.animated > div {
    display: none;
}

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

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

.nowrap {
	white-space: nowrap;
}

/* Hide noscript only elements */
.noscript {
	display: none;
}

/* Make tabs the correct size */
* {
	-moz-tab-size: 4;
	  -o-tab-size: 4;
	     tab-size: 4;
}

/* Remove bullets/numbers from a list */
.list-style-none ul,
.list-style-none ol {
	list-style: none;
	margin-left: 0;
}

.dablink {
	padding-left: 2em;
	padding-bottom: 0.5em;
	margin-bottom: 0.5em;
	font-style: italic;
}

/* 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 {
	display: table;
}

.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;
}

/* Allow parts of toc to be hidden */
/* Section levels */
.toc-hidelevel2 .toclevel-1 ul,
.toc-hidelevel3 .toclevel-2 ul,
.toc-hidelevel4 .toclevel-2 ul,
/* Numbers */
.toc-nonumbers .tocnumber {
	display: none;
}

/* Hide step-by-step publishing as it's broken */
.wikiEditor-ui-buttons {
	display: none !important;
}

/* Fix wikiEditor spacing */
#upload_container {
	margin-top: -1px;
}
#upload_div {
	margin: 0;
	width: auto;
	border-width: 1px 0;
	box-shadow: none;
}

.wikiEditor-ui-top {
	border: 0 !important;
}
.wikiEditor-ui-toolbar {
	border-bottom: 1px solid silver;
}

/* Fix social icons and promos in portlets */
#mw-panel #p-sitePromos,
#mw-panel #p-socialProfiles {
	margin: -11px 9px 10px 11px !important;
}

#mw-panel #p-sitePromos .body,
#mw-panel #p-socialProfiles .body {
	margin-left: 0 !important;
	padding: 4px 0;
}

#mw-panel .socialSidebar {
	text-align: left;
}

#mw-panel .socialLink {
	margin: 0 4px 0 0;
}

/* Move the logo and the portlets up */
#p-logo {
	margin-bottom: 0;
}

/* Mark internal links as plain */
#content a.external[href^="http://minecraft-ru.gamepedia.com"] {
	background: none;
	padding-right: 0;
}
Advertisement