MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
/* Add | /* Add proper padding to the entire body content container */ | ||
.vector-body-content { | .vector-body-content { | ||
padding: 1.5em !important; | padding: 1.5em !important; | ||
Line 7: | Line 7: | ||
} | } | ||
/* | /* Add specific left margin/padding to headings and content */ | ||
.vector-body-content h1, | .vector-body-content h1, | ||
.vector-body-content h2, | .vector-body-content h2, | ||
Line 13: | Line 13: | ||
.vector-body-content h4, | .vector-body-content h4, | ||
.vector-body-content h5, | .vector-body-content h5, | ||
.vector-body-content h6 { | .vector-body-content h6, | ||
margin- | .vector-body-content p, | ||
.vector-body-content ul, | |||
.vector-body-content ol, | |||
.vector-body-content div { | |||
margin-left: 0.5em !important; | |||
padding-left: 0.5em !important; | |||
} | } | ||
/* | /* Add specific margin for section headers like "Original Areas" */ | ||
.vector-body-content p { | .mw-headline, | ||
margin- | .mw-heading { | ||
margin-left: 0.5em !important; | |||
} | |||
/* Add margin to lists and list items */ | |||
.vector-body-content ul, | |||
.vector-body-content ol { | |||
margin-left: 2em !important; | |||
} | |||
/* Add specific margin to the first paragraph after a heading */ | |||
.mw-heading + p, | |||
h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p { | |||
margin-top: 0.5em !important; | |||
margin-left: 1em !important; | |||
} | |||
/* Add rounded corners to the main content container */ | |||
.vector-body { | |||
border-radius: 12px !important; | |||
overflow: hidden !important; | |||
} | } | ||
Revision as of 09:47, 3 April 2025
/* CSS placed here will be applied to all skins */
/* Add proper padding to the entire body content container */
.vector-body-content {
padding: 1.5em !important;
margin: 1em !important;
}
/* Add specific left margin/padding to headings and content */
.vector-body-content h1,
.vector-body-content h2,
.vector-body-content h3,
.vector-body-content h4,
.vector-body-content h5,
.vector-body-content h6,
.vector-body-content p,
.vector-body-content ul,
.vector-body-content ol,
.vector-body-content div {
margin-left: 0.5em !important;
padding-left: 0.5em !important;
}
/* Add specific margin for section headers like "Original Areas" */
.mw-headline,
.mw-heading {
margin-left: 0.5em !important;
}
/* Add margin to lists and list items */
.vector-body-content ul,
.vector-body-content ol {
margin-left: 2em !important;
}
/* Add specific margin to the first paragraph after a heading */
.mw-heading + p,
h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p {
margin-top: 0.5em !important;
margin-left: 1em !important;
}
/* Add rounded corners to the main content container */
.vector-body {
border-radius: 12px !important;
overflow: hidden !important;
}
/* Add rounded corners to the main content container */
.vector-body {
border-radius: 12px !important;
overflow: hidden !important;
}
/* Make Vector-2022 header fully transparent */
.vector-header {
background-color: transparent !important;
}
/* Make header elements (search box, tabs, etc.) transparent as well */
.vector-header-container,
.vector-search-box,
.vector-user-links,
.vector-menu-tabs,
.vector-menu-tabs .vector-menu-content,
.vector-menu-dropdown .vector-menu-content {
background-color: transparent !important;
}
/* Ensure dropdown menus are still visible when expanded */
.vector-menu-dropdown .vector-menu-content-list {
background-color: rgba(255, 255, 255, 0.9) !important;
}
/* Add animated GIF above sidebar navigation */
#mw-panel:before {
content: "";
display: block;
width: 100%;
height: 100px; /* Adjust based on your GIF height */
background-image: url("https://wiki.zenithxi.com/db/resources/assets/animatedlogo.gif");
background-repeat: no-repeat;
background-position: center;
background-size: contain;
margin-bottom: 10px;
}
/* Target ALL possible sidebar containers with very specific selectors */
/* Target ALL possible sidebar containers with very specific selectors */
.vector-main-menu-container,
.vector-sidebar-container,
.vector-pinnable-header,
.vector-pinnable-element-pinned,
.mw-sidebar,
#mw-panel {
border-radius: 12px !important;
overflow: hidden !important;
}
/* Target the content area of the sidebar */
.vector-main-menu .vector-menu-content,
.vector-sidebar-container .vector-menu-content,
#mw-panel .vector-menu-content {
border-radius: 12px !important;
}
/* Ensure all sub-elements also respect the border-radius */
.vector-sidebar-container *,
.vector-main-menu-container * {
border-radius: inherit !important;
}
/* Import Roboto font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
/* Change the main font for the entire wiki to Roboto */
body, #content, #bodyContent, h1, h2, h3, h4, h5, h6, div, p, ul, li, td, th {
font-family: 'Roboto', sans-serif !important;
}
.mw-logo-wordmark {
font-size: 28px !important;
font-weight: 500 !important;
text-transform: uppercase !important;
}
/* Add transparency to the content container */
/* Add transparency to the main content area in Vector-2022 */
.vector-body {
background-color: rgba(255, 255, 255, 0.8) !important;
}
/* Make sure the content container itself is also transparent */
.vector-body-before-content,
.vector-body-content,
.vector-body-after-content {
background-color: rgba(255, 255, 255, 0.8) !important;
}
/* Add 50% transparent background image to the page container in Vector-2022 */
.vector-column-start,
.vector-column-end,
.mw-page-container {
position: relative !important;
background-color: transparent !important;
}
/* Create pseudo-element with the background image at 50% opacity */
.mw-page-container:before {
content: "" !important;
position: fixed !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
background-image: url('https://wiki.zenithxi.com/db/resources/assets/light-bg2.jpg') !important;
background-size: cover !important;
background-position: center !important;
background-attachment: fixed !important;
opacity: 0.15 !important; /* This makes the background image 50% transparent */
z-index: -1 !important; /* This puts it behind the content */
}