(mcwiki-header) |
KKeine Bearbeitungszusammenfassung |
||
Zeile 553: | Zeile 553: | ||
} |
} |
||
− | /* Add a sandstone background to some divs */ |
+ | /* Add a sandstone background [[Datei:Sandsteinhintergrund.png]] to some divs */ |
.mcwiki-header |
.mcwiki-header |
||
{ |
{ |
Version vom 11. August 2017, 19:15 Uhr
/* Try to keep font style and width consistent across platforms */
body {
font-family: "Liberation Sans", Arial, Helvetica, FreeSans, sans-serif;
}
/** Template stylings **/
/* [[Vorlage: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;
}
/* [[Modul:Sprite]] */
.sprite {
display: inline-block;
vertical-align: text-top;
height: 16px;
width: 16px;
background-repeat: no-repeat;
}
.sprite + .sprite-text {
padding-left: 0.312em;
}
/* [[Vorlage:SpriteVorschau]] */
.sprite-preview:hover div {
opacity: 0.7 !important;
}
/** Misc stuff **/
/* Test für Navbar-Fix*/
.t-netbar .t-netbar-curseInfo {
float: none;
}
/* 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-Technik_Wiki.action-view h1.firstHeading,
body.page-Technik_Wiki.action-view #contentSub {
display: none;
}
/* Remove sidead from main page editcopy since it
breaks the page and isn't on the real main page */
body.page-Technik_Wiki_editcopy .atfmrec {
display: none;
}
/* Collapsible elements ([[MediaWiki:Common.js]]) */
.collapsible.collapsed > tr:not(:first-child),
.collapsible.collapsed > tbody > tr:not(:first-child),
.collapsible.collapsed > thead + tbody > tr:first-child,
.collapsible.collapsed > tbody + tbody > tr:first-child,
.collapsible.collapsed > tfoot > tr,
.collapsible.collapsed > .collapsible-content {
display: none;
}
.collapsetoggle {
display: inline-block;
font-weight: normal;
font-style: normal;
float: right;
text-align: right;
margin-left: 0.8em;
}
.collapsetoggle-left > tr > * > .collapsetoggle,
.collapsetoggle-left > * > tr > * > .collapsetoggle,
.collapsetoggle-left > * > .collapsetoggle {
float: left;
text-align: left;
margin-right: 0.8em;
margin-left: 0;
}
.collapse-button-none > * > tr > * > .collapsetoggle,
.collapsetoggle-inline > tr > * > .collapsetoggle,
.collapsetoggle-inline > * > tr > * > .collapsetoggle,
.collapsetoggle-inline > * > .collapsetoggle {
float: none;
text-align:left;
}
.collapsetoggle-custom {
visibility: hidden;
}
/* Scale file page image to the width of the page */
#file img {
max-width: 100%;
height: auto;
}
/* Highlight clicked reference in blue to help navigation */
ol.references li:target,
sup.reference:target,
span.citation:target {
background-color: #C1DAF2;
}
/* Style the sitenotice */
#siteNotice #localNotice,
.page-MediaWiki_Sitenotice .mw-content-ltr > div {
background-color: #FFF;
border: 1px solid #D3D3D3;
margin-bottom: 12px;
text-align: center;
}
/* Minecraft font */
@font-face {
font-family: Minecraft;
src: url("https://hydra-media.cursecdn.com/hydra/fonts/minecraft.eot?#iefix"),
url("https://hydra-media.cursecdn.com/hydra/fonts/minecraft.woff") format('woff'),
url("https://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)
[[File:Panel-divider.png]] */
div#mw-panel div.portal {
margin: -11px 9px 10px 11px;
padding: 0.25em 0;
background-image: url(https://hydra-media.cursecdn.com/minecraft-de.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 h3 {
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-Technik_Wiki {
background-image: none;
margin-top: 0;
}
#p-Technik_Wiki-label {
display: none;
}
#mw-panel #p-Technik_Wiki div.body {
margin-left: 0.5em;
}
#p-Useful_pages div.body,
#p-tb div.body {
display: none;
}
/* 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;
}
/* 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;
}
/* Improve ASIRRA styling */
#asirra_InstructionsTextId {
display: none;
}
#AsirraDiv {
margin-bottom: 10px;
}
/* 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;
}
/* 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;
}
/* Improve styling of sub-categories */
#mw-subcategories ul {
margin-left: 10px;
}
/* Horizontal list */
.hlist ul {
display: inline;
margin: 0;
}
.hlist li {
display: inline-block;
margin: 0;
white-space: nowrap;
}
.hlist li:not(:last-child) {
padding-right: 0.313em;
}
.hlist li:not(:last-child):after {
content: "";
display: inline-block;
position: relative;
left: 0.313em;
bottom: 0.234em;
background-color: #000;
height: 3px;
width: 3px;
}
.hlist li > ul li:first-child:before {
content: "(";
}
.hlist li > ul li:last-child:after {
content: ")";
margin-right: -0.313em;
}
.hlist li li li {
font-size: x-small;
}
/* Generic styling for animation class */
.animated > *:not(.active):not(.skip),
.paused > *:not(.active):not(.skip) {
display: none;
}
/* Generic nowrap class */
.nowrap {
white-space: nowrap;
}
/* Hide noscript only elements */
.noscript {
display: none;
}
/* Try to use nearest neighbour scaling for pixelated images */
.pixel-image,
.grid img {
image-rendering: -moz-crisp-edges;
image-rendering: -o-crisp-edges;
image-rendering: -webkit-optimize-contrast;
-ms-interpolation-mode: nearest-neighbor;
}
/* Cite text needs to be a block element, but should display inline */
.references > li {
white-space: nowrap;
}
div.cite-reference-text {
display: inline;
vertical-align: top;
white-space: normal;
}
/* Make external links the same colour as internal links, the icon is enough to differentiate them */
.mw-body a.external, .mw-body a.extiw {
color: #0645ad;
}
.mw-body a.external:visited, .mw-body a.extiw:visited {
color: #0b0080;
}
.mw-body a.external:active, .mw-body a.extiw:active {
color: #faa700;
}
/* Mark internal links as plain */
#content a.external[href^="http://minecraft.gamepedia.com"],
#content a.external[href^="http://minecraft-de.gamepedia.com"],
#content a.external[href^="https://minecraft.gamepedia.com"],
#content a.external[href^="https://minecraft-de.gamepedia.com"] {
background: none;
padding-right: 0;
}
/* 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;
}
/* Classes corresponding to Minecraft formatting codes */
.format-0 {
color: #000;
text-shadow: 0.125em 0.125em 0 #000;
}
.format-1 {
color: #00A;
text-shadow: 0.125em 0.125em 0 #00002A;
}
.format-2 {
color: #0A0;
text-shadow: 0.125em 0.125em 0 #002A00;
}
.format-3 {
color: #0AA;
text-shadow: 0.125em 0.125em 0 #002A2A;
}
.format-4 {
color: #A00;
text-shadow: 0.125em 0.125em 0 #2A0000;
}
.format-5 {
color: #A0A;
text-shadow: 0.125em 0.125em 0 #A200A2;
}
.format-6 {
color: #FA0;
text-shadow: 0.125em 0.125em 0 #2A2A00;
}
.format-7 {
color: #AAA;
text-shadow: 0.125em 0.125em 0 #2A2A2A;
}
.format-8 {
color: #555;
text-shadow: 0.125em 0.125em 0 #151515;
}
.format-9 {
color: #55F;
text-shadow: 0.125em 0.125em 0 #15153F;
}
.format-a {
color: #5F5;
text-shadow: 0.125em 0.125em 0 #153F15;
}
.format-b {
color: #5FF;
text-shadow: 0.125em 0.125em 0 #153F3F;
}
.format-c {
color: #F55;
text-shadow: 0.125em 0.125em 0 #3F1515;
}
.format-d {
color: #F5F;
text-shadow: 0.125em 0.125em 0 #3F153F;
}
.format-e {
color: #FF5;
text-shadow: 0.125em 0.125em 0 #3F3F15;
}
.format-l {
font-weight: bold;
letter-spacing: 0.125em;
}
.format-m {
text-decoration: line-through;
}
.format-n {
text-decoration: underline;
}
.format-o {
font-style: italic;
}
/* 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;
}
/* Fix enhanced RC spacing */
.mw-enhancedchanges-arrow-space {
vertical-align: top;
}
/* Only show content on mobile version */
.mobileonly {
display: none;
}
/* Fix diff spacing */
td.diff-marker {
line-height: 1.2;
}
td.diff-addedline,
td.diff-deletedline,
td.diff-context {
vertical-align: inherit;
}
.rotate90 {
-moz-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
-webkit-transform: rotate(-90deg);
transform: rotate(-90deg);
}
/* Add a sandstone background [[Datei:Sandsteinhintergrund.png]] to some divs */
.mcwiki-header
{
background: #e2d8a4 url("https://hydra-media.cursecdn.com/technic-de.gamepedia.com/d/d9/Sandsteinhintergrund.png") repeat-x scroll 0% 0%;
border: 1px solid #CCC;
border-bottom: 4px groove #999;
border-right: 4px groove #999;
padding: 5px;
}
/* Highlight targeted command references ([[Vorlage:Befehlsblock]]) */
.cmdref
{
padding: 2px;
border-radius: 5px;
display: flex;
}
.cmdref:target, .cmdreflink:target
{
background-color: #C1DAF2;
}
.cmdref > a
{
flex-basis: 50px;
flex-shrink: 0;
margin: auto 0px;
}
.cmdref > img
{
margin: auto 8px auto 0px;
}
.cmdref > code
{
max-width: 100%;
height: 100%;
margin: auto 0px;
}
/* Structogram design ([[Modul:Struktogramm]]) */
.structogram
{
background-color: #ddd;
margin: 10px;
text-align: center;
}
.structogram, .structogram-block
{
border-style: solid;
border-width: 1px;
}
.structogram-block
{
background-color: rgba(255,255,255,0.1);
}
.structogram-title
{
font-weight: bold;
border-bottom: 1px solid;
padding: 10px;
background-color: rgba(0,0,0,0.1);
}
.structogram-if-items
{
display: flex;
}
.structogram-if-title
{
border-bottom: 1px solid;
padding: 10px;
text-align: center;
background-color: rgba(0,0,255,0.1);
flex: 0 1 auto;
}
.structogram-if-item
{
margin-top: 0px;
display: inline-block;
vertical-align: top;
flex: 1 1 auto;
}
.structogram-if-item:not(:first-child)
{
border-left: 1px solid;
}
.structogram-item
{
padding: 10px;
}
.structogram-item:not(:last-child)
{
border-bottom: 1px solid;
}