|
|
| (42 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| /* CSS placed here will be applied to all skins */
| | .vector-menu-content a { |
| /* Make Vector 2022 use wide layout by default and when content overflows */
| | color: var(--zx-text-muted) !important; |
| | |
| /* Override the main page container max-width */
| |
| .mw-page-container { | |
| max-width: none !important; | |
| width: 100% !important;
| |
| } | | } |
| | | .vector-main-menu a:hover, |
| /* Override the content container max-width */
| | .vector-menu-content a:hover { |
| .mw-content-container { | | color: var(--zx-gold-bright) !important; |
| max-width: none !important; | |
| width: 100% !important;
| |
| } | | } |
| | | .vector-menu-heading { |
| /* Set a responsive max-width for the content area to maintain readability */
| | font-family: var(--zx-font-display) !important; |
| .mw-body-content {
| | color: var(--zx-gold) !important; |
| max-width: 100% !important;
| | text-transform: uppercase; |
| margin: 0 auto !important;
| | letter-spacing: 0.2em; |
| overflow-wrap: break-word !important;
| | font-size: 11px !important; |
| word-wrap: break-word !important;
| |
| hyphens: auto !important;
| |
| }
| |
| | |
| /* Ensure the header is also full width */
| |
| .vector-header-container { | |
| max-width: none !important; | |
| width: 100% !important;
| |
| }
| |
| | |
| /* Make sure the footer is also wide */
| |
| .mw-footer-container {
| |
| max-width: none !important;
| |
| width: 100% !important;
| |
| }
| |
| | |
| /* Increase size of logo icon without affecting the container */
| |
| .mw-logo-icon {
| |
| height: 150px !important;
| |
| width: 150px !important;
| |
| object-fit: contain !important;
| |
| }
| |
| | |
| /* Ensure logo container remains properly aligned with larger logo */
| |
| .mw-logo {
| |
| display: flex !important;
| |
| align-items: center !important;
| |
| }
| |
| | |
| /* Move search bar to the right to prevent overlap with the title */
| |
| #p-search {
| |
| margin-left: auto !important;
| |
| padding-left: 100px !important; /* Add padding to push it further right */
| |
| }
| |
| | |
| /* Add spacing between the logo and other header elements */
| |
| .vector-header-end {
| |
| display: flex !important;
| |
| align-items: center !important;
| |
| justify-content: flex-end !important;
| |
| width: auto !important;
| |
| min-width: 25% !important; /* Ensure enough space for search and user tools */
| |
| }
| |
| | |
| /* Ensure sidebar width stays reasonable */
| |
| .vector-sidebar {
| |
| width: 14em !important;
| |
| }
| |
| | |
| /* For Vector 2022, force wide mode with modern CSS variables */
| |
| :root {
| |
| --width-layout: 100% !important;
| |
| --width-content: 100% !important;
| |
| --width-workspace-min: 100% !important;
| |
| --width-workspace-max: none !important;
| |
| }
| |
| | |
| body {
| |
| --width-layout: 100% !important;
| |
| overflow-x: hidden !important;
| |
| }
| |
| | |
| /* Ensure tables and other wide elements don't break the layout */
| |
| .mw-body-content table,
| |
| .mw-body-content pre,
| |
| .mw-body-content div.mw-geshi {
| |
| max-width: 100% !important;
| |
| overflow-x: auto !important;
| |
| display: block !important;
| |
| }
| |
| | |
| /* Add proper padding to the entire body content container */
| |
| .mw-body {
| |
| padding: 0.75em !important;
| |
| margin: 0.5em !important;
| |
| /* Ensure content has breathing room on all sides */
| |
| padding-right: 1em !important;
| |
| }
| |
| | |
| /* Add margin/padding to headings and content (left and right) */
| |
| .mw-body h1,
| |
| .mw-body h2,
| |
| .mw-body h3,
| |
| .mw-body h4,
| |
| .mw-body h5,
| |
| .mw-body h6,
| |
| .mw-body p,
| |
| .mw-body ul,
| |
| .mw-body ol,
| |
| .mw-body div {
| |
| margin-left: 0.25em !important;
| |
| margin-right: 0.25em !important;
| |
| padding-left: 0.25em !important;
| |
| padding-right: 0.25em !important;
| |
| }
| |
| | |
| /* Add specific margin for section headers like "Original Areas" */
| |
| .mw-headline,
| |
| .mw-heading {
| |
| margin-left: 0.25em !important;
| |
| }
| |
| | |
| /* Add margin to lists and list items */
| |
| .mw-body ul,
| |
| .mw-body ol {
| |
| margin-left: 1em !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.25em !important;
| |
| margin-left: 0.5em !important; | |
| }
| |
| | |
| /* Add rounded corners to the main content container */
| |
| .vector-body {
| |
| border-radius: 12px !important;
| |
| overflow: hidden !important;
| |
| background-color: rgba(255, 255, 255, 0.8) !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 - INCREASED SIZE BY 25% */
| |
| /* #mw-panel:before {
| |
| content: "";
| |
| display: block;
| |
| width: 125% !important; /* Increased by 25% from 100% */
| |
| height: 125px !important; /* Increased by 25% from 100px */
| |
| background-image: url("https://wiki.zenithxi.com/images/zenithxi-logo-md.png");
| |
| background-repeat: no-repeat;
| |
| background-position: center;
| |
| background-size: contain;
| |
| margin-bottom: 10px;
| |
| transform: translateX(-10%); /* Shift slightly left to center the enlarged image */
| |
| }
| |
| */
| |
| | |
| /* Target ALL possible sidebar containers with very specific selectors */
| |
| .vector-main-menu-container,
| |
| .vector-sidebar-container,
| |
| .vector-pinnable-header,
| |
| .vector-pinnable-element-pinned,
| |
| .vector-pinned-container,
| |
| .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; | |
| }
| |
| | |
| /* 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/images/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 */
| |
| }
| |
| | |
| /* Media query to ensure wide mode on smaller screens when content overflows */
| |
| @media screen and (max-width: 1600px) {
| |
| /* Special handling for tables and code blocks that might overflow */
| |
| .mw-body-content table,
| |
| .mw-body-content pre,
| |
| .mw-body-content .mw-highlight {
| |
| max-width: 100% !important;
| |
| overflow-x: auto !important;
| |
| }
| |
|
| |
| /* Ensure text wrapping for long words/strings */
| |
| .mw-body-content p,
| |
| .mw-body-content li,
| |
| .mw-body-content div {
| |
| overflow-wrap: anywhere !important;
| |
| }
| |
|
| |
| /* Ensure images are responsive */
| |
| .mw-body-content img {
| |
| max-width: 100% !important;
| |
| height: auto !important;
| |
| }
| |
| }
| |
| | |
| /* Enforce wide layout in Vector 2022's layout-specific variables */
| |
| .vector-layout-config {
| |
| --max-width-page-container: none !important;
| |
| --max-width-content-container: none !important;
| |
| }
| |
| | |
| /* Hide the gradient at the bottom of the sticky pinned container */
| |
| .vector-sticky-pinned-container::after {
| |
| display: none !important;
| |
| content: none !important;
| |
| height: 0 !important;
| |
| background: none !important;
| |
| } | | } |
| | .mw-logo { display: none !important; } |