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

Материал из HardShard Wiki
Перейти к навигации Перейти к поиску
Нет описания правки
Нет описания правки
 
Строка 1: Строка 1:
/* Edited version of https://minecraft.wiki/w/MediaWiki:Vector.css and Common.css*/
/* Edited version of https://minecraft.wiki/w/MediaWiki:Vector.css */


/* All CSS here will be loaded for users of the Vector skin */
/* All CSS here will be loaded for users of the Vector skin */


body {
font-family: "Liberation Sans", Arial, Helvetica, FreeSans, sans-serif;
}


/** Color variables for tweaking by different themes **/
.vector-legacy-sidebar .vector-menu-portal .vector-menu-content,
:root {
.vector-legacy-sidebar .vector-menu-portal .vector-menu-heading {
--navbox-background-color: #FFF;
margin: 0;
--navbox-border-color: #CCC;
--navbox-header-color: #CCC;
--navbox-secondary-header-color: #DDD;
--navbox-tertiary-header-color: #EEE;
--navbox-section-color: #EEE;
}
 
body.wgl-theme-dark {
--navbox-background-color: #333;
--navbox-border-color: #444;
--navbox-header-color: #111;
--navbox-secondary-header-color: #181818;
--navbox-tertiary-header-color: #222;
--navbox-section-color: #222;
}
 
 
/* 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;
}
 
/* Allow parts of toc to be hidden */
/* Section levels */
.toc-hidelevel2 .toclevel-1 ul,
.toc-hidelevel3 .toclevel-2 ul,
.toc-hidelevel4 .toclevel-3 ul,
/* Numbers */
.toc-nonumbers .tocnumber {
display: none;
}
 
/* Adjust styles for small screens */
@media (max-width: 500px) {
#content div.thumb {
float: none;
}
}
 
/* Simulate link styling for JS only links */
.jslink {
color: #0645AD;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
 
.jslink:hover {
text-decoration: underline;
cursor: pointer;
}
 
.jslink:active {
color: #FAA700;
}
 
/* Try to use nearest neighbour scaling for pixelated images */
.ns-special .gallerybox img,
.ns-14 .gallerybox img,
.filehistory a img,
.pixel-image,
.invslot-item-image,
.sprite {
image-rendering: optimizeSpeed;
image-rendering: -webkit-optimize-contrast;
image-rendering: optimize-contrast;
image-rendering: -moz-crisp-edges;
image-rendering: -o-crisp-edges;
image-rendering: crisp-edges;
image-rendering: pixelated;
-ms-interpolation-mode: nearest-neighbor;
}
 
/* Add [[File:Mojang logo.svg]] to known Mojang employee userlinks */
.mw-userlink[href="/w/User:Dinnerbone-gpuser"], .mw-userlink[href="/w/User:Dinnerbone-gpuser?action=edit&redlink=1"],
.mw-userlink[href="/w/User:Jeb_mojang"], .mw-userlink[href="/w/User:Jeb_mojang?action=edit&redlink=1"],
.mw-userlink[href="/w/User:MidnightEnforcer"], .mw-userlink[href="/w/User:MidnightEnforcer?action=edit&redlink=1"],
.mw-userlink[href="/w/User:Minecraft_Staff"], .mw-userlink[href="/w/User:Minecraft_Staff?action=edit&redlink=1"],
.mw-userlink[href="/w/User:Mojang_tommo"], .mw-userlink[href="/w/User:Mojang_tommo?action=edit&redlink=1"],
.mw-userlink[href="/w/User:Slicedlime"], .mw-userlink[href="/w/User:Slicedlime?action=edit&redlink=1"],
.mw-userlink[href="/w/User:Jocopa3"], .mw-userlink[href="/w/User:Jocopa3?action=edit&redlink=1"],
.mw-userlink[href="/w/User:IP_Justice"], .mw-userlink[href="/w/User:IP_Justice?action=edit&redlink=1"],
.mw-userlink[href="/w/User:Cornerhard"], .mw-userlink[href="/w/User:Cornerhard?action=edit&redlink=1"],
.mw-userlink[href="/w/User:CornerHard"], .mw-userlink[href="/w/User:CornerHard?action=edit&redlink=1"],
 
/* legacy/deleted */
.mw-userlink[href="/w/User:MidnightEnforcer43458@legacy41488102"], .mw-userlink[href="/w/User:MidnightEnforcer43458@legacy41488102?action=edit&redlink=1"],
/* previously User:Jonkagstrom47437 */
.mw-userlink[href="/w/User:@DeletedUser40286849"], .mw-userlink[href="/w/User:@DeletedUser40286849?action=edit&redlink=1"],
/* previously User:shoghicp */
.mw-userlink[href="/w/User:@DeletedUser40317681"], .mw-userlink[href="/w/User:@DeletedUser40317681?action=edit&redlink=1"] {
padding-left: 17px;
background: url('filepath://Mojang_logo.svg') no-repeat left center;
background-size: 14px 14px;
}
 
/* Add [[File:Grass Block JE7 BE6.png]] to known Minecraft/Mojang-related contractor employee userlinks */
.mw-userlink[href="/w/User:C418bla"], .mw-userlink[href="/w/User:C418bla?action=edit&redlink=1"] {
padding-left: 17px;
background: url('filepath://Grass_Block_JE7_BE6.png') no-repeat left center;
background-size: 14px 14px;
}
 
/* Add [[File:Gray Mojang Thing.png]] to known ex-Mojang employee userlinks */
.mw-userlink[href="/w/User:EvilSeph"], .mw-userlink[href="/w/User:EvilSeph?action=edit&redlink=1"],
.mw-userlink[href="/w/User:ExcitedZe"], .mw-userlink[href="/w/User:ExcitedZe?action=edit&redlink=1"],
.mw-userlink[href="/w/User:Neon_Master"], .mw-userlink[href="/w/User:Neon_Master?action=edit&redlink=1"],
.mw-userlink[href="/w/User:RazzleberryFox"], .mw-userlink[href="/w/User:RazzleberryFox?action=edit&redlink=1"],
.mw-userlink[href="/w/User:Tahg"], .mw-userlink[href="/w/User:Tahg?action=edit&redlink=1"],
.mw-userlink[href="/w/User:Tamerjeison"], .mw-userlink[href="/w/User:Tamerjeison?action=edit&redlink=1"],
.mw-userlink[href="/w/User:HelenAngel"], .mw-userlink[href="/w/User:HelenAngel?action=edit&redlink=1"],
/* previously User:ProfMobius */
.mw-userlink[href="/w/User:@DeletedUser40549330"], .mw-userlink[href="/w/User:@DeletedUser40549330?action=edit&redlink=1"] {
padding-left: 17px;
background: url('filepath://Gray_Mojang_Thing.png') no-repeat left center;
}
 
/* Make external links the same colour as internal links, the icon is enough to differentiate them */
.mw-body a.external {
color: #0645ad;
}
 
.mw-body a.external:visited {
color: #0b0080;
}
 
.mw-body a.external:active {
color: #faa700;
}
 
/* Make tabs the correct size */
body {
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
}
 
/* 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 #2A002A;
}
 
.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-f,
#minetip-tooltip {
color: #FFF;
text-shadow: 0.125em 0.125em 0 #3F3F3F;
}
 
.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;
}
 
/* Styling for minecraft style tooltip */
#minetip-tooltip {
position: fixed;
top: 0;
left: 0;
background-color: #100010;
background-color: rgba(16, 0, 16, 0.94);
padding: 0.375em;
font-family: Minecraft, sans-serif;
font-size: 16px;
word-spacing: 4px;
white-space: nowrap;
line-height: 1.25em;
margin: 0.125em 0.25em;
pointer-events: none;
z-index: 9999;
}
 
#minetip-tooltip::before {
content: "";
position: absolute;
top: 0.125em;
right: -0.125em;
bottom: 0.125em;
left: -0.125em;
border: 0.15em solid #100010;
border-style: none solid;
border-color: rgba(16, 0, 16, 0.94);
}
 
#minetip-tooltip::after {
content: "";
position: absolute;
top: 0.125em;
right: 0;
bottom: 0.125em;
left: 0;
border: 0.125em solid #2D0A63;
border-image: -webkit-linear-gradient(rgba(80, 0, 255, 0.31), rgba(40, 0, 127, 0.31)) 1;
border-image: linear-gradient(rgba(80, 0, 255, 0.31), rgba(40, 0, 127, 0.31)) 1;
}
 
#minetip-tooltip > .description,
#minetip-tooltip > .minetip-description {
display: block;
margin-top: 0.25em;
}
 
/* prevent sitenotice show/hide toggle from moving page contents down after pageload */
.globalNotice .globalNoticeDismiss {
float: right;
}
}


/* Prevent code from overflowing */
code {
    overflow-wrap: break-word;
}
/* Style code, pre and similar elements/classes with one common styling */
@media screen {
pre, code, .mw-code {
background-color: #F8F9FA;
color: #000;
border: 1px solid #BBC2C6;
}
}
kbd, .kbd-color {
text-shadow: 0 1px 0 #FFF;
background-color: #F8F9FA;
color: #222;
box-shadow: 0 1px rgba(0,0,0,0.2), 0 0 0 2px #FFF inset;
border-color: #BBC2C6;
font-size: smaller;
}
/* Fixes for small screens */
@media screen and (max-width: 720px) {
#mw-head {
top: 13px;
}
div#mw-navigation div#mw-panel {
position: static !important; /* position: relative may be added to inline styles by built-in JS after page load; it needs an !important to override */
}
}
@media screen and (max-width: 500px) {
/* TOC fix */
#mw-content-text > .mw-parser-output > div[style*="float"] {
float: none !important;
margin: 0 !important;
}
}
/* presumable Discord link on comportal */
.CPDiscord {
float: right;
margin-left: 1em;
clear: right;
}
/* Styling for tooltip */
.explain {
border-bottom: 0;
text-decoration: underline dotted;
cursor: help;
}
/* Show help cursor when an abbr element has a title attribute */
abbr[title] {
cursor: help;
}
.mw-references-columns {
overflow-wrap: break-word;
}
#mw-imagepage-section-filehistory {
overflow: auto;
}
/* Default styles:
* [[File:Wiki.png]] [[File:Background.png]] [[File:Header-background.png]]
* [[File:Vector-tabs.png]] [[File:Vector-tabs-first.png]] [[File:Wiki@2x.png]]
* [[File:Background-HiDPI.png]] [[File:Header-background-HiDPI.png]]
* [[File:Vector-tabs-HiDPI.png]] [[File:Vector-tabs-first-HiDPI.png]]
*/
:root {
:root {
/* --wiki-logo: url('/images/Wiki.png'); */
/* --wiki-logo: url('/images/Wiki.png'); */
Строка 423: Строка 50:
     background-size: auto 234px, 468px;
     background-size: auto 234px, 468px;
}
}
/* Logo */
/* .mw-wiki-logo {
background-image: var(--wiki-logo);
} */


#mw-page-base {
#mw-page-base {
Строка 662: Строка 284:
}
}


.vector-legacy-sidebar .vector-menu-portal,
nav.vector-menu-portal {
nav.vector-menu-portal {
display: var(--sidebar-display, block);
display: var(--sidebar-display, block);
Строка 702: Строка 325:
    border-bottom: 5px solid #313233;
    border-bottom: 5px solid #313233;
}
}
}
.vector-menu-portal .vector-menu-heading {
    margin: 0;
}
}


Строка 778: Строка 397:
}
}


.skin-vector-legacy #pt-notifications-notice .mw-echo-notifications-badge,
.skin-vector-legacy #pt-notifications-alert .mw-echo-notifications-badge,
#pt-notifications-notice .mw-echo-notifications-badge,
#pt-notifications-notice .mw-echo-notifications-badge,
#pt-notifications-alert .mw-echo-notifications-badge {
#pt-notifications-alert .mw-echo-notifications-badge {
Строка 993: Строка 614:
ul {
ul {
list-style-image: var(--list-bullet);
list-style-image: var(--list-bullet);
}
/* Add white background to some areas */
#asirra_ChallengeTableDiv {
background-color: #FFF;
}
/* Fix diff area styling */
table.diff {
background-color: transparent;
}
td.diff-addedline,
td.diff-deletedline {
background-color: #F9F9F9;
}
td.diff-context {
background-color: #F3F3F3;
}
td.diff-addedline,
td.diff-deletedline,
td.diff-context,
td.diff-addedline .diffchange,
td.diff-deletedline .diffchange {
border-radius: 0;
}
}


Строка 1031: Строка 625:
.client-js #preftoc,
.client-js #preftoc,
.client-js #preftoc li {
.client-js #preftoc li {
background-image: url('https://minecraft.wiki/images/Pref-tab-border.png');
background-image: url('filepath://Pref-tab-border.png');
}
}


.client-js #preftoc li.selected a {
.client-js #preftoc li.selected a {
background-image: url('https://minecraft.wiki/images/Pref-tab-bg.png');
background-image: url('filepath://Pref-tab-bg.png');
}
 
 
/* Style notifications to look like achievements: [[File:Achievement background.png]] */
body .mw-notification-area-layout {
top: 80px;
}
 
body .mw-notification.mw-notification-type-success,
body .mw-notification.mw-notification-type-error,
body .mw-notification.mw-notification-type-warn,
body .mw-notification {
border: 8px solid #555;
border-radius: 0;
-webkit-border-image: url('https://minecraft.wiki/images/Achievement_background.png') 8 repeat;
-moz-border-image: url('https://minecraft.wiki/images/Achievement_background.png') 8 repeat;
-o-border-image: url('https://minecraft.wiki/images/Achievement_background.png') 8 repeat;
border-image: url('https://minecraft.wiki/images/Achievement_background.png') 8 fill repeat;
box-shadow: none;
background-color: #212121;
background-clip: padding-box;
color: #FFF;
padding: 0.2em 0.4em;
}
 
body .mw-notification.mw-notification-type-success {
    color: #2d6;
}
body .mw-notification.mw-notification-type-error {
    color: #d33;
}
body .mw-notification.mw-notification-type-warn {
    color: #fc3;
}
}


Строка 1102: Строка 663:
background-size: 6px auto;
background-size: 6px auto;
}
}
}
body.rootpage-Minecraft_Wiki #firstHeading {
display: none;
}
body.rootpage-Minecraft_Wiki #bodyContent {
clear: both;
}
/* [[File:Wiki Discord.svg]] */
div#mw-panel nav.portal li a[href="https://discord.gg/fGdE5ZE"] {
    display: inline-block;
    position: relative;
    height: 20px;
    width: 119px;
    margin: 0.25em;
}
div#mw-panel nav.portal li a[href="https://discord.gg/fGdE5ZE"]::before {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -0.25em;
    content: "";
    background: url('https://minecraft.wiki/images/Wiki_Discord.svg') no-repeat;
}
#n-in-Minecraft,
#n-in-Dungeons,
#n-in-Earth,
#n-in-Legends,
#n-in-Story-Mode,
#p-Recent_versions li {
margin-left: 10px;
display: var(--sidebar-display, list-item);
}
.ns-0 #n-randompage, .ns-1 #n-randompage,
.ns-10000 #n-randompage, .ns-10001 #n-randompage,
.ns-10002 #n-randompage, .ns-10003 #n-randompage,
.ns-10004 #n-randompage, .ns-10005 #n-randompage,
.ns-10006 #n-randompage, .ns-10007 #n-randompage,
#p-Recent_versions #n-Bedrock-Edition,
#p-Recent_versions #n-Java-Edition {
margin-left: 0;
font-weight: bold;
}
}

Текущая версия от 05:37, 5 марта 2024

	
/* Edited version of https://minecraft.wiki/w/MediaWiki:Vector.css */

/* All CSS here will be loaded for users of the Vector skin */


.vector-legacy-sidebar .vector-menu-portal .vector-menu-content,
.vector-legacy-sidebar .vector-menu-portal .vector-menu-heading {
	margin: 0;
}

:root {
	/* --wiki-logo: url('/images/Wiki.png'); */
	--base-background: url('https://minecraft.wiki/images/Background.png');
	--header-background: url('https://minecraft.wiki/images/Header-background.png');
	--vector-tabs: url('https://minecraft.wiki/images/Vector-tabs.png');
	--vector-tabs-first: url('https://minecraft.wiki/images/Vector-tabs-first.png');
	
	/* --wiki-logo-hidpi: url('/images/Wiki@2x.png'); */
	--base-background-hidpi: url('https://minecraft.wiki/images/Background-HiDPI.png');
	--header-background-hidpi: url('https://minecraft.wiki/images/Header-background-HiDPI.png');
	--vector-tabs-hidpi: url('https://minecraft.wiki/images/Vector-tabs-HiDPI.png');
	--vector-tabs-first-hidpi: url('https://minecraft.wiki/images/Vector-tabs-first-HiDPI.png');
	
	--list-bullet: url('https://minecraft.wiki/images/List_bullet.svg');
	
	--content-text-color: #202122;
	--base-background-color: #303030;
	--content-background-color: #E6EFF4;
	--content-border-top-color: #B4BEC3;
	--content-border-top-right-color: #784c2a;
	--simplesearch-top-border-color: #FFFFFF;
	--simplesearch-left-border-color: #888888;
	--simplesearch-topright-grass-color: #6BA41E;
	--searchinput-placeholder-color: #72777D;
	
	--sidebar-display-minecraft: initial;
	--sidebar-display-dungeons: none;
	--sidebar-display-earth: none;
	--sidebar-display-legends: none;
	--sidebar-display-story-mode: none;
}

/* Give the background the initial stone texture */
body {
	background-color: var(--base-background-color);
    background-image: var(--header-background), var(--base-background);
    background-repeat: repeat-x, repeat;
    background-position: top left, top left;
    background-size: auto 234px, 468px;
}

#mw-page-base {
	background: none;
	height: 85px;
}

/* Remove excess spacing between the sidebar and the logo */
#mw-panel {
	padding-top: 0;
	padding-bottom: 10px;
}

#p-logo,
#p-logo a {
	height: 140px;
}

/* Set the outer content link colours to light gray and white */
#mw-panel *:not(h3) > a:not(:hover):not(:focus),
#footer a:not(:hover):not(:focus),
.mw-notification a:not(:hover):not(:focus) {
	color: #BFBFBF !important;
}

#mw-panel h3,
#mw-panel a,
#footer li,
#footer a,
.mw-notification a {
	color: #FFF !important;
}

#mw-panel h3 {
	text-decoration: none !important;
	cursor: pointer;
}

/* Set the tab link colours to black and bold */
#p-namespaces a,
#p-views a,
#p-cactions-label span,
div#mw-head div.vectorMenu h4,
div#p-variants.vectorMenu #mw-vector-current-variant {
	font-weight: bold;
	text-decoration: none;
}

/* Use black links */
#p-namespaces a,
#p-views a,
#p-sharing span,
#p-cactions-label span,
div#mw-head div.vectorMenu h4 {
	color: #000;
}

#p-namespaces .new a,
#p-views .new a {
	color: #BA0000;
}

/* Add some margin to help with the 3D effect */
#right-navigation,
#content {
	margin-right: 10px;
}
#footer {
	margin-right: 8px;
}

/* Position the tabs */
#left-navigation,
#right-navigation {
	margin-top: 54px;
}

#mw-head-base {
	height: 80px;
}

/* Give the tabs the grass block styling */
nav.vector-menu-tabs,
nav.vector-menu-dropdown {
    background: none;
    padding: 0;
    height: 36px;
}

nav.vector-menu-tabs li a {
    box-sizing: unset;
}

nav.vector-menu-tabs,
nav.vector-menu-tabs a,
.vector-menu-portal .vector-menu-heading,
nav.vector-menu-tabs ul,
nav.vector-menu-tabs ul li.selected,
#mw-head .vector-menu-dropdown .vector-menu-heading {
    background: none;
}

nav.vector-menu-tabs ul li,
nav.vector-menu-tabs ul li.selected,
nav.vector-menu-tabs ul li:hover,
nav.vector-menu-tabs ul li:focus,
nav.vector-menu-dropdown,
nav.vector-menu-dropdown:hover,
nav.vector-menu-dropdown:focus {
    --ca-background-image: var(--vector-tabs);
    --ca-background-color: var(--content-border-top-color);
    background: var(--ca-background-image) no-repeat right 8px top,
                linear-gradient(to right, var(--ca-background-color) calc(100% - 14px), transparent 0) no-repeat left 6px top 6px;
    position: relative;
}

nav.vector-menu-tabs ul li.selected,
nav.vector-menu-tabs ul li:hover,
nav.vector-menu-tabs ul li:focus,
nav.vector-menu-dropdown:hover,
nav.vector-menu-dropdown:focus {
    --ca-background-color: var(--content-background-color);
    background-position-y: bottom, 6px;
}

nav.vector-menu-tabs ul li:before,
nav.vector-menu-dropdown:before {
    content: "";
    position: absolute;
    left: 0;
    background: var(--ca-background-image) var(--content-border-top-color) no-repeat left top;
    width: 6px;
    height: 100%;
    pointer-events: none;
}

#left-navigation nav.vector-menu-tabs li:first-child:before {
    background: var(--vector-tabs-first) no-repeat left top;
    height: 93px
}

nav.vector-menu-tabs li a {
    padding: 15px 14px 0 20px;
    height: 21px;
    margin-right: 8px;
}

.vector-menu-tabs .mw-watchlink.icon a {
    width: 45px;
    margin-right: 3px;
    margin-bottom: -4px;
}

.vector-menu-tabs .mw-watchlink.icon a:before {
	left: 1.17em;
}

nav.vector-menu-dropdown label {
	padding: 15px 14px 0 20px !important;
}

nav.vector-menu-dropdown .vector-menu-content {
	transition: none;
	margin-left: 6px;
	min-width: calc(100% - 14px); /* Subtract 14px from the minimum width so that it doesn't cross the grass border */
}

.vector-menu-dropdown:focus-within .vector-menu-content,
.vector-menu-dropdown:hover .vector-menu-content {
    opacity: 1;
    visibility: visible;
    height: auto;
}

nav.vector-menu {
    margin: 0 8px 0 6px;
}
#p-views,
#p-cactions {
	margin: 0;
}
#p-cactions {
	padding-right: 8px;
}

#left-navigation nav.vector-menu {
	margin-left: 0;
}

nav.vector-menu h3 span {
    padding-left: 14px;
    font-weight: bold;
}

nav.vector-menu h3 a {
    height: 36px;
    margin-right: 8px;
}

nav.vector-menu div.vector-menu-content {
    top: 35px;
}

.vector-menu-portal .vector-menu-content,
#p-personal .vector-menu-content-list,
#footer {
    background-color: #232324;
    border: 2px #313233 solid;
}
nav.vector-menu-portal,
#p-personal {
    background-color: #232324;
    border: 2px black solid;
}

/* Collapsible side panel sections (arrow copied from the Aether Wiki) */
#mw-panel nav.vector-menu-portal h3:before {
    content: "";
    display: inline-block;
    background: 0 0;
    position: relative;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: #AAA transparent;
    border-width: 6px 5px 0;
    margin-right: -11px;
    margin-bottom: 1px;
}

#mw-panel nav.vector-menu-portal.collapsed h3:before {
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
}

.vector-legacy-sidebar .vector-menu-portal,
nav.vector-menu-portal {
	display: var(--sidebar-display, block);
    margin-top: 0.5em;
    margin-bottom: 2px;
    padding: 0;
}

.vector-menu-portal .vector-menu-content {
    margin-left: 0;
    padding: 0;
}

.vector-menu-portal .vector-menu-content-list {
    padding: 0.3em 0.5em;
}

div#mw-panel nav.vector-menu-portal h3 {
    background: conic-gradient(from 180deg at 2px calc(100% - 2px), #6a6b6c 90deg, transparent 0),
                conic-gradient(from 0 at calc(100% - 2px) 2px, #6a6b6c 90deg, transparent 0),
                linear-gradient(to top, #464747 2px, transparent 0px),
                linear-gradient(to bottom, #5a5b5c 2px, transparent 0px),
                linear-gradient(to left, #464747 2px, transparent 0px),
                linear-gradient(to right, #5a5b5c 2px, transparent 0px);
    background-color: #313233;
    padding: calc(0.5em + 2px);
    border-bottom: 2px solid black;
}

@media screen and (min-width: 720px) {
	div#mw-panel nav.vector-menu-portal.collapsed h3 {
	    background: conic-gradient(from 180deg at 2px calc(100% - 2px), #7c7c7d 90deg, transparent 0),
	                conic-gradient(from 0 at calc(100% - 2px) 2px, #7c7c7d 90deg, transparent 0),
	                linear-gradient(to top, #5a5b5c 2px, transparent 0),
	                linear-gradient(to bottom, #6d6d6e 2px, transparent 0),
	                linear-gradient(to left, #5a5b5c 2px, transparent 0),
	                linear-gradient(to right, #6d6d6e 2px, transparent 0);
	    background-color: #48494a;
	    padding: 0.5em calc(0.5em + 2px);
	    border-bottom: 5px solid #313233;
	}
}

nav.mw-portlet.emptyPortlet {
	display: none;
}

/* Uncomment this to unhide the "Navigation" header of the first sidebar box */
/* #p-logo + .mw-portlet .vector-menu-heading {
    display: block;
} */

/*#mw-panel nav.vector-menu-portal.collapsed .vector-menu-content {
    display: none;
}*/

/* Style the personal links */
#p-personal {
    right: 10px;
    top: 5px;
    margin-right: 0;
    margin-left: 10px;
}

#p-personal a {
    color: white;
}

.mw-echo-alert {
    background-color: #8e721c;
    border: 1px solid #fff;
    border-radius: 4px;
    font-weight: bold;
}

#p-personal .vector-menu-content-list {
	padding: 1px 0.5em 1px 0;
}

.vector-user-menu-legacy li {
    padding-top: 0.3em;
    padding-bottom: 0.3em;
}

.oo-ui-icon-bell, .mw-ui-icon-bell::before,
.oo-ui-icon-tray, .mw-ui-icon-tray::before {
    filter: invert(1);
}
.vector-user-menu-legacy #pt-anonuserpage,
.vector-user-menu-legacy #pt-tmpuserpage,
.vector-user-menu-legacy #pt-userpage a {
    filter: invert(1);
    padding-top: 0;
    background-size: 14px;
    background-position: unset;
}

.vector-user-menu-legacy #pt-anonuserpage span,
.vector-user-menu-legacy #pt-tmpuserpage span {
    color: lightgrey;
    filter: invert(1);
}

.vector-user-menu-legacy #pt-userpage a span {
    color: white;
    filter: invert(1);
}

#p-personal #pt-notifications-notice,
#p-personal #pt-notifications-alert {
	margin-right: 0;
}

.skin-vector-legacy #pt-notifications-notice .mw-echo-notifications-badge,
.skin-vector-legacy #pt-notifications-alert .mw-echo-notifications-badge,
#pt-notifications-notice .mw-echo-notifications-badge,
#pt-notifications-alert .mw-echo-notifications-badge {
    top: 0;
    width: 14px;
    height: 14px;
    background-size: 14px 14px;
    margin-right: 8px;
}

#pt-notifications-notice .mw-echo-notifications-badge.mw-echo-notifications-badge-all-read,
#pt-notifications-alert .mw-echo-notifications-badge.mw-echo-notifications-badge-all-read {
    margin-right: 2px;
}

#pt-notifications-notice .mw-echo-notifications-badge:after,
#pt-notifications-alert .mw-echo-notifications-badge:after {
    top: 4px;
    filter: invert(1);
}

/* Style the simple search */
#p-search {
	margin-left: 0;
}

#p-search form {
	position: relative;
	margin-top: 6px;
	padding: 0 4px 0 5px;
	height: 27px;
}

#simpleSearch {
	top: -3px;
	border: 0;
	border-top: 3px solid var(--simplesearch-top-border-color);
	border-left: 3px solid var(--simplesearch-left-border-color);
	background-color: #D0CFCF;
	background-image: -webkit-linear-gradient(#C3C3C3, #DBDBDB);
	background-image: linear-gradient(#C3C3C3, #DBDBDB);
	-webkit-transition: none !important;
	-moz-transition: none !important;
	transition: none !important;
}

#simpleSearch:before {
	content: "";
	position: absolute;
	bottom: 0;
	left: -3px;
	border-top: 3px solid var(--simplesearch-left-border-color);
	border-left: 3px solid var(--content-border-top-color);
	z-index: 1;
}

#simpleSearch:after {
	content: "";
	position: absolute;
	top: -3px;
	right: 0;
	border-top: 3px solid var(--simplesearch-topright-grass-color);
	border-left: 3px solid var(--simplesearch-top-border-color);
}

/* Remove border of search bar */
#simpleSearch .vector-search-box-input {
    border: none;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    height: 27px;
}

.vector-search-box-input::placeholder {
	color: var(--searchinput-placeholder-color);
}

/* Fix placeholder text being too light in chrome */
::-webkit-input-placeholder {
	color: inherit;
	opacity: 0.54;
}

/* The suggestions shown under the search bar */
.suggestions.searchbar {
	margin-right: -1px;
}

.suggestions.searchbar > .suggestions-results,
.suggestions.searchbar > .mw-searchSuggest-link {
	display: block;
	margin-left: 1px;
}

.suggestions.searchbar .suggestions-results,
.suggestions.searchbar .suggestions-special,
.suggestions .suggestions-results,
.suggestions .suggestions-special {
	background-color: #DBDADA !important;
	border-color: #3C3B3B !important;
}

.suggestions.searchbar .suggestions-result-current,
.suggestions .suggestions-result-current {
	background-color: #0078D7 !important;
}

/* Give the main content area its healthy blue glow and add a border */
.mw-body, .parsoid-body,
div#content {
	position: relative;
	background-color: var(--content-background-color);
	border-top: 6px solid var(--content-border-top-color);
	border-bottom: 0;
	border-left: 6px solid #171717;
}

.oo-ui-windowManager-modal > .oo-ui-dialog > .oo-ui-window-frame {
	background-color: var(--content-background-color);
}

/* Add the 3D corners to the main content */
#mw-page-base::after {
	content: "";
	position: absolute;
	border-top: 6px solid var(--content-border-top-right-color);
	border-left: 6px solid var(--content-border-top-color);
	z-index: 1;
	top: 84px;
	right: 10px;
}

#content:after {
	content: "";
	position: absolute;
	border-top: 6px solid transparent;
	border-left: 6px solid var(--base-background-color);
    left: -6px;
    bottom: 0;
}

#footer {
    outline: 2px black solid;
    border-width: 4px;
    outline-offset: -2px;
    margin-left: calc(10em + 4px);
    margin-top: 10px;
    padding: 0.5em 0.75em;
}

#footer:after {
    content: '';
    clear: both;
    display: block;
}

@media screen and (min-width: 982px) {
	/* Position the footer */
	#footer {
	    margin-left: calc(11em + 4px);
	}
}

/* Fix positioning for small screens when the sidebar moves below the content */
@media screen and (max-width: 720px) {
	/* Add some margin to help with the 3D effect */
	#left-navigation,
	#content {
		margin-left: 10px;
	}
	#footer {
		margin-left: 8px;
	}
	#footer:before {
	    content: none;
	}
	/* Position the tabs */
	#left-navigation,
	#right-navigation {
		margin-top: 40px;
	}
	/* Position the personal links */
	#p-personal {
	    top: -8px;
	}
	/* Position the sidebar sections */
	div#mw-navigation div#mw-panel {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-evenly;
		width: 100%;
	}
	nav.vector-menu-portal {
		width: 142px;
		flex-shrink: 0;
		display: var(--sidebar-display, flex);
	    flex-direction: column;
	}
	nav.vector-menu-portal .vector-menu-content {
		flex-grow: 1;
		display: block !important;
	}
	#mw-panel nav.vector-menu-portal.collapsed h3:before {
	    -webkit-transform: rotate(0deg);
	    transform: rotate(0deg);
	}
}

.mw-dismissable-notice-close .dismiss-icon svg {
	fill: var(--content-text-color);
}

/* Use black bullet points, instead of blue circles: [[File:List bullet.svg]] */
ul {
	list-style-image: var(--list-bullet);
}

/* Get rid of stupid white borders on page history */
#pagehistory li {
	border-color: transparent;
}

/* Same as the default preference tab images, but with the blue background colour instead of white
   [[File:Pref-tab-border.png]] [[File:Pref-tab-bg.png]] */
.client-js #preftoc,
.client-js #preftoc li {
	background-image: url('filepath://Pref-tab-border.png');
}

.client-js #preftoc li.selected a {
	background-image: url('filepath://Pref-tab-bg.png');
}

/* HiDPI images */
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx) {
	body {
    	background-image: var(--header-background-hidpi), var(--base-background-hidpi);
	}
	
	.mw-wiki-logo {
		background-image: var(--wiki-logo-hidpi);
		background-size: 135px auto;
	}
	
	nav.vector-menu-tabs ul li,
	nav.vector-menu-tabs ul li.selected,
	nav.vector-menu-tabs ul li:hover,
	nav.vector-menu-tabs ul li:focus,
	nav.vector-menu-dropdown,
	nav.vector-menu-dropdown:hover,
	nav.vector-menu-dropdown:focus {
		--ca-background-image: var(--vector-tabs-hidpi);
		background-size: 262px auto, auto;
	}
	
	nav.vector-menu-tabs ul li:before,
	nav.vector-menu-dropdown:before {
		background-size: 262px auto;
	}
	
	#left-navigation nav.vector-menu-tabs li:first-child:before {
		background-image: var(--vector-tabs-first-hidpi);
		background-size: 6px auto;
	}
}