MediaWiki:Common.css: Difference between revisions

From EQOA Sandstorm Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 42: Line 42:
     color: #8e2631 !important; /* Adjust font color for external links */
     color: #8e2631 !important; /* Adjust font color for external links */
     font-style: normal; /* Adjust font style for external links */
     font-style: normal; /* Adjust font style for external links */
     text-decoration: none; /* Remove underline from external links */
     text-decoration: none; /* Remove underline from external links */
}
}
Line 123: Line 122:
#bodyContent {
#bodyContent {
   background: none !important;
   background: none !important;
}
}


Line 228: Line 226:
   box-shadow: none !important;
   box-shadow: none !important;
}
}


/* Keep outer gray box */
/* Keep outer gray box */
Line 323: Line 320:




 
/* Scoped overrides only for NPC right panel legend/table to prevent white bg from skin */
/* -------------------------
.mw-parser-output .npc-right-panel,
  Legend: force fully orange
.mw-parser-output .npc-right-panel * {
  ------------------------- */
 
/* Target the legend table that uses .wikitable and the orange inline style.
  This is intentionally specific to override inline styles on many wikis. */
.mw-parser-output table.wikitable[style*="#d86f34"],
.mw-parser-output table.wikitable.legend {
  background-color: #d86f34 !important;
  color: #ffffff !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  box-shadow: none !important;
}
 
/* Remove any white backgrounds from rows/cells inside that table */
.mw-parser-output table.wikitable[style*="#d86f34"] tr,
.mw-parser-output table.wikitable[style*="#d86f34"] tbody,
.mw-parser-output table.wikitable[style*="#d86f34"] thead {
  background: transparent !important;
}
 
.mw-parser-output table.wikitable[style*="#d86f34"] th,
.mw-parser-output table.wikitable[style*="#d86f34"] td {
  background: transparent !important;
  color: #fff !important;
  border: none !important;
  padding: 6px 8px !important;
}
 
/* Also handle inner divs or paragraphs that might have white bg */
.mw-parser-output table.wikitable[style*="#d86f34"] th > div,
.mw-parser-output table.wikitable[style*="#d86f34"] td > div,
.mw-parser-output table.wikitable[style*="#d86f34"] th > p,
.mw-parser-output table.wikitable[style*="#d86f34"] td > p {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
}
 
/* If the legend is placed as a normal table after the zones table,
  remove any gap between the previous table and this one */
.mw-parser-output table.wikitable[style*="#d86f34"] + table,
.mw-parser-output table.wikitable[style*="#d86f34"] + .legend,
.mw-parser-output table.wikitable[style*="#d86f34"] + div {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
 
/* Optional: add a thin white separator line on top (like your screenshot) */
.mw-parser-output table.wikitable[style*="#d86f34"] {
  border-top: 4px solid #ffffff20; /* subtle white line if desired */
}
 
/* Make <pre> inside the orange legend match its background */
.mw-parser-output table.wikitable[style*="#d86f34"] pre,
.mw-parser-output table.wikitable.legend pre {
  background: transparent !important;
  color: #ffffff !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: normal !important; /* optional: makes it wrap instead of scrolling */
}
 
/* Force-remove default white background from wikitable */
.wikitable,
.wikitable > tr,
.wikitable > * > tr,
.wikitable td,
.wikitable th {
    background-color: transparent !important;
}
 
/* Kill automatic white background wrappers around tables */
.mw-parser-output table.wikitable,
.mw-parser-output table.wikitable * {
     background-color: transparent !important;
     background-color: transparent !important;
}
/* Remove white background from section wrappers */
.mw-parser-output > div,
.mw-parser-output .mw-table,
.mw-parser-output .box,
.mw-parser-output .thumb,
.mw-parser-output .gallery,
.mw-parser-output .mw-code,
.mw-parser-output .mw-highlight {
     background: transparent !important;
     background: transparent !important;
}
}


/* Citizen skin / Vector-2022 table wrapper fix */
/* Allow the template to style the legend table and its cells */
.skin-citizen .citizen-body-content *,
.mw-parser-output .npc-right-panel table.wikitable,
.skin-vector * {
.mw-parser-output .npc-right-panel table.wikitable tr,
     background-color: transparent !important;
.mw-parser-output .npc-right-panel table.wikitable td,
.mw-parser-output .npc-right-panel table.wikitable th {
     background-color: inherit !important;
    background: inherit !important;
}
}


/* Hard override for any white block inside NPC templates */
/* If you want the legend table forced to your gold color, this makes it explicit */
#mw-content-text * {
.mw-parser-output .npc-right-panel table.wikitable.legend-force {
 
     background-color: #D1A84C !important;
     background-color: transparent !important;
    color: #2C1F0F !important;
    border:2px solid #2C1F0F !important;
}
}
 
.mw-parser-output .npc-right-panel table.wikitable.legend-force tr,
 
.mw-parser-output .npc-right-panel table.wikitable.legend-force td {
/* Allow inline styles to WIN */
     background-color: #D1A84C !important;
.wikitable td,
    color: #2C1F0F !important;
.wikitable th {
     background: inherit !important;
}
}

Revision as of 23:51, 13 November 2025

/* CSS placed here will be applied to all skins */
/* Apply styles to the main content area of all special pages */

.ns--1 #content {
    font-size: 16px; /* Adjust font size */
    font-family: Arial, sans-serif; /* Adjust font type */
    color: #FFD700; /* Adjust font color */
    font-style: normal; /* Adjust font style */
    background-color: #c4c4c4; /* Adjust background color */
}

/* Exclude Content Header box */
.ns--1 #content .content-header {
    color: inherit; /* Keep default font color for content header */
    background-color: inherit; /* Keep default background color for content header */
}

/* Ensure links in the main content area of special pages follow the same styling */
.ns--1 #content > :not(.content-header) a {
    font-size: 16px; /* Adjust font size for links */
    font-family: Arial, sans-serif; /* Adjust font type for links */
    color: #FFD700 !important; /* Adjust font color for links */
    font-style: normal; /* Adjust font style for links */
    text-decoration: none; /* Remove underline from links */
}

/* Ensure visited links in the main content area of special pages follow the same styling */
.ns--1 #content > :not(.content-header) a:visited {
    color: #FFD700 !important; /* Adjust font color for visited links */
}

/* Ensure links in the main content area of special pages follow the same styling on hover */
.ns--1 #content > :not(.content-header) a:hover {
    color: #8e2631 !important; /* Adjust font color for links on hover */
    text-decoration: underline; /* Underline links on hover */
}

/* Apply the same style for URL text or any external links */
.ns--1 #content > :not(.content-header) a.external {
    font-size: 16px; /* Adjust font size for external links */
    font-family: Arial, sans-serif; /* Adjust font type for external links */
    color: #8e2631 !important; /* Adjust font color for external links */
    font-style: normal; /* Adjust font style for external links */
    text-decoration: none; /* Remove underline from external links */
}

/* Ensure external links in the main content area follow the same styling on hover */
.ns--1 #content > :not(.content-header) a.external:hover {
    color: #8e2631 !important; /* Adjust font color for external links on hover */
    text-decoration: underline; /* Underline external links on hover */
}

/* Style headers in the main content area of special pages */
.ns--1 #content > :not(.content-header) h1,
.ns--1 #content > :not(.content-header) h2,
.ns--1 #content > :not(.content-header) h3,
.ns--1 #content > :not(.content-header) h4,
.ns--1 #content > :not(.content-header) h5,
.ns--1 #content > :not(.content-header) h6 {
    font-size: 24px; /* Adjust font size for headers */
    font-family: Arial, sans-serif; /* Adjust font type for headers */
    color: #8e2631; /* Adjust font color for headers */
    font-style: normal; /* Adjust font style for headers */
}

/* Style headers in the main content area of special pages on hover */
.ns--1 #content > :not(.content-header) h1:hover,
.ns--1 #content > :not(.content-header) h2:hover,
.ns--1 #content > :not(.content-header) h3:hover,
.ns--1 #content > :not(.content-header) h4:hover,
.ns--1 #content > :not(.content-header) h5:hover,
.ns--1 #content > :not(.content-header) h6:hover {
    color: #8e2631; /* Adjust font color for headers on hover */
}







/* === GLOBAL PAGE BACKGROUND === */
html, body {
  background-color: #cccccc !important;
  background-image: none !important;
  color: #000000;
}

/* Apply consistent background across layout sections */
#mw-page-base,
#mw-head-base,
#mw-head,
#mw-panel,
#content,
#footer,
#mw-footer,
#mw-data-after-content,
#mw-wrapper,
#mw-data-before-content {
  background-color: #cccccc !important;
  background-image: none !important;
  border: none !important;
}

/* === SIDEBAR STYLING === */
#mw-panel,
#mw-panel h3,
#mw-panel a {
  color: #ffffff !important;
  background: none !important;
}

#mw-panel a:hover {
  color: #f68825 !important;
  text-decoration: underline;
}

/* === MAIN CONTENT AREA === */
#mw-content-text,
#contentSub,
#siteSub,
#bodyContent {
  background: none !important;
}

.mw-body,
#mw-content-text {
  color: #000000;
}

/* === LOGO AREA FIXED === */
#p-logo {
  background-color: #cccccc !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  height: auto !important;
  position: relative;
  overflow: visible !important;
}

/* Restore and center the logo image */
#p-logo a {
  display: block;
  background: url("/eqoawiki/resources/assets/sandstorm_logo1.png") no-repeat center center !important;
  background-size: contain !important;
  width: 135px !important;
  height: 155px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  text-indent: -9999px;
  overflow: hidden;
  border: none !important;
}


/* Ensure no invisible overlays block the logo */
#p-logo a img,
#p-logo img {
  display: none !important; /* Hide fallback <img> if present */
}

/* === TOP NAVIGATION BAR THEMING === */
#mw-head,
#p-personal,
#p-views,
#right-navigation,
#left-navigation {
  background-color: #cccccc !important;
  background-image: none !important;
  border: none !important;
}

/* Navigation bar text */
#p-personal a,
#p-views a,
#right-navigation a,
#left-navigation a {
  color: #ffffff !important;
  font-weight: bold;
}

/* Hover and active states */
#p-personal a:hover,
#p-views a:hover,
#right-navigation a:hover,
#left-navigation a:hover,
#p-personal li.active a,
#p-views li.selected a {
  color: #f68825 !important;
  text-decoration: underline;
}

/* Remove any white separator line */
#mw-head-base {
  border-bottom: none !important;
}





/* MediaWiki:Common.css */
.quest-reward { background-color: #cccccc !important; }
.quest-reward, .quest-reward * { background-color: transparent !important; }




/* MediaWiki:Common.css */
/* Force any inner elements inside quest right column to be transparent */
.quest-right,
.quest-reward,
.quest-walkthrough {
  background-color: #cccccc !important;  /* keep outer gray */
  border-color: transparent !important;
}

/* Override inner whites and borders */
.quest-right * ,
.quest-reward * ,
.quest-walkthrough * {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Keep outer gray box */
.quest-right,
.quest-reward,
.quest-walkthrough {
  background-color: #cccccc !important;
  border: none !important;
}

/* Restore the orange header */
.quest-header {
  background-color: #f68825 !important;
  color: white !important;
  border: none !important;
}

/* Force any inner white backgrounds to disappear */
.quest-right * ,
.quest-reward * ,
.quest-walkthrough * {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}


/* Adjust panel content to move down slightly, so it doesnΓÇÖt overlap the logo */
#mw-panel {
  padding-top: 170px !important; /* adjust to your logo height */
}

/* Remove space above sidebar logo */
#p-logo {
  margin-top: 0 !important;
  padding-top: 0 !important;
  position: absolute !important;
  top: 0 !important;
}

/* === FIX: Restore orange headers for Reward and Walkthrough === */
.quest-header {
  background-color: #d86f34!important;
  color: white !important;
  padding: 5px !important;
  border: none !important;
  margin: 0 !important;
}

.quest-header h2,
.quest-header {
  background-color: #d86f34!important;
  color: white !important;
  text-align: left;
  padding: 6px 10px !important;
  margin: 0 !important;
  border-radius: 3px;
  border: none !important;
}










/* === Global Link Style === */
a,
a:visited,
a:active {
  color: #c51c19!important;      /* Makes all links white */
  font-weight: bold;           /* Makes them bold */
  text-decoration: none;       /* Removes underline */
}

/* Optional: hover effect for better UX */
a:hover {
  color: #f9ce41 !important;   /* Light gold highlight on hover */
  text-decoration: underline;  /* Adds underline on hover */
}











/* Scoped overrides only for NPC right panel legend/table to prevent white bg from skin */
.mw-parser-output .npc-right-panel,
.mw-parser-output .npc-right-panel * {
    background-color: transparent !important;
    background: transparent !important;
}

/* Allow the template to style the legend table and its cells */
.mw-parser-output .npc-right-panel table.wikitable,
.mw-parser-output .npc-right-panel table.wikitable tr,
.mw-parser-output .npc-right-panel table.wikitable td,
.mw-parser-output .npc-right-panel table.wikitable th {
    background-color: inherit !important;
    background: inherit !important;
}

/* If you want the legend table forced to your gold color, this makes it explicit */
.mw-parser-output .npc-right-panel table.wikitable.legend-force {
    background-color: #D1A84C !important;
    color: #2C1F0F !important;
    border:2px solid #2C1F0F !important;
}
.mw-parser-output .npc-right-panel table.wikitable.legend-force tr,
.mw-parser-output .npc-right-panel table.wikitable.legend-force td {
    background-color: #D1A84C !important;
    color: #2C1F0F !important;
}